Socket
Socket
Sign inDemoInstall

effects-as-data

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effects-as-data - npm Package Compare versions

Comparing version 1.4.0 to 1.4.2

17

lib/run.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc