@whatwg-node/node-fetch 0.8.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0 → 0.8.0-alpha-20241212151314-570907b87da5f77c7c6a2d7476cd10a1bdd2b3dc
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/AbortSignal.js +2 -2
- package/esm/AbortSignal.js +1 -1
- package/package.json +1 -1
package/cjs/AbortSignal.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PonyfillAbortSignal = void 0;
|
4
4
|
const disposablestack_1 = require("@whatwg-node/disposablestack");
|
5
|
-
const
|
5
|
+
const AbortError_js_1 = require("./AbortError.js");
|
6
6
|
class PonyfillAbortSignal extends EventTarget {
|
7
7
|
aborted = false;
|
8
8
|
_onabort = null;
|
@@ -20,7 +20,7 @@ class PonyfillAbortSignal extends EventTarget {
|
|
20
20
|
}
|
21
21
|
sendAbort(reason) {
|
22
22
|
if (!this.aborted) {
|
23
|
-
this.reason = reason || new
|
23
|
+
this.reason = reason || new AbortError_js_1.PonyfillAbortError();
|
24
24
|
this.aborted = true;
|
25
25
|
const event = new Event('abort');
|
26
26
|
this.dispatchEvent(event);
|
package/esm/AbortSignal.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.8.0-alpha-
|
3
|
+
"version": "0.8.0-alpha-20241212151314-570907b87da5f77c7c6a2d7476cd10a1bdd2b3dc",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|