Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 0.2.0 to 0.3.0

lib/helpers/end-with-payload-if-truthy.js

53

lib/effects-as-data.js

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

2

package.json
{
"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

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