extra-abort
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -6,7 +6,7 @@ "use strict"; | ||
const types_1 = require("@blackglory/types"); | ||
const iterable_operator_1 = require("iterable-operator"); | ||
const utils_1 = require("./utils"); | ||
class AbortError extends errors_1.CustomError { | ||
static [Symbol.hasInstance](instance) { | ||
if ((0, types_1.isError)(instance)) { | ||
const names = (0, iterable_operator_1.toArray)((0, errors_1.getErrorNames)(instance)); | ||
const names = (0, utils_1.toArray)((0, errors_1.getErrorNames)(instance)); | ||
return names.includes('AbortError') | ||
@@ -13,0 +13,0 @@ || (names.includes('DOMException') && |
{ | ||
"name": "extra-abort", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "", | ||
@@ -60,5 +60,4 @@ "keywords": [], | ||
"@blackglory/types": "^1.4.0", | ||
"iterable-operator": "^2.1.0 || ^3.0.0", | ||
"justypes": "^3.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
12719
3
27
145
0
- Removediterable-operator@^2.1.0 || ^3.0.0
- Removed@blackglory/go@1.1.3(transitive)
- Removed@blackglory/log@1.3.5(transitive)
- Removed@blackglory/prelude@0.2.4(transitive)
- Removed@blackglory/structures@0.11.80.12.3(transitive)
- Removedextra-compatible@0.1.8(transitive)
- Removedextra-fsm@0.1.1(transitive)
- Removedextra-generator@0.2.23(transitive)
- Removedextra-json-stable-stringify@0.1.2(transitive)
- Removedextra-lazy@1.3.1(transitive)
- Removedextra-promise@4.4.15.0.1(transitive)
- Removedextra-rand@0.1.5(transitive)
- Removedextra-timers@0.2.6(transitive)
- Removedextra-utils@3.7.04.0.1(transitive)
- Removedfast-stable-stringify@1.0.0(transitive)
- Removedhotypes@0.5.1(transitive)
- Removediterable-operator@2.5.03.1.1(transitive)
- Removedjustypes@2.3.04.4.1(transitive)
- Removedreturn-style@1.0.1(transitive)
- Removedrxjs@7.8.1(transitive)
- Removedtslib@2.8.1(transitive)