Comparing version 4.2.3 to 4.2.4
13
index.js
@@ -103,7 +103,2 @@ 'use strict' | ||
super() | ||
this[SIGNAL] = options && options.signal | ||
if (this[SIGNAL]) { | ||
this[SIGNAL].addEventListener('abort', () => this[ABORT]()) | ||
} | ||
this[ABORTED] = false | ||
this[FLOWING] = false | ||
@@ -135,2 +130,10 @@ // whether we're explicitly paused | ||
} | ||
this[SIGNAL] = options && options.signal | ||
this[ABORTED] = false | ||
if (this[SIGNAL]) { | ||
this[SIGNAL].addEventListener('abort', () => this[ABORT]()) | ||
if (this[SIGNAL].aborted) { | ||
this[ABORT]() | ||
} | ||
} | ||
} | ||
@@ -137,0 +140,0 @@ |
{ | ||
"name": "minipass", | ||
"version": "4.2.3", | ||
"version": "4.2.4", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68932
1330