Skip to content

Commit e0b9e6f

Browse files
committed
Moved module version constant to named export
1 parent 72edd4a commit e0b9e6f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngnjs/queue",
3-
"version": "1.0.0-alpha.8",
3+
"version": "1.0.0-alpha.9",
44
"description": "A lightweight NGN queue (taskrunner).",
55
"type": "module",
66
"main": "src/index.js",

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ export {
66
Queue,
77
Task
88
}
9+
10+
export const moduleVersion = '<#REPLACE_VERSION#>'

src/runner.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ export default class Queue extends EventEmitter {
4242
this.emit('status.change', { old, current: value })
4343
}
4444
}),
45-
continue: NGN.get(() => this.#status !== 'aborting' && this.#status !== 'cancelled'),
46-
moduleVersion: NGN.hiddenconstant('<#REPLACE_VERSION#>')
45+
continue: NGN.get(() => this.#status !== 'aborting' && this.#status !== 'cancelled')
4746
})
4847

4948
this.on('end', () => this.reset())

0 commit comments

Comments
 (0)