@whatwg-node/node-fetch 0.4.3-alpha-20230608092002-31ae5e4 → 0.4.3-rc-20230608093558-915e926

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/Request.js CHANGED
@@ -69,7 +69,7 @@ class PonyfillRequest extends Body_js_1.PonyfillBody {
69
69
  get signal() {
70
70
  // Create a new signal only if needed
71
71
  // Because the creation of signal is expensive
72
- if (this._signal) {
72
+ if (!this._signal) {
73
73
  this._signal = new AbortController().signal;
74
74
  }
75
75
  return this._signal;
package/esm/Request.js CHANGED
@@ -66,7 +66,7 @@ export class PonyfillRequest extends PonyfillBody {
66
66
  get signal() {
67
67
  // Create a new signal only if needed
68
68
  // Because the creation of signal is expensive
69
- if (this._signal) {
69
+ if (!this._signal) {
70
70
  this._signal = new AbortController().signal;
71
71
  }
72
72
  return this._signal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.4.3-alpha-20230608092002-31ae5e4",
3
+ "version": "0.4.3-rc-20230608093558-915e926",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {