Comparing version 4.0.1 to 4.1.0
@@ -6,1 +6,2 @@ import ActionMessage from './interfaces/ActionMessage'; | ||
export declare function getPrivateActionId(target: any): any; | ||
export declare function getPrivateActionType(target: any): string; |
@@ -32,2 +32,3 @@ "use strict"; | ||
setPrivateActionId(decoratedTarget, actionId); | ||
setActionType(decoratedTarget, actionType); | ||
return decoratedTarget; | ||
@@ -42,1 +43,8 @@ } | ||
} | ||
function getPrivateActionType(target) { | ||
return target.__SATCHELJS_ACTION_TYPE || 'unknown action'; | ||
} | ||
exports.getPrivateActionType = getPrivateActionType; | ||
function setActionType(target, actionType) { | ||
target.__SATCHELJS_ACTION_TYPE = actionType; | ||
} |
@@ -12,3 +12,3 @@ "use strict"; | ||
} | ||
var wrappedTarget = mobx_1.action(function (actionMessage) { | ||
var wrappedTarget = mobx_1.action(actionCreator_1.getPrivateActionType(actionCreator), function (actionMessage) { | ||
try { | ||
@@ -15,0 +15,0 @@ globalContext_1.getGlobalContext().inMutator = true; |
@@ -13,3 +13,3 @@ "use strict"; | ||
decorator(simpleActionCreator, function simpleSubscriberCallback(actionMessage) { | ||
target.apply(null, actionMessage.args); | ||
return target.apply(null, actionMessage.args); | ||
}); | ||
@@ -16,0 +16,0 @@ return simpleActionCreator; |
{ | ||
"name": "satcheljs", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Store implementation for functional reactive flux.", | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"prettier --tab-width 4 --print-width 100 --write --trailing-comma es5 --jsx-bracket-same-line --single-quote", | ||
"prettier --write", | ||
"git add" | ||
@@ -37,3 +37,3 @@ ] | ||
"npm-run-all": "^4.0.2", | ||
"prettier": "~1.5.2", | ||
"prettier": "^1.19.1", | ||
"react": "15.4.2", | ||
@@ -61,2 +61,2 @@ "react-addons-test-utils": "~15.4.0", | ||
"license": "MIT" | ||
} | ||
} |
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
52692
91
1037