Skip to content

Commit

Permalink
Moved module version constant to named export
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed Sep 21, 2020
1 parent 72edd4a commit e0b9e6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngnjs/queue",
"version": "1.0.0-alpha.8",
"version": "1.0.0-alpha.9",
"description": "A lightweight NGN queue (taskrunner).",
"type": "module",
"main": "src/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ export {
Queue,
Task
}

export const moduleVersion = '<#REPLACE_VERSION#>'
3 changes: 1 addition & 2 deletions src/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export default class Queue extends EventEmitter {
this.emit('status.change', { old, current: value })
}
}),
continue: NGN.get(() => this.#status !== 'aborting' && this.#status !== 'cancelled'),
moduleVersion: NGN.hiddenconstant('<#REPLACE_VERSION#>')
continue: NGN.get(() => this.#status !== 'aborting' && this.#status !== 'cancelled')
})

this.on('end', () => this.reset())
Expand Down

0 comments on commit e0b9e6f

Please sign in to comment.