Comparing version 0.1.0-alpha.0 to 0.1.0-alpha.1
@@ -18,13 +18,13 @@ 'use strict'; | ||
function combineRefectReducer() { | ||
for (var _len = arguments.length, rexReducers = Array(_len), _key = 0; _key < _len; _key++) { | ||
rexReducers[_key] = arguments[_key]; | ||
for (var _len = arguments.length, refectReducers = Array(_len), _key = 0; _key < _len; _key++) { | ||
refectReducers[_key] = arguments[_key]; | ||
} | ||
return function (state, manager) { | ||
var rexReducerMaps = rexReducers.map(function (rexReducer) { | ||
return rexReducer(state, manager); | ||
var refectReducerMaps = refectReducers.map(function (refectReducer) { | ||
return refectReducer(state, manager); | ||
}); | ||
return rexReducerMaps.reduce(function (finalMap, rexReducerMap) { | ||
return _extends({}, finalMap, rexReducerMap); | ||
return refectReducerMaps.reduce(function (finalMap, refectReducerMap) { | ||
return _extends({}, finalMap, refectReducerMap); | ||
}, {}); | ||
@@ -44,5 +44,5 @@ }; | ||
var _options$reducer = options.reducer, | ||
rexReducer = _options$reducer === undefined ? defaultRefectReducer : _options$reducer, | ||
refectReducer = _options$reducer === undefined ? defaultRefectReducer : _options$reducer, | ||
_options$tasks = options.tasks, | ||
rexTasks = _options$tasks === undefined ? _utils.defaultRefectTasks : _options$tasks, | ||
refectTasks = _options$tasks === undefined ? _utils.defaultRefectTasks : _options$tasks, | ||
initialState = options.initialState, | ||
@@ -71,3 +71,3 @@ _options$effects = options.effects, | ||
}); | ||
var finalRefectReducer = combineRefectReducer.apply(undefined, [rexReducer].concat(_toConsumableArray(putinReducers))); | ||
var finalRefectReducer = combineRefectReducer.apply(undefined, [refectReducer].concat(_toConsumableArray(putinReducers))); | ||
var reducerActionCreators = (0, _parseRefect.parseRefectActions)(finalRefectReducer, namespace); | ||
@@ -78,3 +78,3 @@ var reducer = (0, _parseRefect.parseRefectReducer)(finalRefectReducer, namespace, initialState); | ||
var taskActionCreators = store.runTask({ | ||
rexTasks: rexTasks, namespace: namespace, getActions: getActions, | ||
refectTasks: refectTasks, namespace: namespace, getActions: getActions, | ||
effects: effects.map(function (effect) { | ||
@@ -81,0 +81,0 @@ return effect.plugin || _utils.defaultRefectTasks; |
{ | ||
"name": "refect", | ||
"version": "0.1.0-alpha.0", | ||
"version": "0.1.0-alpha.1", | ||
"description": "", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"dev": "babel src --out-dir lib -w", | ||
"build": "babel src --out-dir lib", | ||
"build": "rm -rf lib && babel src --out-dir lib", | ||
"demo": "webpack-dev-server --progress --port 3030 --colors --content-base demos --hot --inline --config demos/webpack.config.js", | ||
@@ -11,0 +11,0 @@ "autofix": "eslint src --fix", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
53128
23
1301