You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

to
0.0.1

9

index.js

@@ -43,5 +43,10 @@ /**

const handlers = getHandlers(this)
const handler = handlers.get(name)
if (handler) {
this.removeEventListener(name, handler)
}
if (typeof value === 'function') {
handlers.set(name, value)
this.addEventListener(name, value)
const newHandler = value.bind(this)
handlers.set(name, newHandler)
this.addEventListener(name, newHandler)
} else {

@@ -48,0 +53,0 @@ handlers.set(name, null)

{
"name": "abort-polyfill",
"version": "0.0.0",
"version": "0.0.1",
"description": "Polyfill AbortController and AbortSignal",

@@ -5,0 +5,0 @@ "license": "MIT",