Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4
@@ -118,5 +118,3 @@ 'use strict'; | ||
function getEffects(namespace, getActions) { | ||
var customedEffects = customEffects ? customEffects(getStore, namespace, getActions) : {}; | ||
return _extends({ | ||
return { | ||
get: function get(path) { | ||
@@ -164,3 +162,3 @@ var store = getStore(); | ||
} | ||
}, customedEffects); | ||
}; | ||
} | ||
@@ -175,3 +173,5 @@ | ||
var taskActionCreators = (0, _parseRefect.parseTasksActions)(refectTasks, namespace); | ||
var originEffects = getEffects(namespace, getActions); | ||
var coreEffects = getEffects(namespace, getActions); | ||
var customedEffects = customEffects ? customEffects(getStore, namespace, getActions) : {}; | ||
var plugins = {}; | ||
@@ -189,3 +189,3 @@ | ||
var finalEffects = _extends({}, originEffects, plugins); | ||
var finalEffects = _extends({}, coreEffects, customedEffects, plugins); | ||
@@ -197,3 +197,3 @@ return (0, _utils.map)(taskActionCreators, function (actionCreator, actionName) { | ||
var bundActions = (0, _utils.deepBindActions)(actions, dispatch); | ||
var taskMap = refectTasks(bundActions, finalEffects, originEffects, plugins); | ||
var taskMap = refectTasks(bundActions, finalEffects, coreEffects, _extends({}, customedEffects, plugins)); | ||
var task = taskMap[actionName]; | ||
@@ -200,0 +200,0 @@ |
{ | ||
"name": "refect", | ||
"version": "0.1.0-alpha.3", | ||
"version": "0.1.0-alpha.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -85,5 +85,2 @@ import { get, getActionType, is, check, map, deepBindActions } from 'utils'; | ||
function getEffects(namespace, getActions) { | ||
const customedEffects = customEffects ? | ||
customEffects(getStore, namespace, getActions) : {}; | ||
return { | ||
@@ -119,3 +116,2 @@ get(path) { | ||
}, | ||
...customedEffects, | ||
}; | ||
@@ -126,3 +122,6 @@ } | ||
const taskActionCreators = parseTasksActions(refectTasks, namespace); | ||
const originEffects = getEffects(namespace, getActions); | ||
const coreEffects = getEffects(namespace, getActions); | ||
const customedEffects = customEffects ? | ||
customEffects(getStore, namespace, getActions) : {}; | ||
let plugins = {}; | ||
@@ -144,3 +143,4 @@ | ||
const finalEffects = { | ||
...originEffects, | ||
...coreEffects, | ||
...customedEffects, | ||
...plugins, | ||
@@ -154,3 +154,6 @@ }; | ||
const bundActions = deepBindActions(actions, dispatch); | ||
const taskMap = refectTasks(bundActions, finalEffects, originEffects, plugins); | ||
const taskMap = refectTasks(bundActions, finalEffects, coreEffects, { | ||
...customedEffects, | ||
...plugins, | ||
}); | ||
const task = taskMap[actionName]; | ||
@@ -157,0 +160,0 @@ |
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
53669
1314