@whatwg-node/node-fetch 0.5.21-alpha-20240805043120-7ef960cdca7935f0a669dc88232f807e1a418c9c → 0.5.21-alpha-20240805194723-a36e06b155309aebf631301dadcb67a9cd4dc5a6
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/Response.js +1 -1
- package/esm/Response.js +1 -1
- package/package.json +1 -1
package/cjs/Response.js
CHANGED
@@ -37,7 +37,7 @@ class PonyfillResponse extends Body_js_1.PonyfillBody {
|
|
37
37
|
statusText: 'Internal Server Error',
|
38
38
|
});
|
39
39
|
}
|
40
|
-
static redirect(url, status =
|
40
|
+
static redirect(url, status = 302) {
|
41
41
|
if (status < 300 || status > 399) {
|
42
42
|
throw new RangeError('Invalid status code');
|
43
43
|
}
|
package/esm/Response.js
CHANGED
@@ -34,7 +34,7 @@ export class PonyfillResponse extends PonyfillBody {
|
|
34
34
|
statusText: 'Internal Server Error',
|
35
35
|
});
|
36
36
|
}
|
37
|
-
static redirect(url, status =
|
37
|
+
static redirect(url, status = 302) {
|
38
38
|
if (status < 300 || status > 399) {
|
39
39
|
throw new RangeError('Invalid status code');
|
40
40
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.5.21-alpha-
|
3
|
+
"version": "0.5.21-alpha-20240805194723-a36e06b155309aebf631301dadcb67a9cd4dc5a6",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|