Rebuild dist

This commit is contained in:
Nick Alteen
2025-05-15 10:50:53 -04:00
parent f971b9431c
commit eeeb9784e7
4 changed files with 103 additions and 146 deletions

60
dist/index.js generated vendored
View File

@@ -11492,6 +11492,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] () {
@@ -14953,6 +14967,7 @@ function requireHeaders () {
isValidHeaderName,
isValidHeaderValue
} = requireUtil$5();
const util = require$$0$2;
const { webidl } = requireWebidl();
const assert = require$$0$3;
@@ -15499,6 +15514,9 @@ function requireHeaders () {
[Symbol.toStringTag]: {
value: 'Headers',
configurable: true
},
[util.inspect.custom]: {
enumerable: false
}
});
@@ -21388,9 +21406,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
@@ -21651,31 +21670,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;
}
@@ -22013,7 +22014,7 @@ function requireCookies () {
hasRequiredCookies = 1;
const { parseSetCookie } = requireParse();
const { stringify, getHeadersList } = requireUtil$1();
const { stringify } = requireUtil$1();
const { webidl } = requireWebidl();
const { Headers } = requireHeaders();
@@ -22089,14 +22090,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))
}
/**

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long