@whatwg-node/node-fetch 0.5.21-alpha-20240805013127-0091eb73bd34a7b9e242a22352afacb8ac728cb7 → 0.5.21-alpha-20240805153300-5dc4480ce57c825a7d63bb9bbee0856fcc1fcbcb

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 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 = 301) {
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 = 301) {
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-20240805013127-0091eb73bd34a7b9e242a22352afacb8ac728cb7",
3
+ "version": "0.5.21-alpha-20240805153300-5dc4480ce57c825a7d63bb9bbee0856fcc1fcbcb",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {