extra-abort
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -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
12233
119