Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
helloyou2012 committed Feb 3, 2020
1 parent 476a05e commit 8409888
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@
},
"homepage": "https://github.com/d-band/yax#readme",
"dependencies": {
"@babel/runtime": "^7.5.5",
"redux": "^4.0.4"
"@babel/runtime": "^7.8.4",
"redux": "^4.0.5"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/register": "^7.5.5",
"babel-eslint": "^10.0.2",
"babel-plugin-istanbul": "^5.2.0",
"coveralls": "^3.0.6",
"cross-env": "^5.2.0",
"eslint": "^6.1.0",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^9.1.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/register": "^7.8.3",
"babel-eslint": "^10.0.3",
"babel-plugin-istanbul": "^6.0.0",
"coveralls": "^3.0.9",
"cross-env": "^7.0.0",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"expect": "^24.8.0",
"mocha": "^6.2.0",
"nyc": "^14.1.1"
"eslint-plugin-standard": "^4.0.1",
"expect": "^25.1.0",
"mocha": "^7.0.1",
"nyc": "^15.0.0"
}
}
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export default function yax (options = {}, enhancer) {

function registerModule (path, rawModule) {
if (typeof path === 'string') path = [path];
assert(Array.isArray(path), `module path must be a string or an Array.`);
assert(Array.isArray(path), 'module path must be a string or an Array.');
_modules.register(path, rawModule);
_installModule(path, _modules.get(path));
_resetReducers();
}

function unregisterModule (path) {
if (typeof path === 'string') path = [path];
assert(Array.isArray(path), `module path must be a string or an Array.`);
assert(Array.isArray(path), 'module path must be a string or an Array.');
_modules.unregister(path);
_resetStore();
_store.dispatch({ type: '@@yax/unregister', path });
Expand Down

0 comments on commit 8409888

Please sign in to comment.