@whatwg-node/node-fetch
Advanced tools
Comparing version 0.5.21-alpha-20240805043120-7ef960cdca7935f0a669dc88232f807e1a418c9c to 0.5.21-alpha-20240805153300-5dc4480ce57c825a7d63bb9bbee0856fcc1fcbcb
@@ -40,3 +40,3 @@ "use strict"; | ||
} | ||
static redirect(url, status = 301) { | ||
static redirect(url, status = 302) { | ||
if (status < 300 || status > 399) { | ||
@@ -43,0 +43,0 @@ throw new RangeError('Invalid status code'); |
@@ -37,3 +37,3 @@ import { STATUS_CODES } from 'http'; | ||
} | ||
static redirect(url, status = 301) { | ||
static redirect(url, status = 302) { | ||
if (status < 300 || status > 399) { | ||
@@ -40,0 +40,0 @@ throw new RangeError('Invalid status code'); |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.5.21-alpha-20240805043120-7ef960cdca7935f0a669dc88232f807e1a418c9c", | ||
"version": "0.5.21-alpha-20240805153300-5dc4480ce57c825a7d63bb9bbee0856fcc1fcbcb", | ||
"description": "Fetch API implementation for Node", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package