function-tree
Advanced tools
Comparing version 3.3.0-1527787935820 to 3.3.0-1527840012018
@@ -27,3 +27,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
_this.latestExecutionId = null; | ||
_this.version = "3.3.0-1527787935820"; | ||
_this.version = "3.3.0-1527840012018"; | ||
_this.init(); | ||
@@ -30,0 +30,0 @@ return _this; |
@@ -13,8 +13,2 @@ import { EventEmitter } from 'eventemitter3' | ||
type TPath = { | ||
[key: string]: TFunctionTreeExecutable | ||
} | ||
type TSequenceArray = Array<Primitive | Function | TPath> | ||
export type TFunctionTreeExecutable = | ||
@@ -26,2 +20,8 @@ | Primitive | ||
type TPath = { | ||
[key: string]: TSequenceArray | Function | ||
} | ||
type TSequenceArray = Array<Function | TPath> | ||
interface IPayload { | ||
@@ -43,3 +43,3 @@ [key: string]: any | ||
constructor(contextProviders?: TContextProviders) | ||
run(sequence: TFunctionTreeExecutable, payload?: IPayload): Promise<any> | ||
run(sequence: TSequenceArray, payload?: IPayload): Promise<any> | ||
} | ||
@@ -84,5 +84,8 @@ | ||
export function sequence<Props>(items: Function | TSequenceArray): (props: Props) => void | ||
export function sequence(name: string, items: Function | TSequenceArray): Primitive | ||
export function parallel(items: TSequenceArray): Primitive | ||
export function parallel(name: string, items: TSequenceArray): Primitive | ||
export function sequence(name: string, items: Function | TSequenceArray): () => void | ||
export function sequence<Props>(name: string, items: Function | TSequenceArray): (props: Props) => void | ||
export function parallel(items: Array<Function | TSequenceArray>): () => void | ||
export function parallel<Props>(items: Array<Function | TSequenceArray>): (props: Props) => void | ||
export function parallel(name: string, items: Array<Function | TSequenceArray>): () => void | ||
export function parallel<Props>(name: string, items: Array<Function | TSequenceArray>): (props: Props) => void | ||
@@ -89,0 +92,0 @@ export class ResolveValue<T = any> {} |
@@ -48,3 +48,3 @@ 'use strict'; | ||
_this.latestExecutionId = null; | ||
_this.version = "3.3.0-1527787935820"; | ||
_this.version = "3.3.0-1527840012018"; | ||
_this.init(); | ||
@@ -51,0 +51,0 @@ return _this; |
{ | ||
"name": "function-tree", | ||
"version": "3.3.0-1527787935820", | ||
"version": "3.3.0-1527840012018", | ||
"description": "When a function is not enough", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
365839
3843