action-chain
Advanced tools
Comparing version 1.0.0-1532121829927 to 1.0.0-1532124883785
@@ -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; |
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
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
99143
3
987
+ Addedbetsy@1.0.0-1532124883785
+ Addedbetsy@1.0.0-1532124883785(transitive)
- Removedcolor@^3.0.0
- Removedeventemitter3@^3.1.0
- Removedcolor@3.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcolor-string@1.9.1(transitive)
- Removedeventemitter3@3.1.2(transitive)
- Removedis-arrayish@0.3.2(transitive)
- Removedsimple-swizzle@0.2.2(transitive)