Skip to content

Commit

Permalink
v1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed May 18, 2020
1 parent 007800f commit e7434d6
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 204 deletions.
8 changes: 6 additions & 2 deletions ordu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ordu.js.map

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions ordu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Task {
this.name = taskdef.name || 'task' + Task.count++
this.before = taskdef.before
this.after = taskdef.after
this.exec = taskdef.exec || ((_: TaskSpec) => { })
this.exec = taskdef.exec || ((_: TaskSpec) => {})
this.if = taskdef.if || void 0
this.active = null == taskdef.active ? true : taskdef.active
this.meta = Object.assign(taskdef.meta || {}, {
Expand Down Expand Up @@ -151,7 +151,7 @@ type ExecResult = {

type Operator = (r: TaskResult, ctx: any, data: object) => Operate

class Ordu extends (EventEmitter as { new(): OrduEmitter }) implements OrduIF {
class Ordu extends (EventEmitter as { new (): OrduEmitter }) implements OrduIF {
private _opts: any

private _tasks: Task[]
Expand Down Expand Up @@ -382,17 +382,17 @@ class Ordu extends (EventEmitter as { new(): OrduEmitter }) implements OrduIF {
}
}


/* $lab:coverage:off$ */
function make_callpoint(err: Error) {
return null == err ? [] :
(err.stack || '').split(/\n/).slice(4).map(line => line.substring(4))
return null == err
? []
: (err.stack || '')
.split(/\n/)
.slice(4)
.map((line) => line.substring(4))
}
/* $lab:coverage:on$ */




function LegacyOrdu(opts?: any): any {
var orduI = -1

Expand Down Expand Up @@ -471,13 +471,13 @@ function LegacyOrdu(opts?: any): any {
}

function api_tasknames() {
return tasks.map(function(v) {
return tasks.map(function (v) {
return v.name
})
}

function api_taskdetails() {
return tasks.map(function(v) {
return tasks.map(function (v) {
return v.name + ':{tags:' + v.tags + '}'
})
}
Expand All @@ -498,4 +498,3 @@ function contains(all: any, some: any) {

return true
}

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ordu",
"version": "1.6.0",
"version": "1.7.0",
"description": "Execute functions in a configurable order, modifying a shared data structure.",
"homepage": "https://github.com/rjrodger/ordu",
"keywords": [
Expand Down

0 comments on commit e7434d6

Please sign in to comment.