Comparing version 3.1.0 to 3.1.1
@@ -21,3 +21,6 @@ "use strict"; | ||
} | ||
(0, Event_1.onAbort)(signal)(() => ctrl.abort()); | ||
if (signal !== exports.neverAbortedSignal) { | ||
const ref = new WeakRef(ctrl); | ||
(0, Event_1.onAbort)(signal)(() => ref.deref()?.abort()); | ||
} | ||
return ctrl; | ||
@@ -24,0 +27,0 @@ }; |
@@ -18,5 +18,8 @@ import { onAbort } from './Event'; | ||
} | ||
onAbort(signal)(() => ctrl.abort()); | ||
if (signal !== neverAbortedSignal) { | ||
const ref = new WeakRef(ctrl); | ||
onAbort(signal)(() => ref.deref()?.abort()); | ||
} | ||
return ctrl; | ||
}; | ||
//# sourceMappingURL=abort.js.map |
{ | ||
"name": "cockatiel", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Inspired by .NET Polly.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
693105
7168