@jsenv/abort
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "@jsenv/abort", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Help to write code compatible with abort signals", | ||
@@ -19,3 +19,4 @@ "license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
@@ -22,0 +23,0 @@ "type": "module", |
@@ -96,2 +96,3 @@ /* | ||
if (operationSignal.aborted) { | ||
cancel() | ||
return cancel | ||
@@ -141,2 +142,9 @@ } | ||
if (operationSignal.aborted) { | ||
return { | ||
signal: abortSourceSignal, | ||
remove: cancelNoop, | ||
} | ||
} | ||
const returnValue = abortSourceCallback((value) => { | ||
@@ -143,0 +151,0 @@ abortSourceController.abort(value) |
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
16330
349