Skip to content

Commit 5365a30

Browse files
committed
Changed 'aborted' event to 'abort' to be consistent with other NGN event emitters.
1 parent e0b9e6f commit 5365a30

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngnjs/queue",
3-
"version": "1.0.0-alpha.9",
3+
"version": "1.0.0-alpha.10",
44
"description": "A lightweight NGN queue (taskrunner).",
55
"type": "module",
66
"main": "src/index.js",
@@ -47,12 +47,12 @@
4747
"replace": {
4848
"<#REPLACE_VERSION#>": "package.version"
4949
},
50-
"embed": [
51-
"@ngnjs/plugin"
52-
],
5350
"ci": {
5451
"verbose": true,
5552
"peer": true,
53+
"embed": [
54+
"@ngnjs/plugin"
55+
],
5656
"alias": {
5757
"ngn": "/node_modules/ngn/index.js",
5858
"@ngnjs/plugin": "/node_modules/@ngnjs/plugin/index.js",

src/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export default class Queue extends EventEmitter {
305305
this.#cancelled = true
306306
clearTimeout(this.#timer)
307307
this._status = timeout ? 'timeout' : 'aborting'
308-
this.emit(timeout ? 'timeout' : 'aborted', task)
308+
this.emit(timeout ? 'timeout' : 'abort', task)
309309
}
310310
}
311311
}

0 commit comments

Comments
 (0)