vigor-fetch 3.1.8 → 3.1.9

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/dist/index.js CHANGED
@@ -1104,7 +1104,7 @@ class VigorFetch extends VigorStatus {
1104
1104
  });
1105
1105
  try {
1106
1106
  try {
1107
- new URL(stats.origin[0]);
1107
+ new URL(stats.origin);
1108
1108
  }
1109
1109
  catch {
1110
1110
  throw new VigorFetchError("INVALID_PROTOCOL", {
package/dist/index.mjs CHANGED
@@ -1100,7 +1100,7 @@ class VigorFetch extends VigorStatus {
1100
1100
  });
1101
1101
  try {
1102
1102
  try {
1103
- new URL(stats.origin[0]);
1103
+ new URL(stats.origin);
1104
1104
  }
1105
1105
  catch {
1106
1106
  throw new VigorFetchError("INVALID_PROTOCOL", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigor-fetch",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "description": "Smart, zero-dependency HTTP client with self-healing retries for rate-limited servers.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",