Skip to content

Commit

Permalink
feat: upgrade packages (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 5, 2019
1 parent aada365 commit 3c70053
Show file tree
Hide file tree
Showing 5 changed files with 2,453 additions and 1,032 deletions.
11 changes: 4 additions & 7 deletions .babelrc
@@ -1,20 +1,17 @@
{
"presets": [
[
"env",
"@babel/env",
{
"targets": {
"node": true
"node": "current"
}
}
],
"stage-2"
]
],
"env": {
"test": {
"plugins": [
"rewire"
]
"plugins": ["rewire"]
}
}
}
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -2,5 +2,6 @@ module.exports = {
extends: ['algolia', 'algolia/jest'],
rules: {
'valid-jsdoc': 'off',
'import/extensions': ['error', 'ignorePackages'],
},
};
37 changes: 22 additions & 15 deletions package.json
Expand Up @@ -12,8 +12,7 @@
"test": "jest && eslint .",
"test:watch": "jest --watchAll --no-watchman",
"format": "prettier --write **/*.{js,md,json}",
"doctoc": "doctoc --notitle --maxlevel 3 README.md",
"precommit": "lint-staged"
"doctoc": "doctoc --notitle --maxlevel 3 README.md"
},
"lint-staged": {
"*.js": [
Expand All @@ -35,11 +34,11 @@
"babel-preset-env": "1.7.0",
"babel-preset-stage-2": "6.24.1",
"bunyan": "1.8.12",
"bunyan-debug-stream": "1.1.1",
"dotenv": "6.2.0",
"bunyan-debug-stream": "2.0.0",
"dotenv": "8.0.0",
"escape-html": "1.0.3",
"got": "9.6.0",
"gravatar-url": "2.0.0",
"gravatar-url": "3.0.1",
"hosted-git-info": "2.7.1",
"lodash": "4.17.15",
"ms": "2.1.2",
Expand All @@ -52,25 +51,28 @@
"truncate-utf8-bytes": "1.0.2"
},
"devDependencies": {
"babel-eslint": "8.2.6",
"@babel/core": "7.5.5",
"@babel/preset-env": "7.5.5",
"babel-eslint": "10.0.2",
"babel-jest": "24.8.0",
"babel-plugin-rewire": "1.2.0",
"doctoc": "1.4.0",
"eslint": "5.16.0",
"eslint-config-algolia": "13.1.0",
"eslint-config-prettier": "2.10.0",
"eslint": "6.1.0",
"eslint-config-algolia": "13.4.0",
"eslint-config-prettier": "6.0.0",
"eslint-import-resolver-webpack": "0.11.1",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jasmine": "2.10.1",
"eslint-plugin-jest": "22.14.1",
"eslint-plugin-prettier": "2.7.0",
"eslint-plugin-prettier": "3.1.0",
"eslint-plugin-react": "7.14.3",
"husky": "0.14.3",
"jest": "23.6.0",
"lint-staged": "7.3.0",
"husky": "3.0.2",
"jest": "24.8.0",
"lint-staged": "9.2.1",
"pre-commit": "1.2.2",
"prettier": "1.14.3",
"prettier": "1.18.2",
"renovate-config-algolia": "2.0.2",
"validator": "10.11.0"
"validator": "11.1.0"
},
"engines": {
"node": "12"
Expand All @@ -80,5 +82,10 @@
"node_modules",
"lib"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}
4 changes: 2 additions & 2 deletions src/createStateManager.js
Expand Up @@ -11,8 +11,8 @@ let currentState;
export default algoliaIndex => ({
check() {
if (c.seq !== null) return this.reset();
return this.get().then(
state => (state === undefined ? this.reset() : state)
return this.get().then(state =>
state === undefined ? this.reset() : state
);
},
get() {
Expand Down

0 comments on commit 3c70053

Please sign in to comment.