abort-polyfill
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -87,3 +87,3 @@ (() => { | ||
var abortable = (fetch) => { | ||
if (!(typeof Request == "function" && "signal" in Request.prototype)) | ||
if (typeof Request == "function" && "signal" in Request.prototype || fetch.polyfill) | ||
return fetch; | ||
@@ -103,3 +103,3 @@ let createError = () => { | ||
return Promise.reject(createError()); | ||
let abort = new Promise((resolve, reject) => { | ||
let abort = new Promise((_, reject) => { | ||
signal.addEventListener("abort", function handler() { | ||
@@ -106,0 +106,0 @@ signal.addEventListener("abort", handler), reject(createError()); |
{ | ||
"name": "abort-polyfill", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Polyfill AbortController and AbortSignal", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6486