New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

abort-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abort-polyfill - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

dist/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc