Rebuild dist

This commit is contained in:
Nick Alteen
2025-05-15 10:49:07 -04:00
parent d8834ad4b8
commit defc56a81a
3 changed files with 93 additions and 93 deletions

60
dist/index.js generated vendored
View File

@@ -11502,6 +11502,20 @@ function requirePool () {
? { ...options.interceptors }
: undefined;
this[kFactory] = factory;
this.on('connectionError', (origin, targets, error) => {
// If a connection error occurs, we remove the client from the pool,
// and emit a connectionError event. They will not be re-used.
// Fixes https://github.com/nodejs/undici/issues/3895
for (const target of targets) {
// Do not use kRemoveClient here, as it will close the client,
// but the client cannot be closed in this state.
const idx = this[kClients].indexOf(target);
if (idx !== -1) {
this[kClients].splice(idx, 1);
}
}
});
}
[kGetDispatcher] () {
@@ -14963,6 +14977,7 @@ function requireHeaders () {
isValidHeaderName,
isValidHeaderValue
} = requireUtil$5();
const util = require$$0$2;
const { webidl } = requireWebidl();
const assert = require$$0$3;
@@ -15509,6 +15524,9 @@ function requireHeaders () {
[Symbol.toStringTag]: {
value: 'Headers',
configurable: true
},
[util.inspect.custom]: {
enumerable: false
}
});
@@ -21398,9 +21416,10 @@ function requireUtil$1 () {
if (hasRequiredUtil$1) return util$1;
hasRequiredUtil$1 = 1;
const assert = require$$0$3;
const { kHeadersList } = requireSymbols$4();
/**
* @param {string} value
* @returns {boolean}
*/
function isCTLExcludingHtab (value) {
if (value.length === 0) {
return false
@@ -21661,31 +21680,13 @@ function requireUtil$1 () {
return out.join('; ')
}
let kHeadersListNode;
function getHeadersList (headers) {
if (headers[kHeadersList]) {
return headers[kHeadersList]
}
if (!kHeadersListNode) {
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
(symbol) => symbol.description === 'headers list'
);
assert(kHeadersListNode, 'Headers cannot be parsed');
}
const headersList = headers[kHeadersListNode];
assert(headersList);
return headersList
}
util$1 = {
isCTLExcludingHtab,
stringify,
getHeadersList
validateCookieName,
validateCookiePath,
validateCookieValue,
toIMFDate,
stringify
};
return util$1;
}
@@ -22023,7 +22024,7 @@ function requireCookies () {
hasRequiredCookies = 1;
const { parseSetCookie } = requireParse();
const { stringify, getHeadersList } = requireUtil$1();
const { stringify } = requireUtil$1();
const { webidl } = requireWebidl();
const { Headers } = requireHeaders();
@@ -22099,14 +22100,13 @@ function requireCookies () {
webidl.brandCheck(headers, Headers, { strict: false });
const cookies = getHeadersList(headers).cookies;
const cookies = headers.getSetCookie();
if (!cookies) {
return []
}
// In older versions of undici, cookies is a list of name:value.
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
return cookies.map((pair) => parseSetCookie(pair))
}
/**