@cloudflare/vitest-plugin 1.1.10 → 1.1.12
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/pool/index.mjs +266 -232
- package/dist/pool/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/pool/index.mjs
CHANGED
|
@@ -15,7 +15,6 @@ import net from "node:net";
|
|
|
15
15
|
import http from "node:http";
|
|
16
16
|
import events, { EventEmitter } from "node:events";
|
|
17
17
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
18
|
-
import { assert as assert$1 } from "node:console";
|
|
19
18
|
import fs$1 from "node:fs/promises";
|
|
20
19
|
import { execFileSync, spawn, spawnSync } from "node:child_process";
|
|
21
20
|
import * as timersPromises from "node:timers/promises";
|
|
@@ -2803,8 +2802,8 @@ function formatConfigSnippet(snippet, configPath, formatted = true) {
|
|
|
2803
2802
|
__name$3(formatConfigSnippet, "formatConfigSnippet");
|
|
2804
2803
|
|
|
2805
2804
|
//#endregion
|
|
2806
|
-
//#region ../workers-utils/dist/chunk-
|
|
2807
|
-
var DEFAULT_COMPAT_DATE = "2026-09-
|
|
2805
|
+
//#region ../workers-utils/dist/chunk-2OPNWQJ5.mjs
|
|
2806
|
+
var DEFAULT_COMPAT_DATE = "2026-09-17";
|
|
2808
2807
|
function assertNever(_value) {}
|
|
2809
2808
|
__name$3(assertNever, "assertNever");
|
|
2810
2809
|
function mapWorkerMetadataBindings(bindings) {
|
|
@@ -4887,7 +4886,7 @@ var require_tree = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
|
|
|
4887
4886
|
//#endregion
|
|
4888
4887
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/util.js
|
|
4889
4888
|
var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/util.js": ((exports, module) => {
|
|
4890
|
-
const assert$
|
|
4889
|
+
const assert$35 = __require$1("node:assert");
|
|
4891
4890
|
const { kDestroyed: kDestroyed$2, kBodyUsed: kBodyUsed$1, kListeners, kBody: kBody$2 } = require_symbols();
|
|
4892
4891
|
const { IncomingMessage } = __require$1("node:http");
|
|
4893
4892
|
const stream$1 = __require$1("node:stream");
|
|
@@ -4905,7 +4904,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
4905
4904
|
this[kBodyUsed$1] = false;
|
|
4906
4905
|
}
|
|
4907
4906
|
async *[Symbol.asyncIterator]() {
|
|
4908
|
-
assert$
|
|
4907
|
+
assert$35(!this[kBodyUsed$1], "disturbed");
|
|
4909
4908
|
this[kBodyUsed$1] = true;
|
|
4910
4909
|
yield* this[kBody$2];
|
|
4911
4910
|
}
|
|
@@ -4918,7 +4917,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
4918
4917
|
function wrapRequestBody$1(body) {
|
|
4919
4918
|
if (isStream$1(body)) {
|
|
4920
4919
|
if (bodyLength(body) === 0) body.on("data", function() {
|
|
4921
|
-
assert$
|
|
4920
|
+
assert$35(false);
|
|
4922
4921
|
});
|
|
4923
4922
|
if (typeof body.readableDidRead !== "boolean") {
|
|
4924
4923
|
body[kBodyUsed$1] = false;
|
|
@@ -5035,7 +5034,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
5035
5034
|
function getHostname(host) {
|
|
5036
5035
|
if (host[0] === "[") {
|
|
5037
5036
|
const idx$1 = host.indexOf("]");
|
|
5038
|
-
assert$
|
|
5037
|
+
assert$35(idx$1 !== -1);
|
|
5039
5038
|
return host.substring(1, idx$1);
|
|
5040
5039
|
}
|
|
5041
5040
|
const idx = host.indexOf(":");
|
|
@@ -5050,7 +5049,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
5050
5049
|
*/
|
|
5051
5050
|
function getServerName$1(host) {
|
|
5052
5051
|
if (!host) return null;
|
|
5053
|
-
assert$
|
|
5052
|
+
assert$35(typeof host === "string");
|
|
5054
5053
|
const servername = getHostname(host);
|
|
5055
5054
|
if (net$5.isIP(servername)) return "";
|
|
5056
5055
|
return servername;
|
|
@@ -5670,7 +5669,7 @@ var require_util$5 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
5670
5669
|
function errorRequest(client, request$1, err) {
|
|
5671
5670
|
try {
|
|
5672
5671
|
request$1.onError(err);
|
|
5673
|
-
assert$
|
|
5672
|
+
assert$35(request$1.aborted);
|
|
5674
5673
|
} catch (err$1) {
|
|
5675
5674
|
client.emit("error", err$1);
|
|
5676
5675
|
}
|
|
@@ -5957,7 +5956,7 @@ var require_diagnostics = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
5957
5956
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/request.js
|
|
5958
5957
|
var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/request.js": ((exports, module) => {
|
|
5959
5958
|
const { InvalidArgumentError: InvalidArgumentError$36, NotSupportedError: NotSupportedError$1 } = require_errors();
|
|
5960
|
-
const assert$
|
|
5959
|
+
const assert$34 = __require$1("node:assert");
|
|
5961
5960
|
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();
|
|
5962
5961
|
const { channels: channels$6 } = require_diagnostics();
|
|
5963
5962
|
const { headerNameLowerCasedRecord } = require_constants$6();
|
|
@@ -6064,8 +6063,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
6064
6063
|
}
|
|
6065
6064
|
}
|
|
6066
6065
|
onConnect(abort$1) {
|
|
6067
|
-
assert$
|
|
6068
|
-
assert$
|
|
6066
|
+
assert$34(!this.aborted);
|
|
6067
|
+
assert$34(!this.completed);
|
|
6069
6068
|
if (this.error) abort$1(this.error);
|
|
6070
6069
|
else {
|
|
6071
6070
|
this.abort = abort$1;
|
|
@@ -6076,8 +6075,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
6076
6075
|
return this[kHandler].onResponseStarted?.();
|
|
6077
6076
|
}
|
|
6078
6077
|
onHeaders(statusCode, headers, resume$2, statusText) {
|
|
6079
|
-
assert$
|
|
6080
|
-
assert$
|
|
6078
|
+
assert$34(!this.aborted);
|
|
6079
|
+
assert$34(!this.completed);
|
|
6081
6080
|
if (channels$6.headers.hasSubscribers) channels$6.headers.publish({
|
|
6082
6081
|
request: this,
|
|
6083
6082
|
response: {
|
|
@@ -6093,8 +6092,8 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
6093
6092
|
}
|
|
6094
6093
|
}
|
|
6095
6094
|
onData(chunk) {
|
|
6096
|
-
assert$
|
|
6097
|
-
assert$
|
|
6095
|
+
assert$34(!this.aborted);
|
|
6096
|
+
assert$34(!this.completed);
|
|
6098
6097
|
if (channels$6.bodyChunkReceived.hasSubscribers) channels$6.bodyChunkReceived.publish({
|
|
6099
6098
|
request: this,
|
|
6100
6099
|
chunk
|
|
@@ -6107,14 +6106,14 @@ var require_request$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
6107
6106
|
}
|
|
6108
6107
|
}
|
|
6109
6108
|
onUpgrade(statusCode, headers, socket) {
|
|
6110
|
-
assert$
|
|
6111
|
-
assert$
|
|
6109
|
+
assert$34(!this.aborted);
|
|
6110
|
+
assert$34(!this.completed);
|
|
6112
6111
|
return this[kHandler].onUpgrade(statusCode, headers, socket);
|
|
6113
6112
|
}
|
|
6114
6113
|
onComplete(trailers) {
|
|
6115
6114
|
this.onFinally();
|
|
6116
|
-
assert$
|
|
6117
|
-
assert$
|
|
6115
|
+
assert$34(!this.aborted);
|
|
6116
|
+
assert$34(!this.completed);
|
|
6118
6117
|
this.completed = true;
|
|
6119
6118
|
if (channels$6.trailers.hasSubscribers) channels$6.trailers.publish({
|
|
6120
6119
|
request: this,
|
|
@@ -6505,7 +6504,7 @@ var require_dispatcher_base = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
6505
6504
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/connect.js
|
|
6506
6505
|
var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/core/connect.js": ((exports, module) => {
|
|
6507
6506
|
const net$4 = __require$1("node:net");
|
|
6508
|
-
const assert$
|
|
6507
|
+
const assert$33 = __require$1("node:assert");
|
|
6509
6508
|
const util$23 = require_util$5();
|
|
6510
6509
|
const { InvalidArgumentError: InvalidArgumentError$32 } = require_errors();
|
|
6511
6510
|
let tls$2;
|
|
@@ -6553,7 +6552,7 @@ var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
6553
6552
|
if (!tls$2) tls$2 = __require$1("node:tls");
|
|
6554
6553
|
servername = servername || options.servername || util$23.getServerName(host) || null;
|
|
6555
6554
|
const sessionKey = servername || hostname$1;
|
|
6556
|
-
assert$
|
|
6555
|
+
assert$33(sessionKey);
|
|
6557
6556
|
const session = customSession || sessionCache.get(sessionKey) || null;
|
|
6558
6557
|
port = port || 443;
|
|
6559
6558
|
socket = tls$2.connect({
|
|
@@ -6571,7 +6570,7 @@ var require_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
6571
6570
|
sessionCache.set(sessionKey, session$1);
|
|
6572
6571
|
});
|
|
6573
6572
|
} else {
|
|
6574
|
-
assert$
|
|
6573
|
+
assert$33(!httpSocket, "httpSocket can only be sent on TLS update");
|
|
6575
6574
|
port = port || 80;
|
|
6576
6575
|
socket = net$4.connect({
|
|
6577
6576
|
highWaterMark: 64 * 1024,
|
|
@@ -7509,7 +7508,7 @@ var require_encoding = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7509
7508
|
//#endregion
|
|
7510
7509
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/infra/index.js
|
|
7511
7510
|
var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/infra/index.js": ((exports, module) => {
|
|
7512
|
-
const assert$
|
|
7511
|
+
const assert$32 = __require$1("node:assert");
|
|
7513
7512
|
const { utf8DecodeBytes: utf8DecodeBytes$2 } = require_encoding();
|
|
7514
7513
|
/**
|
|
7515
7514
|
* @param {(char: string) => boolean} condition
|
|
@@ -7602,7 +7601,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
7602
7601
|
* @see https://infra.spec.whatwg.org/#isomorphic-encode
|
|
7603
7602
|
*/
|
|
7604
7603
|
function isomorphicEncode$3(input) {
|
|
7605
|
-
assert$
|
|
7604
|
+
assert$32(!invalidIsomorphicEncodeValueRegex.test(input));
|
|
7606
7605
|
return input;
|
|
7607
7606
|
}
|
|
7608
7607
|
/**
|
|
@@ -7640,7 +7639,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
7640
7639
|
function serializeJavascriptValueToJSONString$1(value) {
|
|
7641
7640
|
const result = JSON.stringify(value);
|
|
7642
7641
|
if (result === void 0) throw new TypeError("Value is not JSON serializable");
|
|
7643
|
-
assert$
|
|
7642
|
+
assert$32(typeof result === "string");
|
|
7644
7643
|
return result;
|
|
7645
7644
|
}
|
|
7646
7645
|
module.exports = {
|
|
@@ -7660,7 +7659,7 @@ var require_infra = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
7660
7659
|
//#endregion
|
|
7661
7660
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/fetch/data-url.js
|
|
7662
7661
|
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) => {
|
|
7663
|
-
const assert$
|
|
7662
|
+
const assert$31 = __require$1("node:assert");
|
|
7664
7663
|
const { forgivingBase64, collectASequenceOfCodePoints: collectASequenceOfCodePoints$1, collectASequenceOfCodePointsFast: collectASequenceOfCodePointsFast$2, isomorphicDecode: isomorphicDecode$1, removeASCIIWhitespace, removeChars: removeChars$2 } = require_infra();
|
|
7665
7664
|
const encoder = new TextEncoder();
|
|
7666
7665
|
/**
|
|
@@ -7674,7 +7673,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7674
7673
|
const HTTP_QUOTED_STRING_TOKENS = /^[\u0009\u0020-\u007E\u0080-\u00FF]+$/u;
|
|
7675
7674
|
/** @param {URL} dataURL */
|
|
7676
7675
|
function dataURLProcessor$1(dataURL) {
|
|
7677
|
-
assert$
|
|
7676
|
+
assert$31(dataURL.protocol === "data:");
|
|
7678
7677
|
let input = URLSerializer$4(dataURL, true);
|
|
7679
7678
|
input = input.slice(5);
|
|
7680
7679
|
const position = { position: 0 };
|
|
@@ -7796,7 +7795,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7796
7795
|
function collectAnHTTPQuotedString$1(input, position, extractValue$2 = false) {
|
|
7797
7796
|
const positionStart = position.position;
|
|
7798
7797
|
let value = "";
|
|
7799
|
-
assert$
|
|
7798
|
+
assert$31(input[position.position] === "\"");
|
|
7800
7799
|
position.position++;
|
|
7801
7800
|
while (true) {
|
|
7802
7801
|
value += collectASequenceOfCodePoints$1((char) => char !== "\"" && char !== "\\", input, position);
|
|
@@ -7811,7 +7810,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7811
7810
|
value += input[position.position];
|
|
7812
7811
|
position.position++;
|
|
7813
7812
|
} else {
|
|
7814
|
-
assert$
|
|
7813
|
+
assert$31(quoteOrBackslash === "\"");
|
|
7815
7814
|
break;
|
|
7816
7815
|
}
|
|
7817
7816
|
}
|
|
@@ -7822,7 +7821,7 @@ var require_data_url = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
7822
7821
|
* @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
|
|
7823
7822
|
*/
|
|
7824
7823
|
function serializeAMimeType$3(mimeType) {
|
|
7825
|
-
assert$
|
|
7824
|
+
assert$31(mimeType !== "failure");
|
|
7826
7825
|
const { parameters, essence } = mimeType;
|
|
7827
7826
|
let serialization = essence;
|
|
7828
7827
|
for (let [name, value] of parameters.entries()) {
|
|
@@ -8001,7 +8000,7 @@ var require_runtime_features = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
8001
8000
|
//#endregion
|
|
8002
8001
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js
|
|
8003
8002
|
var require_webidl = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/webidl/index.js": ((exports, module) => {
|
|
8004
|
-
const assert$
|
|
8003
|
+
const assert$30 = __require$1("node:assert");
|
|
8005
8004
|
const { types, inspect: inspect$1 } = __require$1("node:util");
|
|
8006
8005
|
const { runtimeFeatures: runtimeFeatures$7 } = require_runtime_features();
|
|
8007
8006
|
const UNDEFINED$1 = 1;
|
|
@@ -8316,7 +8315,7 @@ var require_webidl = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8316
8315
|
offset = jsBufferSource.byteOffset;
|
|
8317
8316
|
length = jsBufferSource.byteLength;
|
|
8318
8317
|
} else {
|
|
8319
|
-
assert$
|
|
8318
|
+
assert$30(types.isAnyArrayBuffer(jsBufferSource));
|
|
8320
8319
|
length = jsBufferSource.byteLength;
|
|
8321
8320
|
}
|
|
8322
8321
|
if (jsArrayBuffer.detached) return new Uint8Array(0);
|
|
@@ -8510,7 +8509,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8510
8509
|
const { collectAnHTTPQuotedString, parseMIMEType: parseMIMEType$2 } = require_data_url();
|
|
8511
8510
|
const { performance: performance$1 } = __require$1("node:perf_hooks");
|
|
8512
8511
|
const { ReadableStreamFrom: ReadableStreamFrom$2, isValidHTTPToken: isValidHTTPToken$2, normalizedMethodRecordsBase: normalizedMethodRecordsBase$1 } = require_util$5();
|
|
8513
|
-
const assert$
|
|
8512
|
+
const assert$29 = __require$1("node:assert");
|
|
8514
8513
|
const { isUint8Array: isUint8Array$2 } = __require$1("node:util/types");
|
|
8515
8514
|
const { webidl: webidl$15 } = require_webidl();
|
|
8516
8515
|
const { isomorphicEncode: isomorphicEncode$2, collectASequenceOfCodePoints, removeChars: removeChars$1 } = require_infra();
|
|
@@ -8697,7 +8696,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8697
8696
|
*/
|
|
8698
8697
|
function determineRequestsReferrer$1(request$1) {
|
|
8699
8698
|
const policy = request$1.referrerPolicy;
|
|
8700
|
-
assert$
|
|
8699
|
+
assert$29(policy);
|
|
8701
8700
|
let referrerSource = null;
|
|
8702
8701
|
if (request$1.referrer === "client") {
|
|
8703
8702
|
const globalOrigin$1 = getGlobalOrigin$1();
|
|
@@ -8750,7 +8749,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
8750
8749
|
* @param {boolean} [originOnly=false]
|
|
8751
8750
|
*/
|
|
8752
8751
|
function stripURLForReferrer(url$2, originOnly = false) {
|
|
8753
|
-
assert$
|
|
8752
|
+
assert$29(webidl$15.is.URL(url$2));
|
|
8754
8753
|
url$2 = new URL(url$2);
|
|
8755
8754
|
if (urlIsLocal$1(url$2)) return "no-referrer";
|
|
8756
8755
|
url$2.username = "";
|
|
@@ -9042,7 +9041,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
9042
9041
|
* @returns {boolean}
|
|
9043
9042
|
*/
|
|
9044
9043
|
function urlIsLocal$1(url$2) {
|
|
9045
|
-
assert$
|
|
9044
|
+
assert$29("protocol" in url$2);
|
|
9046
9045
|
const protocol = url$2.protocol;
|
|
9047
9046
|
return protocol === "about:" || protocol === "blob:" || protocol === "data:";
|
|
9048
9047
|
}
|
|
@@ -9058,7 +9057,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
9058
9057
|
* @param {URL} url
|
|
9059
9058
|
*/
|
|
9060
9059
|
function urlIsHttpHttpsScheme$2(url$2) {
|
|
9061
|
-
assert$
|
|
9060
|
+
assert$29("protocol" in url$2);
|
|
9062
9061
|
const protocol = url$2.protocol;
|
|
9063
9062
|
return protocol === "http:" || protocol === "https:";
|
|
9064
9063
|
}
|
|
@@ -9191,7 +9190,7 @@ var require_util$4 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
9191
9190
|
temporaryValue += collectAnHTTPQuotedString(input, position);
|
|
9192
9191
|
if (position.position < input.length) continue;
|
|
9193
9192
|
} else {
|
|
9194
|
-
assert$
|
|
9193
|
+
assert$29(input.charCodeAt(position.position) === 44);
|
|
9195
9194
|
position.position++;
|
|
9196
9195
|
}
|
|
9197
9196
|
temporaryValue = removeChars$1(temporaryValue, true, true, (char) => char === 9 || char === 32);
|
|
@@ -9445,7 +9444,7 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
9445
9444
|
const { HTTP_TOKEN_CODEPOINTS } = require_data_url();
|
|
9446
9445
|
const { makeEntry } = require_formdata();
|
|
9447
9446
|
const { webidl: webidl$13 } = require_webidl();
|
|
9448
|
-
const assert$
|
|
9447
|
+
const assert$28 = __require$1("node:assert");
|
|
9449
9448
|
const { isomorphicDecode } = require_infra();
|
|
9450
9449
|
const dd = Buffer.from("--");
|
|
9451
9450
|
const decoder = new TextDecoder();
|
|
@@ -9476,7 +9475,7 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
9476
9475
|
* @param {ReturnType<import('./data-url')['parseMIMEType']>} mimeType
|
|
9477
9476
|
*/
|
|
9478
9477
|
function multipartFormDataParser$1(input, mimeType) {
|
|
9479
|
-
assert$
|
|
9478
|
+
assert$28(mimeType !== "failure" && mimeType.essence === "multipart/form-data");
|
|
9480
9479
|
const boundaryString = mimeType.parameters.get("boundary");
|
|
9481
9480
|
if (boundaryString === void 0) throw parsingError("missing boundary in content-type header");
|
|
9482
9481
|
const boundary = Buffer.from(`--${boundaryString}`, "utf8");
|
|
@@ -9509,8 +9508,8 @@ var require_formdata_parser = /* @__PURE__ */ __commonJS$2({ "../../node_modules
|
|
|
9509
9508
|
if (!isAsciiString(contentType)) contentType = "";
|
|
9510
9509
|
value = new File([body], filename, { type: contentType });
|
|
9511
9510
|
} else value = decoderIgnoreBOM.decode(Buffer.from(body));
|
|
9512
|
-
assert$
|
|
9513
|
-
assert$
|
|
9511
|
+
assert$28(webidl$13.is.USVString(name));
|
|
9512
|
+
assert$28(typeof value === "string" && webidl$13.is.USVString(value) || webidl$13.is.File(value));
|
|
9514
9513
|
entryList.push(makeEntry(name, value, filename));
|
|
9515
9514
|
}
|
|
9516
9515
|
}
|
|
@@ -9722,7 +9721,7 @@ var require_body = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
|
|
|
9722
9721
|
const { ReadableStreamFrom: ReadableStreamFrom$1, readableStreamClose: readableStreamClose$1, fullyReadBody: fullyReadBody$1, extractMimeType: extractMimeType$1 } = require_util$4();
|
|
9723
9722
|
const { FormData: FormData$2, setFormDataState } = require_formdata();
|
|
9724
9723
|
const { webidl: webidl$12 } = require_webidl();
|
|
9725
|
-
const assert$
|
|
9724
|
+
const assert$27 = __require$1("node:assert");
|
|
9726
9725
|
const { isErrored: isErrored$1, isDisturbed: isDisturbed$2 } = __require$1("node:stream");
|
|
9727
9726
|
const { isUint8Array: isUint8Array$1 } = __require$1("node:util/types");
|
|
9728
9727
|
const { serializeAMimeType: serializeAMimeType$2 } = require_data_url();
|
|
@@ -9760,7 +9759,7 @@ var require_body = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undi
|
|
|
9760
9759
|
cancel() {},
|
|
9761
9760
|
type: "bytes"
|
|
9762
9761
|
});
|
|
9763
|
-
assert$
|
|
9762
|
+
assert$27(webidl$12.is.ReadableStream(stream$2));
|
|
9764
9763
|
let action = null;
|
|
9765
9764
|
let source = null;
|
|
9766
9765
|
let length = null;
|
|
@@ -9849,8 +9848,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r\n\r\n`);
|
|
|
9849
9848
|
*/
|
|
9850
9849
|
function safelyExtractBody$1(object$1, keepalive = false) {
|
|
9851
9850
|
if (webidl$12.is.ReadableStream(object$1)) {
|
|
9852
|
-
assert$
|
|
9853
|
-
assert$
|
|
9851
|
+
assert$27(!util$22.isDisturbed(object$1), "The body has already been consumed.");
|
|
9852
|
+
assert$27(!object$1.locked, "The stream is locked.");
|
|
9854
9853
|
}
|
|
9855
9854
|
return extractBody$5(object$1, keepalive);
|
|
9856
9855
|
}
|
|
@@ -9977,7 +9976,7 @@ Content-Type: ${value.type || "application/octet-stream"}\r\n\r\n`);
|
|
|
9977
9976
|
//#endregion
|
|
9978
9977
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h1.js
|
|
9979
9978
|
var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h1.js": ((exports, module) => {
|
|
9980
|
-
const assert$
|
|
9979
|
+
const assert$26 = __require$1("node:assert");
|
|
9981
9980
|
const util$21 = require_util$5();
|
|
9982
9981
|
const { channels: channels$5 } = require_diagnostics();
|
|
9983
9982
|
const timers = require_timers();
|
|
@@ -10006,35 +10005,35 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10006
10005
|
return 0;
|
|
10007
10006
|
},
|
|
10008
10007
|
wasm_on_status: (p$1, at$1, len) => {
|
|
10009
|
-
assert$
|
|
10008
|
+
assert$26(currentParser.ptr === p$1);
|
|
10010
10009
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
10011
10010
|
return currentParser.onStatus(new FastBuffer$3(currentBufferRef.buffer, start, len));
|
|
10012
10011
|
},
|
|
10013
10012
|
wasm_on_message_begin: (p$1) => {
|
|
10014
|
-
assert$
|
|
10013
|
+
assert$26(currentParser.ptr === p$1);
|
|
10015
10014
|
return currentParser.onMessageBegin();
|
|
10016
10015
|
},
|
|
10017
10016
|
wasm_on_header_field: (p$1, at$1, len) => {
|
|
10018
|
-
assert$
|
|
10017
|
+
assert$26(currentParser.ptr === p$1);
|
|
10019
10018
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
10020
10019
|
return currentParser.onHeaderField(new FastBuffer$3(currentBufferRef.buffer, start, len));
|
|
10021
10020
|
},
|
|
10022
10021
|
wasm_on_header_value: (p$1, at$1, len) => {
|
|
10023
|
-
assert$
|
|
10022
|
+
assert$26(currentParser.ptr === p$1);
|
|
10024
10023
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
10025
10024
|
return currentParser.onHeaderValue(new FastBuffer$3(currentBufferRef.buffer, start, len));
|
|
10026
10025
|
},
|
|
10027
10026
|
wasm_on_headers_complete: (p$1, statusCode, upgrade$1, shouldKeepAlive) => {
|
|
10028
|
-
assert$
|
|
10027
|
+
assert$26(currentParser.ptr === p$1);
|
|
10029
10028
|
return currentParser.onHeadersComplete(statusCode, upgrade$1 === 1, shouldKeepAlive === 1);
|
|
10030
10029
|
},
|
|
10031
10030
|
wasm_on_body: (p$1, at$1, len) => {
|
|
10032
|
-
assert$
|
|
10031
|
+
assert$26(currentParser.ptr === p$1);
|
|
10033
10032
|
const start = at$1 - currentBufferPtr + currentBufferRef.byteOffset;
|
|
10034
10033
|
return currentParser.onBody(new FastBuffer$3(currentBufferRef.buffer, start, len));
|
|
10035
10034
|
},
|
|
10036
10035
|
wasm_on_message_complete: (p$1) => {
|
|
10037
|
-
assert$
|
|
10036
|
+
assert$26(currentParser.ptr === p$1);
|
|
10038
10037
|
return currentParser.onMessageComplete();
|
|
10039
10038
|
}
|
|
10040
10039
|
} });
|
|
@@ -10107,10 +10106,10 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10107
10106
|
}
|
|
10108
10107
|
resume() {
|
|
10109
10108
|
if (this.socket.destroyed || !this.paused) return;
|
|
10110
|
-
assert$
|
|
10111
|
-
assert$
|
|
10109
|
+
assert$26(this.ptr != null);
|
|
10110
|
+
assert$26(currentParser === null);
|
|
10112
10111
|
this.llhttp.llhttp_resume(this.ptr);
|
|
10113
|
-
assert$
|
|
10112
|
+
assert$26(this.timeoutType === TIMEOUT_BODY);
|
|
10114
10113
|
if (this.timeout) {
|
|
10115
10114
|
if (this.timeout.refresh) this.timeout.refresh();
|
|
10116
10115
|
}
|
|
@@ -10129,9 +10128,9 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10129
10128
|
* @param {Buffer} chunk
|
|
10130
10129
|
*/
|
|
10131
10130
|
execute(chunk) {
|
|
10132
|
-
assert$
|
|
10133
|
-
assert$
|
|
10134
|
-
assert$
|
|
10131
|
+
assert$26(currentParser === null);
|
|
10132
|
+
assert$26(this.ptr != null);
|
|
10133
|
+
assert$26(!this.paused);
|
|
10135
10134
|
const { socket, llhttp } = this;
|
|
10136
10135
|
if (chunk.length > currentBufferSize) {
|
|
10137
10136
|
if (currentBufferPtr) llhttp.free(currentBufferPtr);
|
|
@@ -10162,9 +10161,9 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10162
10161
|
}
|
|
10163
10162
|
}
|
|
10164
10163
|
finish() {
|
|
10165
|
-
assert$
|
|
10166
|
-
assert$
|
|
10167
|
-
assert$
|
|
10164
|
+
assert$26(currentParser === null);
|
|
10165
|
+
assert$26(this.ptr != null);
|
|
10166
|
+
assert$26(!this.paused);
|
|
10168
10167
|
const { llhttp } = this;
|
|
10169
10168
|
let ret;
|
|
10170
10169
|
try {
|
|
@@ -10192,8 +10191,8 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10192
10191
|
return new HTTPParserError(message, constants$3.ERROR[ret], data);
|
|
10193
10192
|
}
|
|
10194
10193
|
destroy() {
|
|
10195
|
-
assert$
|
|
10196
|
-
assert$
|
|
10194
|
+
assert$26(currentParser === null);
|
|
10195
|
+
assert$26(this.ptr != null);
|
|
10197
10196
|
this.llhttp.llhttp_free(this.ptr);
|
|
10198
10197
|
this.ptr = null;
|
|
10199
10198
|
this.timeout && timers.clearTimeout(this.timeout);
|
|
@@ -10267,14 +10266,14 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10267
10266
|
*/
|
|
10268
10267
|
onUpgrade(head) {
|
|
10269
10268
|
const { upgrade: upgrade$1, client, socket, headers, statusCode } = this;
|
|
10270
|
-
assert$
|
|
10271
|
-
assert$
|
|
10272
|
-
assert$
|
|
10273
|
-
assert$
|
|
10274
|
-
assert$
|
|
10269
|
+
assert$26(upgrade$1);
|
|
10270
|
+
assert$26(client[kSocket$1] === socket);
|
|
10271
|
+
assert$26(!socket.destroyed);
|
|
10272
|
+
assert$26(!this.paused);
|
|
10273
|
+
assert$26((headers.length & 1) === 0);
|
|
10275
10274
|
const request$1 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10276
|
-
assert$
|
|
10277
|
-
assert$
|
|
10275
|
+
assert$26(request$1);
|
|
10276
|
+
assert$26(request$1.upgrade || request$1.method === "CONNECT");
|
|
10278
10277
|
this.statusCode = 0;
|
|
10279
10278
|
this.statusText = "";
|
|
10280
10279
|
this.shouldKeepAlive = false;
|
|
@@ -10312,8 +10311,8 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10312
10311
|
}
|
|
10313
10312
|
const request$1 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10314
10313
|
if (!request$1) return -1;
|
|
10315
|
-
assert$
|
|
10316
|
-
assert$
|
|
10314
|
+
assert$26(!this.upgrade);
|
|
10315
|
+
assert$26(this.statusCode < 200);
|
|
10317
10316
|
if (statusCode === 100) {
|
|
10318
10317
|
util$21.destroy(socket, new SocketError$3("bad response", util$21.getSocketInfo(socket)));
|
|
10319
10318
|
return -1;
|
|
@@ -10322,7 +10321,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10322
10321
|
util$21.destroy(socket, new SocketError$3("bad upgrade", util$21.getSocketInfo(socket)));
|
|
10323
10322
|
return -1;
|
|
10324
10323
|
}
|
|
10325
|
-
assert$
|
|
10324
|
+
assert$26(this.timeoutType === TIMEOUT_HEADERS);
|
|
10326
10325
|
this.statusCode = statusCode;
|
|
10327
10326
|
this.shouldKeepAlive = shouldKeepAlive || request$1.method === "HEAD" && !socket[kReset$1] && this.connection.toLowerCase() === "keep-alive";
|
|
10328
10327
|
if (this.statusCode >= 200) {
|
|
@@ -10332,16 +10331,16 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10332
10331
|
if (this.timeout.refresh) this.timeout.refresh();
|
|
10333
10332
|
}
|
|
10334
10333
|
if (request$1.method === "CONNECT") {
|
|
10335
|
-
assert$
|
|
10334
|
+
assert$26(client[kRunning$4] === 1);
|
|
10336
10335
|
this.upgrade = true;
|
|
10337
10336
|
return 2;
|
|
10338
10337
|
}
|
|
10339
10338
|
if (upgrade$1) {
|
|
10340
|
-
assert$
|
|
10339
|
+
assert$26(client[kRunning$4] === 1);
|
|
10341
10340
|
this.upgrade = true;
|
|
10342
10341
|
return 2;
|
|
10343
10342
|
}
|
|
10344
|
-
assert$
|
|
10343
|
+
assert$26((this.headers.length & 1) === 0);
|
|
10345
10344
|
this.headers = [];
|
|
10346
10345
|
this.headersSize = 0;
|
|
10347
10346
|
if (this.shouldKeepAlive && client[kPipelining$1]) {
|
|
@@ -10370,12 +10369,12 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10370
10369
|
const { client, socket, statusCode, maxResponseSize } = this;
|
|
10371
10370
|
if (socket.destroyed) return -1;
|
|
10372
10371
|
const request$1 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10373
|
-
assert$
|
|
10374
|
-
assert$
|
|
10372
|
+
assert$26(request$1);
|
|
10373
|
+
assert$26(this.timeoutType === TIMEOUT_BODY);
|
|
10375
10374
|
if (this.timeout) {
|
|
10376
10375
|
if (this.timeout.refresh) this.timeout.refresh();
|
|
10377
10376
|
}
|
|
10378
|
-
assert$
|
|
10377
|
+
assert$26(statusCode >= 200);
|
|
10379
10378
|
if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
|
|
10380
10379
|
util$21.destroy(socket, new ResponseExceededMaxSizeError());
|
|
10381
10380
|
return -1;
|
|
@@ -10391,10 +10390,10 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10391
10390
|
const { client, socket, statusCode, upgrade: upgrade$1, headers, contentLength, bytesRead, shouldKeepAlive } = this;
|
|
10392
10391
|
if (socket.destroyed && (!statusCode || shouldKeepAlive)) return -1;
|
|
10393
10392
|
if (upgrade$1) return 0;
|
|
10394
|
-
assert$
|
|
10395
|
-
assert$
|
|
10393
|
+
assert$26(statusCode >= 100);
|
|
10394
|
+
assert$26((this.headers.length & 1) === 0);
|
|
10396
10395
|
const request$1 = client[kQueue$3][client[kRunningIdx$2]];
|
|
10397
|
-
assert$
|
|
10396
|
+
assert$26(request$1);
|
|
10398
10397
|
this.statusCode = 0;
|
|
10399
10398
|
this.statusText = "";
|
|
10400
10399
|
this.bytesRead = 0;
|
|
@@ -10412,7 +10411,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10412
10411
|
client[kQueue$3][client[kRunningIdx$2]++] = null;
|
|
10413
10412
|
socket[kSocketUsed] = client[kPending$3] === 0;
|
|
10414
10413
|
if (socket[kWriting]) {
|
|
10415
|
-
assert$
|
|
10414
|
+
assert$26(client[kRunning$4] === 0);
|
|
10416
10415
|
util$21.destroy(socket, new InformationalError$3("reset"));
|
|
10417
10416
|
return constants$3.ERROR.PAUSED;
|
|
10418
10417
|
} else if (!shouldKeepAlive) {
|
|
@@ -10432,13 +10431,13 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10432
10431
|
const { socket, timeoutType, client, paused } = parser;
|
|
10433
10432
|
if (timeoutType === TIMEOUT_HEADERS) {
|
|
10434
10433
|
if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning$4] > 1) {
|
|
10435
|
-
assert$
|
|
10434
|
+
assert$26(!paused, "cannot be paused while waiting for headers");
|
|
10436
10435
|
util$21.destroy(socket, new HeadersTimeoutError());
|
|
10437
10436
|
}
|
|
10438
10437
|
} else if (timeoutType === TIMEOUT_BODY) {
|
|
10439
10438
|
if (!paused) util$21.destroy(socket, new BodyTimeoutError());
|
|
10440
10439
|
} else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
|
|
10441
|
-
assert$
|
|
10440
|
+
assert$26(client[kRunning$4] === 0 && client[kKeepAliveTimeoutValue$1]);
|
|
10442
10441
|
util$21.destroy(socket, new InformationalError$3("socket idle timeout"));
|
|
10443
10442
|
}
|
|
10444
10443
|
}
|
|
@@ -10497,7 +10496,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10497
10496
|
};
|
|
10498
10497
|
}
|
|
10499
10498
|
function onHttpSocketError(err) {
|
|
10500
|
-
assert$
|
|
10499
|
+
assert$26(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
10501
10500
|
const parser = this[kParser];
|
|
10502
10501
|
if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
|
|
10503
10502
|
const parserErr = parser.finish();
|
|
@@ -10535,7 +10534,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10535
10534
|
client[kSocket$1] = null;
|
|
10536
10535
|
client[kHTTPContext$2] = null;
|
|
10537
10536
|
if (client.destroyed) {
|
|
10538
|
-
assert$
|
|
10537
|
+
assert$26(client[kPending$3] === 0);
|
|
10539
10538
|
const requests = client[kQueue$3].splice(client[kRunningIdx$2]);
|
|
10540
10539
|
for (let i = 0; i < requests.length; i++) {
|
|
10541
10540
|
const request$1 = requests[i];
|
|
@@ -10547,7 +10546,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10547
10546
|
util$21.errorRequest(client, request$1, err);
|
|
10548
10547
|
}
|
|
10549
10548
|
client[kPendingIdx$2] = client[kRunningIdx$2];
|
|
10550
|
-
assert$
|
|
10549
|
+
assert$26(client[kRunning$4] === 0);
|
|
10551
10550
|
client.emit("disconnect", client[kUrl$7], [client], err);
|
|
10552
10551
|
client[kResume$3]();
|
|
10553
10552
|
}
|
|
@@ -10701,7 +10700,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10701
10700
|
else writeBlob$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload);
|
|
10702
10701
|
else if (util$21.isStream(body)) writeStream$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload);
|
|
10703
10702
|
else if (util$21.isIterable(body)) writeIterable$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload);
|
|
10704
|
-
else assert$
|
|
10703
|
+
else assert$26(false);
|
|
10705
10704
|
return true;
|
|
10706
10705
|
}
|
|
10707
10706
|
/**
|
|
@@ -10715,7 +10714,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10715
10714
|
* @param {boolean} expectsPayload
|
|
10716
10715
|
*/
|
|
10717
10716
|
function writeStream$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload) {
|
|
10718
|
-
assert$
|
|
10717
|
+
assert$26(contentLength !== 0 || client[kRunning$4] === 0, "stream body cannot be pipelined");
|
|
10719
10718
|
let finished$2 = false;
|
|
10720
10719
|
const writer = new AsyncWriter({
|
|
10721
10720
|
abort: abort$1,
|
|
@@ -10764,7 +10763,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10764
10763
|
const onFinished = function(err) {
|
|
10765
10764
|
if (finished$2) return;
|
|
10766
10765
|
finished$2 = true;
|
|
10767
|
-
assert$
|
|
10766
|
+
assert$26(socket.destroyed || socket[kWriting] && client[kRunning$4] <= 1);
|
|
10768
10767
|
socket.off("drain", onDrain).off("error", onFinished);
|
|
10769
10768
|
body.removeListener("data", onData).removeListener("end", onFinished).removeListener("close", onClose);
|
|
10770
10769
|
if (!err) try {
|
|
@@ -10804,11 +10803,11 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10804
10803
|
try {
|
|
10805
10804
|
if (!body) if (contentLength === 0) socket.write(`${header}content-length: 0\r\n\r\n`, "latin1");
|
|
10806
10805
|
else {
|
|
10807
|
-
assert$
|
|
10806
|
+
assert$26(contentLength === null, "no body must not have content length");
|
|
10808
10807
|
socket.write(`${header}\r\n`, "latin1");
|
|
10809
10808
|
}
|
|
10810
10809
|
else if (util$21.isBuffer(body)) {
|
|
10811
|
-
assert$
|
|
10810
|
+
assert$26(contentLength === body.byteLength, "buffer body must have content length");
|
|
10812
10811
|
socket.cork();
|
|
10813
10812
|
socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, "latin1");
|
|
10814
10813
|
socket.write(body);
|
|
@@ -10834,7 +10833,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10834
10833
|
* @returns {Promise<void>}
|
|
10835
10834
|
*/
|
|
10836
10835
|
async function writeBlob$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload) {
|
|
10837
|
-
assert$
|
|
10836
|
+
assert$26(contentLength === body.size, "blob body must have content length");
|
|
10838
10837
|
try {
|
|
10839
10838
|
if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError$1();
|
|
10840
10839
|
const buffer$1 = Buffer.from(await body.arrayBuffer());
|
|
@@ -10862,7 +10861,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10862
10861
|
* @returns {Promise<void>}
|
|
10863
10862
|
*/
|
|
10864
10863
|
async function writeIterable$1(abort$1, body, client, request$1, socket, contentLength, header, expectsPayload) {
|
|
10865
|
-
assert$
|
|
10864
|
+
assert$26(contentLength !== 0 || client[kRunning$4] === 0, "iterator body cannot be pipelined");
|
|
10866
10865
|
let callback = null;
|
|
10867
10866
|
function onDrain() {
|
|
10868
10867
|
if (callback) {
|
|
@@ -10872,7 +10871,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10872
10871
|
}
|
|
10873
10872
|
}
|
|
10874
10873
|
const waitForDrain = () => new Promise((resolve$3, reject) => {
|
|
10875
|
-
assert$
|
|
10874
|
+
assert$26(callback === null);
|
|
10876
10875
|
if (socket[kError$4]) reject(socket[kError$4]);
|
|
10877
10876
|
else callback = resolve$3;
|
|
10878
10877
|
});
|
|
@@ -10980,7 +10979,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10980
10979
|
const { socket, client, abort: abort$1 } = this;
|
|
10981
10980
|
socket[kWriting] = false;
|
|
10982
10981
|
if (err) {
|
|
10983
|
-
assert$
|
|
10982
|
+
assert$26(client[kRunning$4] <= 1, "pipeline should only contain this request");
|
|
10984
10983
|
abort$1(err);
|
|
10985
10984
|
}
|
|
10986
10985
|
}
|
|
@@ -10991,7 +10990,7 @@ var require_client_h1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
10991
10990
|
//#endregion
|
|
10992
10991
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h2.js
|
|
10993
10992
|
var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client-h2.js": ((exports, module) => {
|
|
10994
|
-
const assert$
|
|
10993
|
+
const assert$25 = __require$1("node:assert");
|
|
10995
10994
|
const { pipeline: pipeline$4 } = __require$1("node:stream");
|
|
10996
10995
|
const util$20 = require_util$5();
|
|
10997
10996
|
const { RequestContentLengthMismatchError, RequestAbortedError: RequestAbortedError$7, SocketError: SocketError$2, InformationalError: InformationalError$2, InvalidArgumentError: InvalidArgumentError$30 } = require_errors();
|
|
@@ -11124,7 +11123,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11124
11123
|
}
|
|
11125
11124
|
}
|
|
11126
11125
|
function onHttp2SessionError(err) {
|
|
11127
|
-
assert$
|
|
11126
|
+
assert$25(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
11128
11127
|
this[kSocket][kError$3] = err;
|
|
11129
11128
|
this[kClient$2][kOnError$1](err);
|
|
11130
11129
|
}
|
|
@@ -11162,7 +11161,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11162
11161
|
util$20.errorRequest(client, request$1, err);
|
|
11163
11162
|
client[kPendingIdx$1] = client[kRunningIdx$1];
|
|
11164
11163
|
}
|
|
11165
|
-
assert$
|
|
11164
|
+
assert$25(client[kRunning$3] === 0);
|
|
11166
11165
|
client.emit("disconnect", client[kUrl$6], [client], err);
|
|
11167
11166
|
client.emit("connectionError", client[kUrl$6], [client], err);
|
|
11168
11167
|
client[kResume$2]();
|
|
@@ -11178,7 +11177,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11178
11177
|
state.ping.interval = null;
|
|
11179
11178
|
}
|
|
11180
11179
|
if (client.destroyed) {
|
|
11181
|
-
assert$
|
|
11180
|
+
assert$25(client[kPending$2] === 0);
|
|
11182
11181
|
const requests = client[kQueue$2].splice(client[kRunningIdx$1]);
|
|
11183
11182
|
for (let i = 0; i < requests.length; i++) {
|
|
11184
11183
|
const request$1 = requests[i];
|
|
@@ -11193,12 +11192,12 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11193
11192
|
client[kHTTPContext$1] = null;
|
|
11194
11193
|
if (this[kHTTP2Session] !== null) this[kHTTP2Session].destroy(err);
|
|
11195
11194
|
client[kPendingIdx$1] = client[kRunningIdx$1];
|
|
11196
|
-
assert$
|
|
11195
|
+
assert$25(client[kRunning$3] === 0);
|
|
11197
11196
|
client.emit("disconnect", client[kUrl$6], [client], err);
|
|
11198
11197
|
client[kResume$2]();
|
|
11199
11198
|
}
|
|
11200
11199
|
function onHttp2SocketError(err) {
|
|
11201
|
-
assert$
|
|
11200
|
+
assert$25(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
11202
11201
|
this[kError$3] = err;
|
|
11203
11202
|
this[kClient$2][kOnError$1](err);
|
|
11204
11203
|
}
|
|
@@ -11331,7 +11330,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11331
11330
|
process.emitWarning(new RequestContentLengthMismatchError());
|
|
11332
11331
|
}
|
|
11333
11332
|
if (contentLength != null) {
|
|
11334
|
-
assert$
|
|
11333
|
+
assert$25(body || contentLength === 0, "no body must not have content length");
|
|
11335
11334
|
headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`;
|
|
11336
11335
|
}
|
|
11337
11336
|
session.ref();
|
|
@@ -11427,13 +11426,13 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11427
11426
|
else writeBlob(abort$1, stream$2, body, client, request$1, client[kSocket], contentLength, expectsPayload);
|
|
11428
11427
|
else if (util$20.isStream(body)) writeStream(abort$1, client[kSocket], expectsPayload, stream$2, body, client, request$1, contentLength);
|
|
11429
11428
|
else if (util$20.isIterable(body)) writeIterable(abort$1, stream$2, body, client, request$1, client[kSocket], contentLength, expectsPayload);
|
|
11430
|
-
else assert$
|
|
11429
|
+
else assert$25(false);
|
|
11431
11430
|
}
|
|
11432
11431
|
}
|
|
11433
11432
|
function writeBuffer(abort$1, h2stream, body, client, request$1, socket, contentLength, expectsPayload) {
|
|
11434
11433
|
try {
|
|
11435
11434
|
if (body != null && util$20.isBuffer(body)) {
|
|
11436
|
-
assert$
|
|
11435
|
+
assert$25(contentLength === body.byteLength, "buffer body must have content length");
|
|
11437
11436
|
h2stream.cork();
|
|
11438
11437
|
h2stream.write(body);
|
|
11439
11438
|
h2stream.uncork();
|
|
@@ -11448,7 +11447,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11448
11447
|
}
|
|
11449
11448
|
}
|
|
11450
11449
|
function writeStream(abort$1, socket, expectsPayload, h2stream, body, client, request$1, contentLength) {
|
|
11451
|
-
assert$
|
|
11450
|
+
assert$25(contentLength !== 0 || client[kRunning$3] === 0, "stream body cannot be pipelined");
|
|
11452
11451
|
const pipe$1 = pipeline$4(body, h2stream, (err) => {
|
|
11453
11452
|
if (err) {
|
|
11454
11453
|
util$20.destroy(pipe$1, err);
|
|
@@ -11466,7 +11465,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11466
11465
|
}
|
|
11467
11466
|
}
|
|
11468
11467
|
async function writeBlob(abort$1, h2stream, body, client, request$1, socket, contentLength, expectsPayload) {
|
|
11469
|
-
assert$
|
|
11468
|
+
assert$25(contentLength === body.size, "blob body must have content length");
|
|
11470
11469
|
try {
|
|
11471
11470
|
if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError();
|
|
11472
11471
|
const buffer$1 = Buffer.from(await body.arrayBuffer());
|
|
@@ -11483,7 +11482,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11483
11482
|
}
|
|
11484
11483
|
}
|
|
11485
11484
|
async function writeIterable(abort$1, h2stream, body, client, request$1, socket, contentLength, expectsPayload) {
|
|
11486
|
-
assert$
|
|
11485
|
+
assert$25(contentLength !== 0 || client[kRunning$3] === 0, "iterator body cannot be pipelined");
|
|
11487
11486
|
let callback = null;
|
|
11488
11487
|
function onDrain() {
|
|
11489
11488
|
if (callback) {
|
|
@@ -11493,7 +11492,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11493
11492
|
}
|
|
11494
11493
|
}
|
|
11495
11494
|
const waitForDrain = () => new Promise((resolve$3, reject) => {
|
|
11496
|
-
assert$
|
|
11495
|
+
assert$25(callback === null);
|
|
11497
11496
|
if (socket[kError$3]) reject(socket[kError$3]);
|
|
11498
11497
|
else callback = resolve$3;
|
|
11499
11498
|
});
|
|
@@ -11521,7 +11520,7 @@ var require_client_h2 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm
|
|
|
11521
11520
|
//#endregion
|
|
11522
11521
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client.js
|
|
11523
11522
|
var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/dispatcher/client.js": ((exports, module) => {
|
|
11524
|
-
const assert$
|
|
11523
|
+
const assert$24 = __require$1("node:assert");
|
|
11525
11524
|
const net$3 = __require$1("node:net");
|
|
11526
11525
|
const http$3 = __require$1("node:http");
|
|
11527
11526
|
const util$19 = require_util$5();
|
|
@@ -11699,13 +11698,13 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11699
11698
|
};
|
|
11700
11699
|
function onError$1(client, err) {
|
|
11701
11700
|
if (client[kRunning$2] === 0 && err.code !== "UND_ERR_INFO" && err.code !== "UND_ERR_SOCKET") {
|
|
11702
|
-
assert$
|
|
11701
|
+
assert$24(client[kPendingIdx] === client[kRunningIdx]);
|
|
11703
11702
|
const requests = client[kQueue$1].splice(client[kRunningIdx]);
|
|
11704
11703
|
for (let i = 0; i < requests.length; i++) {
|
|
11705
11704
|
const request$1 = requests[i];
|
|
11706
11705
|
util$19.errorRequest(client, request$1, err);
|
|
11707
11706
|
}
|
|
11708
|
-
assert$
|
|
11707
|
+
assert$24(client[kSize$2] === 0);
|
|
11709
11708
|
}
|
|
11710
11709
|
}
|
|
11711
11710
|
/**
|
|
@@ -11713,14 +11712,14 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11713
11712
|
* @returns {void}
|
|
11714
11713
|
*/
|
|
11715
11714
|
function connect$1(client) {
|
|
11716
|
-
assert$
|
|
11717
|
-
assert$
|
|
11715
|
+
assert$24(!client[kConnecting]);
|
|
11716
|
+
assert$24(!client[kHTTPContext]);
|
|
11718
11717
|
let { host, hostname: hostname$1, protocol, port } = client[kUrl$5];
|
|
11719
11718
|
if (hostname$1[0] === "[") {
|
|
11720
11719
|
const idx = hostname$1.indexOf("]");
|
|
11721
|
-
assert$
|
|
11720
|
+
assert$24(idx !== -1);
|
|
11722
11721
|
const ip = hostname$1.substring(1, idx);
|
|
11723
|
-
assert$
|
|
11722
|
+
assert$24(net$3.isIPv6(ip));
|
|
11724
11723
|
hostname$1 = ip;
|
|
11725
11724
|
}
|
|
11726
11725
|
client[kConnecting] = true;
|
|
@@ -11760,7 +11759,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11760
11759
|
client[kResume$1]();
|
|
11761
11760
|
return;
|
|
11762
11761
|
}
|
|
11763
|
-
assert$
|
|
11762
|
+
assert$24(socket);
|
|
11764
11763
|
try {
|
|
11765
11764
|
client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
|
|
11766
11765
|
} catch (err$1) {
|
|
@@ -11822,7 +11821,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11822
11821
|
error: err
|
|
11823
11822
|
});
|
|
11824
11823
|
if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
|
|
11825
|
-
assert$
|
|
11824
|
+
assert$24(client[kRunning$2] === 0);
|
|
11826
11825
|
while (client[kPending$1] > 0 && client[kQueue$1][client[kPendingIdx]].servername === client[kServerName]) {
|
|
11827
11826
|
const request$1 = client[kQueue$1][client[kPendingIdx]++];
|
|
11828
11827
|
util$19.errorRequest(client, request$1, err);
|
|
@@ -11848,7 +11847,7 @@ var require_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
11848
11847
|
function _resume(client, sync$1) {
|
|
11849
11848
|
while (true) {
|
|
11850
11849
|
if (client.destroyed) {
|
|
11851
|
-
assert$
|
|
11850
|
+
assert$24(client[kPending$1] === 0);
|
|
11852
11851
|
return;
|
|
11853
11852
|
}
|
|
11854
11853
|
if (client[kClosedResolve$1] && !client[kSize$2]) {
|
|
@@ -13450,7 +13449,7 @@ var require_env_http_proxy_agent = /* @__PURE__ */ __commonJS$2({ "../../node_mo
|
|
|
13450
13449
|
//#endregion
|
|
13451
13450
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/retry-handler.js
|
|
13452
13451
|
var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/retry-handler.js": ((exports, module) => {
|
|
13453
|
-
const assert$
|
|
13452
|
+
const assert$23 = __require$1("node:assert");
|
|
13454
13453
|
const { kRetryHandlerDefaultRetry } = require_symbols();
|
|
13455
13454
|
const { RequestRetryError } = require_errors();
|
|
13456
13455
|
const WrapHandler$2 = require_wrap_handler();
|
|
@@ -13617,8 +13616,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
|
|
|
13617
13616
|
});
|
|
13618
13617
|
validatePartialResponseContentLength(headers, contentRange, statusCode, this.retryCount);
|
|
13619
13618
|
const { start, size, end = size ? size - 1 : null } = contentRange;
|
|
13620
|
-
assert$
|
|
13621
|
-
assert$
|
|
13619
|
+
assert$23(this.start === start, "content-range mismatch");
|
|
13620
|
+
assert$23(this.end == null || this.end === end, "content-range mismatch");
|
|
13622
13621
|
return;
|
|
13623
13622
|
}
|
|
13624
13623
|
if (this.end == null) {
|
|
@@ -13631,8 +13630,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
|
|
|
13631
13630
|
}
|
|
13632
13631
|
validatePartialResponseContentLength(headers, range, statusCode, this.retryCount);
|
|
13633
13632
|
const { start, size, end = size ? size - 1 : null } = range;
|
|
13634
|
-
assert$
|
|
13635
|
-
assert$
|
|
13633
|
+
assert$23(start != null && Number.isFinite(start), "content-range mismatch");
|
|
13634
|
+
assert$23(end != null && Number.isFinite(end), "invalid content-length");
|
|
13636
13635
|
this.start = start;
|
|
13637
13636
|
this.end = end;
|
|
13638
13637
|
}
|
|
@@ -13640,8 +13639,8 @@ var require_retry_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.
|
|
|
13640
13639
|
const contentLength = headers["content-length"];
|
|
13641
13640
|
this.end = contentLength != null ? Number(contentLength) - 1 : null;
|
|
13642
13641
|
}
|
|
13643
|
-
assert$
|
|
13644
|
-
assert$
|
|
13642
|
+
assert$23(Number.isFinite(this.start));
|
|
13643
|
+
assert$23(this.end == null || Number.isFinite(this.end), "invalid content-length");
|
|
13645
13644
|
this.resume = true;
|
|
13646
13645
|
this.etag = headers.etag != null ? headers.etag : null;
|
|
13647
13646
|
if (this.etag != null && this.etag[0] === "W" && this.etag[1] === "/") this.etag = null;
|
|
@@ -13773,7 +13772,7 @@ var require_h2c_client = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
13773
13772
|
//#endregion
|
|
13774
13773
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/readable.js
|
|
13775
13774
|
var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/readable.js": ((exports, module) => {
|
|
13776
|
-
const assert$
|
|
13775
|
+
const assert$22 = __require$1("node:assert");
|
|
13777
13776
|
const { Readable: Readable$5 } = __require$1("node:stream");
|
|
13778
13777
|
const { RequestAbortedError: RequestAbortedError$5, NotSupportedError, InvalidArgumentError: InvalidArgumentError$19, AbortError: AbortError$1 } = require_errors();
|
|
13779
13778
|
const util$14 = require_util$5();
|
|
@@ -13969,7 +13968,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
13969
13968
|
this[kBody$1] = ReadableStreamFrom(this);
|
|
13970
13969
|
if (this[kConsume]) {
|
|
13971
13970
|
this[kBody$1].getReader();
|
|
13972
|
-
assert$
|
|
13971
|
+
assert$22(this[kBody$1].locked);
|
|
13973
13972
|
}
|
|
13974
13973
|
}
|
|
13975
13974
|
return this[kBody$1];
|
|
@@ -14059,7 +14058,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
14059
14058
|
* @returns {Promise<ConsumeReturnType<T>>}
|
|
14060
14059
|
*/
|
|
14061
14060
|
function consume(stream$2, type) {
|
|
14062
|
-
assert$
|
|
14061
|
+
assert$22(!stream$2[kConsume]);
|
|
14063
14062
|
return new Promise((resolve$3, reject) => {
|
|
14064
14063
|
if (isUnusable(stream$2)) {
|
|
14065
14064
|
const rState = stream$2._readableState;
|
|
@@ -14187,7 +14186,7 @@ var require_readable = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
14187
14186
|
//#endregion
|
|
14188
14187
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-request.js
|
|
14189
14188
|
var require_api_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-request.js": ((exports, module) => {
|
|
14190
|
-
const assert$
|
|
14189
|
+
const assert$21 = __require$1("node:assert");
|
|
14191
14190
|
const { AsyncResource: AsyncResource$4 } = __require$1("node:async_hooks");
|
|
14192
14191
|
const { Readable: Readable$4 } = require_readable();
|
|
14193
14192
|
const { InvalidArgumentError: InvalidArgumentError$18, RequestAbortedError: RequestAbortedError$4 } = require_errors();
|
|
@@ -14233,7 +14232,7 @@ var require_api_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14233
14232
|
abort$1(this.reason);
|
|
14234
14233
|
return;
|
|
14235
14234
|
}
|
|
14236
|
-
assert$
|
|
14235
|
+
assert$21(this.callback);
|
|
14237
14236
|
this.abort = abort$1;
|
|
14238
14237
|
this.context = context;
|
|
14239
14238
|
}
|
|
@@ -14377,7 +14376,7 @@ var require_abort_signal = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
|
|
|
14377
14376
|
//#endregion
|
|
14378
14377
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-stream.js
|
|
14379
14378
|
var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-stream.js": ((exports, module) => {
|
|
14380
|
-
const assert$
|
|
14379
|
+
const assert$20 = __require$1("node:assert");
|
|
14381
14380
|
const { finished: finished$1 } = __require$1("node:stream");
|
|
14382
14381
|
const { AsyncResource: AsyncResource$3 } = __require$1("node:async_hooks");
|
|
14383
14382
|
const { InvalidArgumentError: InvalidArgumentError$17, InvalidReturnValueError: InvalidReturnValueError$1 } = require_errors();
|
|
@@ -14419,7 +14418,7 @@ var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
14419
14418
|
abort$1(this.reason);
|
|
14420
14419
|
return;
|
|
14421
14420
|
}
|
|
14422
|
-
assert$
|
|
14421
|
+
assert$20(this.callback);
|
|
14423
14422
|
this.abort = abort$1;
|
|
14424
14423
|
this.context = context;
|
|
14425
14424
|
}
|
|
@@ -14509,7 +14508,7 @@ var require_api_stream = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
14509
14508
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-pipeline.js
|
|
14510
14509
|
var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-pipeline.js": ((exports, module) => {
|
|
14511
14510
|
const { Readable: Readable$3, Duplex: Duplex$4, PassThrough } = __require$1("node:stream");
|
|
14512
|
-
const assert$
|
|
14511
|
+
const assert$19 = __require$1("node:assert");
|
|
14513
14512
|
const { AsyncResource: AsyncResource$2 } = __require$1("node:async_hooks");
|
|
14514
14513
|
const { InvalidArgumentError: InvalidArgumentError$16, InvalidReturnValueError, RequestAbortedError: RequestAbortedError$2 } = require_errors();
|
|
14515
14514
|
const util$11 = require_util$5();
|
|
@@ -14597,7 +14596,7 @@ var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
|
|
|
14597
14596
|
abort$1(this.reason);
|
|
14598
14597
|
return;
|
|
14599
14598
|
}
|
|
14600
|
-
assert$
|
|
14599
|
+
assert$19(!res, "pipeline cannot be retried");
|
|
14601
14600
|
this.abort = abort$1;
|
|
14602
14601
|
this.context = context;
|
|
14603
14602
|
}
|
|
@@ -14679,7 +14678,7 @@ var require_api_pipeline = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.p
|
|
|
14679
14678
|
var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-upgrade.js": ((exports, module) => {
|
|
14680
14679
|
const { InvalidArgumentError: InvalidArgumentError$15, SocketError: SocketError$1 } = require_errors();
|
|
14681
14680
|
const { AsyncResource: AsyncResource$1 } = __require$1("node:async_hooks");
|
|
14682
|
-
const assert$
|
|
14681
|
+
const assert$18 = __require$1("node:assert");
|
|
14683
14682
|
const util$10 = require_util$5();
|
|
14684
14683
|
const { kHTTP2Stream } = require_symbols();
|
|
14685
14684
|
const { addSignal: addSignal$1, removeSignal: removeSignal$1 } = require_abort_signal();
|
|
@@ -14702,7 +14701,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14702
14701
|
abort$1(this.reason);
|
|
14703
14702
|
return;
|
|
14704
14703
|
}
|
|
14705
|
-
assert$
|
|
14704
|
+
assert$18(this.callback);
|
|
14706
14705
|
this.abort = abort$1;
|
|
14707
14706
|
this.context = null;
|
|
14708
14707
|
}
|
|
@@ -14710,7 +14709,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14710
14709
|
throw new SocketError$1("bad upgrade", null);
|
|
14711
14710
|
}
|
|
14712
14711
|
onUpgrade(statusCode, rawHeaders, socket) {
|
|
14713
|
-
assert$
|
|
14712
|
+
assert$18(socket[kHTTP2Stream] === true ? statusCode === 200 : statusCode === 101);
|
|
14714
14713
|
const { callback, opaque, context } = this;
|
|
14715
14714
|
removeSignal$1(this);
|
|
14716
14715
|
this.callback = null;
|
|
@@ -14759,7 +14758,7 @@ var require_api_upgrade = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14759
14758
|
//#endregion
|
|
14760
14759
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-connect.js
|
|
14761
14760
|
var require_api_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/api/api-connect.js": ((exports, module) => {
|
|
14762
|
-
const assert$
|
|
14761
|
+
const assert$17 = __require$1("node:assert");
|
|
14763
14762
|
const { AsyncResource } = __require$1("node:async_hooks");
|
|
14764
14763
|
const { InvalidArgumentError: InvalidArgumentError$14, SocketError } = require_errors();
|
|
14765
14764
|
const util$9 = require_util$5();
|
|
@@ -14782,7 +14781,7 @@ var require_api_connect = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
14782
14781
|
abort$1(this.reason);
|
|
14783
14782
|
return;
|
|
14784
14783
|
}
|
|
14785
|
-
assert$
|
|
14784
|
+
assert$17(this.callback);
|
|
14786
14785
|
this.abort = abort$1;
|
|
14787
14786
|
this.context = context;
|
|
14788
14787
|
}
|
|
@@ -16619,7 +16618,7 @@ var require_global = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
16619
16618
|
//#endregion
|
|
16620
16619
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/decorator-handler.js
|
|
16621
16620
|
var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/decorator-handler.js": ((exports, module) => {
|
|
16622
|
-
const assert$
|
|
16621
|
+
const assert$16 = __require$1("node:assert");
|
|
16623
16622
|
const WrapHandler = require_wrap_handler();
|
|
16624
16623
|
/**
|
|
16625
16624
|
* @deprecated
|
|
@@ -16637,25 +16636,25 @@ var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modul
|
|
|
16637
16636
|
this.#handler.onRequestStart?.(...args);
|
|
16638
16637
|
}
|
|
16639
16638
|
onRequestUpgrade(...args) {
|
|
16640
|
-
assert$
|
|
16641
|
-
assert$
|
|
16639
|
+
assert$16(!this.#onCompleteCalled);
|
|
16640
|
+
assert$16(!this.#onErrorCalled);
|
|
16642
16641
|
return this.#handler.onRequestUpgrade?.(...args);
|
|
16643
16642
|
}
|
|
16644
16643
|
onResponseStart(...args) {
|
|
16645
|
-
assert$
|
|
16646
|
-
assert$
|
|
16647
|
-
assert$
|
|
16644
|
+
assert$16(!this.#onCompleteCalled);
|
|
16645
|
+
assert$16(!this.#onErrorCalled);
|
|
16646
|
+
assert$16(!this.#onResponseStartCalled);
|
|
16648
16647
|
this.#onResponseStartCalled = true;
|
|
16649
16648
|
return this.#handler.onResponseStart?.(...args);
|
|
16650
16649
|
}
|
|
16651
16650
|
onResponseData(...args) {
|
|
16652
|
-
assert$
|
|
16653
|
-
assert$
|
|
16651
|
+
assert$16(!this.#onCompleteCalled);
|
|
16652
|
+
assert$16(!this.#onErrorCalled);
|
|
16654
16653
|
return this.#handler.onResponseData?.(...args);
|
|
16655
16654
|
}
|
|
16656
16655
|
onResponseEnd(...args) {
|
|
16657
|
-
assert$
|
|
16658
|
-
assert$
|
|
16656
|
+
assert$16(!this.#onCompleteCalled);
|
|
16657
|
+
assert$16(!this.#onErrorCalled);
|
|
16659
16658
|
this.#onCompleteCalled = true;
|
|
16660
16659
|
return this.#handler.onResponseEnd?.(...args);
|
|
16661
16660
|
}
|
|
@@ -16675,7 +16674,7 @@ var require_decorator_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modul
|
|
|
16675
16674
|
var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/redirect-handler.js": ((exports, module) => {
|
|
16676
16675
|
const util$8 = require_util$5();
|
|
16677
16676
|
const { kBodyUsed } = require_symbols();
|
|
16678
|
-
const assert$
|
|
16677
|
+
const assert$15 = __require$1("node:assert");
|
|
16679
16678
|
const { InvalidArgumentError: InvalidArgumentError$3 } = require_errors();
|
|
16680
16679
|
const EE$2 = __require$1("node:events");
|
|
16681
16680
|
const redirectableStatusCodes = [
|
|
@@ -16694,7 +16693,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
16694
16693
|
this[kBodyUsed] = false;
|
|
16695
16694
|
}
|
|
16696
16695
|
async *[Symbol.asyncIterator]() {
|
|
16697
|
-
assert$
|
|
16696
|
+
assert$15(!this[kBodyUsed], "disturbed");
|
|
16698
16697
|
this[kBodyUsed] = true;
|
|
16699
16698
|
yield* this[kBody];
|
|
16700
16699
|
}
|
|
@@ -16716,7 +16715,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
16716
16715
|
this.history = [];
|
|
16717
16716
|
if (util$8.isStream(this.opts.body)) {
|
|
16718
16717
|
if (util$8.bodyLength(this.opts.body) === 0) this.opts.body.on("data", function() {
|
|
16719
|
-
assert$
|
|
16718
|
+
assert$15(false);
|
|
16720
16719
|
});
|
|
16721
16720
|
if (typeof this.opts.body.readableDidRead !== "boolean") {
|
|
16722
16721
|
this.opts.body[kBodyUsed] = false;
|
|
@@ -16790,7 +16789,7 @@ var require_redirect_handler = /* @__PURE__ */ __commonJS$2({ "../../node_module
|
|
|
16790
16789
|
} else if (headers && typeof headers === "object") {
|
|
16791
16790
|
const entries = util$8.hasSafeIterator(headers) ? headers : Object.entries(headers);
|
|
16792
16791
|
for (const [key, value] of entries) if (!shouldRemoveHeader(key, removeContent, unknownOrigin)) ret.push(key, value);
|
|
16793
|
-
} else assert$
|
|
16792
|
+
} else assert$15(headers == null, "headers must be an object or an array");
|
|
16794
16793
|
return ret;
|
|
16795
16794
|
}
|
|
16796
16795
|
module.exports = RedirectHandler$2;
|
|
@@ -18683,7 +18682,7 @@ var require_memory_cache_store = /* @__PURE__ */ __commonJS$2({ "../../node_modu
|
|
|
18683
18682
|
//#endregion
|
|
18684
18683
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/handler/cache-revalidation-handler.js
|
|
18685
18684
|
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) => {
|
|
18686
|
-
const assert$
|
|
18685
|
+
const assert$14 = __require$1("node:assert");
|
|
18687
18686
|
/**
|
|
18688
18687
|
* This takes care of revalidation requests we send to the origin. If we get
|
|
18689
18688
|
* a response indicating that what we have is cached (via a HTTP 304), we can
|
|
@@ -18731,7 +18730,7 @@ var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../n
|
|
|
18731
18730
|
this.#handler.onRequestUpgrade?.(controller, statusCode, headers, socket);
|
|
18732
18731
|
}
|
|
18733
18732
|
onResponseStart(controller, statusCode, headers, statusMessage) {
|
|
18734
|
-
assert$
|
|
18733
|
+
assert$14(this.#callback != null);
|
|
18735
18734
|
this.#successful = statusCode === 304 || this.#allowErrorStatusCodes && statusCode >= 500 && statusCode <= 504;
|
|
18736
18735
|
this.#callback(this.#successful, this.#context, statusCode, headers);
|
|
18737
18736
|
this.#callback = null;
|
|
@@ -18763,7 +18762,7 @@ var require_cache_revalidation_handler = /* @__PURE__ */ __commonJS$2({ "../../n
|
|
|
18763
18762
|
//#endregion
|
|
18764
18763
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/interceptor/cache.js
|
|
18765
18764
|
var require_cache$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/interceptor/cache.js": ((exports, module) => {
|
|
18766
|
-
const assert$
|
|
18765
|
+
const assert$13 = __require$1("node:assert");
|
|
18767
18766
|
const { Readable: Readable$2 } = __require$1("node:stream");
|
|
18768
18767
|
const util$6 = require_util$5();
|
|
18769
18768
|
const CacheHandler = require_cache_handler();
|
|
@@ -18928,8 +18927,8 @@ var require_cache$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
18928
18927
|
*/
|
|
18929
18928
|
function sendCachedValue(handler, opts, result, age, context, isStale$1) {
|
|
18930
18929
|
const stream$2 = util$6.isStream(result.body) ? result.body : Readable$2.from(result.body ?? []);
|
|
18931
|
-
assert$
|
|
18932
|
-
assert$
|
|
18930
|
+
assert$13(!stream$2.destroyed, "stream should not be destroyed");
|
|
18931
|
+
assert$13(!stream$2.readableDidRead, "stream should not be readableDidRead");
|
|
18933
18932
|
const controller = {
|
|
18934
18933
|
resume() {
|
|
18935
18934
|
stream$2.resume();
|
|
@@ -20025,7 +20024,7 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20025
20024
|
const { kEnumerableProperty: kEnumerableProperty$9 } = require_util$5();
|
|
20026
20025
|
const { iteratorMixin, isValidHeaderName: isValidHeaderName$1, isValidHeaderValue } = require_util$4();
|
|
20027
20026
|
const { webidl: webidl$11 } = require_webidl();
|
|
20028
|
-
const assert$
|
|
20027
|
+
const assert$12 = __require$1("node:assert");
|
|
20029
20028
|
const util$4 = __require$1("node:util");
|
|
20030
20029
|
/**
|
|
20031
20030
|
* @param {number} code
|
|
@@ -20220,11 +20219,11 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20220
20219
|
const iterator = this.headersMap[Symbol.iterator]();
|
|
20221
20220
|
const firstValue = iterator.next().value;
|
|
20222
20221
|
array$1[0] = [firstValue[0], firstValue[1].value];
|
|
20223
|
-
assert$
|
|
20222
|
+
assert$12(firstValue[1].value !== null);
|
|
20224
20223
|
for (let i = 1, j$1 = 0, right = 0, left = 0, pivot = 0, x, value; i < size; ++i) {
|
|
20225
20224
|
value = iterator.next().value;
|
|
20226
20225
|
x = array$1[i] = [value[0], value[1].value];
|
|
20227
|
-
assert$
|
|
20226
|
+
assert$12(x[1] !== null);
|
|
20228
20227
|
left = 0;
|
|
20229
20228
|
right = i;
|
|
20230
20229
|
while (left < right) {
|
|
@@ -20245,7 +20244,7 @@ var require_headers = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20245
20244
|
let i = 0;
|
|
20246
20245
|
for (const { 0: name, 1: { value } } of this.headersMap) {
|
|
20247
20246
|
array$1[i++] = [name, value];
|
|
20248
|
-
assert$
|
|
20247
|
+
assert$12(value !== null);
|
|
20249
20248
|
}
|
|
20250
20249
|
return array$1.sort(compareHeaderName);
|
|
20251
20250
|
}
|
|
@@ -20425,7 +20424,7 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
20425
20424
|
const { webidl: webidl$10 } = require_webidl();
|
|
20426
20425
|
const { URLSerializer: URLSerializer$3 } = require_data_url();
|
|
20427
20426
|
const { kConstruct: kConstruct$6 } = require_symbols();
|
|
20428
|
-
const assert$
|
|
20427
|
+
const assert$11 = __require$1("node:assert");
|
|
20429
20428
|
const { isomorphicEncode: isomorphicEncode$1, serializeJavascriptValueToJSONString } = require_infra();
|
|
20430
20429
|
const textEncoder = new TextEncoder("utf-8");
|
|
20431
20430
|
var Response$2 = class Response$2 {
|
|
@@ -20647,7 +20646,7 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
20647
20646
|
return p$1 in state ? state[p$1] : target[p$1];
|
|
20648
20647
|
},
|
|
20649
20648
|
set(target, p$1, value) {
|
|
20650
|
-
assert$
|
|
20649
|
+
assert$11(!(p$1 in state));
|
|
20651
20650
|
target[p$1] = value;
|
|
20652
20651
|
return true;
|
|
20653
20652
|
}
|
|
@@ -20676,10 +20675,10 @@ var require_response = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/
|
|
|
20676
20675
|
headersList: [],
|
|
20677
20676
|
body: null
|
|
20678
20677
|
});
|
|
20679
|
-
else assert$
|
|
20678
|
+
else assert$11(false);
|
|
20680
20679
|
}
|
|
20681
20680
|
function makeAppropriateNetworkError$1(fetchParams, err = null) {
|
|
20682
|
-
assert$
|
|
20681
|
+
assert$11(isCancelled$1(fetchParams));
|
|
20683
20682
|
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 }));
|
|
20684
20683
|
}
|
|
20685
20684
|
function initializeResponse(response, init$2, body) {
|
|
@@ -20771,7 +20770,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20771
20770
|
const { webidl: webidl$9 } = require_webidl();
|
|
20772
20771
|
const { URLSerializer: URLSerializer$2 } = require_data_url();
|
|
20773
20772
|
const { kConstruct: kConstruct$5 } = require_symbols();
|
|
20774
|
-
const assert$
|
|
20773
|
+
const assert$10 = __require$1("node:assert");
|
|
20775
20774
|
const { getMaxListeners, setMaxListeners, defaultMaxListeners } = __require$1("node:events");
|
|
20776
20775
|
const kAbortController = Symbol("abortController");
|
|
20777
20776
|
const requestFinalizer = new FinalizationRegistry(({ signal, abort: abort$1 }) => {
|
|
@@ -20837,7 +20836,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
20837
20836
|
request$1 = makeRequest$2({ urlList: [parsedURL] });
|
|
20838
20837
|
fallbackMode = "cors";
|
|
20839
20838
|
} else {
|
|
20840
|
-
assert$
|
|
20839
|
+
assert$10(webidl$9.is.Request(input));
|
|
20841
20840
|
request$1 = input.#state;
|
|
20842
20841
|
signal = input.#signal;
|
|
20843
20842
|
this.#dispatcher = init$2.dispatcher || input.#dispatcher;
|
|
@@ -21351,7 +21350,7 @@ var require_request = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/u
|
|
|
21351
21350
|
//#endregion
|
|
21352
21351
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js
|
|
21353
21352
|
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) => {
|
|
21354
|
-
const assert$
|
|
21353
|
+
const assert$9 = __require$1("node:assert");
|
|
21355
21354
|
const { runtimeFeatures: runtimeFeatures$3 } = require_runtime_features();
|
|
21356
21355
|
/**
|
|
21357
21356
|
* @typedef {object} Metadata
|
|
@@ -21429,7 +21428,7 @@ var require_subresource_integrity = /* @__PURE__ */ __commonJS$2({ "../../node_m
|
|
|
21429
21428
|
/** @type {Metadata|null} */
|
|
21430
21429
|
let strongest = null;
|
|
21431
21430
|
for (const item of metadataList) {
|
|
21432
|
-
assert$
|
|
21431
|
+
assert$9(isValidSRIHashAlgorithm(item.alg), "Invalid SRI hash algorithm token");
|
|
21433
21432
|
if (result.length === 0) {
|
|
21434
21433
|
result.push(item);
|
|
21435
21434
|
strongest = item;
|
|
@@ -21523,7 +21522,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21523
21522
|
const { Request: Request$2, cloneRequest, getRequestDispatcher, getRequestState: getRequestState$1 } = require_request();
|
|
21524
21523
|
const zlib$1 = __require$1("node:zlib");
|
|
21525
21524
|
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();
|
|
21526
|
-
const assert$
|
|
21525
|
+
const assert$8 = __require$1("node:assert");
|
|
21527
21526
|
const { safelyExtractBody, extractBody } = require_body();
|
|
21528
21527
|
const { redirectStatusSet, nullBodyStatus, safeMethodsSet, requestBodyHeader, subresourceSet } = require_constants$4();
|
|
21529
21528
|
const EE$1 = __require$1("node:events");
|
|
@@ -21589,7 +21588,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21589
21588
|
let controller = null;
|
|
21590
21589
|
addAbortListener(requestObject.signal, () => {
|
|
21591
21590
|
locallyAborted = true;
|
|
21592
|
-
assert$
|
|
21591
|
+
assert$8(controller != null);
|
|
21593
21592
|
controller.abort(requestObject.signal.reason);
|
|
21594
21593
|
const realResponse = responseObject?.deref();
|
|
21595
21594
|
abortFetch(p$1, request$1, realResponse, requestObject.signal.reason, controller.controller);
|
|
@@ -21645,7 +21644,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21645
21644
|
if (response.body?.stream != null && isReadable(response.body.stream)) controller.error(error$2);
|
|
21646
21645
|
}
|
|
21647
21646
|
function fetching$3({ request: request$1, processRequestBodyChunkLength, processRequestEndOfBody, processResponse, processResponseEndOfBody, processResponseConsumeBody, useParallelQueue = false, dispatcher = getGlobalDispatcher$2(), requestObject = null }) {
|
|
21648
|
-
assert$
|
|
21647
|
+
assert$8(dispatcher);
|
|
21649
21648
|
let taskDestination = null;
|
|
21650
21649
|
let crossOriginIsolatedCapability = false;
|
|
21651
21650
|
if (request$1.client != null) {
|
|
@@ -21666,7 +21665,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21666
21665
|
crossOriginIsolatedCapability,
|
|
21667
21666
|
requestObject
|
|
21668
21667
|
};
|
|
21669
|
-
assert$
|
|
21668
|
+
assert$8(!request$1.body || request$1.body.stream);
|
|
21670
21669
|
if (request$1.window === "client") request$1.window = request$1.client?.globalObject?.constructor?.name === "Window" ? request$1.client : "no-window";
|
|
21671
21670
|
if (request$1.origin === "client") request$1.origin = request$1.client.origin;
|
|
21672
21671
|
if (request$1.policyContainer === "client") if (request$1.client != null) request$1.policyContainer = clonePolicyContainer(request$1.client.policyContainer);
|
|
@@ -21710,7 +21709,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21710
21709
|
if (request$1.responseTainting === "basic") response = filterResponse(response, "basic");
|
|
21711
21710
|
else if (request$1.responseTainting === "cors") response = filterResponse(response, "cors");
|
|
21712
21711
|
else if (request$1.responseTainting === "opaque") response = filterResponse(response, "opaque");
|
|
21713
|
-
else assert$
|
|
21712
|
+
else assert$8(false);
|
|
21714
21713
|
}
|
|
21715
21714
|
let internalResponse = response.status === 0 ? response : response.internalResponse;
|
|
21716
21715
|
if (internalResponse.urlList.length === 0) internalResponse.urlList.push(...request$1.urlList);
|
|
@@ -21866,7 +21865,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21866
21865
|
if (request$1.redirect === "error") response = makeNetworkError("unexpected redirect");
|
|
21867
21866
|
else if (request$1.redirect === "manual") response = actualResponse;
|
|
21868
21867
|
else if (request$1.redirect === "follow") response = await httpRedirectFetch(fetchParams, response);
|
|
21869
|
-
else assert$
|
|
21868
|
+
else assert$8(false);
|
|
21870
21869
|
}
|
|
21871
21870
|
response.timingInfo = timingInfo;
|
|
21872
21871
|
return response;
|
|
@@ -21899,7 +21898,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21899
21898
|
request$1.headersList.delete("host", true);
|
|
21900
21899
|
}
|
|
21901
21900
|
if (request$1.body != null) {
|
|
21902
|
-
assert$
|
|
21901
|
+
assert$8(request$1.body.source != null);
|
|
21903
21902
|
request$1.body = safelyExtractBody(request$1.body.source)[0];
|
|
21904
21903
|
}
|
|
21905
21904
|
const timingInfo = fetchParams.timingInfo;
|
|
@@ -21991,7 +21990,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
21991
21990
|
return response;
|
|
21992
21991
|
}
|
|
21993
21992
|
async function httpNetworkFetch(fetchParams, includeCredentials = false, forceNewConnection = false) {
|
|
21994
|
-
assert$
|
|
21993
|
+
assert$8(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
|
|
21995
21994
|
fetchParams.controller.connection = {
|
|
21996
21995
|
abort: null,
|
|
21997
21996
|
destroyed: false,
|
|
@@ -22271,7 +22270,7 @@ var require_fetch = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22271
22270
|
//#endregion
|
|
22272
22271
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/util.js
|
|
22273
22272
|
var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/util.js": ((exports, module) => {
|
|
22274
|
-
const assert$
|
|
22273
|
+
const assert$7 = __require$1("node:assert");
|
|
22275
22274
|
const { URLSerializer: URLSerializer$1 } = require_data_url();
|
|
22276
22275
|
const { isValidHeaderName } = require_util$4();
|
|
22277
22276
|
/**
|
|
@@ -22289,7 +22288,7 @@ var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
22289
22288
|
* @param {string} header
|
|
22290
22289
|
*/
|
|
22291
22290
|
function getFieldValues$1(header) {
|
|
22292
|
-
assert$
|
|
22291
|
+
assert$7(header !== null);
|
|
22293
22292
|
const values = [];
|
|
22294
22293
|
for (let value of header.split(",")) {
|
|
22295
22294
|
value = value.trim();
|
|
@@ -22306,7 +22305,7 @@ var require_util$3 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/un
|
|
|
22306
22305
|
//#endregion
|
|
22307
22306
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/cache.js
|
|
22308
22307
|
var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/cache/cache.js": ((exports, module) => {
|
|
22309
|
-
const assert$
|
|
22308
|
+
const assert$6 = __require$1("node:assert");
|
|
22310
22309
|
const { kConstruct: kConstruct$4 } = require_symbols();
|
|
22311
22310
|
const { urlEquals, getFieldValues } = require_util$3();
|
|
22312
22311
|
const { kEnumerableProperty: kEnumerableProperty$6, isDisturbed } = require_util$5();
|
|
@@ -22521,7 +22520,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22521
22520
|
r = getRequestState(request$1);
|
|
22522
22521
|
if (r.method !== "GET" && !options.ignoreMethod) return false;
|
|
22523
22522
|
} else {
|
|
22524
|
-
assert$
|
|
22523
|
+
assert$6(typeof request$1 === "string");
|
|
22525
22524
|
r = getRequestState(new Request$1(request$1));
|
|
22526
22525
|
}
|
|
22527
22526
|
/** @type {CacheBatchOperation[]} */
|
|
@@ -22609,7 +22608,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22609
22608
|
if (requestResponses.length === 0) return [];
|
|
22610
22609
|
for (const requestResponse of requestResponses) {
|
|
22611
22610
|
const idx = cache$1.indexOf(requestResponse);
|
|
22612
|
-
assert$
|
|
22611
|
+
assert$6(idx !== -1);
|
|
22613
22612
|
cache$1.splice(idx, 1);
|
|
22614
22613
|
}
|
|
22615
22614
|
} else if (operation.type === "put") {
|
|
@@ -22633,7 +22632,7 @@ var require_cache = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
22633
22632
|
requestResponses = this.#queryCache(operation.request);
|
|
22634
22633
|
for (const requestResponse of requestResponses) {
|
|
22635
22634
|
const idx = cache$1.indexOf(requestResponse);
|
|
22636
|
-
assert$
|
|
22635
|
+
assert$6(idx !== -1);
|
|
22637
22636
|
cache$1.splice(idx, 1);
|
|
22638
22637
|
}
|
|
22639
22638
|
cache$1.push([operation.request, operation.response]);
|
|
@@ -23097,7 +23096,7 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
23097
23096
|
const { collectASequenceOfCodePointsFast: collectASequenceOfCodePointsFast$1 } = require_infra();
|
|
23098
23097
|
const { maxNameValuePairSize, maxAttributeValueSize } = require_constants$3();
|
|
23099
23098
|
const { isCTLExcludingHtab } = require_util$2();
|
|
23100
|
-
const assert$
|
|
23099
|
+
const assert$5 = __require$1("node:assert");
|
|
23101
23100
|
/**
|
|
23102
23101
|
* @description Parses the field-value attributes of a set-cookie header string.
|
|
23103
23102
|
* @see https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis#section-5.4
|
|
@@ -23138,7 +23137,7 @@ var require_parse = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/und
|
|
|
23138
23137
|
*/
|
|
23139
23138
|
function parseUnparsedAttributes(unparsedAttributes, cookieAttributeList = {}) {
|
|
23140
23139
|
if (unparsedAttributes.length === 0) return cookieAttributeList;
|
|
23141
|
-
assert$
|
|
23140
|
+
assert$5(unparsedAttributes[0] === ";");
|
|
23142
23141
|
unparsedAttributes = unparsedAttributes.slice(1);
|
|
23143
23142
|
let cookieAv = "";
|
|
23144
23143
|
if (unparsedAttributes.includes(";")) {
|
|
@@ -24063,7 +24062,7 @@ var require_connection = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
24063
24062
|
const { Headers: Headers$1, getHeadersList } = require_headers();
|
|
24064
24063
|
const { getDecodeSplit } = require_util$4();
|
|
24065
24064
|
const { WebsocketFrameSend: WebsocketFrameSend$4 } = require_frame();
|
|
24066
|
-
const assert$
|
|
24065
|
+
const assert$4 = __require$1("node:assert");
|
|
24067
24066
|
const { runtimeFeatures } = require_runtime_features();
|
|
24068
24067
|
const crypto$2 = runtimeFeatures.has("crypto") ? __require$1("node:crypto") : null;
|
|
24069
24068
|
let warningEmitted = false;
|
|
@@ -24169,7 +24168,7 @@ var require_connection = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
24169
24168
|
} else if (!object$1.closeState.has(sentCloseFrameState$3.SENT) && !object$1.closeState.has(sentCloseFrameState$3.RECEIVED)) {
|
|
24170
24169
|
const frame = new WebsocketFrameSend$4();
|
|
24171
24170
|
if (reason.length !== 0 && code === null) code = 1e3;
|
|
24172
|
-
assert$
|
|
24171
|
+
assert$4(code === null || Number.isInteger(code));
|
|
24173
24172
|
if (code === null && reason.length === 0) frame.frameData = emptyBuffer$1;
|
|
24174
24173
|
else if (code !== null && reason === null) {
|
|
24175
24174
|
frame.frameData = Buffer.allocUnsafe(2);
|
|
@@ -24288,7 +24287,7 @@ var require_permessage_deflate$1 = /* @__PURE__ */ __commonJS$2({ "../../node_mo
|
|
|
24288
24287
|
//#region ../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/websocket/receiver.js
|
|
24289
24288
|
var require_receiver$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/web/websocket/receiver.js": ((exports, module) => {
|
|
24290
24289
|
const { Writable: Writable$1 } = __require$1("node:stream");
|
|
24291
|
-
const assert$
|
|
24290
|
+
const assert$3 = __require$1("node:assert");
|
|
24292
24291
|
const { parserStates, opcodes: opcodes$3, states: states$2, emptyBuffer, sentCloseFrameState: sentCloseFrameState$2 } = require_constants$2();
|
|
24293
24292
|
const { isValidStatusCode: isValidStatusCode$3, isValidOpcode, websocketMessageReceived, utf8Decode: utf8Decode$2, isControlFrame, isTextBinaryFrame, isContinuationFrame } = require_util$1();
|
|
24294
24293
|
const { failWebsocketConnection: failWebsocketConnection$2 } = require_connection();
|
|
@@ -24526,7 +24525,7 @@ var require_receiver$1 = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pnp
|
|
|
24526
24525
|
return output;
|
|
24527
24526
|
}
|
|
24528
24527
|
parseCloseBody(data) {
|
|
24529
|
-
assert$
|
|
24528
|
+
assert$3(data.length !== 1);
|
|
24530
24529
|
/** @type {number|undefined} */
|
|
24531
24530
|
let code;
|
|
24532
24531
|
if (data.length >= 2) code = data.readUInt16BE(0);
|
|
@@ -28178,7 +28177,7 @@ __export(util_exports, {
|
|
|
28178
28177
|
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
28179
28178
|
aborted: () => aborted,
|
|
28180
28179
|
allowsEval: () => allowsEval,
|
|
28181
|
-
assert: () => assert$
|
|
28180
|
+
assert: () => assert$2,
|
|
28182
28181
|
assertEqual: () => assertEqual,
|
|
28183
28182
|
assertIs: () => assertIs,
|
|
28184
28183
|
assertNever: () => assertNever2,
|
|
@@ -28251,8 +28250,8 @@ function assertNever2(_x) {
|
|
|
28251
28250
|
throw new Error("Unexpected value in exhaustive check");
|
|
28252
28251
|
}
|
|
28253
28252
|
__name$3(assertNever2, "assertNever");
|
|
28254
|
-
function assert$
|
|
28255
|
-
__name$3(assert$
|
|
28253
|
+
function assert$2(_) {}
|
|
28254
|
+
__name$3(assert$2, "assert");
|
|
28256
28255
|
function getEnumValues(entries) {
|
|
28257
28256
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
28258
28257
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -41999,45 +41998,61 @@ function validateRoutes(diagnostics, topLevelEnv, rawEnv, envName) {
|
|
|
41999
41998
|
return result;
|
|
42000
41999
|
}
|
|
42001
42000
|
__name$3(validateRoutes, "validateRoutes");
|
|
42002
|
-
function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv) {
|
|
42003
|
-
if (rawEnv.placement) {
|
|
42001
|
+
function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv, diagnosticField = "placement") {
|
|
42002
|
+
if (rawEnv.placement !== void 0) {
|
|
42003
|
+
if (typeof rawEnv.placement !== "object" || rawEnv.placement === null || Array.isArray(rawEnv.placement)) {
|
|
42004
|
+
diagnostics.errors.push(`The field "${diagnosticField}" should be an object but got ${JSON.stringify(rawEnv.placement)}.`);
|
|
42005
|
+
return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
|
|
42006
|
+
}
|
|
42004
42007
|
const placement = rawEnv.placement;
|
|
42005
42008
|
const hasHint = "hint" in placement;
|
|
42006
|
-
const
|
|
42007
|
-
|
|
42008
|
-
|
|
42009
|
-
|
|
42009
|
+
const presentTargetedFields = [
|
|
42010
|
+
"region",
|
|
42011
|
+
"host",
|
|
42012
|
+
"hostname"
|
|
42013
|
+
].filter((field) => field in placement);
|
|
42014
|
+
const hasTargetedFields = presentTargetedFields.length > 0;
|
|
42010
42015
|
if (hasHint && hasTargetedFields) {
|
|
42011
|
-
diagnostics.errors.push(`"
|
|
42016
|
+
diagnostics.errors.push(`"${diagnosticField}" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`);
|
|
42012
42017
|
return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
|
|
42013
42018
|
}
|
|
42014
42019
|
if (hasHint) {
|
|
42015
|
-
validateRequiredProperty(diagnostics,
|
|
42020
|
+
validateRequiredProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", ["off", "smart"]);
|
|
42016
42021
|
const mode = placement.mode;
|
|
42017
42022
|
const hint = placement.hint;
|
|
42018
|
-
if (hint !== void 0 && typeof hint !== "string") diagnostics.errors.push(`"
|
|
42019
|
-
if (hint && mode !== "smart") diagnostics.errors.push(`"
|
|
42023
|
+
if (hint !== void 0 && typeof hint !== "string") diagnostics.errors.push(`"${diagnosticField}.hint" must be a string when "${diagnosticField}.mode" is "${mode}"`);
|
|
42024
|
+
if (hint && mode !== "smart") diagnostics.errors.push(`"${diagnosticField}.hint" can only be set when "${diagnosticField}.mode" is "smart"`);
|
|
42020
42025
|
} else if (hasTargetedFields) {
|
|
42021
|
-
validateOptionalProperty(diagnostics,
|
|
42022
|
-
|
|
42023
|
-
|
|
42024
|
-
|
|
42025
|
-
|
|
42026
|
-
|
|
42027
|
-
|
|
42028
|
-
|
|
42029
|
-
|
|
42030
|
-
|
|
42031
|
-
|
|
42032
|
-
|
|
42033
|
-
|
|
42034
|
-
|
|
42035
|
-
|
|
42036
|
-
|
|
42037
|
-
|
|
42038
|
-
|
|
42039
|
-
|
|
42040
|
-
|
|
42026
|
+
validateOptionalProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", ["targeted"]);
|
|
42027
|
+
for (const field of presentTargetedFields) {
|
|
42028
|
+
validateRequiredProperty(diagnostics, diagnosticField, field, placement[field], "string");
|
|
42029
|
+
if (placement[field] === "") diagnostics.errors.push(`"${diagnosticField}.${field}" must be a non-empty string.`);
|
|
42030
|
+
}
|
|
42031
|
+
if (presentTargetedFields.length > 1) diagnostics.errors.push(`"${diagnosticField}" fields ${presentTargetedFields.map((field) => `"${field}"`).join(", ")} are mutually exclusive. Only one can be specified.`);
|
|
42032
|
+
} else {
|
|
42033
|
+
validateRequiredProperty(diagnostics, diagnosticField, "mode", placement.mode, "string", [
|
|
42034
|
+
"off",
|
|
42035
|
+
"smart",
|
|
42036
|
+
"targeted"
|
|
42037
|
+
]);
|
|
42038
|
+
if (placement.mode === "targeted") validateAtLeastOnePropertyRequired(diagnostics, diagnosticField, [
|
|
42039
|
+
{
|
|
42040
|
+
key: "region",
|
|
42041
|
+
value: placement.region,
|
|
42042
|
+
type: "string"
|
|
42043
|
+
},
|
|
42044
|
+
{
|
|
42045
|
+
key: "host",
|
|
42046
|
+
value: placement.host,
|
|
42047
|
+
type: "string"
|
|
42048
|
+
},
|
|
42049
|
+
{
|
|
42050
|
+
key: "hostname",
|
|
42051
|
+
value: placement.hostname,
|
|
42052
|
+
type: "string"
|
|
42053
|
+
}
|
|
42054
|
+
]);
|
|
42055
|
+
}
|
|
42041
42056
|
}
|
|
42042
42057
|
return inheritable(diagnostics, topLevelEnv, rawEnv, "placement", () => true, void 0);
|
|
42043
42058
|
}
|
|
@@ -43988,10 +44003,12 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$3((envName, configPath) => (
|
|
|
43988
44003
|
"logpush",
|
|
43989
44004
|
"observability",
|
|
43990
44005
|
"limits",
|
|
44006
|
+
"placement",
|
|
43991
44007
|
"cache"
|
|
43992
44008
|
]) && isValid;
|
|
43993
44009
|
isValid = validateVars(envName)(diagnostics, `${field}.vars`, previews.vars, void 0) && isValid;
|
|
43994
44010
|
isValid = validateDefines(envName)(diagnostics, `${field}.define`, previews.define, void 0) && isValid;
|
|
44011
|
+
normalizeAndValidatePlacement(diagnostics, void 0, previews, `${field}.placement`);
|
|
43995
44012
|
isValid = validateBindingsProperty(envName, validateDurableObjectBinding)(diagnostics, `${field}.durable_objects`, previews.durable_objects, void 0) && isValid;
|
|
43996
44013
|
isValid = all(validateBindingArray(envName, validateWorkflowBinding), validateUniqueNameProperty)(diagnostics, `${field}.workflows`, previews.workflows, void 0) && isValid;
|
|
43997
44014
|
isValid = validateBindingArray(envName, validateKVBinding)(diagnostics, `${field}.kv_namespaces`, previews.kv_namespaces, void 0) && isValid;
|
|
@@ -44312,19 +44329,34 @@ var validateObservability = /* @__PURE__ */ __name$3((diagnostics, field, value)
|
|
|
44312
44329
|
key: "traces.enabled",
|
|
44313
44330
|
value: val.traces?.enabled,
|
|
44314
44331
|
type: "boolean"
|
|
44332
|
+
},
|
|
44333
|
+
{
|
|
44334
|
+
key: "issues.enabled",
|
|
44335
|
+
value: val.issues?.enabled,
|
|
44336
|
+
type: "boolean"
|
|
44315
44337
|
}
|
|
44316
44338
|
]) && isValid;
|
|
44317
44339
|
isValid = validateOptionalProperty(diagnostics, field, "head_sampling_rate", val.head_sampling_rate, "number") && isValid;
|
|
44318
44340
|
isValid = validateOptionalProperty(diagnostics, field, "redact_query_string", val.redact_query_string, "boolean") && isValid;
|
|
44341
|
+
const issuesIsObject = val.issues === void 0 || val.issues !== null && typeof val.issues === "object" && !Array.isArray(val.issues);
|
|
44342
|
+
if (!issuesIsObject) {
|
|
44343
|
+
diagnostics.errors.push(`"${field}.issues" should be an object but got ${JSON.stringify(val.issues)}.`);
|
|
44344
|
+
isValid = false;
|
|
44345
|
+
}
|
|
44319
44346
|
isValid = validateOptionalProperty(diagnostics, field, "logs", val.logs, "object") && isValid;
|
|
44320
44347
|
isValid = validateOptionalProperty(diagnostics, field, "traces", val.traces, "object") && isValid;
|
|
44321
44348
|
isValid = validateAdditionalProperties(diagnostics, field, Object.keys(val), [
|
|
44322
44349
|
"enabled",
|
|
44323
44350
|
"head_sampling_rate",
|
|
44324
44351
|
"redact_query_string",
|
|
44352
|
+
"issues",
|
|
44325
44353
|
"logs",
|
|
44326
44354
|
"traces"
|
|
44327
44355
|
]) && isValid;
|
|
44356
|
+
if (val.issues !== void 0 && issuesIsObject) {
|
|
44357
|
+
isValid = validateOptionalProperty(diagnostics, `${field}.issues`, "enabled", val.issues.enabled, "boolean") && isValid;
|
|
44358
|
+
isValid = validateAdditionalProperties(diagnostics, `${field}.issues`, Object.keys(val.issues), ["enabled"]) && isValid;
|
|
44359
|
+
}
|
|
44328
44360
|
if (typeof val.logs === "object") {
|
|
44329
44361
|
isValid = validateOptionalProperty(diagnostics, field, "logs.enabled", val.logs.enabled, "boolean") && isValid;
|
|
44330
44362
|
isValid = validateOptionalProperty(diagnostics, field, "logs.head_sampling_rate", val.logs.head_sampling_rate, "number") && isValid;
|
|
@@ -46908,7 +46940,7 @@ function getWorkerNameFromProject(projectPath) {
|
|
|
46908
46940
|
}
|
|
46909
46941
|
__name$3(getWorkerNameFromProject, "getWorkerNameFromProject");
|
|
46910
46942
|
function toUrlPath(filePath) {
|
|
46911
|
-
assert
|
|
46943
|
+
assert(!/^[a-z]:/i.test(filePath), "Tried to convert a Windows file path with a drive to a URL path.");
|
|
46912
46944
|
return filePath.replace(/\\/g, "/");
|
|
46913
46945
|
}
|
|
46914
46946
|
__name$3(toUrlPath, "toUrlPath");
|
|
@@ -50899,7 +50931,7 @@ var require_signal_exit = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
50899
50931
|
return function() {};
|
|
50900
50932
|
};
|
|
50901
50933
|
else {
|
|
50902
|
-
var assert$
|
|
50934
|
+
var assert$1 = __require$1("assert");
|
|
50903
50935
|
var signals = require_signals();
|
|
50904
50936
|
var isWin = /^win/i.test(process$1.platform);
|
|
50905
50937
|
var EE = __require$1("events");
|
|
@@ -50919,7 +50951,7 @@ var require_signal_exit = /* @__PURE__ */ __commonJS$2({ "../../node_modules/.pn
|
|
|
50919
50951
|
module.exports = function(cb, opts) {
|
|
50920
50952
|
/* istanbul ignore if */
|
|
50921
50953
|
if (!processOk(global.process)) return function() {};
|
|
50922
|
-
assert$
|
|
50954
|
+
assert$1.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
50923
50955
|
if (loaded === false) load();
|
|
50924
50956
|
var ev = "exit";
|
|
50925
50957
|
if (opts && opts.alwaysLast) ev = "afterexit";
|
|
@@ -61041,7 +61073,7 @@ __name$1(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
61041
61073
|
//#endregion
|
|
61042
61074
|
//#region ../remote-bindings/dist/index.mjs
|
|
61043
61075
|
var import_undici = require_undici();
|
|
61044
|
-
var version = "0.0.
|
|
61076
|
+
var version = "0.0.27";
|
|
61045
61077
|
var NoDefaultValueProvided = class extends UserError$1 {
|
|
61046
61078
|
constructor() {
|
|
61047
61079
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|
|
@@ -62386,6 +62418,7 @@ const ObservabilitySchema = z$1.strictObject({
|
|
|
62386
62418
|
enabled: z$1.boolean().optional(),
|
|
62387
62419
|
headSamplingRate: z$1.number().optional(),
|
|
62388
62420
|
redactQueryString: z$1.boolean().optional(),
|
|
62421
|
+
issues: z$1.strictObject({ enabled: z$1.boolean().optional() }).optional(),
|
|
62389
62422
|
logs: z$1.strictObject({
|
|
62390
62423
|
enabled: z$1.boolean().optional(),
|
|
62391
62424
|
headSamplingRate: z$1.number().optional(),
|
|
@@ -62800,6 +62833,7 @@ function convertObservability(observability) {
|
|
|
62800
62833
|
if (observability.enabled !== void 0) out.enabled = observability.enabled;
|
|
62801
62834
|
if (observability.headSamplingRate !== void 0) out.head_sampling_rate = observability.headSamplingRate;
|
|
62802
62835
|
if (observability.redactQueryString !== void 0) out.redact_query_string = observability.redactQueryString;
|
|
62836
|
+
if (observability.issues !== void 0) out.issues = { enabled: observability.issues.enabled };
|
|
62803
62837
|
if (observability.logs !== void 0) {
|
|
62804
62838
|
const logs = {};
|
|
62805
62839
|
const { logs: src$2 } = observability;
|