Comparing version 1.3.0 to 1.4.0
@@ -21,2 +21,5 @@ /// <reference types="node" /> | ||
tasks(): Task[]; | ||
task: { | ||
[name: string]: TaskExec; | ||
}; | ||
operator(name: string, opr: Operator): void; | ||
@@ -99,2 +102,5 @@ operator(opr: Operator): void; | ||
private _operator_map; | ||
task: { | ||
[name: string]: TaskExec; | ||
}; | ||
constructor(opts?: any); | ||
@@ -101,0 +107,0 @@ operator(first: string | Operator, opr?: Operator): void; |
@@ -69,2 +69,3 @@ /* Copyright (c) 2016-2020 Richard Rodger and other contributors, MIT License */ | ||
super(); | ||
this.task = {}; | ||
this._opts = { | ||
@@ -123,2 +124,3 @@ debug: false, | ||
}); | ||
this.task[t.name] = t.exec; | ||
} | ||
@@ -125,0 +127,0 @@ // TODO: execSync version when promises not needed |
@@ -33,2 +33,6 @@ /* Copyright (c) 2016-2020 Richard Rodger and other contributors, MIT License */ | ||
task: { | ||
[name: string]: TaskExec | ||
} | ||
operator(name: string, opr: Operator): void | ||
@@ -154,5 +158,9 @@ operator(opr: Operator): void | ||
task: { [name: string]: TaskExec } | ||
constructor(opts?: any) { | ||
super() | ||
this.task = {} | ||
this._opts = { | ||
@@ -218,2 +226,3 @@ debug: false, | ||
}) | ||
this.task[t.name] = t.exec | ||
} | ||
@@ -220,0 +229,0 @@ |
{ | ||
"name": "ordu", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Execute functions in a configurable order, modifying a shared data structure.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/rjrodger/ordu", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
119498
2976