Socket
Socket
Sign inDemoInstall

extra-abort

Package Overview
Dependencies
23
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.3 to 0.3.4

7

lib/abort-error.js

@@ -9,6 +9,5 @@ import { getErrorNames, CustomError, isError } from '@blackglory/errors';

|| (names.includes('DOMException') &&
(instance.message === 'This operation was aborted' // browser
||
instance.message === 'The signal has been aborted' // deno
));
// 不同的实现有不同的错误信息, 收集并检查每一种错误信息的做法效率太低.
// 目前可以确定的是每种错误信息都会包含`aborted`字样, 在此将其作为判断的依据.
instance.message.includes('aborted'));
}

@@ -15,0 +14,0 @@ return super[Symbol.hasInstance](instance);

{
"name": "extra-abort",
"version": "0.3.3",
"version": "0.3.4",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc