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-1532121829927 to 1.0.0-1532124883785

35

es/ActionChain.d.ts

@@ -1,2 +0,3 @@

import * as EventEmitter from 'eventemitter3';
import { EventEmitter } from 'betsy';
import { Mutation } from 'proxy-state-tree';
export declare type ExecutionContext = {

@@ -15,3 +16,33 @@ __execution: Execution;

};
export declare class ActionChain<Context> extends EventEmitter {
export declare type ActionExecution = {
actionId: number;
executionId: number;
};
export declare type OperatorExecution = ActionExecution & {
operatorId: number;
type: string;
name: string;
path: string;
};
export interface ActionChainEvents {
provider: Execution & {
name: string;
method: string | number | symbol;
result: any;
};
'action:start': ActionExecution;
'action:end': ActionExecution;
'operator:start': OperatorExecution;
'operator:async': OperatorExecution & {
isAsync: boolean;
};
'operator:end': OperatorExecution & {
isAsync: boolean;
result: any;
};
mutations: ActionExecution & {
mutations: Mutation[];
};
}
export declare class ActionChain<Context> extends EventEmitter<ActionChainEvents> {
private context;

@@ -18,0 +49,0 @@ private options;

2

es/ActionChain.js
import * as tslib_1 from "tslib";
import * as EventEmitter from 'eventemitter3';
import { EventEmitter } from 'betsy';
var IS_DEVELOPMENT = process.env.NODE_ENV !== 'production';

@@ -4,0 +4,0 @@ var ActionChain = /** @class */ (function (_super) {

@@ -1,2 +0,3 @@

import * as EventEmitter from 'eventemitter3';
import { EventEmitter } from 'betsy';
import { Mutation } from 'proxy-state-tree';
export declare type ExecutionContext = {

@@ -15,3 +16,33 @@ __execution: Execution;

};
export declare class ActionChain<Context> extends EventEmitter {
export declare type ActionExecution = {
actionId: number;
executionId: number;
};
export declare type OperatorExecution = ActionExecution & {
operatorId: number;
type: string;
name: string;
path: string;
};
export interface ActionChainEvents {
provider: Execution & {
name: string;
method: string | number | symbol;
result: any;
};
'action:start': ActionExecution;
'action:end': ActionExecution;
'operator:start': OperatorExecution;
'operator:async': OperatorExecution & {
isAsync: boolean;
};
'operator:end': OperatorExecution & {
isAsync: boolean;
result: any;
};
mutations: ActionExecution & {
mutations: Mutation[];
};
}
export declare class ActionChain<Context> extends EventEmitter<ActionChainEvents> {
private context;

@@ -18,0 +49,0 @@ private options;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var EventEmitter = require("eventemitter3");
var betsy_1 = require("betsy");
var IS_DEVELOPMENT = process.env.NODE_ENV !== 'production';

@@ -54,4 +54,4 @@ var ActionChain = /** @class */ (function (_super) {

return ActionChain;
}(EventEmitter));
}(betsy_1.EventEmitter));
exports.ActionChain = ActionChain;
//# sourceMappingURL=ActionChain.js.map
{
"name": "action-chain",
"version": "1.0.0-1532121829927",
"version": "1.0.0-1532124883785",
"description": "Functional actions",

@@ -33,7 +33,6 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>",

"@types/node": "^10.5.1",
"eventemitter3": "^3.1.0",
"tslib": "^1.9.3",
"color": "^3.0.0"
"betsy": "1.0.0-1532124883785"
},
"devDependencies": {}
}

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