Skip to content

Commit 16978de

Browse files
committed
build: update generated files
1 parent 8d8bd82 commit 16978de

File tree

15 files changed

+703
-554
lines changed

15 files changed

+703
-554
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 295 additions & 201 deletions
Large diffs are not rendered by default.

.github/local-actions/labels-sync/main.js

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5298,6 +5298,13 @@ var require_body = __commonJS({
52985298
var { isUint8Array, isArrayBuffer } = __require("util/types");
52995299
var { File: UndiciFile } = require_file();
53005300
var { parseMIMEType, serializeAMimeType } = require_dataURL();
5301+
var random;
5302+
try {
5303+
const crypto = __require("node:crypto");
5304+
random = (max) => crypto.randomInt(0, max);
5305+
} catch {
5306+
random = (max) => Math.floor(Math.random(max));
5307+
}
53015308
var ReadableStream2 = globalThis.ReadableStream;
53025309
var File = NativeFile ?? UndiciFile;
53035310
var textEncoder = new TextEncoder();
@@ -5340,7 +5347,7 @@ var require_body = __commonJS({
53405347
} else if (ArrayBuffer.isView(object)) {
53415348
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
53425349
} else if (util.isFormDataLike(object)) {
5343-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, "0")}`;
5350+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
53445351
const prefix = `--${boundary}\r
53455352
Content-Disposition: form-data`;
53465353
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
@@ -8887,6 +8894,14 @@ var require_pool = __commonJS({
88878894
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
88888895
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
88898896
this[kFactory] = factory;
8897+
this.on("connectionError", (origin2, targets, error) => {
8898+
for (const target of targets) {
8899+
const idx = this[kClients].indexOf(target);
8900+
if (idx !== -1) {
8901+
this[kClients].splice(idx, 1);
8902+
}
8903+
}
8904+
});
88908905
}
88918906
[kGetDispatcher]() {
88928907
let dispatcher = this[kClients].find((dispatcher2) => !dispatcher2[kNeedDrain]);
@@ -11509,6 +11524,7 @@ var require_headers = __commonJS({
1150911524
isValidHeaderName,
1151011525
isValidHeaderValue
1151111526
} = require_util2();
11527+
var util = __require("util");
1151211528
var { webidl } = require_webidl();
1151311529
var assert = __require("assert");
1151411530
var kHeadersMap = Symbol("headers map");
@@ -11845,6 +11861,9 @@ var require_headers = __commonJS({
1184511861
[Symbol.toStringTag]: {
1184611862
value: "Headers",
1184711863
configurable: true
11864+
},
11865+
[util.inspect.custom]: {
11866+
enumerable: false
1184811867
}
1184911868
});
1185011869
webidl.converters.HeadersInit = function(V) {
@@ -15261,8 +15280,6 @@ var require_constants4 = __commonJS({
1526115280
var require_util6 = __commonJS({
1526215281
""(exports, module) {
1526315282
"use strict";
15264-
var assert = __require("assert");
15265-
var { kHeadersList } = require_symbols();
1526615283
function isCTLExcludingHtab(value) {
1526715284
if (value.length === 0) {
1526815285
return false;
@@ -15392,25 +15409,13 @@ var require_util6 = __commonJS({
1539215409
}
1539315410
return out.join("; ");
1539415411
}
15395-
var kHeadersListNode;
15396-
function getHeadersList(headers) {
15397-
if (headers[kHeadersList]) {
15398-
return headers[kHeadersList];
15399-
}
15400-
if (!kHeadersListNode) {
15401-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
15402-
(symbol) => symbol.description === "headers list"
15403-
);
15404-
assert(kHeadersListNode, "Headers cannot be parsed");
15405-
}
15406-
const headersList = headers[kHeadersListNode];
15407-
assert(headersList);
15408-
return headersList;
15409-
}
1541015412
module.exports = {
1541115413
isCTLExcludingHtab,
15412-
stringify,
15413-
getHeadersList
15414+
validateCookieName,
15415+
validateCookiePath,
15416+
validateCookieValue,
15417+
toIMFDate,
15418+
stringify
1541415419
};
1541515420
}
1541615421
});
@@ -15560,7 +15565,7 @@ var require_cookies = __commonJS({
1556015565
""(exports, module) {
1556115566
"use strict";
1556215567
var { parseSetCookie } = require_parse();
15563-
var { stringify, getHeadersList } = require_util6();
15568+
var { stringify } = require_util6();
1556415569
var { webidl } = require_webidl();
1556515570
var { Headers } = require_headers();
1556615571
function getCookies(headers) {
@@ -15592,11 +15597,11 @@ var require_cookies = __commonJS({
1559215597
function getSetCookies(headers) {
1559315598
webidl.argumentLengthCheck(arguments, 1, { header: "getSetCookies" });
1559415599
webidl.brandCheck(headers, Headers, { strict: false });
15595-
const cookies = getHeadersList(headers).cookies;
15600+
const cookies = headers.getSetCookie();
1559615601
if (!cookies) {
1559715602
return [];
1559815603
}
15599-
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair));
15604+
return cookies.map((pair) => parseSetCookie(pair));
1560015605
}
1560115606
function setCookie(headers, cookie) {
1560215607
webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" });

.github/local-actions/lock-closed/main.js

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5298,6 +5298,13 @@ var require_body = __commonJS({
52985298
var { isUint8Array, isArrayBuffer } = __require("util/types");
52995299
var { File: UndiciFile } = require_file();
53005300
var { parseMIMEType, serializeAMimeType } = require_dataURL();
5301+
var random;
5302+
try {
5303+
const crypto = __require("node:crypto");
5304+
random = (max) => crypto.randomInt(0, max);
5305+
} catch {
5306+
random = (max) => Math.floor(Math.random(max));
5307+
}
53015308
var ReadableStream2 = globalThis.ReadableStream;
53025309
var File = NativeFile ?? UndiciFile;
53035310
var textEncoder = new TextEncoder();
@@ -5340,7 +5347,7 @@ var require_body = __commonJS({
53405347
} else if (ArrayBuffer.isView(object)) {
53415348
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
53425349
} else if (util.isFormDataLike(object)) {
5343-
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, "0")}`;
5350+
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
53445351
const prefix = `--${boundary}\r
53455352
Content-Disposition: form-data`;
53465353
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
@@ -8887,6 +8894,14 @@ var require_pool = __commonJS({
88878894
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
88888895
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
88898896
this[kFactory] = factory;
8897+
this.on("connectionError", (origin2, targets, error2) => {
8898+
for (const target of targets) {
8899+
const idx = this[kClients].indexOf(target);
8900+
if (idx !== -1) {
8901+
this[kClients].splice(idx, 1);
8902+
}
8903+
}
8904+
});
88908905
}
88918906
[kGetDispatcher]() {
88928907
let dispatcher = this[kClients].find((dispatcher2) => !dispatcher2[kNeedDrain]);
@@ -11509,6 +11524,7 @@ var require_headers = __commonJS({
1150911524
isValidHeaderName,
1151011525
isValidHeaderValue
1151111526
} = require_util2();
11527+
var util = __require("util");
1151211528
var { webidl } = require_webidl();
1151311529
var assert = __require("assert");
1151411530
var kHeadersMap = Symbol("headers map");
@@ -11845,6 +11861,9 @@ var require_headers = __commonJS({
1184511861
[Symbol.toStringTag]: {
1184611862
value: "Headers",
1184711863
configurable: true
11864+
},
11865+
[util.inspect.custom]: {
11866+
enumerable: false
1184811867
}
1184911868
});
1185011869
webidl.converters.HeadersInit = function(V) {
@@ -15261,8 +15280,6 @@ var require_constants4 = __commonJS({
1526115280
var require_util6 = __commonJS({
1526215281
""(exports, module) {
1526315282
"use strict";
15264-
var assert = __require("assert");
15265-
var { kHeadersList } = require_symbols();
1526615283
function isCTLExcludingHtab(value) {
1526715284
if (value.length === 0) {
1526815285
return false;
@@ -15392,25 +15409,13 @@ var require_util6 = __commonJS({
1539215409
}
1539315410
return out.join("; ");
1539415411
}
15395-
var kHeadersListNode;
15396-
function getHeadersList(headers) {
15397-
if (headers[kHeadersList]) {
15398-
return headers[kHeadersList];
15399-
}
15400-
if (!kHeadersListNode) {
15401-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
15402-
(symbol) => symbol.description === "headers list"
15403-
);
15404-
assert(kHeadersListNode, "Headers cannot be parsed");
15405-
}
15406-
const headersList = headers[kHeadersListNode];
15407-
assert(headersList);
15408-
return headersList;
15409-
}
1541015412
module.exports = {
1541115413
isCTLExcludingHtab,
15412-
stringify,
15413-
getHeadersList
15414+
validateCookieName,
15415+
validateCookiePath,
15416+
validateCookieValue,
15417+
toIMFDate,
15418+
stringify
1541415419
};
1541515420
}
1541615421
});
@@ -15560,7 +15565,7 @@ var require_cookies = __commonJS({
1556015565
""(exports, module) {
1556115566
"use strict";
1556215567
var { parseSetCookie } = require_parse();
15563-
var { stringify, getHeadersList } = require_util6();
15568+
var { stringify } = require_util6();
1556415569
var { webidl } = require_webidl();
1556515570
var { Headers } = require_headers();
1556615571
function getCookies(headers) {
@@ -15592,11 +15597,11 @@ var require_cookies = __commonJS({
1559215597
function getSetCookies(headers) {
1559315598
webidl.argumentLengthCheck(arguments, 1, { header: "getSetCookies" });
1559415599
webidl.brandCheck(headers, Headers, { strict: false });
15595-
const cookies = getHeadersList(headers).cookies;
15600+
const cookies = headers.getSetCookie();
1559615601
if (!cookies) {
1559715602
return [];
1559815603
}
15599-
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair));
15604+
return cookies.map((pair) => parseSetCookie(pair));
1560015605
}
1560115606
function setCookie(headers, cookie) {
1560215607
webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" });

0 commit comments

Comments
 (0)