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

action-chain

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

action-chain - npm Package Compare versions

Comparing version 1.0.0-1532266937246 to 1.0.0-1532274233141

2

es/ActionBase.js

@@ -40,3 +40,3 @@ import * as tslib_1 from "tslib";

path: path }, context.__execution, { operatorId: operatorId }));
var result = cb(currentValue, context);
var result = cb(context, currentValue);
if (result instanceof Promise) {

@@ -43,0 +43,0 @@ _this.actionChain.emit('operator:async', tslib_1.__assign({ type: type,

@@ -8,4 +8,4 @@ import * as tslib_1 from "tslib";

_this.test = function (cb) {
var operator = function (value, context) {
return cb(value, context);
var operator = function (context, value) {
return cb(context, value);
};

@@ -16,3 +16,3 @@ var _a = _this.createOperatorResult('test', cb.name, operator), chain = _a[0], initialActionId = _a[1], runOperators = _a[2];

_this.testFork = function (action) {
var operator = function (value, context) {
var operator = function (context, value) {
return action(value, context, 'fork');

@@ -61,3 +61,3 @@ };

console.log(wut.test);
var test = action().test(function (_, _a) {
var test = action().test(function (_a) {
var __execution = _a.__execution, __path = _a.__path;

@@ -71,3 +71,3 @@ expect(__execution).toBeTruthy();

expect.assertions(1);
var fn = action().test(function (_, _a) {
var fn = action().test(function (_a) {
var foo = _a.foo;

@@ -82,3 +82,3 @@ expect(foo.bar()).toBe('baz');

expect.assertions(2);
var fn = action().test(function (_, _a) {
var fn = action().test(function (_a) {
var foo = _a.foo;

@@ -101,3 +101,3 @@ expect(foo.bar()).toBe('baz');

expect.assertions(2);
var fn = action().test(function (_, _a) {
var fn = action().test(function (_a) {
var test = _a.test;

@@ -104,0 +104,0 @@ expect(test.foo()).toBe('bar');

@@ -42,3 +42,3 @@ "use strict";

path: path }, context.__execution, { operatorId: operatorId }));
var result = cb(currentValue, context);
var result = cb(context, currentValue);
if (result instanceof Promise) {

@@ -45,0 +45,0 @@ _this.actionChain.emit('operator:async', tslib_1.__assign({ type: type,

@@ -10,4 +10,4 @@ "use strict";

_this.test = function (cb) {
var operator = function (value, context) {
return cb(value, context);
var operator = function (context, value) {
return cb(context, value);
};

@@ -18,3 +18,3 @@ var _a = _this.createOperatorResult('test', cb.name, operator), chain = _a[0], initialActionId = _a[1], runOperators = _a[2];

_this.testFork = function (action) {
var operator = function (value, context) {
var operator = function (context, value) {
return action(value, context, 'fork');

@@ -63,3 +63,3 @@ };

console.log(wut.test);
var test = action().test(function (_, _a) {
var test = action().test(function (_a) {
var __execution = _a.__execution, __path = _a.__path;

@@ -73,3 +73,3 @@ expect(__execution).toBeTruthy();

expect.assertions(1);
var fn = action().test(function (_, _a) {
var fn = action().test(function (_a) {
var foo = _a.foo;

@@ -84,3 +84,3 @@ expect(foo.bar()).toBe('baz');

expect.assertions(2);
var fn = action().test(function (_, _a) {
var fn = action().test(function (_a) {
var foo = _a.foo;

@@ -103,3 +103,3 @@ expect(foo.bar()).toBe('baz');

expect.assertions(2);
var fn = action().test(function (_, _a) {
var fn = action().test(function (_a) {
var test = _a.test;

@@ -106,0 +106,0 @@ expect(test.foo()).toBe('bar');

{
"name": "action-chain",
"version": "1.0.0-1532266937246",
"version": "1.0.0-1532274233141",
"description": "Functional actions",

@@ -34,5 +34,5 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>",

"tslib": "^1.9.3",
"betsy": "1.0.0-1532266937246"
"betsy": "1.0.0-1532274233141"
},
"devDependencies": {}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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