effects-as-data
Advanced tools
Comparing version 1.4.0 to 1.4.2
@@ -16,13 +16,20 @@ 'use strict'; | ||
return runComplete(actionHandlers, fn, payload).then(prop('payload')); | ||
var h1 = handleActions(run, actionHandlers); | ||
return runComplete(h1, fn, payload).then(prop('payload')); | ||
}; | ||
var runComplete = function runComplete(actionHandlers, fn) { | ||
var runComplete = function runComplete(handleActions, fn) { | ||
var payload = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
var g = fn(payload); | ||
var actionHandler = handleActions(run, actionHandlers); | ||
return runner(actionHandler, g, payload); | ||
return runner(handleActions, g, payload); | ||
}; | ||
var runTest = function runTest(actionHandlers, fn) { | ||
var payload = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
var h1 = handleActions(run, actionHandlers); | ||
return runComplete(h1, fn, payload); | ||
}; | ||
var runner = function runner(handleActions, g, input, el) { | ||
@@ -79,4 +86,4 @@ var el1 = getExecutionLog(el); | ||
runComplete: curry(runComplete), | ||
runTest: curry(runComplete) | ||
runTest: curry(runTest) | ||
}; | ||
//# sourceMappingURL=run.js.map |
{ | ||
"name": "effects-as-data", | ||
"version": "1.4.0", | ||
"description": "", | ||
"version": "1.4.2", | ||
"description": "Express async workflows using pure functions.", | ||
"main": "lib/index.js", | ||
@@ -9,6 +9,8 @@ "scripts": { | ||
"demo": "npm run transpile; node lib/demo/repos.js", | ||
"transpile": "babel src --out-dir lib --source-maps" | ||
"transpile": "babel src --out-dir lib --source-maps", | ||
"precommit": "npm run transpile && npm test && uver && git add -A", | ||
"publish": "npm run transpile && npm test && npm publish" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"author": "orourkedd", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -26,5 +28,7 @@ "ramda": "^0.22.1" | ||
"babel-preset-es2015": "^6.18.0", | ||
"husky": "^0.11.9", | ||
"jest-cli": "^17.0.3", | ||
"simple-protocol-http": "^0.5.0", | ||
"sinon": "^1.17.6" | ||
"sinon": "^1.17.6", | ||
"uver-cli": "^1.1.0" | ||
}, | ||
@@ -31,0 +35,0 @@ "standard": { |
Sorry, the diff of this file is not supported yet
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
154282
2556
1
13