@whatwg-node/node-fetch 0.5.18-alpha-20240726152542-5f316782934ecd79aef9ea23affd78bb05e47164 → 0.5.18-alpha-20240726152827-c87fd0a93730000f4a985ec06650f158718e0c70

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/utils.js CHANGED
@@ -21,6 +21,7 @@ function patchReadableFromWeb() {
21
21
  return originalReadableFromWeb(stream);
22
22
  }
23
23
  if (typeof jest === 'object' &&
24
+ typeof beforeEach === 'function' &&
24
25
  typeof afterEach === 'function' &&
25
26
  originalReadableFromWeb.name !== 'ReadableFromWebPatchedByWhatWgNode') {
26
27
  // To relax jest, we should remove the patch after each test
package/esm/utils.js CHANGED
@@ -13,6 +13,7 @@ export function patchReadableFromWeb() {
13
13
  return originalReadableFromWeb(stream);
14
14
  }
15
15
  if (typeof jest === 'object' &&
16
+ typeof beforeEach === 'function' &&
16
17
  typeof afterEach === 'function' &&
17
18
  originalReadableFromWeb.name !== 'ReadableFromWebPatchedByWhatWgNode') {
18
19
  // To relax jest, we should remove the patch after each test
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.5.18-alpha-20240726152542-5f316782934ecd79aef9ea23affd78bb05e47164",
3
+ "version": "0.5.18-alpha-20240726152827-c87fd0a93730000f4a985ec06650f158718e0c70",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {