Skip to content

Commit

Permalink
Upgrade dependencies and support node >= 10
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Apr 28, 2020
1 parent 09ca05d commit 891a1e1
Show file tree
Hide file tree
Showing 7 changed files with 3,103 additions and 3,221 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ module.exports = {
env: {
browser: true,
},
rules: {
'max-classes-per-file': 0,
},
};
3 changes: 1 addition & 2 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"sourceMap": false,
"instrument": false
"extends": "@istanbuljs/nyc-config-babel"
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- '10'
- '8'
- '6'
- '12'
- '14'
deploy:
api_key:
secure: kp9zugsY0x5MMmnVP/+fmqQaElXRDM8+Lu7Klf3r5dBBn4mE2a7p+A8mQAsKq1Qj6ujFEx4WDc2dF2ldl6PefVSAQuh9mi4BkFmBJFfqVk4ReIVOx/Ik9nX+8J/9hUgpXY9Fnt6uZgDb+pOVqIQjXR2uA7Qhk2JUohR3xn406XVsFv5fXplD9hou27O6E9UhmWepvPxZYbV/mtkI2U0AS3NjtO+/B0OEFkmb1fz2XVOjW6FFDE46GQsVc+RMunzygAKXtbjHQURXifM3JJ+M/z4iMDRbVOz33QNLIf+eXBeHt7+OmjR/QNgx7b7DMPNEafmLHA/oigMkTAy24Q+VCyLb1D/amJUYjwGupCUJnDGidS2NG5y4axTRFcvWWvDAvBUxbofXETjBdoPwcISH1j3mb36qFPfqwrQFREX9KkEWZMmT00mkkvcXjf4liAp+ELxGBSgJlLbnSBLeni37uizYx3gNz8GBEh80baNQz3bImIIyEMGaobT+TNc1zL54BD2caOkchRHCacMZPCSwg5a+IfAPj1ewm5gZ44YhDdn4CYSle6YNcy1DcK5A25MIMUV33pfzEEg10Ozb70f9j8EvkjCKbkgbkurYAhDSKbOyOc315BGPGlMzgBOzk0nPESnBugAlgSgnQC+x20pkbiIh9/xBGWLmgg3NoKyqHZY=
Expand All @@ -11,6 +11,6 @@ deploy:
skip_cleanup: true # prevent having to rebuild all files
on:
tags: true
script: npm run lint && npm run test && npm run build
script: npm run build && npm run lint && npm run test
after_success:
- npm run coveralls
6,263 changes: 3,071 additions & 3,192 deletions package-lock.json

Large diffs are not rendered by default.

43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"typings": "./index.d.ts",
"scripts": {
"test": "mocha",
"lint": "eslint src/",
"lint": "eslint 'src/**/*.js' 'test/**/*.js'",
"build": "rollup -c",
"cover": "nyc npm test",
"coveralls": "npm run cover && nyc report --reporter=text-lcov | coveralls",
"prepare": "npm run lint && npm run build"
"prepare": "npm run build && npm run lint"
},
"files": [
"dist",
Expand All @@ -33,27 +33,28 @@
"homepage": "https://github.com/dotcore64/i18next-fetch-backend#readme",
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/plugin-proposal-class-properties": "^7.3.3",
"@babel/preset-env": "^7.3.1",
"@babel/register": "^7.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-istanbul": "^5.1.1",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"@babel/register": "^7.9.0",
"@istanbuljs/nyc-config-babel": "^3.0.0",
"@rollup/plugin-babel": "^5.0.0",
"babel-eslint": "^10.1.0",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.2.0",
"coveralls": "^3.0.2",
"coveralls": "^3.1.0",
"env-test": "^1.0.0",
"eslint": "^5.14.1",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-mocha": "^6.1.0",
"finalhandler": "^1.1.1",
"i18next": "^15.0.4",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-mocha": "^6.3.0",
"finalhandler": "^1.1.2",
"i18next": "^19.4.4",
"isomorphic-fetch": "^2.2.1",
"mocha": "^6.0.0",
"nyc": "^13.3.0",
"rollup": "^1.2.2",
"rollup-plugin-babel": "^4.3.2",
"serve-static": "^1.13.2"
"mocha": "^7.1.2",
"nyc": "^15.0.1",
"rollup": "^2.7.3",
"serve-static": "^1.14.1"
}
}
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import babel from 'rollup-plugin-babel';
import babel from '@rollup/plugin-babel';
import pkg from './package.json';

const input = 'src/index.js';
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const defaults = {
requestOptions: {},
};

const arrify = val => (Array.isArray(val) ? val : [val]);
const arrify = (val) => (Array.isArray(val) ? val : [val]);
const normalize = (funcOrVal, ...args) => (typeof funcOrVal === 'function' ? funcOrVal(...args) : funcOrVal);

class BackendError extends Error {
Expand Down Expand Up @@ -117,7 +117,7 @@ class Backend {
...requestOptions,
});
} catch (ex) {
console.error(ex);
console.error(ex); // eslint-disable-line no-console
}
});
}
Expand Down

0 comments on commit 891a1e1

Please sign in to comment.