effects-as-data
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -29,2 +29,40 @@ 'use strict'; | ||
var _require5 = require('./helpers/result-to-context'); | ||
var resultToContext = _require5.resultToContext; | ||
var _require6 = require('./helpers/result-to-payload'); | ||
var resultToPayload = _require6.resultToPayload; | ||
var _require7 = require('./helpers/end-with-payload'); | ||
var endWithPayload = _require7.endWithPayload; | ||
var _require8 = require('./helpers/end-with-payload-if-truthy'); | ||
var endWithPayloadIfTruthy = _require8.endWithPayloadIfTruthy; | ||
var _require9 = require('./helpers/pick-payload'); | ||
var pickPayload = _require9.pickPayload; | ||
var _require10 = require('./helpers/pick-context'); | ||
var pickContext = _require10.pickContext; | ||
var _require11 = require('./helpers/pick-errors'); | ||
var pickErrors = _require11.pickErrors; | ||
var _require12 = require('./helpers/validate-exists'); | ||
var validateExists = _require12.validateExists; | ||
var _require13 = require('./helpers/panic-if-error'); | ||
var panicIfError = _require13.panicIfError; | ||
var actions = require('./actions'); | ||
var run = function run(plugins, pipeRaw, state, parentEC) { | ||
@@ -220,3 +258,3 @@ var pipe = normalizePipe(pipeRaw); | ||
module.exports = { | ||
var exported = { | ||
emptyState: emptyState, | ||
@@ -227,4 +265,15 @@ run: run, | ||
setup: setup, | ||
simplePlugin: simplePlugin | ||
simplePlugin: simplePlugin, | ||
resultToContext: resultToContext, | ||
resultToPayload: resultToPayload, | ||
endWithPayload: endWithPayload, | ||
endWithPayloadIfTruthy: endWithPayloadIfTruthy, | ||
pickPayload: pickPayload, | ||
pickContext: pickContext, | ||
pickErrors: pickErrors, | ||
validateExists: validateExists, | ||
panicIfError: panicIfError | ||
}; | ||
module.exports = merge(actions, exported); | ||
//# sourceMappingURL=effects-as-data.js.map |
{ | ||
"name": "effects-as-data", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Express complex async workflows using only pure functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,12 @@ const { map, insert, merge, flatten, reduce, toPairs } = require('ramda') | ||
const { addToContext, addToErrors } = require('./actions') | ||
const { resultToContext } = require('./helpers/result-to-context') | ||
const { resultToPayload } = require('./helpers/result-to-payload') | ||
const { endWithPayload } = require('./helpers/end-with-payload') | ||
const { endWithPayloadIfTruthy } = require('./helpers/end-with-payload-if-truthy') | ||
const { pickPayload } = require('./helpers/pick-payload') | ||
const { pickContext } = require('./helpers/pick-context') | ||
const { pickErrors } = require('./helpers/pick-errors') | ||
const { validateExists } = require('./helpers/validate-exists') | ||
const { panicIfError } = require('./helpers/panic-if-error') | ||
const actions = require('./actions') | ||
@@ -186,3 +196,3 @@ const run = (plugins, pipeRaw, state, parentEC) => { | ||
module.exports = { | ||
const exported = { | ||
emptyState, | ||
@@ -193,3 +203,14 @@ run, | ||
setup, | ||
simplePlugin | ||
simplePlugin, | ||
resultToContext, | ||
resultToPayload, | ||
endWithPayload, | ||
endWithPayloadIfTruthy, | ||
pickPayload, | ||
pickContext, | ||
pickErrors, | ||
validateExists, | ||
panicIfError | ||
} | ||
module.exports = merge(actions, exported) |
Sorry, the diff of this file is not supported yet
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
132536
110
2390