Comparing version 8.4.23 to 8.4.24-canary.0
import { p as processOptions, v as validateOptions } from "./_chunks-es/defaultOptionsValidator.js"; | ||
import parseHeaders from "parse-headers"; | ||
const middlewareReducer = (middleware) => function(hook, defaultValue, ...args) { | ||
@@ -95,3 +94,19 @@ const bailEarly = hook === "onError"; | ||
} | ||
var __accessCheck = (obj, member, msg) => { | ||
function getDefaultExportFromCjs(x) { | ||
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x; | ||
} | ||
var trim = function(string) { | ||
return string.replace(/^\s+|\s+$/g, ""); | ||
}, isArray = function(arg) { | ||
return Object.prototype.toString.call(arg) === "[object Array]"; | ||
}, parseHeaders = function(headers) { | ||
if (!headers) | ||
return {}; | ||
for (var result = {}, headersArr = trim(headers).split(` | ||
`), i = 0; i < headersArr.length; i++) { | ||
var row = headersArr[i], index = row.indexOf(":"), key = trim(row.slice(0, index)).toLowerCase(), value = trim(row.slice(index + 1)); | ||
typeof result[key] > "u" ? result[key] = value : isArray(result[key]) ? result[key].push(value) : result[key] = [result[key], value]; | ||
} | ||
return result; | ||
}, parseHeaders$1 = /* @__PURE__ */ getDefaultExportFromCjs(parseHeaders), __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
@@ -215,3 +230,3 @@ throw TypeError("Cannot " + msg); | ||
method: options.method, | ||
headers: parseHeaders(xhr.getAllResponseHeaders()), | ||
headers: parseHeaders$1(xhr.getAllResponseHeaders()), | ||
statusCode: xhr.status, | ||
@@ -218,0 +233,0 @@ statusMessage: xhr.statusText |
import { c as createRequester } from "./_chunks-es/createRequester.js"; | ||
import parseHeaders from "parse-headers"; | ||
var __accessCheck = (obj, member, msg) => { | ||
function getDefaultExportFromCjs(x) { | ||
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x; | ||
} | ||
var trim = function(string) { | ||
return string.replace(/^\s+|\s+$/g, ""); | ||
}, isArray = function(arg) { | ||
return Object.prototype.toString.call(arg) === "[object Array]"; | ||
}, parseHeaders = function(headers) { | ||
if (!headers) | ||
return {}; | ||
for (var result = {}, headersArr = trim(headers).split(` | ||
`), i = 0; i < headersArr.length; i++) { | ||
var row = headersArr[i], index = row.indexOf(":"), key = trim(row.slice(0, index)).toLowerCase(), value = trim(row.slice(index + 1)); | ||
typeof result[key] > "u" ? result[key] = value : isArray(result[key]) ? result[key].push(value) : result[key] = [result[key], value]; | ||
} | ||
return result; | ||
}, parseHeaders$1 = /* @__PURE__ */ getDefaultExportFromCjs(parseHeaders), __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
@@ -122,3 +137,3 @@ throw TypeError("Cannot " + msg); | ||
method: options.method, | ||
headers: parseHeaders(xhr.getAllResponseHeaders()), | ||
headers: parseHeaders$1(xhr.getAllResponseHeaders()), | ||
statusCode: xhr.status, | ||
@@ -125,0 +140,0 @@ statusMessage: xhr.statusText |
{ | ||
"name": "get-it", | ||
"version": "8.4.23", | ||
"version": "8.4.24-canary.0", | ||
"description": "Generic HTTP request library for node, browsers and workers", | ||
@@ -82,4 +82,3 @@ "keywords": [ | ||
"scripts": { | ||
"build": "npm run clean && pkg build --strict && pkg --strict", | ||
"clean": "npx rimraf dist coverage", | ||
"build": "pkg build --strict --check --clean", | ||
"coverage": "vitest run --coverage", | ||
@@ -106,3 +105,2 @@ "lint": "eslint . --ext .cjs,.js,.ts --report-unused-disable-directives", | ||
"is-stream": "^2.0.1", | ||
"parse-headers": "^2.0.5", | ||
"progress-stream": "^2.0.0", | ||
@@ -113,5 +111,5 @@ "tunnel-agent": "^0.6.0" | ||
"@edge-runtime/vm": "^3.2.0", | ||
"@sanity/pkg-utils": "^6.6.5", | ||
"@sanity/pkg-utils": "^6.6.6", | ||
"@sanity/semantic-release-preset": "^4.1.7", | ||
"@types/bun": "^1.0.12", | ||
"@types/bun": "^1.1.0", | ||
"@types/debug": "^4.1.10", | ||
@@ -122,4 +120,4 @@ "@types/follow-redirects": "^1.14.4", | ||
"@types/zen-observable": "^0.8.7", | ||
"@typescript-eslint/eslint-plugin": "^7.6.0", | ||
"@typescript-eslint/parser": "^7.6.0", | ||
"@typescript-eslint/eslint-plugin": "^7.7.0", | ||
"@typescript-eslint/parser": "^7.7.0", | ||
"@vitest/coverage-v8": "^1.5.0", | ||
@@ -135,7 +133,7 @@ "eslint": "^8.57.0", | ||
"node-fetch": "^2.6.7", | ||
"parse-headers": "2.0.5", | ||
"prettier": "^3.2.5", | ||
"prettier-plugin-packagejson": "^2.5.0", | ||
"rimraf": "^5.0.1", | ||
"typescript": "5.4.5", | ||
"vite": "5.2.8", | ||
"vite": "5.2.9", | ||
"vitest": "^1.5.0", | ||
@@ -142,0 +140,0 @@ "vitest-github-actions-reporter": "^0.11.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
573515
8
6433
1
- Removedparse-headers@^2.0.5
- Removedparse-headers@2.0.5(transitive)