Socket
Socket
Sign inDemoInstall

@jsenv/abort

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/abort - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

5

package.json
{
"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)

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