зеркало из https://github.com/microsoft/lage.git
15 строки
553 B
Diff
15 строки
553 B
Diff
diff --git a/node_modules/node-fetch/lib/index.js b/node_modules/node-fetch/lib/index.js
|
|
index 337d6e5..0eb6fca 100644
|
|
--- a/node_modules/node-fetch/lib/index.js
|
|
+++ b/node_modules/node-fetch/lib/index.js
|
|
@@ -1181,8 +1181,7 @@ function isRequest(input) {
|
|
}
|
|
|
|
function isAbortSignal(signal) {
|
|
- const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
|
|
- return !!(proto && proto.constructor.name === 'AbortSignal');
|
|
+ return typeof signal.aborted === "boolean" && typeof signal.removeEventListener === "function";
|
|
}
|
|
|
|
/**
|