diff --git a/package.json b/package.json index 5876bd1..dea34a6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index f99d572..bffc52c 100644 --- a/src/index.js +++ b/src/index.js @@ -6,3 +6,5 @@ export { Queue, Task } + +export const moduleVersion = '<#REPLACE_VERSION#>' diff --git a/src/runner.js b/src/runner.js index 034910f..289c12c 100644 --- a/src/runner.js +++ b/src/runner.js @@ -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())