@cloudflare/vite-plugin 1.54.10 → 1.54.11
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.mjs
CHANGED
|
@@ -18,7 +18,6 @@ import events, { EventEmitter } from "node:events";
|
|
|
18
18
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
19
19
|
import crypto$1, { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID, webcrypto } from "node:crypto";
|
|
20
20
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
21
|
-
import { assert } from "node:console";
|
|
22
21
|
import * as fsp from "node:fs/promises";
|
|
23
22
|
import fs, { constants as constants$1 } from "node:fs/promises";
|
|
24
23
|
import childProcess, { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
@@ -2615,8 +2614,8 @@ function formatConfigSnippet(snippet, configPath, formatted = true) {
|
|
|
2615
2614
|
__name$6(formatConfigSnippet, "formatConfigSnippet");
|
|
2616
2615
|
|
|
2617
2616
|
//#endregion
|
|
2618
|
-
//#region ../workers-utils/dist/chunk-
|
|
2619
|
-
var DEFAULT_COMPAT_DATE = "2026-09-
|
|
2617
|
+
//#region ../workers-utils/dist/chunk-YZWVNJ5I.mjs
|
|
2618
|
+
var DEFAULT_COMPAT_DATE = "2026-09-16";
|
|
2620
2619
|
function assertNever(_value) {}
|
|
2621
2620
|
__name$6(assertNever, "assertNever");
|
|
2622
2621
|
function mapWorkerMetadataBindings(bindings) {
|
|
@@ -4661,7 +4660,7 @@ var require_tree = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
|
|
|
4661
4660
|
//#endregion
|
|
4662
4661
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/util.js
|
|
4663
4662
|
var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/util.js": ((exports, module) => {
|
|
4664
|
-
const assert$
|
|
4663
|
+
const assert$34 = __require$2("node:assert");
|
|
4665
4664
|
const { kDestroyed: kDestroyed$2, kBodyUsed: kBodyUsed$1, kListeners, kBody: kBody$2 } = require_symbols();
|
|
4666
4665
|
const { IncomingMessage } = __require$2("node:http");
|
|
4667
4666
|
const stream$1 = __require$2("node:stream");
|
|
@@ -4679,7 +4678,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
4679
4678
|
this[kBodyUsed$1] = false;
|
|
4680
4679
|
}
|
|
4681
4680
|
async *[Symbol.asyncIterator]() {
|
|
4682
|
-
assert$
|
|
4681
|
+
assert$34(!this[kBodyUsed$1], "disturbed");
|
|
4683
4682
|
this[kBodyUsed$1] = true;
|
|
4684
4683
|
yield* this[kBody$2];
|
|
4685
4684
|
}
|
|
@@ -4692,7 +4691,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
4692
4691
|
function wrapRequestBody$1(body) {
|
|
4693
4692
|
if (isStream$1(body)) {
|
|
4694
4693
|
if (bodyLength(body) === 0) body.on("data", function() {
|
|
4695
|
-
assert$
|
|
4694
|
+
assert$34(false);
|
|
4696
4695
|
});
|
|
4697
4696
|
if (typeof body.readableDidRead !== "boolean") {
|
|
4698
4697
|
body[kBodyUsed$1] = false;
|
|
@@ -4809,7 +4808,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
4809
4808
|
function getHostname(host) {
|
|
4810
4809
|
if (host[0] === "[") {
|
|
4811
4810
|
const idx$1 = host.indexOf("]");
|
|
4812
|
-
assert$
|
|
4811
|
+
assert$34(idx$1 !== -1);
|
|
4813
4812
|
return host.substring(1, idx$1);
|
|
4814
4813
|
}
|
|
4815
4814
|
const idx = host.indexOf(":");
|
|
@@ -4824,7 +4823,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
4824
4823
|
*/
|
|
4825
4824
|
function getServerName$1(host) {
|
|
4826
4825
|
if (!host) return null;
|
|
4827
|
-
assert$
|
|
4826
|
+
assert$34(typeof host === "string");
|
|
4828
4827
|
const servername = getHostname(host);
|
|
4829
4828
|
if (net$4.isIP(servername)) return "";
|
|
4830
4829
|
return servername;
|
|
@@ -5444,7 +5443,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
5444
5443
|
function errorRequest(client, request$2, err) {
|
|
5445
5444
|
try {
|
|
5446
5445
|
request$2.onError(err);
|
|
5447
|
-
assert$
|
|
5446
|
+
assert$34(request$2.aborted);
|
|
5448
5447
|
} catch (err$1) {
|
|
5449
5448
|
client.emit("error", err$1);
|
|
5450
5449
|
}
|
|
@@ -5731,7 +5730,7 @@ var require_diagnostics = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
5731
5730
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/request.js
|
|
5732
5731
|
var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/request.js": ((exports, module) => {
|
|
5733
5732
|
const { InvalidArgumentError: InvalidArgumentError$36, NotSupportedError: NotSupportedError$1 } = require_errors();
|
|
5734
|
-
const assert$
|
|
5733
|
+
const assert$33 = __require$2("node:assert");
|
|
5735
5734
|
const { isValidHTTPToken: isValidHTTPToken$3, isValidHeaderValue: isValidHeaderValue$2, isStream, destroy, isBuffer, isFormDataLike, isIterable, hasSafeIterator: hasSafeIterator$2, isBlobLike, serializePathWithQuery: serializePathWithQuery$3, assertRequestHandler, getServerName, normalizedMethodRecords: normalizedMethodRecords$1, getProtocolFromUrlString } = require_util$5();
|
|
5736
5735
|
const { channels: channels$6 } = require_diagnostics();
|
|
5737
5736
|
const { headerNameLowerCasedRecord } = require_constants$6();
|
|
@@ -5838,8 +5837,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
5838
5837
|
}
|
|
5839
5838
|
}
|
|
5840
5839
|
onConnect(abort$1) {
|
|
5841
|
-
assert$
|
|
5842
|
-
assert$
|
|
5840
|
+
assert$33(!this.aborted);
|
|
5841
|
+
assert$33(!this.completed);
|
|
5843
5842
|
if (this.error) abort$1(this.error);
|
|
5844
5843
|
else {
|
|
5845
5844
|
this.abort = abort$1;
|
|
@@ -5850,8 +5849,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
5850
5849
|
return this[kHandler].onResponseStarted?.();
|
|
5851
5850
|
}
|
|
5852
5851
|
onHeaders(statusCode, headers, resume$1, statusText) {
|
|
5853
|
-
assert$
|
|
5854
|
-
assert$
|
|
5852
|
+
assert$33(!this.aborted);
|
|
5853
|
+
assert$33(!this.completed);
|
|
5855
5854
|
if (channels$6.headers.hasSubscribers) channels$6.headers.publish({
|
|
5856
5855
|
request: this,
|
|
5857
5856
|
response: {
|
|
@@ -5867,8 +5866,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
5867
5866
|
}
|
|
5868
5867
|
}
|
|
5869
5868
|
onData(chunk) {
|
|
5870
|
-
assert$
|
|
5871
|
-
assert$
|
|
5869
|
+
assert$33(!this.aborted);
|
|
5870
|
+
assert$33(!this.completed);
|
|
5872
5871
|
if (channels$6.bodyChunkReceived.hasSubscribers) channels$6.bodyChunkReceived.publish({
|
|
5873
5872
|
request: this,
|
|
5874
5873
|
chunk
|
|
@@ -5881,14 +5880,14 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
5881
5880
|
}
|
|
5882
5881
|
}
|
|
5883
5882
|
onUpgrade(statusCode, headers, socket) {
|
|
5884
|
-
assert$
|
|
5885
|
-
assert$
|
|
5883
|
+
assert$33(!this.aborted);
|
|
5884
|
+
assert$33(!this.completed);
|
|
5886
5885
|
return this[kHandler].onUpgrade(statusCode, headers, socket);
|
|
5887
5886
|
}
|
|
5888
5887
|
onComplete(trailers) {
|
|
5889
5888
|
this.onFinally();
|
|
5890
|
-
assert$
|
|
5891
|
-
assert$
|
|
5889
|
+
assert$33(!this.aborted);
|
|
5890
|
+
assert$33(!this.completed);
|
|
5892
5891
|
this.completed = true;
|
|
5893
5892
|
if (channels$6.trailers.hasSubscribers) channels$6.trailers.publish({
|
|
5894
5893
|
request: this,
|
|
@@ -6279,7 +6278,7 @@ var require_dispatcher_base = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
6279
6278
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/connect.js
|
|
6280
6279
|
var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/connect.js": ((exports, module) => {
|
|
6281
6280
|
const net$3 = __require$2("node:net");
|
|
6282
|
-
const assert$
|
|
6281
|
+
const assert$32 = __require$2("node:assert");
|
|
6283
6282
|
const util$23 = require_util$5();
|
|
6284
6283
|
const { InvalidArgumentError: InvalidArgumentError$32 } = require_errors();
|
|
6285
6284
|
let tls$1;
|
|
@@ -6327,7 +6326,7 @@ var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
6327
6326
|
if (!tls$1) tls$1 = __require$2("node:tls");
|
|
6328
6327
|
servername = servername || options.servername || util$23.getServerName(host) || null;
|
|
6329
6328
|
const sessionKey = servername || hostname$1;
|
|
6330
|
-
assert$
|
|
6329
|
+
assert$32(sessionKey);
|
|
6331
6330
|
const session = customSession || sessionCache.get(sessionKey) || null;
|
|
6332
6331
|
port = port || 443;
|
|
6333
6332
|
socket = tls$1.connect({
|
|
@@ -6345,7 +6344,7 @@ var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
6345
6344
|
sessionCache.set(sessionKey, session$1);
|
|
6346
6345
|
});
|
|
6347
6346
|
} else {
|
|
6348
|
-
assert$
|
|
6347
|
+
assert$32(!httpSocket, "httpSocket can only be sent on TLS update");
|
|
6349
6348
|
port = port || 80;
|
|
6350
6349
|
socket = net$3.connect({
|
|
6351
6350
|
highWaterMark: 64 * 1024,
|
|
@@ -7283,7 +7282,7 @@ var require_encoding = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7283
7282
|
//#endregion
|
|
7284
7283
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/infra/index.js
|
|
7285
7284
|
var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/infra/index.js": ((exports, module) => {
|
|
7286
|
-
const assert$
|
|
7285
|
+
const assert$31 = __require$2("node:assert");
|
|
7287
7286
|
const { utf8DecodeBytes: utf8DecodeBytes$2 } = require_encoding();
|
|
7288
7287
|
/**
|
|
7289
7288
|
* @param {(char: string) => boolean} condition
|
|
@@ -7376,7 +7375,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
7376
7375
|
* @see https://infra.spec.whatwg.org/#isomorphic-encode
|
|
7377
7376
|
*/
|
|
7378
7377
|
function isomorphicEncode$3(input) {
|
|
7379
|
-
assert$
|
|
7378
|
+
assert$31(!invalidIsomorphicEncodeValueRegex.test(input));
|
|
7380
7379
|
return input;
|
|
7381
7380
|
}
|
|
7382
7381
|
/**
|
|
@@ -7414,7 +7413,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
7414
7413
|
function serializeJavascriptValueToJSONString$1(value) {
|
|
7415
7414
|
const result = JSON.stringify(value);
|
|
7416
7415
|
if (result === void 0) throw new TypeError("Value is not JSON serializable");
|
|
7417
|
-
assert$
|
|
7416
|
+
assert$31(typeof result === "string");
|
|
7418
7417
|
return result;
|
|
7419
7418
|
}
|
|
7420
7419
|
module.exports = {
|
|
@@ -7434,7 +7433,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
7434
7433
|
//#endregion
|
|
7435
7434
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/fetch/data-url.js
|
|
7436
7435
|
var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/fetch/data-url.js": ((exports, module) => {
|
|
7437
|
-
const assert$
|
|
7436
|
+
const assert$30 = __require$2("node:assert");
|
|
7438
7437
|
const { forgivingBase64, collectASequenceOfCodePoints: collectASequenceOfCodePoints$1, collectASequenceOfCodePointsFast: collectASequenceOfCodePointsFast$2, isomorphicDecode: isomorphicDecode$1, removeASCIIWhitespace, removeChars: removeChars$2 } = require_infra();
|
|
7439
7438
|
const encoder = new TextEncoder();
|
|
7440
7439
|
/**
|
|
@@ -7448,7 +7447,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7448
7447
|
const HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/u;
|
|
7449
7448
|
/** @param {URL} dataURL */
|
|
7450
7449
|
function dataURLProcessor$1(dataURL) {
|
|
7451
|
-
assert$
|
|
7450
|
+
assert$30(dataURL.protocol === "data:");
|
|
7452
7451
|
let input = URLSerializer$4(dataURL, true);
|
|
7453
7452
|
input = input.slice(5);
|
|
7454
7453
|
const position = { position: 0 };
|
|
@@ -7570,7 +7569,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7570
7569
|
function collectAnHTTPQuotedString$1(input, position, extractValue$2 = false) {
|
|
7571
7570
|
const positionStart = position.position;
|
|
7572
7571
|
let value = "";
|
|
7573
|
-
assert$
|
|
7572
|
+
assert$30(input[position.position] === "\"");
|
|
7574
7573
|
position.position++;
|
|
7575
7574
|
while (true) {
|
|
7576
7575
|
value += collectASequenceOfCodePoints$1((char) => char !== "\"" && char !== "\\", input, position);
|
|
@@ -7585,7 +7584,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7585
7584
|
value += input[position.position];
|
|
7586
7585
|
position.position++;
|
|
7587
7586
|
} else {
|
|
7588
|
-
assert$
|
|
7587
|
+
assert$30(quoteOrBackslash === "\"");
|
|
7589
7588
|
break;
|
|
7590
7589
|
}
|
|
7591
7590
|
}
|
|
@@ -7596,7 +7595,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7596
7595
|
* @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
|
|
7597
7596
|
*/
|
|
7598
7597
|
function serializeAMimeType$3(mimeType) {
|
|
7599
|
-
assert$
|
|
7598
|
+
assert$30(mimeType !== "failure");
|
|
7600
7599
|
const { parameters, essence } = mimeType;
|
|
7601
7600
|
let serialization = essence;
|
|
7602
7601
|
for (let [name, value] of parameters.entries()) {
|
|
@@ -7775,7 +7774,7 @@ var require_runtime_features = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
7775
7774
|
//#endregion
|
|
7776
7775
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js
|
|
7777
7776
|
var require_webidl = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js": ((exports, module) => {
|
|
7778
|
-
const assert$
|
|
7777
|
+
const assert$29 = __require$2("node:assert");
|
|
7779
7778
|
const { types: types$3, inspect: inspect$1 } = __require$2("node:util");
|
|
7780
7779
|
const { runtimeFeatures: runtimeFeatures$7 } = require_runtime_features();
|
|
7781
7780
|
const UNDEFINED = 1;
|
|
@@ -8090,7 +8089,7 @@ var require_webidl = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8090
8089
|
offset = jsBufferSource.byteOffset;
|
|
8091
8090
|
length = jsBufferSource.byteLength;
|
|
8092
8091
|
} else {
|
|
8093
|
-
assert$
|
|
8092
|
+
assert$29(types$3.isAnyArrayBuffer(jsBufferSource));
|
|
8094
8093
|
length = jsBufferSource.byteLength;
|
|
8095
8094
|
}
|
|
8096
8095
|
if (jsArrayBuffer.detached) return new Uint8Array(0);
|
|
@@ -8284,7 +8283,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8284
8283
|
const { collectAnHTTPQuotedString, parseMIMEType: parseMIMEType$2 } = require_data_url();
|
|
8285
8284
|
const { performance: performance$1 } = __require$2("node:perf_hooks");
|
|
8286
8285
|
const { ReadableStreamFrom: ReadableStreamFrom$2, isValidHTTPToken: isValidHTTPToken$2, normalizedMethodRecordsBase: normalizedMethodRecordsBase$1 } = require_util$5();
|
|
8287
|
-
const assert$
|
|
8286
|
+
const assert$28 = __require$2("node:assert");
|
|
8288
8287
|
const { isUint8Array: isUint8Array$1 } = __require$2("node:util/types");
|
|
8289
8288
|
const { webidl: webidl$15 } = require_webidl();
|
|
8290
8289
|
const { isomorphicEncode: isomorphicEncode$2, collectASequenceOfCodePoints, removeChars: removeChars$1 } = require_infra();
|
|
@@ -8471,7 +8470,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8471
8470
|
*/
|
|
8472
8471
|
function determineRequestsReferrer$1(request$2) {
|
|
8473
8472
|
const policy = request$2.referrerPolicy;
|
|
8474
|
-
assert$
|
|
8473
|
+
assert$28(policy);
|
|
8475
8474
|
let referrerSource = null;
|
|
8476
8475
|
if (request$2.referrer === "client") {
|
|
8477
8476
|
const globalOrigin$1 = getGlobalOrigin$1();
|
|
@@ -8524,7 +8523,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8524
8523
|
* @param {boolean} [originOnly=false]
|
|
8525
8524
|
*/
|
|
8526
8525
|
function stripURLForReferrer(url$2, originOnly = false) {
|
|
8527
|
-
assert$
|
|
8526
|
+
assert$28(webidl$15.is.URL(url$2));
|
|
8528
8527
|
url$2 = new URL(url$2);
|
|
8529
8528
|
if (urlIsLocal$1(url$2)) return "no-referrer";
|
|
8530
8529
|
url$2.username = "";
|
|
@@ -8816,7 +8815,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8816
8815
|
* @returns {boolean}
|
|
8817
8816
|
*/
|
|
8818
8817
|
function urlIsLocal$1(url$2) {
|
|
8819
|
-
assert$
|
|
8818
|
+
assert$28("protocol" in url$2);
|
|
8820
8819
|
const protocol = url$2.protocol;
|
|
8821
8820
|
return protocol === "about:" || protocol === "blob:" || protocol === "data:";
|
|
8822
8821
|
}
|
|
@@ -8832,7 +8831,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8832
8831
|
* @param {URL} url
|
|
8833
8832
|
*/
|
|
8834
8833
|
function urlIsHttpHttpsScheme$2(url$2) {
|
|
8835
|
-
assert$
|
|
8834
|
+
assert$28("protocol" in url$2);
|
|
8836
8835
|
const protocol = url$2.protocol;
|
|
8837
8836
|
return protocol === "http:" || protocol === "https:";
|
|
8838
8837
|
}
|
|
@@ -8965,7 +8964,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8965
8964
|
temporaryValue += collectAnHTTPQuotedString(input, position);
|
|
8966
8965
|
if (position.position < input.length) continue;
|
|
8967
8966
|
} else {
|
|
8968
|
-
assert$
|
|
8967
|
+
assert$28(input.charCodeAt(position.position) === 44);
|
|
8969
8968
|
position.position++;
|
|
8970
8969
|
}
|
|
8971
8970
|
temporaryValue = removeChars$1(temporaryValue, true, true, (char) => char === 9 || char === 32);
|
|
@@ -9219,7 +9218,7 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
9219
9218
|
const { HTTP_TOKEN_CODEPOINTS } = require_data_url();
|
|
9220
9219
|
const { makeEntry } = require_formdata();
|
|
9221
9220
|
const { webidl: webidl$13 } = require_webidl();
|
|
9222
|
-
const assert$
|
|
9221
|
+
const assert$27 = __require$2("node:assert");
|
|
9223
9222
|
const { isomorphicDecode } = require_infra();
|
|
9224
9223
|
const dd = Buffer.from("--");
|
|
9225
9224
|
const decoder = new TextDecoder();
|
|
@@ -9250,7 +9249,7 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
9250
9249
|
* @param {ReturnType<import('./data-url')['parseMIMEType']>} mimeType
|
|
9251
9250
|
*/
|
|
9252
9251
|
function multipartFormDataParser$1(input, mimeType) {
|
|
9253
|
-
assert$
|
|
9252
|
+
assert$27(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
|
|
9254
9253
|
const boundaryString = mimeType.parameters.get("boundary");
|
|
9255
9254
|
if (boundaryString === void 0) throw parsingError("missing boundary in content-type header");
|
|
9256
9255
|
const boundary = Buffer.from(`--${boundaryString}`, "utf8");
|
|
@@ -9283,8 +9282,8 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
9283
9282
|
if (!isAsciiString(contentType)) contentType = "";
|
|
9284
9283
|
value = new File([body], filename, { type: contentType });
|
|
9285
9284
|
} else value = decoderIgnoreBOM.decode(Buffer.from(body));
|
|
9286
|
-
assert$
|
|
9287
|
-
assert$
|
|
9285
|
+
assert$27(webidl$13.is.USVString(name));
|
|
9286
|
+
assert$27(typeof value === "string" && webidl$13.is.USVString(value) || webidl$13.is.File(value));
|
|
9288
9287
|
entryList.push(makeEntry(name, value, filename));
|
|
9289
9288
|
}
|
|
9290
9289
|
}
|
|
@@ -9496,7 +9495,7 @@ var require_body = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
|
|
|
9496
9495
|
const { ReadableStreamFrom: ReadableStreamFrom$1, readableStreamClose: readableStreamClose$1, fullyReadBody: fullyReadBody$1, extractMimeType: extractMimeType$1 } = require_util$4();
|
|
9497
9496
|
const { FormData: FormData$3, setFormDataState } = require_formdata();
|
|
9498
9497
|
const { webidl: webidl$12 } = require_webidl();
|
|
9499
|
-
const assert$
|
|
9498
|
+
const assert$26 = __require$2("node:assert");
|
|
9500
9499
|
const { isErrored: isErrored$1, isDisturbed: isDisturbed$2 } = __require$2("node:stream");
|
|
9501
9500
|
const { isUint8Array } = __require$2("node:util/types");
|
|
9502
9501
|
const { serializeAMimeType: serializeAMimeType$2 } = require_data_url();
|
|
@@ -9534,7 +9533,7 @@ var require_body = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
|
|
|
9534
9533
|
cancel() {},
|
|
9535
9534
|
type: "bytes"
|
|
9536
9535
|
});
|
|
9537
|
-
assert$
|
|
9536
|
+
assert$26(webidl$12.is.ReadableStream(stream$2));
|
|
9538
9537
|
let action = null;
|
|
9539
9538
|
let source = null;
|
|
9540
9539
|
let length = null;
|
|
@@ -9623,8 +9622,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r\n\r\n`);
|
|
|
9623
9622
|
*/
|
|
9624
9623
|
function safelyExtractBody$1(object$2, keepalive = false) {
|
|
9625
9624
|
if (webidl$12.is.ReadableStream(object$2)) {
|
|
9626
|
-
assert$
|
|
9627
|
-
assert$
|
|
9625
|
+
assert$26(!util$22.isDisturbed(object$2), "The body has already been consumed.");
|
|
9626
|
+
assert$26(!object$2.locked, "The stream is locked.");
|
|
9628
9627
|
}
|
|
9629
9628
|
return extractBody$5(object$2, keepalive);
|
|
9630
9629
|
}
|
|
@@ -9751,7 +9750,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r\n\r\n`);
|
|
|
9751
9750
|
//#endregion
|
|
9752
9751
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h1.js
|
|
9753
9752
|
var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h1.js": ((exports, module) => {
|
|
9754
|
-
const assert$
|
|
9753
|
+
const assert$25 = __require$2("node:assert");
|
|
9755
9754
|
const util$21 = require_util$5();
|
|
9756
9755
|
const { channels: channels$5 } = require_diagnostics();
|
|
9757
9756
|
const timers = require_timers();
|
|
@@ -9780,35 +9779,35 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
9780
9779
|
return 0;
|
|
9781
9780
|
},
|
|
9782
9781
|
wasm_on_status: (p$2, at$1, len) => {
|
|
9783
|
-
assert$
|
|
9782
|
+
assert$25(currentParser.ptr === p$2);
|
|
9784
9783
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
9785
9784
|
return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
9786
9785
|
},
|
|
9787
9786
|
wasm_on_message_begin: (p$2) => {
|
|
9788
|
-
assert$
|
|
9787
|
+
assert$25(currentParser.ptr === p$2);
|
|
9789
9788
|
return currentParser.onMessageBegin();
|
|
9790
9789
|
},
|
|
9791
9790
|
wasm_on_header_field: (p$2, at$1, len) => {
|
|
9792
|
-
assert$
|
|
9791
|
+
assert$25(currentParser.ptr === p$2);
|
|
9793
9792
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
9794
9793
|
return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
9795
9794
|
},
|
|
9796
9795
|
wasm_on_header_value: (p$2, at$1, len) => {
|
|
9797
|
-
assert$
|
|
9796
|
+
assert$25(currentParser.ptr === p$2);
|
|
9798
9797
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
9799
9798
|
return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
9800
9799
|
},
|
|
9801
9800
|
wasm_on_headers_complete: (p$2, statusCode, upgrade$1, shouldKeepAlive) => {
|
|
9802
|
-
assert$
|
|
9801
|
+
assert$25(currentParser.ptr === p$2);
|
|
9803
9802
|
return currentParser.onHeadersComplete(statusCode, upgrade$1 === 1, shouldKeepAlive === 1);
|
|
9804
9803
|
},
|
|
9805
9804
|
wasm_on_body: (p$2, at$1, len) => {
|
|
9806
|
-
assert$
|
|
9805
|
+
assert$25(currentParser.ptr === p$2);
|
|
9807
9806
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
9808
9807
|
return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
9809
9808
|
},
|
|
9810
9809
|
wasm_on_message_complete: (p$2) => {
|
|
9811
|
-
assert$
|
|
9810
|
+
assert$25(currentParser.ptr === p$2);
|
|
9812
9811
|
return currentParser.onMessageComplete();
|
|
9813
9812
|
}
|
|
9814
9813
|
} });
|
|
@@ -9881,10 +9880,10 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
9881
9880
|
}
|
|
9882
9881
|
resume() {
|
|
9883
9882
|
if (this.socket.destroyed || !this.paused) return;
|
|
9884
|
-
assert$
|
|
9885
|
-
assert$
|
|
9883
|
+
assert$25(this.ptr != null);
|
|
9884
|
+
assert$25(currentParser === null);
|
|
9886
9885
|
this.llhttp.llhttp_resume(this.ptr);
|
|
9887
|
-
assert$
|
|
9886
|
+
assert$25(this.timeoutType === TIMEOUT_BODY);
|
|
9888
9887
|
if (this.timeout) {
|
|
9889
9888
|
if (this.timeout.refresh) this.timeout.refresh();
|
|
9890
9889
|
}
|
|
@@ -9903,9 +9902,9 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
9903
9902
|
* @param {Buffer} chunk
|
|
9904
9903
|
*/
|
|
9905
9904
|
execute(chunk) {
|
|
9906
|
-
assert$
|
|
9907
|
-
assert$
|
|
9908
|
-
assert$
|
|
9905
|
+
assert$25(currentParser === null);
|
|
9906
|
+
assert$25(this.ptr != null);
|
|
9907
|
+
assert$25(!this.paused);
|
|
9909
9908
|
const { socket, llhttp } = this;
|
|
9910
9909
|
if (chunk.length > currentBufferSize) {
|
|
9911
9910
|
if (currentBufferPtr) llhttp.free(currentBufferPtr);
|
|
@@ -9936,9 +9935,9 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
9936
9935
|
}
|
|
9937
9936
|
}
|
|
9938
9937
|
finish() {
|
|
9939
|
-
assert$
|
|
9940
|
-
assert$
|
|
9941
|
-
assert$
|
|
9938
|
+
assert$25(currentParser === null);
|
|
9939
|
+
assert$25(this.ptr != null);
|
|
9940
|
+
assert$25(!this.paused);
|
|
9942
9941
|
const { llhttp } = this;
|
|
9943
9942
|
let ret;
|
|
9944
9943
|
try {
|
|
@@ -9966,8 +9965,8 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
9966
9965
|
return new HTTPParserError(message, constants$6.ERROR[ret], data$1);
|
|
9967
9966
|
}
|
|
9968
9967
|
destroy() {
|
|
9969
|
-
assert$
|
|
9970
|
-
assert$
|
|
9968
|
+
assert$25(currentParser === null);
|
|
9969
|
+
assert$25(this.ptr != null);
|
|
9971
9970
|
this.llhttp.llhttp_free(this.ptr);
|
|
9972
9971
|
this.ptr = null;
|
|
9973
9972
|
this.timeout && timers.clearTimeout(this.timeout);
|
|
@@ -10041,14 +10040,14 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10041
10040
|
*/
|
|
10042
10041
|
onUpgrade(head) {
|
|
10043
10042
|
const { upgrade: upgrade$1, client, socket, headers, statusCode } = this;
|
|
10044
|
-
assert$
|
|
10045
|
-
assert$
|
|
10046
|
-
assert$
|
|
10047
|
-
assert$
|
|
10048
|
-
assert$
|
|
10043
|
+
assert$25(upgrade$1);
|
|
10044
|
+
assert$25(client[kSocket$1] === socket);
|
|
10045
|
+
assert$25(!socket.destroyed);
|
|
10046
|
+
assert$25(!this.paused);
|
|
10047
|
+
assert$25((headers.length & 1) === 0);
|
|
10049
10048
|
const request$2 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10050
|
-
assert$
|
|
10051
|
-
assert$
|
|
10049
|
+
assert$25(request$2);
|
|
10050
|
+
assert$25(request$2.upgrade || request$2.method === "CONNECT");
|
|
10052
10051
|
this.statusCode = 0;
|
|
10053
10052
|
this.statusText = "";
|
|
10054
10053
|
this.shouldKeepAlive = false;
|
|
@@ -10086,8 +10085,8 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10086
10085
|
}
|
|
10087
10086
|
const request$2 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10088
10087
|
if (!request$2) return -1;
|
|
10089
|
-
assert$
|
|
10090
|
-
assert$
|
|
10088
|
+
assert$25(!this.upgrade);
|
|
10089
|
+
assert$25(this.statusCode < 200);
|
|
10091
10090
|
if (statusCode === 100) {
|
|
10092
10091
|
util$21.destroy(socket, new SocketError$3("bad response", util$21.getSocketInfo(socket)));
|
|
10093
10092
|
return -1;
|
|
@@ -10096,7 +10095,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10096
10095
|
util$21.destroy(socket, new SocketError$3("bad upgrade", util$21.getSocketInfo(socket)));
|
|
10097
10096
|
return -1;
|
|
10098
10097
|
}
|
|
10099
|
-
assert$
|
|
10098
|
+
assert$25(this.timeoutType === TIMEOUT_HEADERS);
|
|
10100
10099
|
this.statusCode = statusCode;
|
|
10101
10100
|
this.shouldKeepAlive = shouldKeepAlive || request$2.method === "HEAD" && !socket[kReset$1] && this.connection.toLowerCase() === "keep-alive";
|
|
10102
10101
|
if (this.statusCode >= 200) {
|
|
@@ -10106,16 +10105,16 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10106
10105
|
if (this.timeout.refresh) this.timeout.refresh();
|
|
10107
10106
|
}
|
|
10108
10107
|
if (request$2.method === "CONNECT") {
|
|
10109
|
-
assert$
|
|
10108
|
+
assert$25(client[kRunning$4] === 1);
|
|
10110
10109
|
this.upgrade = true;
|
|
10111
10110
|
return 2;
|
|
10112
10111
|
}
|
|
10113
10112
|
if (upgrade$1) {
|
|
10114
|
-
assert$
|
|
10113
|
+
assert$25(client[kRunning$4] === 1);
|
|
10115
10114
|
this.upgrade = true;
|
|
10116
10115
|
return 2;
|
|
10117
10116
|
}
|
|
10118
|
-
assert$
|
|
10117
|
+
assert$25((this.headers.length & 1) === 0);
|
|
10119
10118
|
this.headers = [];
|
|
10120
10119
|
this.headersSize = 0;
|
|
10121
10120
|
if (this.shouldKeepAlive && client[kPipelining$1]) {
|
|
@@ -10144,12 +10143,12 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10144
10143
|
const { client, socket, statusCode, maxResponseSize } = this;
|
|
10145
10144
|
if (socket.destroyed) return -1;
|
|
10146
10145
|
const request$2 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10147
|
-
assert$
|
|
10148
|
-
assert$
|
|
10146
|
+
assert$25(request$2);
|
|
10147
|
+
assert$25(this.timeoutType === TIMEOUT_BODY);
|
|
10149
10148
|
if (this.timeout) {
|
|
10150
10149
|
if (this.timeout.refresh) this.timeout.refresh();
|
|
10151
10150
|
}
|
|
10152
|
-
assert$
|
|
10151
|
+
assert$25(statusCode >= 200);
|
|
10153
10152
|
if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
|
|
10154
10153
|
util$21.destroy(socket, new ResponseExceededMaxSizeError());
|
|
10155
10154
|
return -1;
|
|
@@ -10165,10 +10164,10 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10165
10164
|
const { client, socket, statusCode, upgrade: upgrade$1, headers, contentLength, bytesRead, shouldKeepAlive } = this;
|
|
10166
10165
|
if (socket.destroyed && (!statusCode || shouldKeepAlive)) return -1;
|
|
10167
10166
|
if (upgrade$1) return 0;
|
|
10168
|
-
assert$
|
|
10169
|
-
assert$
|
|
10167
|
+
assert$25(statusCode >= 100);
|
|
10168
|
+
assert$25((this.headers.length & 1) === 0);
|
|
10170
10169
|
const request$2 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10171
|
-
assert$
|
|
10170
|
+
assert$25(request$2);
|
|
10172
10171
|
this.statusCode = 0;
|
|
10173
10172
|
this.statusText = "";
|
|
10174
10173
|
this.bytesRead = 0;
|
|
@@ -10186,7 +10185,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10186
10185
|
client[kQueue$3][client[kRunningIdx$2]++] = null;
|
|
10187
10186
|
socket[kSocketUsed] = client[kPending$3] === 0;
|
|
10188
10187
|
if (socket[kWriting]) {
|
|
10189
|
-
assert$
|
|
10188
|
+
assert$25(client[kRunning$4] === 0);
|
|
10190
10189
|
util$21.destroy(socket, new InformationalError$3("reset"));
|
|
10191
10190
|
return constants$6.ERROR.PAUSED;
|
|
10192
10191
|
} else if (!shouldKeepAlive) {
|
|
@@ -10206,13 +10205,13 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10206
10205
|
const { socket, timeoutType, client, paused } = parser;
|
|
10207
10206
|
if (timeoutType === TIMEOUT_HEADERS) {
|
|
10208
10207
|
if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning$4] > 1) {
|
|
10209
|
-
assert$
|
|
10208
|
+
assert$25(!paused, "cannot be paused while waiting for headers");
|
|
10210
10209
|
util$21.destroy(socket, new HeadersTimeoutError());
|
|
10211
10210
|
}
|
|
10212
10211
|
} else if (timeoutType === TIMEOUT_BODY) {
|
|
10213
10212
|
if (!paused) util$21.destroy(socket, new BodyTimeoutError());
|
|
10214
10213
|
} else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
|
|
10215
|
-
assert$
|
|
10214
|
+
assert$25(client[kRunning$4] === 0 && client[kKeepAliveTimeoutValue$1]);
|
|
10216
10215
|
util$21.destroy(socket, new InformationalError$3("socket idle timeout"));
|
|
10217
10216
|
}
|
|
10218
10217
|
}
|
|
@@ -10271,7 +10270,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10271
10270
|
};
|
|
10272
10271
|
}
|
|
10273
10272
|
function onHttpSocketError(err) {
|
|
10274
|
-
assert$
|
|
10273
|
+
assert$25(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
10275
10274
|
const parser = this[kParser];
|
|
10276
10275
|
if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
|
|
10277
10276
|
const parserErr = parser.finish();
|
|
@@ -10309,7 +10308,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10309
10308
|
client[kSocket$1] = null;
|
|
10310
10309
|
client[kHTTPContext$2] = null;
|
|
10311
10310
|
if (client.destroyed) {
|
|
10312
|
-
assert$
|
|
10311
|
+
assert$25(client[kPending$3] === 0);
|
|
10313
10312
|
const requests = client[kQueue$3].splice(client[kRunningIdx$2]);
|
|
10314
10313
|
for (let i$1 = 0; i$1 < requests.length; i$1++) {
|
|
10315
10314
|
const request$2 = requests[i$1];
|
|
@@ -10321,7 +10320,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10321
10320
|
util$21.errorRequest(client, request$2, err);
|
|
10322
10321
|
}
|
|
10323
10322
|
client[kPendingIdx$2] = client[kRunningIdx$2];
|
|
10324
|
-
assert$
|
|
10323
|
+
assert$25(client[kRunning$4] === 0);
|
|
10325
10324
|
client.emit("disconnect", client[kUrl$7], [client], err);
|
|
10326
10325
|
client[kResume$3]();
|
|
10327
10326
|
}
|
|
@@ -10475,7 +10474,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10475
10474
|
else writeBlob$1(abort$1, body, client, request$2, socket, contentLength, header, expectsPayload);
|
|
10476
10475
|
else if (util$21.isStream(body)) writeStream$1(abort$1, body, client, request$2, socket, contentLength, header, expectsPayload);
|
|
10477
10476
|
else if (util$21.isIterable(body)) writeIterable$1(abort$1, body, client, request$2, socket, contentLength, header, expectsPayload);
|
|
10478
|
-
else assert$
|
|
10477
|
+
else assert$25(false);
|
|
10479
10478
|
return true;
|
|
10480
10479
|
}
|
|
10481
10480
|
/**
|
|
@@ -10489,7 +10488,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10489
10488
|
* @param {boolean} expectsPayload
|
|
10490
10489
|
*/
|
|
10491
10490
|
function writeStream$1(abort$1, body, client, request$2, socket, contentLength, header, expectsPayload) {
|
|
10492
|
-
assert$
|
|
10491
|
+
assert$25(contentLength !== 0 || client[kRunning$4] === 0, "stream body cannot be pipelined");
|
|
10493
10492
|
let finished$2 = false;
|
|
10494
10493
|
const writer = new AsyncWriter({
|
|
10495
10494
|
abort: abort$1,
|
|
@@ -10538,7 +10537,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10538
10537
|
const onFinished = function(err) {
|
|
10539
10538
|
if (finished$2) return;
|
|
10540
10539
|
finished$2 = true;
|
|
10541
|
-
assert$
|
|
10540
|
+
assert$25(socket.destroyed || socket[kWriting] && client[kRunning$4] <= 1);
|
|
10542
10541
|
socket.off("drain", onDrain).off("error", onFinished);
|
|
10543
10542
|
body.removeListener("data", onData).removeListener("end", onFinished).removeListener("close", onClose);
|
|
10544
10543
|
if (!err) try {
|
|
@@ -10578,11 +10577,11 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10578
10577
|
try {
|
|
10579
10578
|
if (!body) if (contentLength === 0) socket.write(`${header}content-length: 0\r\n\r\n`, "latin1");
|
|
10580
10579
|
else {
|
|
10581
|
-
assert$
|
|
10580
|
+
assert$25(contentLength === null, "no body must not have content length");
|
|
10582
10581
|
socket.write(`${header}\r\n`, "latin1");
|
|
10583
10582
|
}
|
|
10584
10583
|
else if (util$21.isBuffer(body)) {
|
|
10585
|
-
assert$
|
|
10584
|
+
assert$25(contentLength === body.byteLength, "buffer body must have content length");
|
|
10586
10585
|
socket.cork();
|
|
10587
10586
|
socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, "latin1");
|
|
10588
10587
|
socket.write(body);
|
|
@@ -10608,7 +10607,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10608
10607
|
* @returns {Promise<void>}
|
|
10609
10608
|
*/
|
|
10610
10609
|
async function writeBlob$1(abort$1, body, client, request$2, socket, contentLength, header, expectsPayload) {
|
|
10611
|
-
assert$
|
|
10610
|
+
assert$25(contentLength === body.size, "blob body must have content length");
|
|
10612
10611
|
try {
|
|
10613
10612
|
if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError$1();
|
|
10614
10613
|
const buffer$1 = Buffer.from(await body.arrayBuffer());
|
|
@@ -10636,7 +10635,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10636
10635
|
* @returns {Promise<void>}
|
|
10637
10636
|
*/
|
|
10638
10637
|
async function writeIterable$1(abort$1, body, client, request$2, socket, contentLength, header, expectsPayload) {
|
|
10639
|
-
assert$
|
|
10638
|
+
assert$25(contentLength !== 0 || client[kRunning$4] === 0, "iterator body cannot be pipelined");
|
|
10640
10639
|
let callback$1 = null;
|
|
10641
10640
|
function onDrain() {
|
|
10642
10641
|
if (callback$1) {
|
|
@@ -10646,7 +10645,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10646
10645
|
}
|
|
10647
10646
|
}
|
|
10648
10647
|
const waitForDrain = () => new Promise((resolve$4, reject) => {
|
|
10649
|
-
assert$
|
|
10648
|
+
assert$25(callback$1 === null);
|
|
10650
10649
|
if (socket[kError$2]) reject(socket[kError$2]);
|
|
10651
10650
|
else callback$1 = resolve$4;
|
|
10652
10651
|
});
|
|
@@ -10754,7 +10753,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10754
10753
|
const { socket, client, abort: abort$1 } = this;
|
|
10755
10754
|
socket[kWriting] = false;
|
|
10756
10755
|
if (err) {
|
|
10757
|
-
assert$
|
|
10756
|
+
assert$25(client[kRunning$4] <= 1, "pipeline should only contain this request");
|
|
10758
10757
|
abort$1(err);
|
|
10759
10758
|
}
|
|
10760
10759
|
}
|
|
@@ -10765,7 +10764,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10765
10764
|
//#endregion
|
|
10766
10765
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h2.js
|
|
10767
10766
|
var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h2.js": ((exports, module) => {
|
|
10768
|
-
const assert$
|
|
10767
|
+
const assert$24 = __require$2("node:assert");
|
|
10769
10768
|
const { pipeline: pipeline$4 } = __require$2("node:stream");
|
|
10770
10769
|
const util$20 = require_util$5();
|
|
10771
10770
|
const { RequestContentLengthMismatchError, RequestAbortedError: RequestAbortedError$7, SocketError: SocketError$2, InformationalError: InformationalError$2, InvalidArgumentError: InvalidArgumentError$30 } = require_errors();
|
|
@@ -10898,7 +10897,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10898
10897
|
}
|
|
10899
10898
|
}
|
|
10900
10899
|
function onHttp2SessionError(err) {
|
|
10901
|
-
assert$
|
|
10900
|
+
assert$24(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
10902
10901
|
this[kSocket][kError$1] = err;
|
|
10903
10902
|
this[kClient$2][kOnError$1](err);
|
|
10904
10903
|
}
|
|
@@ -10936,7 +10935,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10936
10935
|
util$20.errorRequest(client, request$2, err);
|
|
10937
10936
|
client[kPendingIdx$1] = client[kRunningIdx$1];
|
|
10938
10937
|
}
|
|
10939
|
-
assert$
|
|
10938
|
+
assert$24(client[kRunning$3] === 0);
|
|
10940
10939
|
client.emit("disconnect", client[kUrl$6], [client], err);
|
|
10941
10940
|
client.emit("connectionError", client[kUrl$6], [client], err);
|
|
10942
10941
|
client[kResume$2]();
|
|
@@ -10952,7 +10951,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10952
10951
|
state.ping.interval = null;
|
|
10953
10952
|
}
|
|
10954
10953
|
if (client.destroyed) {
|
|
10955
|
-
assert$
|
|
10954
|
+
assert$24(client[kPending$2] === 0);
|
|
10956
10955
|
const requests = client[kQueue$2].splice(client[kRunningIdx$1]);
|
|
10957
10956
|
for (let i$1 = 0; i$1 < requests.length; i$1++) {
|
|
10958
10957
|
const request$2 = requests[i$1];
|
|
@@ -10967,12 +10966,12 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10967
10966
|
client[kHTTPContext$1] = null;
|
|
10968
10967
|
if (this[kHTTP2Session] !== null) this[kHTTP2Session].destroy(err);
|
|
10969
10968
|
client[kPendingIdx$1] = client[kRunningIdx$1];
|
|
10970
|
-
assert$
|
|
10969
|
+
assert$24(client[kRunning$3] === 0);
|
|
10971
10970
|
client.emit("disconnect", client[kUrl$6], [client], err);
|
|
10972
10971
|
client[kResume$2]();
|
|
10973
10972
|
}
|
|
10974
10973
|
function onHttp2SocketError(err) {
|
|
10975
|
-
assert$
|
|
10974
|
+
assert$24(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
10976
10975
|
this[kError$1] = err;
|
|
10977
10976
|
this[kClient$2][kOnError$1](err);
|
|
10978
10977
|
}
|
|
@@ -11105,7 +11104,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11105
11104
|
process.emitWarning(new RequestContentLengthMismatchError());
|
|
11106
11105
|
}
|
|
11107
11106
|
if (contentLength != null) {
|
|
11108
|
-
assert$
|
|
11107
|
+
assert$24(body || contentLength === 0, "no body must not have content length");
|
|
11109
11108
|
headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
|
|
11110
11109
|
}
|
|
11111
11110
|
session.ref();
|
|
@@ -11201,13 +11200,13 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11201
11200
|
else writeBlob(abort$1, stream$2, body, client, request$2, client[kSocket], contentLength, expectsPayload);
|
|
11202
11201
|
else if (util$20.isStream(body)) writeStream(abort$1, client[kSocket], expectsPayload, stream$2, body, client, request$2, contentLength);
|
|
11203
11202
|
else if (util$20.isIterable(body)) writeIterable(abort$1, stream$2, body, client, request$2, client[kSocket], contentLength, expectsPayload);
|
|
11204
|
-
else assert$
|
|
11203
|
+
else assert$24(false);
|
|
11205
11204
|
}
|
|
11206
11205
|
}
|
|
11207
11206
|
function writeBuffer(abort$1, h2stream, body, client, request$2, socket, contentLength, expectsPayload) {
|
|
11208
11207
|
try {
|
|
11209
11208
|
if (body != null && util$20.isBuffer(body)) {
|
|
11210
|
-
assert$
|
|
11209
|
+
assert$24(contentLength === body.byteLength, "buffer body must have content length");
|
|
11211
11210
|
h2stream.cork();
|
|
11212
11211
|
h2stream.write(body);
|
|
11213
11212
|
h2stream.uncork();
|
|
@@ -11222,7 +11221,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11222
11221
|
}
|
|
11223
11222
|
}
|
|
11224
11223
|
function writeStream(abort$1, socket, expectsPayload, h2stream, body, client, request$2, contentLength) {
|
|
11225
|
-
assert$
|
|
11224
|
+
assert$24(contentLength !== 0 || client[kRunning$3] === 0, "stream body cannot be pipelined");
|
|
11226
11225
|
const pipe$2 = pipeline$4(body, h2stream, (err) => {
|
|
11227
11226
|
if (err) {
|
|
11228
11227
|
util$20.destroy(pipe$2, err);
|
|
@@ -11240,7 +11239,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11240
11239
|
}
|
|
11241
11240
|
}
|
|
11242
11241
|
async function writeBlob(abort$1, h2stream, body, client, request$2, socket, contentLength, expectsPayload) {
|
|
11243
|
-
assert$
|
|
11242
|
+
assert$24(contentLength === body.size, "blob body must have content length");
|
|
11244
11243
|
try {
|
|
11245
11244
|
if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError();
|
|
11246
11245
|
const buffer$1 = Buffer.from(await body.arrayBuffer());
|
|
@@ -11257,7 +11256,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11257
11256
|
}
|
|
11258
11257
|
}
|
|
11259
11258
|
async function writeIterable(abort$1, h2stream, body, client, request$2, socket, contentLength, expectsPayload) {
|
|
11260
|
-
assert$
|
|
11259
|
+
assert$24(contentLength !== 0 || client[kRunning$3] === 0, "iterator body cannot be pipelined");
|
|
11261
11260
|
let callback$1 = null;
|
|
11262
11261
|
function onDrain() {
|
|
11263
11262
|
if (callback$1) {
|
|
@@ -11267,7 +11266,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11267
11266
|
}
|
|
11268
11267
|
}
|
|
11269
11268
|
const waitForDrain = () => new Promise((resolve$4, reject) => {
|
|
11270
|
-
assert$
|
|
11269
|
+
assert$24(callback$1 === null);
|
|
11271
11270
|
if (socket[kError$1]) reject(socket[kError$1]);
|
|
11272
11271
|
else callback$1 = resolve$4;
|
|
11273
11272
|
});
|
|
@@ -11295,7 +11294,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11295
11294
|
//#endregion
|
|
11296
11295
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client.js
|
|
11297
11296
|
var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client.js": ((exports, module) => {
|
|
11298
|
-
const assert$
|
|
11297
|
+
const assert$23 = __require$2("node:assert");
|
|
11299
11298
|
const net$2 = __require$2("node:net");
|
|
11300
11299
|
const http$1 = __require$2("node:http");
|
|
11301
11300
|
const util$19 = require_util$5();
|
|
@@ -11473,13 +11472,13 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11473
11472
|
};
|
|
11474
11473
|
function onError(client, err) {
|
|
11475
11474
|
if (client[kRunning$2] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") {
|
|
11476
|
-
assert$
|
|
11475
|
+
assert$23(client[kPendingIdx] === client[kRunningIdx]);
|
|
11477
11476
|
const requests = client[kQueue$1].splice(client[kRunningIdx]);
|
|
11478
11477
|
for (let i$1 = 0; i$1 < requests.length; i$1++) {
|
|
11479
11478
|
const request$2 = requests[i$1];
|
|
11480
11479
|
util$19.errorRequest(client, request$2, err);
|
|
11481
11480
|
}
|
|
11482
|
-
assert$
|
|
11481
|
+
assert$23(client[kSize$2] === 0);
|
|
11483
11482
|
}
|
|
11484
11483
|
}
|
|
11485
11484
|
/**
|
|
@@ -11487,14 +11486,14 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11487
11486
|
* @returns {void}
|
|
11488
11487
|
*/
|
|
11489
11488
|
function connect$1(client) {
|
|
11490
|
-
assert$
|
|
11491
|
-
assert$
|
|
11489
|
+
assert$23(!client[kConnecting]);
|
|
11490
|
+
assert$23(!client[kHTTPContext]);
|
|
11492
11491
|
let { host, hostname: hostname$1, protocol, port } = client[kUrl$5];
|
|
11493
11492
|
if (hostname$1[0] === "[") {
|
|
11494
11493
|
const idx = hostname$1.indexOf("]");
|
|
11495
|
-
assert$
|
|
11494
|
+
assert$23(idx !== -1);
|
|
11496
11495
|
const ip = hostname$1.substring(1, idx);
|
|
11497
|
-
assert$
|
|
11496
|
+
assert$23(net$2.isIPv6(ip));
|
|
11498
11497
|
hostname$1 = ip;
|
|
11499
11498
|
}
|
|
11500
11499
|
client[kConnecting] = true;
|
|
@@ -11534,7 +11533,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11534
11533
|
client[kResume$1]();
|
|
11535
11534
|
return;
|
|
11536
11535
|
}
|
|
11537
|
-
assert$
|
|
11536
|
+
assert$23(socket);
|
|
11538
11537
|
try {
|
|
11539
11538
|
client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
|
|
11540
11539
|
} catch (err$1) {
|
|
@@ -11596,7 +11595,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11596
11595
|
error: err
|
|
11597
11596
|
});
|
|
11598
11597
|
if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
|
|
11599
|
-
assert$
|
|
11598
|
+
assert$23(client[kRunning$2] === 0);
|
|
11600
11599
|
while (client[kPending$1] > 0 && client[kQueue$1][client[kPendingIdx]].servername === client[kServerName]) {
|
|
11601
11600
|
const request$2 = client[kQueue$1][client[kPendingIdx]++];
|
|
11602
11601
|
util$19.errorRequest(client, request$2, err);
|
|
@@ -11622,7 +11621,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11622
11621
|
function _resume(client, sync$2) {
|
|
11623
11622
|
while (true) {
|
|
11624
11623
|
if (client.destroyed) {
|
|
11625
|
-
assert$
|
|
11624
|
+
assert$23(client[kPending$1] === 0);
|
|
11626
11625
|
return;
|
|
11627
11626
|
}
|
|
11628
11627
|
if (client[kClosedResolve$1] && !client[kSize$2]) {
|
|
@@ -13224,7 +13223,7 @@ var require_env_http_proxy_agent = /* @__PURE__ */ __commonJS$2({ "../../node_mo
|
|
|
13224
13223
|
//#endregion
|
|
13225
13224
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/retry-handler.js
|
|
13226
13225
|
var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/retry-handler.js": ((exports, module) => {
|
|
13227
|
-
const assert$
|
|
13226
|
+
const assert$22 = __require$2("node:assert");
|
|
13228
13227
|
const { kRetryHandlerDefaultRetry } = require_symbols();
|
|
13229
13228
|
const { RequestRetryError } = require_errors();
|
|
13230
13229
|
const WrapHandler$2 = require_wrap_handler();
|
|
@@ -13391,8 +13390,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
|
|
|
13391
13390
|
});
|
|
13392
13391
|
validatePartialResponseContentLength(headers, contentRange, statusCode, this.retryCount);
|
|
13393
13392
|
const { start, size, end = size ? size - 1 : null } = contentRange;
|
|
13394
|
-
assert$
|
|
13395
|
-
assert$
|
|
13393
|
+
assert$22(this.start === start, "content-range mismatch");
|
|
13394
|
+
assert$22(this.end == null || this.end === end, "content-range mismatch");
|
|
13396
13395
|
return;
|
|
13397
13396
|
}
|
|
13398
13397
|
if (this.end == null) {
|
|
@@ -13405,8 +13404,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
|
|
|
13405
13404
|
}
|
|
13406
13405
|
validatePartialResponseContentLength(headers, range, statusCode, this.retryCount);
|
|
13407
13406
|
const { start, size, end = size ? size - 1 : null } = range;
|
|
13408
|
-
assert$
|
|
13409
|
-
assert$
|
|
13407
|
+
assert$22(start != null && Number.isFinite(start), "content-range mismatch");
|
|
13408
|
+
assert$22(end != null && Number.isFinite(end), "invalid content-length");
|
|
13410
13409
|
this.start = start;
|
|
13411
13410
|
this.end = end;
|
|
13412
13411
|
}
|
|
@@ -13414,8 +13413,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
|
|
|
13414
13413
|
const contentLength = headers["content-length"];
|
|
13415
13414
|
this.end = contentLength != null ? Number(contentLength) - 1 : null;
|
|
13416
13415
|
}
|
|
13417
|
-
assert$
|
|
13418
|
-
assert$
|
|
13416
|
+
assert$22(Number.isFinite(this.start));
|
|
13417
|
+
assert$22(this.end == null || Number.isFinite(this.end), "invalid content-length");
|
|
13419
13418
|
this.resume = true;
|
|
13420
13419
|
this.etag = headers.etag != null ? headers.etag : null;
|
|
13421
13420
|
if (this.etag != null && this.etag[0] === "W" && this.etag[1] === "/") this.etag = null;
|
|
@@ -13547,7 +13546,7 @@ var require_h2c_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
13547
13546
|
//#endregion
|
|
13548
13547
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/readable.js
|
|
13549
13548
|
var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/readable.js": ((exports, module) => {
|
|
13550
|
-
const assert$
|
|
13549
|
+
const assert$21 = __require$2("node:assert");
|
|
13551
13550
|
const { Readable: Readable$4 } = __require$2("node:stream");
|
|
13552
13551
|
const { RequestAbortedError: RequestAbortedError$5, NotSupportedError, InvalidArgumentError: InvalidArgumentError$19, AbortError: AbortError$1 } = require_errors();
|
|
13553
13552
|
const util$14 = require_util$5();
|
|
@@ -13743,7 +13742,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
13743
13742
|
this[kBody$1] = ReadableStreamFrom(this);
|
|
13744
13743
|
if (this[kConsume]) {
|
|
13745
13744
|
this[kBody$1].getReader();
|
|
13746
|
-
assert$
|
|
13745
|
+
assert$21(this[kBody$1].locked);
|
|
13747
13746
|
}
|
|
13748
13747
|
}
|
|
13749
13748
|
return this[kBody$1];
|
|
@@ -13833,7 +13832,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
13833
13832
|
* @returns {Promise<ConsumeReturnType<T>>}
|
|
13834
13833
|
*/
|
|
13835
13834
|
function consume(stream$2, type) {
|
|
13836
|
-
assert$
|
|
13835
|
+
assert$21(!stream$2[kConsume]);
|
|
13837
13836
|
return new Promise((resolve$4, reject) => {
|
|
13838
13837
|
if (isUnusable(stream$2)) {
|
|
13839
13838
|
const rState = stream$2._readableState;
|
|
@@ -13961,7 +13960,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
13961
13960
|
//#endregion
|
|
13962
13961
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-request.js
|
|
13963
13962
|
var require_api_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-request.js": ((exports, module) => {
|
|
13964
|
-
const assert$
|
|
13963
|
+
const assert$20 = __require$2("node:assert");
|
|
13965
13964
|
const { AsyncResource: AsyncResource$4 } = __require$2("node:async_hooks");
|
|
13966
13965
|
const { Readable: Readable$3 } = require_readable();
|
|
13967
13966
|
const { InvalidArgumentError: InvalidArgumentError$18, RequestAbortedError: RequestAbortedError$4 } = require_errors();
|
|
@@ -14007,7 +14006,7 @@ var require_api_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14007
14006
|
abort$1(this.reason);
|
|
14008
14007
|
return;
|
|
14009
14008
|
}
|
|
14010
|
-
assert$
|
|
14009
|
+
assert$20(this.callback);
|
|
14011
14010
|
this.abort = abort$1;
|
|
14012
14011
|
this.context = context;
|
|
14013
14012
|
}
|
|
@@ -14151,7 +14150,7 @@ var require_abort_signal = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
|
|
|
14151
14150
|
//#endregion
|
|
14152
14151
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-stream.js
|
|
14153
14152
|
var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-stream.js": ((exports, module) => {
|
|
14154
|
-
const assert$
|
|
14153
|
+
const assert$19 = __require$2("node:assert");
|
|
14155
14154
|
const { finished: finished$1 } = __require$2("node:stream");
|
|
14156
14155
|
const { AsyncResource: AsyncResource$3 } = __require$2("node:async_hooks");
|
|
14157
14156
|
const { InvalidArgumentError: InvalidArgumentError$17, InvalidReturnValueError: InvalidReturnValueError$1 } = require_errors();
|
|
@@ -14193,7 +14192,7 @@ var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
14193
14192
|
abort$1(this.reason);
|
|
14194
14193
|
return;
|
|
14195
14194
|
}
|
|
14196
|
-
assert$
|
|
14195
|
+
assert$19(this.callback);
|
|
14197
14196
|
this.abort = abort$1;
|
|
14198
14197
|
this.context = context;
|
|
14199
14198
|
}
|
|
@@ -14283,7 +14282,7 @@ var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
14283
14282
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-pipeline.js
|
|
14284
14283
|
var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-pipeline.js": ((exports, module) => {
|
|
14285
14284
|
const { Readable: Readable$2, Duplex, PassThrough } = __require$2("node:stream");
|
|
14286
|
-
const assert$
|
|
14285
|
+
const assert$18 = __require$2("node:assert");
|
|
14287
14286
|
const { AsyncResource: AsyncResource$2 } = __require$2("node:async_hooks");
|
|
14288
14287
|
const { InvalidArgumentError: InvalidArgumentError$16, InvalidReturnValueError, RequestAbortedError: RequestAbortedError$2 } = require_errors();
|
|
14289
14288
|
const util$11 = require_util$5();
|
|
@@ -14371,7 +14370,7 @@ var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
|
|
|
14371
14370
|
abort$1(this.reason);
|
|
14372
14371
|
return;
|
|
14373
14372
|
}
|
|
14374
|
-
assert$
|
|
14373
|
+
assert$18(!res, "pipeline cannot be retried");
|
|
14375
14374
|
this.abort = abort$1;
|
|
14376
14375
|
this.context = context;
|
|
14377
14376
|
}
|
|
@@ -14453,7 +14452,7 @@ var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
|
|
|
14453
14452
|
var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-upgrade.js": ((exports, module) => {
|
|
14454
14453
|
const { InvalidArgumentError: InvalidArgumentError$15, SocketError: SocketError$1 } = require_errors();
|
|
14455
14454
|
const { AsyncResource: AsyncResource$1 } = __require$2("node:async_hooks");
|
|
14456
|
-
const assert$
|
|
14455
|
+
const assert$17 = __require$2("node:assert");
|
|
14457
14456
|
const util$10 = require_util$5();
|
|
14458
14457
|
const { kHTTP2Stream } = require_symbols();
|
|
14459
14458
|
const { addSignal: addSignal$1, removeSignal: removeSignal$1 } = require_abort_signal();
|
|
@@ -14476,7 +14475,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14476
14475
|
abort$1(this.reason);
|
|
14477
14476
|
return;
|
|
14478
14477
|
}
|
|
14479
|
-
assert$
|
|
14478
|
+
assert$17(this.callback);
|
|
14480
14479
|
this.abort = abort$1;
|
|
14481
14480
|
this.context = null;
|
|
14482
14481
|
}
|
|
@@ -14484,7 +14483,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14484
14483
|
throw new SocketError$1("bad upgrade", null);
|
|
14485
14484
|
}
|
|
14486
14485
|
onUpgrade(statusCode, rawHeaders, socket) {
|
|
14487
|
-
assert$
|
|
14486
|
+
assert$17(socket[kHTTP2Stream] === true ? statusCode === 200 : statusCode === 101);
|
|
14488
14487
|
const { callback: callback$1, opaque, context } = this;
|
|
14489
14488
|
removeSignal$1(this);
|
|
14490
14489
|
this.callback = null;
|
|
@@ -14533,7 +14532,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14533
14532
|
//#endregion
|
|
14534
14533
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-connect.js
|
|
14535
14534
|
var require_api_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-connect.js": ((exports, module) => {
|
|
14536
|
-
const assert$
|
|
14535
|
+
const assert$16 = __require$2("node:assert");
|
|
14537
14536
|
const { AsyncResource } = __require$2("node:async_hooks");
|
|
14538
14537
|
const { InvalidArgumentError: InvalidArgumentError$14, SocketError } = require_errors();
|
|
14539
14538
|
const util$9 = require_util$5();
|
|
@@ -14556,7 +14555,7 @@ var require_api_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14556
14555
|
abort$1(this.reason);
|
|
14557
14556
|
return;
|
|
14558
14557
|
}
|
|
14559
|
-
assert$
|
|
14558
|
+
assert$16(this.callback);
|
|
14560
14559
|
this.abort = abort$1;
|
|
14561
14560
|
this.context = context;
|
|
14562
14561
|
}
|
|
@@ -16393,7 +16392,7 @@ var require_global = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
16393
16392
|
//#endregion
|
|
16394
16393
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/decorator-handler.js
|
|
16395
16394
|
var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/decorator-handler.js": ((exports, module) => {
|
|
16396
|
-
const assert$
|
|
16395
|
+
const assert$15 = __require$2("node:assert");
|
|
16397
16396
|
const WrapHandler = require_wrap_handler();
|
|
16398
16397
|
/**
|
|
16399
16398
|
* @deprecated
|
|
@@ -16411,25 +16410,25 @@ var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modul
|
|
|
16411
16410
|
this.#handler.onRequestStart?.(...args);
|
|
16412
16411
|
}
|
|
16413
16412
|
onRequestUpgrade(...args) {
|
|
16414
|
-
assert$
|
|
16415
|
-
assert$
|
|
16413
|
+
assert$15(!this.#onCompleteCalled);
|
|
16414
|
+
assert$15(!this.#onErrorCalled);
|
|
16416
16415
|
return this.#handler.onRequestUpgrade?.(...args);
|
|
16417
16416
|
}
|
|
16418
16417
|
onResponseStart(...args) {
|
|
16419
|
-
assert$
|
|
16420
|
-
assert$
|
|
16421
|
-
assert$
|
|
16418
|
+
assert$15(!this.#onCompleteCalled);
|
|
16419
|
+
assert$15(!this.#onErrorCalled);
|
|
16420
|
+
assert$15(!this.#onResponseStartCalled);
|
|
16422
16421
|
this.#onResponseStartCalled = true;
|
|
16423
16422
|
return this.#handler.onResponseStart?.(...args);
|
|
16424
16423
|
}
|
|
16425
16424
|
onResponseData(...args) {
|
|
16426
|
-
assert$
|
|
16427
|
-
assert$
|
|
16425
|
+
assert$15(!this.#onCompleteCalled);
|
|
16426
|
+
assert$15(!this.#onErrorCalled);
|
|
16428
16427
|
return this.#handler.onResponseData?.(...args);
|
|
16429
16428
|
}
|
|
16430
16429
|
onResponseEnd(...args) {
|
|
16431
|
-
assert$
|
|
16432
|
-
assert$
|
|
16430
|
+
assert$15(!this.#onCompleteCalled);
|
|
16431
|
+
assert$15(!this.#onErrorCalled);
|
|
16433
16432
|
this.#onCompleteCalled = true;
|
|
16434
16433
|
return this.#handler.onResponseEnd?.(...args);
|
|
16435
16434
|
}
|
|
@@ -16449,7 +16448,7 @@ var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modul
|
|
|
16449
16448
|
var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/redirect-handler.js": ((exports, module) => {
|
|
16450
16449
|
const util$8 = require_util$5();
|
|
16451
16450
|
const { kBodyUsed } = require_symbols();
|
|
16452
|
-
const assert$
|
|
16451
|
+
const assert$14 = __require$2("node:assert");
|
|
16453
16452
|
const { InvalidArgumentError: InvalidArgumentError$3 } = require_errors();
|
|
16454
16453
|
const EE$2 = __require$2("node:events");
|
|
16455
16454
|
const redirectableStatusCodes = [
|
|
@@ -16468,7 +16467,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
16468
16467
|
this[kBodyUsed] = false;
|
|
16469
16468
|
}
|
|
16470
16469
|
async *[Symbol.asyncIterator]() {
|
|
16471
|
-
assert$
|
|
16470
|
+
assert$14(!this[kBodyUsed], "disturbed");
|
|
16472
16471
|
this[kBodyUsed] = true;
|
|
16473
16472
|
yield* this[kBody];
|
|
16474
16473
|
}
|
|
@@ -16490,7 +16489,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
16490
16489
|
this.history = [];
|
|
16491
16490
|
if (util$8.isStream(this.opts.body)) {
|
|
16492
16491
|
if (util$8.bodyLength(this.opts.body) === 0) this.opts.body.on("data", function() {
|
|
16493
|
-
assert$
|
|
16492
|
+
assert$14(false);
|
|
16494
16493
|
});
|
|
16495
16494
|
if (typeof this.opts.body.readableDidRead !== "boolean") {
|
|
16496
16495
|
this.opts.body[kBodyUsed] = false;
|
|
@@ -16564,7 +16563,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
16564
16563
|
} else if (headers && typeof headers === "object") {
|
|
16565
16564
|
const entries = util$8.hasSafeIterator(headers) ? headers : Object.entries(headers);
|
|
16566
16565
|
for (const [key, value] of entries) if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) ret.push(key, value);
|
|
16567
|
-
} else assert$
|
|
16566
|
+
} else assert$14(headers == null, "headers must be an object or an array");
|
|
16568
16567
|
return ret;
|
|
16569
16568
|
}
|
|
16570
16569
|
module.exports = RedirectHandler$2;
|
|
@@ -18457,7 +18456,7 @@ var require_memory_cache_store = /* @__PURE__ */ __commonJS$2({ "../../node_modu
|
|
|
18457
18456
|
//#endregion
|
|
18458
18457
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/cache-revalidation-handler.js
|
|
18459
18458
|
var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/cache-revalidation-handler.js": ((exports, module) => {
|
|
18460
|
-
const assert$
|
|
18459
|
+
const assert$13 = __require$2("node:assert");
|
|
18461
18460
|
/**
|
|
18462
18461
|
* This takes care of revalidation requests we send to the origin. If we get
|
|
18463
18462
|
* a response indicating that what we have is cached (via a HTTP 304), we can
|
|
@@ -18505,7 +18504,7 @@ var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../n
|
|
|
18505
18504
|
this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
|
|
18506
18505
|
}
|
|
18507
18506
|
onResponseStart(controller, statusCode, headers, statusMessage) {
|
|
18508
|
-
assert$
|
|
18507
|
+
assert$13(this.#callback != null);
|
|
18509
18508
|
this.#successful = statusCode === 304 || this.#allowErrorStatusCodes && statusCode >= 500 && statusCode <= 504;
|
|
18510
18509
|
this.#callback(this.#successful, this.#context, statusCode, headers);
|
|
18511
18510
|
this.#callback = null;
|
|
@@ -18537,7 +18536,7 @@ var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../n
|
|
|
18537
18536
|
//#endregion
|
|
18538
18537
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/interceptor/cache.js
|
|
18539
18538
|
var require_cache$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/interceptor/cache.js": ((exports, module) => {
|
|
18540
|
-
const assert$
|
|
18539
|
+
const assert$12 = __require$2("node:assert");
|
|
18541
18540
|
const { Readable: Readable$1 } = __require$2("node:stream");
|
|
18542
18541
|
const util$6 = require_util$5();
|
|
18543
18542
|
const CacheHandler = require_cache_handler();
|
|
@@ -18702,8 +18701,8 @@ var require_cache$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
18702
18701
|
*/
|
|
18703
18702
|
function sendCachedValue(handler, opts, result, age, context, isStale$1) {
|
|
18704
18703
|
const stream$2 = util$6.isStream(result.body) ? result.body : Readable$1.from(result.body ?? []);
|
|
18705
|
-
assert$
|
|
18706
|
-
assert$
|
|
18704
|
+
assert$12(!stream$2.destroyed, "stream should not be destroyed");
|
|
18705
|
+
assert$12(!stream$2.readableDidRead, "stream should not be readableDidRead");
|
|
18707
18706
|
const controller = {
|
|
18708
18707
|
resume() {
|
|
18709
18708
|
stream$2.resume();
|
|
@@ -19799,7 +19798,7 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
19799
19798
|
const { kEnumerableProperty: kEnumerableProperty$9 } = require_util$5();
|
|
19800
19799
|
const { iteratorMixin, isValidHeaderName: isValidHeaderName$1, isValidHeaderValue } = require_util$4();
|
|
19801
19800
|
const { webidl: webidl$11 } = require_webidl();
|
|
19802
|
-
const assert$
|
|
19801
|
+
const assert$11 = __require$2("node:assert");
|
|
19803
19802
|
const util$4 = __require$2("node:util");
|
|
19804
19803
|
/**
|
|
19805
19804
|
* @param {number} code
|
|
@@ -19994,11 +19993,11 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
19994
19993
|
const iterator = this.headersMap[Symbol.iterator]();
|
|
19995
19994
|
const firstValue = iterator.next().value;
|
|
19996
19995
|
array$2[0] = [firstValue[0], firstValue[1].value];
|
|
19997
|
-
assert$
|
|
19996
|
+
assert$11(firstValue[1].value !== null);
|
|
19998
19997
|
for (let i$1 = 1, j$1 = 0, right = 0, left = 0, pivot = 0, x, value; i$1 < size; ++i$1) {
|
|
19999
19998
|
value = iterator.next().value;
|
|
20000
19999
|
x = array$2[i$1] = [value[0], value[1].value];
|
|
20001
|
-
assert$
|
|
20000
|
+
assert$11(x[1] !== null);
|
|
20002
20001
|
left = 0;
|
|
20003
20002
|
right = i$1;
|
|
20004
20003
|
while (left < right) {
|
|
@@ -20019,7 +20018,7 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20019
20018
|
let i$1 = 0;
|
|
20020
20019
|
for (const { 0: name, 1: { value } } of this.headersMap) {
|
|
20021
20020
|
array$2[i$1++] = [name, value];
|
|
20022
|
-
assert$
|
|
20021
|
+
assert$11(value !== null);
|
|
20023
20022
|
}
|
|
20024
20023
|
return array$2.sort(compareHeaderName);
|
|
20025
20024
|
}
|
|
@@ -20199,7 +20198,7 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
20199
20198
|
const { webidl: webidl$10 } = require_webidl();
|
|
20200
20199
|
const { URLSerializer: URLSerializer$3 } = require_data_url();
|
|
20201
20200
|
const { kConstruct: kConstruct$6 } = require_symbols();
|
|
20202
|
-
const assert$
|
|
20201
|
+
const assert$10 = __require$2("node:assert");
|
|
20203
20202
|
const { isomorphicEncode: isomorphicEncode$1, serializeJavascriptValueToJSONString } = require_infra();
|
|
20204
20203
|
const textEncoder = new TextEncoder("utf-8");
|
|
20205
20204
|
var Response$3 = class Response$3 {
|
|
@@ -20421,7 +20420,7 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
20421
20420
|
return p$2 in state ? state[p$2] : target$1[p$2];
|
|
20422
20421
|
},
|
|
20423
20422
|
set(target$1, p$2, value) {
|
|
20424
|
-
assert$
|
|
20423
|
+
assert$10(!(p$2 in state));
|
|
20425
20424
|
target$1[p$2] = value;
|
|
20426
20425
|
return true;
|
|
20427
20426
|
}
|
|
@@ -20450,10 +20449,10 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
20450
20449
|
headersList: [],
|
|
20451
20450
|
body: null
|
|
20452
20451
|
});
|
|
20453
|
-
else assert$
|
|
20452
|
+
else assert$10(false);
|
|
20454
20453
|
}
|
|
20455
20454
|
function makeAppropriateNetworkError$1(fetchParams, err = null) {
|
|
20456
|
-
assert$
|
|
20455
|
+
assert$10(isCancelled$1(fetchParams));
|
|
20457
20456
|
return isAborted$1(fetchParams) ? makeNetworkError$1(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError$1(Object.assign(new DOMException("Request was cancelled."), { cause: err }));
|
|
20458
20457
|
}
|
|
20459
20458
|
function initializeResponse(response, init, body) {
|
|
@@ -20545,7 +20544,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20545
20544
|
const { webidl: webidl$9 } = require_webidl();
|
|
20546
20545
|
const { URLSerializer: URLSerializer$2 } = require_data_url();
|
|
20547
20546
|
const { kConstruct: kConstruct$5 } = require_symbols();
|
|
20548
|
-
const assert$
|
|
20547
|
+
const assert$9 = __require$2("node:assert");
|
|
20549
20548
|
const { getMaxListeners, setMaxListeners, defaultMaxListeners } = __require$2("node:events");
|
|
20550
20549
|
const kAbortController = Symbol("abortController");
|
|
20551
20550
|
const requestFinalizer = new FinalizationRegistry(({ signal, abort: abort$1 }) => {
|
|
@@ -20611,7 +20610,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20611
20610
|
request$2 = makeRequest$2({ urlList: [parsedURL] });
|
|
20612
20611
|
fallbackMode = "cors";
|
|
20613
20612
|
} else {
|
|
20614
|
-
assert$
|
|
20613
|
+
assert$9(webidl$9.is.Request(input));
|
|
20615
20614
|
request$2 = input.#state;
|
|
20616
20615
|
signal = input.#signal;
|
|
20617
20616
|
this.#dispatcher = init.dispatcher || input.#dispatcher;
|
|
@@ -21125,7 +21124,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
21125
21124
|
//#endregion
|
|
21126
21125
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js
|
|
21127
21126
|
var require_subresource_integrity = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js": ((exports, module) => {
|
|
21128
|
-
const assert$
|
|
21127
|
+
const assert$8 = __require$2("node:assert");
|
|
21129
21128
|
const { runtimeFeatures: runtimeFeatures$3 } = require_runtime_features();
|
|
21130
21129
|
/**
|
|
21131
21130
|
* @typedef {object} Metadata
|
|
@@ -21203,7 +21202,7 @@ var require_subresource_integrity = /* @__PURE__ */ __commonJS$2({ "../../node_m
|
|
|
21203
21202
|
/** @type {Metadata|null} */
|
|
21204
21203
|
let strongest = null;
|
|
21205
21204
|
for (const item of metadataList) {
|
|
21206
|
-
assert$
|
|
21205
|
+
assert$8(isValidSRIHashAlgorithm(item.alg), "Invalid SRI hash algorithm token");
|
|
21207
21206
|
if (result.length === 0) {
|
|
21208
21207
|
result.push(item);
|
|
21209
21208
|
strongest = item;
|
|
@@ -21297,7 +21296,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21297
21296
|
const { Request: Request$3, cloneRequest, getRequestDispatcher, getRequestState: getRequestState$1 } = require_request();
|
|
21298
21297
|
const zlib = __require$2("node:zlib");
|
|
21299
21298
|
const { makePolicyContainer, clonePolicyContainer, requestBadPort, TAOCheck, appendRequestOriginHeader, responseLocationURL, requestCurrentURL, setRequestReferrerPolicyOnRedirect, tryUpgradeRequestToAPotentiallyTrustworthyURL, createOpaqueTimingInfo, appendFetchMetadata, corsCheck, crossOriginResourcePolicyCheck, determineRequestsReferrer, coarsenedSharedCurrentTime, sameOrigin, isCancelled, isAborted, isErrorLike, fullyReadBody, readableStreamClose, urlIsLocal, urlIsHttpHttpsScheme: urlIsHttpHttpsScheme$1, urlHasHttpsScheme, clampAndCoarsenConnectionTimingInfo, simpleRangeHeaderValue, buildContentRange, createInflate, extractMimeType, hasAuthenticationEntry, includesCredentials, isTraversableNavigable } = require_util$4();
|
|
21300
|
-
const assert$
|
|
21299
|
+
const assert$7 = __require$2("node:assert");
|
|
21301
21300
|
const { safelyExtractBody, extractBody } = require_body();
|
|
21302
21301
|
const { redirectStatusSet, nullBodyStatus, safeMethodsSet, requestBodyHeader, subresourceSet } = require_constants$4();
|
|
21303
21302
|
const EE$1 = __require$2("node:events");
|
|
@@ -21363,7 +21362,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21363
21362
|
let controller = null;
|
|
21364
21363
|
addAbortListener(requestObject.signal, () => {
|
|
21365
21364
|
locallyAborted = true;
|
|
21366
|
-
assert$
|
|
21365
|
+
assert$7(controller != null);
|
|
21367
21366
|
controller.abort(requestObject.signal.reason);
|
|
21368
21367
|
const realResponse = responseObject?.deref();
|
|
21369
21368
|
abortFetch(p$2, request$2, realResponse, requestObject.signal.reason, controller.controller);
|
|
@@ -21419,7 +21418,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21419
21418
|
if (response.body?.stream != null && isReadable(response.body.stream)) controller.error(error$2);
|
|
21420
21419
|
}
|
|
21421
21420
|
function fetching$3({ request: request$2, processRequestBodyChunkLength, processRequestEndOfBody, processResponse, processResponseEndOfBody, processResponseConsumeBody, useParallelQueue = false, dispatcher = getGlobalDispatcher$2(), requestObject = null }) {
|
|
21422
|
-
assert$
|
|
21421
|
+
assert$7(dispatcher);
|
|
21423
21422
|
let taskDestination = null;
|
|
21424
21423
|
let crossOriginIsolatedCapability = false;
|
|
21425
21424
|
if (request$2.client != null) {
|
|
@@ -21440,7 +21439,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21440
21439
|
crossOriginIsolatedCapability,
|
|
21441
21440
|
requestObject
|
|
21442
21441
|
};
|
|
21443
|
-
assert$
|
|
21442
|
+
assert$7(!request$2.body || request$2.body.stream);
|
|
21444
21443
|
if (request$2.window === "client") request$2.window = request$2.client?.globalObject?.constructor?.name === "Window" ? request$2.client : "no-window";
|
|
21445
21444
|
if (request$2.origin === "client") request$2.origin = request$2.client.origin;
|
|
21446
21445
|
if (request$2.policyContainer === "client") if (request$2.client != null) request$2.policyContainer = clonePolicyContainer(request$2.client.policyContainer);
|
|
@@ -21484,7 +21483,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21484
21483
|
if (request$2.responseTainting === "basic") response = filterResponse(response, "basic");
|
|
21485
21484
|
else if (request$2.responseTainting === "cors") response = filterResponse(response, "cors");
|
|
21486
21485
|
else if (request$2.responseTainting === "opaque") response = filterResponse(response, "opaque");
|
|
21487
|
-
else assert$
|
|
21486
|
+
else assert$7(false);
|
|
21488
21487
|
}
|
|
21489
21488
|
let internalResponse = response.status === 0 ? response : response.internalResponse;
|
|
21490
21489
|
if (internalResponse.urlList.length === 0) internalResponse.urlList.push(...request$2.urlList);
|
|
@@ -21640,7 +21639,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21640
21639
|
if (request$2.redirect === "error") response = makeNetworkError("unexpected redirect");
|
|
21641
21640
|
else if (request$2.redirect === "manual") response = actualResponse;
|
|
21642
21641
|
else if (request$2.redirect === "follow") response = await httpRedirectFetch(fetchParams, response);
|
|
21643
|
-
else assert$
|
|
21642
|
+
else assert$7(false);
|
|
21644
21643
|
}
|
|
21645
21644
|
response.timingInfo = timingInfo;
|
|
21646
21645
|
return response;
|
|
@@ -21673,7 +21672,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21673
21672
|
request$2.headersList.delete("host", true);
|
|
21674
21673
|
}
|
|
21675
21674
|
if (request$2.body != null) {
|
|
21676
|
-
assert$
|
|
21675
|
+
assert$7(request$2.body.source != null);
|
|
21677
21676
|
request$2.body = safelyExtractBody(request$2.body.source)[0];
|
|
21678
21677
|
}
|
|
21679
21678
|
const timingInfo = fetchParams.timingInfo;
|
|
@@ -21765,7 +21764,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21765
21764
|
return response;
|
|
21766
21765
|
}
|
|
21767
21766
|
async function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
|
|
21768
|
-
assert$
|
|
21767
|
+
assert$7(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
|
|
21769
21768
|
fetchParams.controller.connection = {
|
|
21770
21769
|
abort: null,
|
|
21771
21770
|
destroyed: false,
|
|
@@ -22045,7 +22044,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22045
22044
|
//#endregion
|
|
22046
22045
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/util.js
|
|
22047
22046
|
var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/util.js": ((exports, module) => {
|
|
22048
|
-
const assert$
|
|
22047
|
+
const assert$6 = __require$2("node:assert");
|
|
22049
22048
|
const { URLSerializer: URLSerializer$1 } = require_data_url();
|
|
22050
22049
|
const { isValidHeaderName } = require_util$4();
|
|
22051
22050
|
/**
|
|
@@ -22063,7 +22062,7 @@ var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
22063
22062
|
* @param {string} header
|
|
22064
22063
|
*/
|
|
22065
22064
|
function getFieldValues$1(header) {
|
|
22066
|
-
assert$
|
|
22065
|
+
assert$6(header !== null);
|
|
22067
22066
|
const values = [];
|
|
22068
22067
|
for (let value of header.split(",")) {
|
|
22069
22068
|
value = value.trim();
|
|
@@ -22080,7 +22079,7 @@ var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
22080
22079
|
//#endregion
|
|
22081
22080
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/cache.js
|
|
22082
22081
|
var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/cache.js": ((exports, module) => {
|
|
22083
|
-
const assert$
|
|
22082
|
+
const assert$5 = __require$2("node:assert");
|
|
22084
22083
|
const { kConstruct: kConstruct$4 } = require_symbols();
|
|
22085
22084
|
const { urlEquals, getFieldValues } = require_util$3();
|
|
22086
22085
|
const { kEnumerableProperty: kEnumerableProperty$6, isDisturbed } = require_util$5();
|
|
@@ -22295,7 +22294,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22295
22294
|
r$1 = getRequestState(request$2);
|
|
22296
22295
|
if (r$1.method !== "GET" && !options.ignoreMethod) return false;
|
|
22297
22296
|
} else {
|
|
22298
|
-
assert$
|
|
22297
|
+
assert$5(typeof request$2 === "string");
|
|
22299
22298
|
r$1 = getRequestState(new Request$2(request$2));
|
|
22300
22299
|
}
|
|
22301
22300
|
/** @type {CacheBatchOperation[]} */
|
|
@@ -22383,7 +22382,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22383
22382
|
if (requestResponses.length === 0) return [];
|
|
22384
22383
|
for (const requestResponse of requestResponses) {
|
|
22385
22384
|
const idx = cache$2.indexOf(requestResponse);
|
|
22386
|
-
assert$
|
|
22385
|
+
assert$5(idx !== -1);
|
|
22387
22386
|
cache$2.splice(idx, 1);
|
|
22388
22387
|
}
|
|
22389
22388
|
} else if (operation.type === "put") {
|
|
@@ -22407,7 +22406,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22407
22406
|
requestResponses = this.#queryCache(operation.request);
|
|
22408
22407
|
for (const requestResponse of requestResponses) {
|
|
22409
22408
|
const idx = cache$2.indexOf(requestResponse);
|
|
22410
|
-
assert$
|
|
22409
|
+
assert$5(idx !== -1);
|
|
22411
22410
|
cache$2.splice(idx, 1);
|
|
22412
22411
|
}
|
|
22413
22412
|
cache$2.push([operation.request, operation.response]);
|
|
@@ -22871,7 +22870,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
22871
22870
|
const { collectASequenceOfCodePointsFast: collectASequenceOfCodePointsFast$1 } = require_infra();
|
|
22872
22871
|
const { maxNameValuePairSize, maxAttributeValueSize } = require_constants$3();
|
|
22873
22872
|
const { isCTLExcludingHtab } = require_util$2();
|
|
22874
|
-
const assert$
|
|
22873
|
+
const assert$4 = __require$2("node:assert");
|
|
22875
22874
|
/**
|
|
22876
22875
|
* @description Parses the field-value attributes of a set-cookie header string.
|
|
22877
22876
|
* @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
|
|
@@ -22912,7 +22911,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
22912
22911
|
*/
|
|
22913
22912
|
function parseUnparsedAttributes(unparsedAttributes, cookieAttributeList = {}) {
|
|
22914
22913
|
if (unparsedAttributes.length === 0) return cookieAttributeList;
|
|
22915
|
-
assert$
|
|
22914
|
+
assert$4(unparsedAttributes[0] === ";");
|
|
22916
22915
|
unparsedAttributes = unparsedAttributes.slice(1);
|
|
22917
22916
|
let cookieAv = "";
|
|
22918
22917
|
if (unparsedAttributes.includes(";")) {
|
|
@@ -23837,7 +23836,7 @@ var require_connection = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
23837
23836
|
const { Headers: Headers$2, getHeadersList } = require_headers();
|
|
23838
23837
|
const { getDecodeSplit } = require_util$4();
|
|
23839
23838
|
const { WebsocketFrameSend: WebsocketFrameSend$4 } = require_frame();
|
|
23840
|
-
const assert$
|
|
23839
|
+
const assert$3 = __require$2("node:assert");
|
|
23841
23840
|
const { runtimeFeatures } = require_runtime_features();
|
|
23842
23841
|
const crypto$2 = runtimeFeatures.has("crypto") ? __require$2("node:crypto") : null;
|
|
23843
23842
|
let warningEmitted = false;
|
|
@@ -23943,7 +23942,7 @@ var require_connection = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
23943
23942
|
} else if (!object$2.closeState.has(sentCloseFrameState$3.SENT) && !object$2.closeState.has(sentCloseFrameState$3.RECEIVED)) {
|
|
23944
23943
|
const frame = new WebsocketFrameSend$4();
|
|
23945
23944
|
if (reason.length !== 0 && code === null) code = 1e3;
|
|
23946
|
-
assert$
|
|
23945
|
+
assert$3(code === null || Number.isInteger(code));
|
|
23947
23946
|
if (code === null && reason.length === 0) frame.frameData = emptyBuffer$1;
|
|
23948
23947
|
else if (code !== null && reason === null) {
|
|
23949
23948
|
frame.frameData = Buffer.allocUnsafe(2);
|
|
@@ -24062,7 +24061,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJS$2({ "../../node_modu
|
|
|
24062
24061
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/websocket/receiver.js
|
|
24063
24062
|
var require_receiver = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/websocket/receiver.js": ((exports, module) => {
|
|
24064
24063
|
const { Writable } = __require$2("node:stream");
|
|
24065
|
-
const assert$
|
|
24064
|
+
const assert$2 = __require$2("node:assert");
|
|
24066
24065
|
const { parserStates, opcodes: opcodes$3, states: states$2, emptyBuffer, sentCloseFrameState: sentCloseFrameState$2 } = require_constants$2();
|
|
24067
24066
|
const { isValidStatusCode, isValidOpcode, websocketMessageReceived, utf8Decode: utf8Decode$2, isControlFrame, isTextBinaryFrame, isContinuationFrame } = require_util$1();
|
|
24068
24067
|
const { failWebsocketConnection: failWebsocketConnection$2 } = require_connection();
|
|
@@ -24300,7 +24299,7 @@ var require_receiver = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
24300
24299
|
return output;
|
|
24301
24300
|
}
|
|
24302
24301
|
parseCloseBody(data$1) {
|
|
24303
|
-
assert$
|
|
24302
|
+
assert$2(data$1.length !== 1);
|
|
24304
24303
|
/** @type {number|undefined} */
|
|
24305
24304
|
let code;
|
|
24306
24305
|
if (data$1.length >= 2) code = data$1.readUInt16BE(0);
|
|
@@ -27952,7 +27951,7 @@ __export(util_exports$1, {
|
|
|
27952
27951
|
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES$1,
|
|
27953
27952
|
aborted: () => aborted$1,
|
|
27954
27953
|
allowsEval: () => allowsEval$1,
|
|
27955
|
-
assert: () => assert$
|
|
27954
|
+
assert: () => assert$1,
|
|
27956
27955
|
assertEqual: () => assertEqual,
|
|
27957
27956
|
assertIs: () => assertIs,
|
|
27958
27957
|
assertNever: () => assertNever2,
|
|
@@ -28025,8 +28024,8 @@ function assertNever2(_x) {
|
|
|
28025
28024
|
throw new Error("Unexpected value in exhaustive check");
|
|
28026
28025
|
}
|
|
28027
28026
|
__name$6(assertNever2, "assertNever");
|
|
28028
|
-
function assert$
|
|
28029
|
-
__name$6(assert$
|
|
28027
|
+
function assert$1(_) {}
|
|
28028
|
+
__name$6(assert$1, "assert");
|
|
28030
28029
|
function getEnumValues$1(entries) {
|
|
28031
28030
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
28032
28031
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -41773,45 +41772,61 @@ function validateRoutes(diagnostics, topLevelEnv, rawEnv, envName) {
|
|
|
41773
41772
|
return result;
|
|
41774
41773
|
}
|
|
41775
41774
|
__name$6(validateRoutes, "validateRoutes");
|
|
41776
|
-
function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv) {
|
|
41777
|
-
if (rawEnv.placement) {
|
|
41775
|
+
function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv, diagnosticField = "placement") {
|
|
41776
|
+
if (rawEnv.placement !== void 0) {
|
|
41777
|
+
if (typeof rawEnv.placement !== "object" || rawEnv.placement === null || Array.isArray(rawEnv.placement)) {
|
|
41778
|
+
diagnostics.errors.push(`The field "${diagnosticField}" should be an object but got ${JSON.stringify(rawEnv.placement)}.`);
|
|
41779
|
+
return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
|
|
41780
|
+
}
|
|
41778
41781
|
const placement = rawEnv.placement;
|
|
41779
41782
|
const hasHint = "hint" in placement;
|
|
41780
|
-
const
|
|
41781
|
-
|
|
41782
|
-
|
|
41783
|
-
|
|
41783
|
+
const presentTargetedFields = [
|
|
41784
|
+
"region",
|
|
41785
|
+
"host",
|
|
41786
|
+
"hostname"
|
|
41787
|
+
].filter((field) => field in placement);
|
|
41788
|
+
const hasTargetedFields = presentTargetedFields.length > 0;
|
|
41784
41789
|
if (hasHint && hasTargetedFields) {
|
|
41785
|
-
diagnostics.errors.push(`"
|
|
41790
|
+
diagnostics.errors.push(`"${diagnosticField}" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`);
|
|
41786
41791
|
return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
|
|
41787
41792
|
}
|
|
41788
41793
|
if (hasHint) {
|
|
41789
|
-
validateRequiredProperty(diagnostics,
|
|
41794
|
+
validateRequiredProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", ["off", "smart"]);
|
|
41790
41795
|
const mode = placement.mode;
|
|
41791
41796
|
const hint = placement.hint;
|
|
41792
|
-
if (hint !== void 0 && typeof hint !== "string") diagnostics.errors.push(`"
|
|
41793
|
-
if (hint && mode !== "smart") diagnostics.errors.push(`"
|
|
41797
|
+
if (hint !== void 0 && typeof hint !== "string") diagnostics.errors.push(`"${diagnosticField}.hint" must be a string when "${diagnosticField}.mode" is "${mode}"`);
|
|
41798
|
+
if (hint && mode !== "smart") diagnostics.errors.push(`"${diagnosticField}.hint" can only be set when "${diagnosticField}.mode" is "smart"`);
|
|
41794
41799
|
} else if (hasTargetedFields) {
|
|
41795
|
-
validateOptionalProperty(diagnostics,
|
|
41796
|
-
|
|
41797
|
-
|
|
41798
|
-
|
|
41799
|
-
|
|
41800
|
-
|
|
41801
|
-
|
|
41802
|
-
|
|
41803
|
-
|
|
41804
|
-
|
|
41805
|
-
|
|
41806
|
-
|
|
41807
|
-
|
|
41808
|
-
|
|
41809
|
-
|
|
41810
|
-
|
|
41811
|
-
|
|
41812
|
-
|
|
41813
|
-
|
|
41814
|
-
|
|
41800
|
+
validateOptionalProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", ["targeted"]);
|
|
41801
|
+
for (const field of presentTargetedFields) {
|
|
41802
|
+
validateRequiredProperty(diagnostics, diagnosticField, field, placement[field], "string");
|
|
41803
|
+
if (placement[field] === "") diagnostics.errors.push(`"${diagnosticField}.${field}" must be a non-empty string.`);
|
|
41804
|
+
}
|
|
41805
|
+
if (presentTargetedFields.length > 1) diagnostics.errors.push(`"${diagnosticField}" fields ${presentTargetedFields.map((field) => `"${field}"`).join(", ")} are mutually exclusive. Only one can be specified.`);
|
|
41806
|
+
} else {
|
|
41807
|
+
validateRequiredProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", [
|
|
41808
|
+
"off",
|
|
41809
|
+
"smart",
|
|
41810
|
+
"targeted"
|
|
41811
|
+
]);
|
|
41812
|
+
if (placement.mode === "targeted") validateAtLeastOnePropertyRequired(diagnostics, diagnosticField, [
|
|
41813
|
+
{
|
|
41814
|
+
key: "region",
|
|
41815
|
+
value: placement.region,
|
|
41816
|
+
type: "string"
|
|
41817
|
+
},
|
|
41818
|
+
{
|
|
41819
|
+
key: "host",
|
|
41820
|
+
value: placement.host,
|
|
41821
|
+
type: "string"
|
|
41822
|
+
},
|
|
41823
|
+
{
|
|
41824
|
+
key: "hostname",
|
|
41825
|
+
value: placement.hostname,
|
|
41826
|
+
type: "string"
|
|
41827
|
+
}
|
|
41828
|
+
]);
|
|
41829
|
+
}
|
|
41815
41830
|
}
|
|
41816
41831
|
return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
|
|
41817
41832
|
}
|
|
@@ -43762,10 +43777,12 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$6((envName, configPath) => (
|
|
|
43762
43777
|
"logpush",
|
|
43763
43778
|
"observability",
|
|
43764
43779
|
"limits",
|
|
43780
|
+
"placement",
|
|
43765
43781
|
"cache"
|
|
43766
43782
|
]) && isValid;
|
|
43767
43783
|
isValid = validateVars(envName)(diagnostics, `${field}.vars`, previews.vars, void 0) && isValid;
|
|
43768
43784
|
isValid = validateDefines(envName)(diagnostics, `${field}.define`, previews.define, void 0) && isValid;
|
|
43785
|
+
normalizeAndValidatePlacement(diagnostics, void 0, previews, `${field}.placement`);
|
|
43769
43786
|
isValid = validateBindingsProperty(envName, validateDurableObjectBinding)(diagnostics, `${field}.durable_objects`, previews.durable_objects, void 0) && isValid;
|
|
43770
43787
|
isValid = all(validateBindingArray(envName, validateWorkflowBinding), validateUniqueNameProperty)(diagnostics, `${field}.workflows`, previews.workflows, void 0) && isValid;
|
|
43771
43788
|
isValid = validateBindingArray(envName, validateKVBinding)(diagnostics, `${field}.kv_namespaces`, previews.kv_namespaces, void 0) && isValid;
|
|
@@ -46682,7 +46699,7 @@ function getWorkerNameFromProject(projectPath) {
|
|
|
46682
46699
|
}
|
|
46683
46700
|
__name$6(getWorkerNameFromProject, "getWorkerNameFromProject");
|
|
46684
46701
|
function toUrlPath(filePath) {
|
|
46685
|
-
|
|
46702
|
+
assert2(!/^[a-z]:/i.test(filePath), "Tried to convert a Windows file path with a drive to a URL path.");
|
|
46686
46703
|
return filePath.replace(/\\/g, "/");
|
|
46687
46704
|
}
|
|
46688
46705
|
__name$6(toUrlPath, "toUrlPath");
|
|
@@ -70740,7 +70757,7 @@ var require_signal_exit = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
70740
70757
|
return function() {};
|
|
70741
70758
|
};
|
|
70742
70759
|
else {
|
|
70743
|
-
var assert
|
|
70760
|
+
var assert = __require$2("assert");
|
|
70744
70761
|
var signals = require_signals();
|
|
70745
70762
|
var isWin$1 = /^win/i.test(process$2.platform);
|
|
70746
70763
|
var EE = __require$2("events");
|
|
@@ -70760,7 +70777,7 @@ var require_signal_exit = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
70760
70777
|
module.exports = function(cb, opts) {
|
|
70761
70778
|
/* istanbul ignore if */
|
|
70762
70779
|
if (!processOk(global.process)) return function() {};
|
|
70763
|
-
assert
|
|
70780
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
70764
70781
|
if (loaded === false) load();
|
|
70765
70782
|
var ev = "exit";
|
|
70766
70783
|
if (opts && opts.alwaysLast) ev = "afterexit";
|
|
@@ -81039,7 +81056,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
81039
81056
|
//#endregion
|
|
81040
81057
|
//#region ../remote-bindings/dist/index.mjs
|
|
81041
81058
|
var import_undici = require_undici();
|
|
81042
|
-
var version$2 = "0.0.
|
|
81059
|
+
var version$2 = "0.0.26";
|
|
81043
81060
|
var NoDefaultValueProvided = class extends UserError {
|
|
81044
81061
|
constructor() {
|
|
81045
81062
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|