wrangler 4.14.0 → 4.14.2
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/wrangler-dist/cli.js
CHANGED
@@ -5,8 +5,8 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
8
|
-
var __esm = (
|
9
|
-
return
|
8
|
+
var __esm = (fn2, res) => function __init() {
|
9
|
+
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
10
10
|
};
|
11
11
|
var __commonJS = (cb2, mod) => function __require() {
|
12
12
|
return mod || (0, cb2[__getOwnPropNames(cb2)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
@@ -574,14 +574,14 @@ var require_util = __commonJS({
|
|
574
574
|
}
|
575
575
|
const port = url4.port != null ? url4.port : url4.protocol === "https:" ? 443 : 80;
|
576
576
|
let origin = url4.origin != null ? url4.origin : `${url4.protocol}//${url4.hostname}:${port}`;
|
577
|
-
let
|
577
|
+
let path70 = url4.path != null ? url4.path : `${url4.pathname || ""}${url4.search || ""}`;
|
578
578
|
if (origin.endsWith("/")) {
|
579
579
|
origin = origin.substring(0, origin.length - 1);
|
580
580
|
}
|
581
|
-
if (
|
582
|
-
|
581
|
+
if (path70 && !path70.startsWith("/")) {
|
582
|
+
path70 = `/${path70}`;
|
583
583
|
}
|
584
|
-
url4 = new URL(origin +
|
584
|
+
url4 = new URL(origin + path70);
|
585
585
|
}
|
586
586
|
return url4;
|
587
587
|
}
|
@@ -2245,20 +2245,20 @@ var require_basename = __commonJS({
|
|
2245
2245
|
"../../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js"(exports2, module3) {
|
2246
2246
|
"use strict";
|
2247
2247
|
init_import_meta_url();
|
2248
|
-
module3.exports = /* @__PURE__ */ __name(function basename7(
|
2249
|
-
if (typeof
|
2248
|
+
module3.exports = /* @__PURE__ */ __name(function basename7(path70) {
|
2249
|
+
if (typeof path70 !== "string") {
|
2250
2250
|
return "";
|
2251
2251
|
}
|
2252
|
-
for (var i5 =
|
2253
|
-
switch (
|
2252
|
+
for (var i5 = path70.length - 1; i5 >= 0; --i5) {
|
2253
|
+
switch (path70.charCodeAt(i5)) {
|
2254
2254
|
case 47:
|
2255
2255
|
// '/'
|
2256
2256
|
case 92:
|
2257
|
-
|
2258
|
-
return
|
2257
|
+
path70 = path70.slice(i5 + 1);
|
2258
|
+
return path70 === ".." || path70 === "." ? "" : path70;
|
2259
2259
|
}
|
2260
2260
|
}
|
2261
|
-
return
|
2261
|
+
return path70 === ".." || path70 === "." ? "" : path70;
|
2262
2262
|
}, "basename");
|
2263
2263
|
}
|
2264
2264
|
});
|
@@ -5400,7 +5400,7 @@ var require_request = __commonJS({
|
|
5400
5400
|
__name(this, "Request");
|
5401
5401
|
}
|
5402
5402
|
constructor(origin, {
|
5403
|
-
path:
|
5403
|
+
path: path70,
|
5404
5404
|
method,
|
5405
5405
|
body,
|
5406
5406
|
headers,
|
@@ -5414,11 +5414,11 @@ var require_request = __commonJS({
|
|
5414
5414
|
throwOnError,
|
5415
5415
|
expectContinue
|
5416
5416
|
}, handler) {
|
5417
|
-
if (typeof
|
5417
|
+
if (typeof path70 !== "string") {
|
5418
5418
|
throw new InvalidArgumentError("path must be a string");
|
5419
|
-
} else if (
|
5419
|
+
} else if (path70[0] !== "/" && !(path70.startsWith("http://") || path70.startsWith("https://")) && method !== "CONNECT") {
|
5420
5420
|
throw new InvalidArgumentError("path must be an absolute URL or start with a slash");
|
5421
|
-
} else if (invalidPathRegex.exec(
|
5421
|
+
} else if (invalidPathRegex.exec(path70) !== null) {
|
5422
5422
|
throw new InvalidArgumentError("invalid request path");
|
5423
5423
|
}
|
5424
5424
|
if (typeof method !== "string") {
|
@@ -5481,7 +5481,7 @@ var require_request = __commonJS({
|
|
5481
5481
|
this.completed = false;
|
5482
5482
|
this.aborted = false;
|
5483
5483
|
this.upgrade = upgrade || null;
|
5484
|
-
this.path = query ? util5.buildURL(
|
5484
|
+
this.path = query ? util5.buildURL(path70, query) : path70;
|
5485
5485
|
this.origin = origin;
|
5486
5486
|
this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
|
5487
5487
|
this.blocking = blocking == null ? false : blocking;
|
@@ -6519,9 +6519,9 @@ var require_RedirectHandler = __commonJS({
|
|
6519
6519
|
return this.handler.onHeaders(statusCode, headers, resume, statusText);
|
6520
6520
|
}
|
6521
6521
|
const { origin, pathname, search } = util5.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
|
6522
|
-
const
|
6522
|
+
const path70 = search ? `${pathname}${search}` : pathname;
|
6523
6523
|
this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin);
|
6524
|
-
this.opts.path =
|
6524
|
+
this.opts.path = path70;
|
6525
6525
|
this.opts.origin = origin;
|
6526
6526
|
this.opts.maxRedirections = 0;
|
6527
6527
|
this.opts.query = null;
|
@@ -7791,7 +7791,7 @@ var require_client = __commonJS({
|
|
7791
7791
|
writeH2(client, client[kHTTP2Session], request4);
|
7792
7792
|
return;
|
7793
7793
|
}
|
7794
|
-
const { body, method, path:
|
7794
|
+
const { body, method, path: path70, host, upgrade, headers, blocking, reset } = request4;
|
7795
7795
|
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
|
7796
7796
|
if (body && typeof body.read === "function") {
|
7797
7797
|
body.read(0);
|
@@ -7841,7 +7841,7 @@ var require_client = __commonJS({
|
|
7841
7841
|
if (blocking) {
|
7842
7842
|
socket[kBlocking] = true;
|
7843
7843
|
}
|
7844
|
-
let header = `${method} ${
|
7844
|
+
let header = `${method} ${path70} HTTP/1.1\r
|
7845
7845
|
`;
|
7846
7846
|
if (typeof host === "string") {
|
7847
7847
|
header += `host: ${host}\r
|
@@ -7905,7 +7905,7 @@ upgrade: ${upgrade}\r
|
|
7905
7905
|
}
|
7906
7906
|
__name(write, "write");
|
7907
7907
|
function writeH2(client, session, request4) {
|
7908
|
-
const { body, method, path:
|
7908
|
+
const { body, method, path: path70, host, upgrade, expectContinue, signal, headers: reqHeaders } = request4;
|
7909
7909
|
let headers;
|
7910
7910
|
if (typeof reqHeaders === "string") headers = Request4[kHTTP2CopyHeaders](reqHeaders.trim());
|
7911
7911
|
else headers = reqHeaders;
|
@@ -7948,7 +7948,7 @@ upgrade: ${upgrade}\r
|
|
7948
7948
|
});
|
7949
7949
|
return true;
|
7950
7950
|
}
|
7951
|
-
headers[HTTP2_HEADER_PATH] =
|
7951
|
+
headers[HTTP2_HEADER_PATH] = path70;
|
7952
7952
|
headers[HTTP2_HEADER_SCHEME] = "https";
|
7953
7953
|
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
|
7954
7954
|
if (body && typeof body.read === "function") {
|
@@ -10289,21 +10289,21 @@ var require_mock_utils = __commonJS({
|
|
10289
10289
|
return true;
|
10290
10290
|
}
|
10291
10291
|
__name(matchHeaders, "matchHeaders");
|
10292
|
-
function safeUrl(
|
10293
|
-
if (typeof
|
10294
|
-
return
|
10292
|
+
function safeUrl(path70) {
|
10293
|
+
if (typeof path70 !== "string") {
|
10294
|
+
return path70;
|
10295
10295
|
}
|
10296
|
-
const pathSegments =
|
10296
|
+
const pathSegments = path70.split("?");
|
10297
10297
|
if (pathSegments.length !== 2) {
|
10298
|
-
return
|
10298
|
+
return path70;
|
10299
10299
|
}
|
10300
10300
|
const qp = new URLSearchParams(pathSegments.pop());
|
10301
10301
|
qp.sort();
|
10302
10302
|
return [...pathSegments, qp.toString()].join("?");
|
10303
10303
|
}
|
10304
10304
|
__name(safeUrl, "safeUrl");
|
10305
|
-
function matchKey(mockDispatch2, { path:
|
10306
|
-
const pathMatch = matchValue(mockDispatch2.path,
|
10305
|
+
function matchKey(mockDispatch2, { path: path70, method, body, headers }) {
|
10306
|
+
const pathMatch = matchValue(mockDispatch2.path, path70);
|
10307
10307
|
const methodMatch = matchValue(mockDispatch2.method, method);
|
10308
10308
|
const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
|
10309
10309
|
const headersMatch = matchHeaders(mockDispatch2, headers);
|
@@ -10323,7 +10323,7 @@ var require_mock_utils = __commonJS({
|
|
10323
10323
|
function getMockDispatch(mockDispatches, key) {
|
10324
10324
|
const basePath = key.query ? buildURL(key.path, key.query) : key.path;
|
10325
10325
|
const resolvedPath2 = typeof basePath === "string" ? safeUrl(basePath) : basePath;
|
10326
|
-
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path:
|
10326
|
+
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path70 }) => matchValue(safeUrl(path70), resolvedPath2));
|
10327
10327
|
if (matchedMockDispatches.length === 0) {
|
10328
10328
|
throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath2}'`);
|
10329
10329
|
}
|
@@ -10363,9 +10363,9 @@ var require_mock_utils = __commonJS({
|
|
10363
10363
|
}
|
10364
10364
|
__name(deleteMockDispatch, "deleteMockDispatch");
|
10365
10365
|
function buildKey(opts) {
|
10366
|
-
const { path:
|
10366
|
+
const { path: path70, method, body, headers, query } = opts;
|
10367
10367
|
return {
|
10368
|
-
path:
|
10368
|
+
path: path70,
|
10369
10369
|
method,
|
10370
10370
|
body,
|
10371
10371
|
headers,
|
@@ -10847,10 +10847,10 @@ var require_pending_interceptors_formatter = __commonJS({
|
|
10847
10847
|
}
|
10848
10848
|
format(pendingInterceptors) {
|
10849
10849
|
const withPrettyHeaders = pendingInterceptors.map(
|
10850
|
-
({ method, path:
|
10850
|
+
({ method, path: path70, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
|
10851
10851
|
Method: method,
|
10852
10852
|
Origin: origin,
|
10853
|
-
Path:
|
10853
|
+
Path: path70,
|
10854
10854
|
"Status code": statusCode,
|
10855
10855
|
Persistent: persist ? "\u2705" : "\u274C",
|
10856
10856
|
Invocations: timesInvoked,
|
@@ -14702,14 +14702,14 @@ var require_filereader = __commonJS({
|
|
14702
14702
|
webidl.brandCheck(this, _FileReader);
|
14703
14703
|
return this[kEvents].loadend;
|
14704
14704
|
}
|
14705
|
-
set onloadend(
|
14705
|
+
set onloadend(fn2) {
|
14706
14706
|
webidl.brandCheck(this, _FileReader);
|
14707
14707
|
if (this[kEvents].loadend) {
|
14708
14708
|
this.removeEventListener("loadend", this[kEvents].loadend);
|
14709
14709
|
}
|
14710
|
-
if (typeof
|
14711
|
-
this[kEvents].loadend =
|
14712
|
-
this.addEventListener("loadend",
|
14710
|
+
if (typeof fn2 === "function") {
|
14711
|
+
this[kEvents].loadend = fn2;
|
14712
|
+
this.addEventListener("loadend", fn2);
|
14713
14713
|
} else {
|
14714
14714
|
this[kEvents].loadend = null;
|
14715
14715
|
}
|
@@ -14718,14 +14718,14 @@ var require_filereader = __commonJS({
|
|
14718
14718
|
webidl.brandCheck(this, _FileReader);
|
14719
14719
|
return this[kEvents].error;
|
14720
14720
|
}
|
14721
|
-
set onerror(
|
14721
|
+
set onerror(fn2) {
|
14722
14722
|
webidl.brandCheck(this, _FileReader);
|
14723
14723
|
if (this[kEvents].error) {
|
14724
14724
|
this.removeEventListener("error", this[kEvents].error);
|
14725
14725
|
}
|
14726
|
-
if (typeof
|
14727
|
-
this[kEvents].error =
|
14728
|
-
this.addEventListener("error",
|
14726
|
+
if (typeof fn2 === "function") {
|
14727
|
+
this[kEvents].error = fn2;
|
14728
|
+
this.addEventListener("error", fn2);
|
14729
14729
|
} else {
|
14730
14730
|
this[kEvents].error = null;
|
14731
14731
|
}
|
@@ -14734,14 +14734,14 @@ var require_filereader = __commonJS({
|
|
14734
14734
|
webidl.brandCheck(this, _FileReader);
|
14735
14735
|
return this[kEvents].loadstart;
|
14736
14736
|
}
|
14737
|
-
set onloadstart(
|
14737
|
+
set onloadstart(fn2) {
|
14738
14738
|
webidl.brandCheck(this, _FileReader);
|
14739
14739
|
if (this[kEvents].loadstart) {
|
14740
14740
|
this.removeEventListener("loadstart", this[kEvents].loadstart);
|
14741
14741
|
}
|
14742
|
-
if (typeof
|
14743
|
-
this[kEvents].loadstart =
|
14744
|
-
this.addEventListener("loadstart",
|
14742
|
+
if (typeof fn2 === "function") {
|
14743
|
+
this[kEvents].loadstart = fn2;
|
14744
|
+
this.addEventListener("loadstart", fn2);
|
14745
14745
|
} else {
|
14746
14746
|
this[kEvents].loadstart = null;
|
14747
14747
|
}
|
@@ -14750,14 +14750,14 @@ var require_filereader = __commonJS({
|
|
14750
14750
|
webidl.brandCheck(this, _FileReader);
|
14751
14751
|
return this[kEvents].progress;
|
14752
14752
|
}
|
14753
|
-
set onprogress(
|
14753
|
+
set onprogress(fn2) {
|
14754
14754
|
webidl.brandCheck(this, _FileReader);
|
14755
14755
|
if (this[kEvents].progress) {
|
14756
14756
|
this.removeEventListener("progress", this[kEvents].progress);
|
14757
14757
|
}
|
14758
|
-
if (typeof
|
14759
|
-
this[kEvents].progress =
|
14760
|
-
this.addEventListener("progress",
|
14758
|
+
if (typeof fn2 === "function") {
|
14759
|
+
this[kEvents].progress = fn2;
|
14760
|
+
this.addEventListener("progress", fn2);
|
14761
14761
|
} else {
|
14762
14762
|
this[kEvents].progress = null;
|
14763
14763
|
}
|
@@ -14766,14 +14766,14 @@ var require_filereader = __commonJS({
|
|
14766
14766
|
webidl.brandCheck(this, _FileReader);
|
14767
14767
|
return this[kEvents].load;
|
14768
14768
|
}
|
14769
|
-
set onload(
|
14769
|
+
set onload(fn2) {
|
14770
14770
|
webidl.brandCheck(this, _FileReader);
|
14771
14771
|
if (this[kEvents].load) {
|
14772
14772
|
this.removeEventListener("load", this[kEvents].load);
|
14773
14773
|
}
|
14774
|
-
if (typeof
|
14775
|
-
this[kEvents].load =
|
14776
|
-
this.addEventListener("load",
|
14774
|
+
if (typeof fn2 === "function") {
|
14775
|
+
this[kEvents].load = fn2;
|
14776
|
+
this.addEventListener("load", fn2);
|
14777
14777
|
} else {
|
14778
14778
|
this[kEvents].load = null;
|
14779
14779
|
}
|
@@ -14782,14 +14782,14 @@ var require_filereader = __commonJS({
|
|
14782
14782
|
webidl.brandCheck(this, _FileReader);
|
14783
14783
|
return this[kEvents].abort;
|
14784
14784
|
}
|
14785
|
-
set onabort(
|
14785
|
+
set onabort(fn2) {
|
14786
14786
|
webidl.brandCheck(this, _FileReader);
|
14787
14787
|
if (this[kEvents].abort) {
|
14788
14788
|
this.removeEventListener("abort", this[kEvents].abort);
|
14789
14789
|
}
|
14790
|
-
if (typeof
|
14791
|
-
this[kEvents].abort =
|
14792
|
-
this.addEventListener("abort",
|
14790
|
+
if (typeof fn2 === "function") {
|
14791
|
+
this[kEvents].abort = fn2;
|
14792
|
+
this.addEventListener("abort", fn2);
|
14793
14793
|
} else {
|
14794
14794
|
this[kEvents].abort = null;
|
14795
14795
|
}
|
@@ -15579,8 +15579,8 @@ var require_util6 = __commonJS({
|
|
15579
15579
|
}
|
15580
15580
|
}
|
15581
15581
|
__name(validateCookieValue, "validateCookieValue");
|
15582
|
-
function validateCookiePath(
|
15583
|
-
for (const char of
|
15582
|
+
function validateCookiePath(path70) {
|
15583
|
+
for (const char of path70) {
|
15584
15584
|
const code = char.charCodeAt(0);
|
15585
15585
|
if (code < 33 || char === ";") {
|
15586
15586
|
throw new Error("Invalid cookie path");
|
@@ -16620,7 +16620,7 @@ var require_receiver = __commonJS({
|
|
16620
16620
|
"../../node_modules/.pnpm/undici@5.28.5/node_modules/undici/lib/websocket/receiver.js"(exports2, module3) {
|
16621
16621
|
"use strict";
|
16622
16622
|
init_import_meta_url();
|
16623
|
-
var { Writable:
|
16623
|
+
var { Writable: Writable5 } = require("stream");
|
16624
16624
|
var diagnosticsChannel = require("diagnostics_channel");
|
16625
16625
|
var { parserStates, opcodes, states, emptyBuffer } = require_constants5();
|
16626
16626
|
var { kReadyState, kSentClose, kResponse, kReceivedClose } = require_symbols5();
|
@@ -16629,7 +16629,7 @@ var require_receiver = __commonJS({
|
|
16629
16629
|
var channels = {};
|
16630
16630
|
channels.ping = diagnosticsChannel.channel("undici:websocket:ping");
|
16631
16631
|
channels.pong = diagnosticsChannel.channel("undici:websocket:pong");
|
16632
|
-
var ByteParser = class extends
|
16632
|
+
var ByteParser = class extends Writable5 {
|
16633
16633
|
static {
|
16634
16634
|
__name(this, "ByteParser");
|
16635
16635
|
}
|
@@ -17083,14 +17083,14 @@ var require_websocket = __commonJS({
|
|
17083
17083
|
webidl.brandCheck(this, _WebSocket);
|
17084
17084
|
return this.#events.open;
|
17085
17085
|
}
|
17086
|
-
set onopen(
|
17086
|
+
set onopen(fn2) {
|
17087
17087
|
webidl.brandCheck(this, _WebSocket);
|
17088
17088
|
if (this.#events.open) {
|
17089
17089
|
this.removeEventListener("open", this.#events.open);
|
17090
17090
|
}
|
17091
|
-
if (typeof
|
17092
|
-
this.#events.open =
|
17093
|
-
this.addEventListener("open",
|
17091
|
+
if (typeof fn2 === "function") {
|
17092
|
+
this.#events.open = fn2;
|
17093
|
+
this.addEventListener("open", fn2);
|
17094
17094
|
} else {
|
17095
17095
|
this.#events.open = null;
|
17096
17096
|
}
|
@@ -17099,14 +17099,14 @@ var require_websocket = __commonJS({
|
|
17099
17099
|
webidl.brandCheck(this, _WebSocket);
|
17100
17100
|
return this.#events.error;
|
17101
17101
|
}
|
17102
|
-
set onerror(
|
17102
|
+
set onerror(fn2) {
|
17103
17103
|
webidl.brandCheck(this, _WebSocket);
|
17104
17104
|
if (this.#events.error) {
|
17105
17105
|
this.removeEventListener("error", this.#events.error);
|
17106
17106
|
}
|
17107
|
-
if (typeof
|
17108
|
-
this.#events.error =
|
17109
|
-
this.addEventListener("error",
|
17107
|
+
if (typeof fn2 === "function") {
|
17108
|
+
this.#events.error = fn2;
|
17109
|
+
this.addEventListener("error", fn2);
|
17110
17110
|
} else {
|
17111
17111
|
this.#events.error = null;
|
17112
17112
|
}
|
@@ -17115,14 +17115,14 @@ var require_websocket = __commonJS({
|
|
17115
17115
|
webidl.brandCheck(this, _WebSocket);
|
17116
17116
|
return this.#events.close;
|
17117
17117
|
}
|
17118
|
-
set onclose(
|
17118
|
+
set onclose(fn2) {
|
17119
17119
|
webidl.brandCheck(this, _WebSocket);
|
17120
17120
|
if (this.#events.close) {
|
17121
17121
|
this.removeEventListener("close", this.#events.close);
|
17122
17122
|
}
|
17123
|
-
if (typeof
|
17124
|
-
this.#events.close =
|
17125
|
-
this.addEventListener("close",
|
17123
|
+
if (typeof fn2 === "function") {
|
17124
|
+
this.#events.close = fn2;
|
17125
|
+
this.addEventListener("close", fn2);
|
17126
17126
|
} else {
|
17127
17127
|
this.#events.close = null;
|
17128
17128
|
}
|
@@ -17131,14 +17131,14 @@ var require_websocket = __commonJS({
|
|
17131
17131
|
webidl.brandCheck(this, _WebSocket);
|
17132
17132
|
return this.#events.message;
|
17133
17133
|
}
|
17134
|
-
set onmessage(
|
17134
|
+
set onmessage(fn2) {
|
17135
17135
|
webidl.brandCheck(this, _WebSocket);
|
17136
17136
|
if (this.#events.message) {
|
17137
17137
|
this.removeEventListener("message", this.#events.message);
|
17138
17138
|
}
|
17139
|
-
if (typeof
|
17140
|
-
this.#events.message =
|
17141
|
-
this.addEventListener("message",
|
17139
|
+
if (typeof fn2 === "function") {
|
17140
|
+
this.#events.message = fn2;
|
17141
|
+
this.addEventListener("message", fn2);
|
17142
17142
|
} else {
|
17143
17143
|
this.#events.message = null;
|
17144
17144
|
}
|
@@ -17309,7 +17309,7 @@ var require_undici = __commonJS({
|
|
17309
17309
|
module3.exports.createRedirectInterceptor = createRedirectInterceptor;
|
17310
17310
|
module3.exports.buildConnector = buildConnector;
|
17311
17311
|
module3.exports.errors = errors;
|
17312
|
-
function makeDispatcher(
|
17312
|
+
function makeDispatcher(fn2) {
|
17313
17313
|
return (url4, opts, handler) => {
|
17314
17314
|
if (typeof opts === "function") {
|
17315
17315
|
handler = opts;
|
@@ -17325,11 +17325,11 @@ var require_undici = __commonJS({
|
|
17325
17325
|
if (typeof opts.path !== "string") {
|
17326
17326
|
throw new InvalidArgumentError("invalid opts.path");
|
17327
17327
|
}
|
17328
|
-
let
|
17328
|
+
let path70 = opts.path;
|
17329
17329
|
if (!opts.path.startsWith("/")) {
|
17330
|
-
|
17330
|
+
path70 = `/${path70}`;
|
17331
17331
|
}
|
17332
|
-
url4 = new URL(util5.parseOrigin(url4).origin +
|
17332
|
+
url4 = new URL(util5.parseOrigin(url4).origin + path70);
|
17333
17333
|
} else {
|
17334
17334
|
if (!opts) {
|
17335
17335
|
opts = typeof url4 === "object" ? url4 : {};
|
@@ -17340,7 +17340,7 @@ var require_undici = __commonJS({
|
|
17340
17340
|
if (agent) {
|
17341
17341
|
throw new InvalidArgumentError("unsupported opts.agent. Did you mean opts.client?");
|
17342
17342
|
}
|
17343
|
-
return
|
17343
|
+
return fn2.call(dispatcher, {
|
17344
17344
|
...opts,
|
17345
17345
|
origin: url4.origin,
|
17346
17346
|
path: url4.search ? `${url4.pathname}${url4.search}` : url4.pathname,
|
@@ -17568,7 +17568,7 @@ var require_XDGAppPaths = __commonJS({
|
|
17568
17568
|
}
|
17569
17569
|
__name(typeOf, "typeOf");
|
17570
17570
|
function Adapt(adapter_) {
|
17571
|
-
var meta = adapter_.meta,
|
17571
|
+
var meta = adapter_.meta, path70 = adapter_.path, xdg = adapter_.xdg;
|
17572
17572
|
var XDGAppPaths_ = /* @__PURE__ */ function() {
|
17573
17573
|
function XDGAppPaths_2(options_) {
|
17574
17574
|
if (options_ === void 0) {
|
@@ -17591,7 +17591,7 @@ var require_XDGAppPaths = __commonJS({
|
|
17591
17591
|
meta.mainFilename()
|
17592
17592
|
];
|
17593
17593
|
var nameFallback = "$eval";
|
17594
|
-
var name2 =
|
17594
|
+
var name2 = path70.parse(((_c2 = namePriorityList.find(function(e7) {
|
17595
17595
|
return isString4(e7);
|
17596
17596
|
})) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
|
17597
17597
|
XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
|
@@ -17612,28 +17612,28 @@ var require_XDGAppPaths = __commonJS({
|
|
17612
17612
|
}
|
17613
17613
|
__name(finalPathSegment, "finalPathSegment");
|
17614
17614
|
XDGAppPaths.cache = /* @__PURE__ */ __name(function cache6(dirOptions) {
|
17615
|
-
return
|
17615
|
+
return path70.join(xdg.cache(), finalPathSegment(dirOptions));
|
17616
17616
|
}, "cache");
|
17617
17617
|
XDGAppPaths.config = /* @__PURE__ */ __name(function config(dirOptions) {
|
17618
|
-
return
|
17618
|
+
return path70.join(xdg.config(), finalPathSegment(dirOptions));
|
17619
17619
|
}, "config");
|
17620
17620
|
XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
|
17621
|
-
return
|
17621
|
+
return path70.join(xdg.data(), finalPathSegment(dirOptions));
|
17622
17622
|
}, "data");
|
17623
17623
|
XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
|
17624
|
-
return xdg.runtime() ?
|
17624
|
+
return xdg.runtime() ? path70.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
|
17625
17625
|
}, "runtime");
|
17626
17626
|
XDGAppPaths.state = /* @__PURE__ */ __name(function state2(dirOptions) {
|
17627
|
-
return
|
17627
|
+
return path70.join(xdg.state(), finalPathSegment(dirOptions));
|
17628
17628
|
}, "state");
|
17629
17629
|
XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
|
17630
17630
|
return xdg.configDirs().map(function(s5) {
|
17631
|
-
return
|
17631
|
+
return path70.join(s5, finalPathSegment(dirOptions));
|
17632
17632
|
});
|
17633
17633
|
}, "configDirs");
|
17634
17634
|
XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
|
17635
17635
|
return xdg.dataDirs().map(function(s5) {
|
17636
|
-
return
|
17636
|
+
return path70.join(s5, finalPathSegment(dirOptions));
|
17637
17637
|
});
|
17638
17638
|
}, "dataDirs");
|
17639
17639
|
return XDGAppPaths;
|
@@ -17661,7 +17661,7 @@ var require_XDG = __commonJS({
|
|
17661
17661
|
exports2.__esModule = true;
|
17662
17662
|
exports2.Adapt = void 0;
|
17663
17663
|
function Adapt(adapter_) {
|
17664
|
-
var env6 = adapter_.env, osPaths = adapter_.osPaths,
|
17664
|
+
var env6 = adapter_.env, osPaths = adapter_.osPaths, path70 = adapter_.path;
|
17665
17665
|
var isMacOS = /^darwin$/i.test(adapter_.process.platform);
|
17666
17666
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
17667
17667
|
function baseDir() {
|
@@ -17669,7 +17669,7 @@ var require_XDG = __commonJS({
|
|
17669
17669
|
}
|
17670
17670
|
__name(baseDir, "baseDir");
|
17671
17671
|
function valOrPath(val2, pathSegments) {
|
17672
|
-
return val2 ||
|
17672
|
+
return val2 || path70.join.apply(path70, pathSegments);
|
17673
17673
|
}
|
17674
17674
|
__name(valOrPath, "valOrPath");
|
17675
17675
|
var linux = /* @__PURE__ */ __name(function() {
|
@@ -17748,11 +17748,11 @@ var require_XDG = __commonJS({
|
|
17748
17748
|
XDG.state = extension.state;
|
17749
17749
|
XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
|
17750
17750
|
var pathList = env6.get("XDG_CONFIG_DIRS");
|
17751
|
-
return __spreadArray([extension.config()], pathList ? pathList.split(
|
17751
|
+
return __spreadArray([extension.config()], pathList ? pathList.split(path70.delimiter) : []);
|
17752
17752
|
}, "configDirs");
|
17753
17753
|
XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
|
17754
17754
|
var pathList = env6.get("XDG_DATA_DIRS");
|
17755
|
-
return __spreadArray([extension.data()], pathList ? pathList.split(
|
17755
|
+
return __spreadArray([extension.data()], pathList ? pathList.split(path70.delimiter) : []);
|
17756
17756
|
}, "dataDirs");
|
17757
17757
|
return XDG;
|
17758
17758
|
}
|
@@ -17783,7 +17783,7 @@ var require_OSPaths = __commonJS({
|
|
17783
17783
|
}
|
17784
17784
|
__name(isEmpty, "isEmpty");
|
17785
17785
|
function Adapt(adapter_) {
|
17786
|
-
var env6 = adapter_.env, os11 = adapter_.os,
|
17786
|
+
var env6 = adapter_.env, os11 = adapter_.os, path70 = adapter_.path;
|
17787
17787
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
17788
17788
|
function normalizePath2(path_) {
|
17789
17789
|
return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
|
@@ -17798,7 +17798,7 @@ var require_OSPaths = __commonJS({
|
|
17798
17798
|
typeof os11.homedir === "function" ? os11.homedir() : void 0,
|
17799
17799
|
env6.get("USERPROFILE"),
|
17800
17800
|
env6.get("HOME"),
|
17801
|
-
env6.get("HOMEDRIVE") || env6.get("HOMEPATH") ?
|
17801
|
+
env6.get("HOMEDRIVE") || env6.get("HOMEPATH") ? path70.join(env6.get("HOMEDRIVE") || "", env6.get("HOMEPATH") || "") : void 0
|
17802
17802
|
];
|
17803
17803
|
return normalizePath2(priorityList.find(function(v7) {
|
17804
17804
|
return !isEmpty(v7);
|
@@ -17809,7 +17809,7 @@ var require_OSPaths = __commonJS({
|
|
17809
17809
|
__name(home, "home");
|
17810
17810
|
function temp() {
|
17811
17811
|
function joinPathToBase(base, segments) {
|
17812
|
-
return base ?
|
17812
|
+
return base ? path70.join.apply(path70, __spreadArray([base], segments)) : void 0;
|
17813
17813
|
}
|
17814
17814
|
__name(joinPathToBase, "joinPathToBase");
|
17815
17815
|
function posix2() {
|
@@ -17916,7 +17916,7 @@ var require_node = __commonJS({
|
|
17916
17916
|
exports2.__esModule = true;
|
17917
17917
|
exports2.adapter = void 0;
|
17918
17918
|
var os11 = __importStar(require("os"));
|
17919
|
-
var
|
17919
|
+
var path70 = __importStar(require("path"));
|
17920
17920
|
exports2.adapter = {
|
17921
17921
|
atImportPermissions: { env: true },
|
17922
17922
|
env: {
|
@@ -17925,7 +17925,7 @@ var require_node = __commonJS({
|
|
17925
17925
|
}, "get")
|
17926
17926
|
},
|
17927
17927
|
os: os11,
|
17928
|
-
path:
|
17928
|
+
path: path70,
|
17929
17929
|
process
|
17930
17930
|
};
|
17931
17931
|
}
|
@@ -17975,7 +17975,7 @@ var require_node2 = __commonJS({
|
|
17975
17975
|
};
|
17976
17976
|
exports2.__esModule = true;
|
17977
17977
|
exports2.adapter = void 0;
|
17978
|
-
var
|
17978
|
+
var path70 = __importStar(require("path"));
|
17979
17979
|
var os_paths_1 = __importDefault(require_mod_cjs());
|
17980
17980
|
exports2.adapter = {
|
17981
17981
|
atImportPermissions: { env: true },
|
@@ -17985,7 +17985,7 @@ var require_node2 = __commonJS({
|
|
17985
17985
|
}, "get")
|
17986
17986
|
},
|
17987
17987
|
osPaths: os_paths_1["default"],
|
17988
|
-
path:
|
17988
|
+
path: path70,
|
17989
17989
|
process
|
17990
17990
|
};
|
17991
17991
|
}
|
@@ -18035,7 +18035,7 @@ var require_node3 = __commonJS({
|
|
18035
18035
|
};
|
18036
18036
|
exports2.__esModule = true;
|
18037
18037
|
exports2.adapter = void 0;
|
18038
|
-
var
|
18038
|
+
var path70 = __importStar(require("path"));
|
18039
18039
|
var xdg_portable_1 = __importDefault(require_mod_cjs2());
|
18040
18040
|
exports2.adapter = {
|
18041
18041
|
atImportPermissions: { env: true, read: true },
|
@@ -18050,7 +18050,7 @@ var require_node3 = __commonJS({
|
|
18050
18050
|
return process.pkg ? process.execPath : void 0;
|
18051
18051
|
}, "pkgMainFilename")
|
18052
18052
|
},
|
18053
|
-
path:
|
18053
|
+
path: path70,
|
18054
18054
|
process,
|
18055
18055
|
xdg: xdg_portable_1["default"]
|
18056
18056
|
};
|
@@ -20376,17 +20376,17 @@ var require_ignore = __commonJS({
|
|
20376
20376
|
var throwError = /* @__PURE__ */ __name((message, Ctor) => {
|
20377
20377
|
throw new Ctor(message);
|
20378
20378
|
}, "throwError");
|
20379
|
-
var checkPath2 = /* @__PURE__ */ __name((
|
20380
|
-
if (!isString4(
|
20379
|
+
var checkPath2 = /* @__PURE__ */ __name((path70, originalPath, doThrow) => {
|
20380
|
+
if (!isString4(path70)) {
|
20381
20381
|
return doThrow(
|
20382
20382
|
`path must be a string, but got \`${originalPath}\``,
|
20383
20383
|
TypeError
|
20384
20384
|
);
|
20385
20385
|
}
|
20386
|
-
if (!
|
20386
|
+
if (!path70) {
|
20387
20387
|
return doThrow(`path must not be empty`, TypeError);
|
20388
20388
|
}
|
20389
|
-
if (checkPath2.isNotRelative(
|
20389
|
+
if (checkPath2.isNotRelative(path70)) {
|
20390
20390
|
const r7 = "`path.relative()`d";
|
20391
20391
|
return doThrow(
|
20392
20392
|
`path should be a ${r7} string, but got "${originalPath}"`,
|
@@ -20395,7 +20395,7 @@ var require_ignore = __commonJS({
|
|
20395
20395
|
}
|
20396
20396
|
return true;
|
20397
20397
|
}, "checkPath");
|
20398
|
-
var isNotRelative = /* @__PURE__ */ __name((
|
20398
|
+
var isNotRelative = /* @__PURE__ */ __name((path70) => REGEX_TEST_INVALID_PATH.test(path70), "isNotRelative");
|
20399
20399
|
checkPath2.isNotRelative = isNotRelative;
|
20400
20400
|
checkPath2.convert = (p6) => p6;
|
20401
20401
|
var Ignore = class {
|
@@ -20457,7 +20457,7 @@ var require_ignore = __commonJS({
|
|
20457
20457
|
// setting `checkUnignored` to `false` could reduce additional
|
20458
20458
|
// path matching.
|
20459
20459
|
// @returns {TestResult} true if a file is ignored
|
20460
|
-
_testOne(
|
20460
|
+
_testOne(path70, checkUnignored) {
|
20461
20461
|
let ignored = false;
|
20462
20462
|
let unignored = false;
|
20463
20463
|
this._rules.forEach((rule) => {
|
@@ -20465,7 +20465,7 @@ var require_ignore = __commonJS({
|
|
20465
20465
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
20466
20466
|
return;
|
20467
20467
|
}
|
20468
|
-
const matched = rule.regex.test(
|
20468
|
+
const matched = rule.regex.test(path70);
|
20469
20469
|
if (matched) {
|
20470
20470
|
ignored = !negative;
|
20471
20471
|
unignored = negative;
|
@@ -20478,24 +20478,24 @@ var require_ignore = __commonJS({
|
|
20478
20478
|
}
|
20479
20479
|
// @returns {TestResult}
|
20480
20480
|
_test(originalPath, cache6, checkUnignored, slices) {
|
20481
|
-
const
|
20481
|
+
const path70 = originalPath && checkPath2.convert(originalPath);
|
20482
20482
|
checkPath2(
|
20483
|
-
|
20483
|
+
path70,
|
20484
20484
|
originalPath,
|
20485
20485
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
20486
20486
|
);
|
20487
|
-
return this._t(
|
20487
|
+
return this._t(path70, cache6, checkUnignored, slices);
|
20488
20488
|
}
|
20489
|
-
_t(
|
20490
|
-
if (
|
20491
|
-
return cache6[
|
20489
|
+
_t(path70, cache6, checkUnignored, slices) {
|
20490
|
+
if (path70 in cache6) {
|
20491
|
+
return cache6[path70];
|
20492
20492
|
}
|
20493
20493
|
if (!slices) {
|
20494
|
-
slices =
|
20494
|
+
slices = path70.split(SLASH2);
|
20495
20495
|
}
|
20496
20496
|
slices.pop();
|
20497
20497
|
if (!slices.length) {
|
20498
|
-
return cache6[
|
20498
|
+
return cache6[path70] = this._testOne(path70, checkUnignored);
|
20499
20499
|
}
|
20500
20500
|
const parent = this._t(
|
20501
20501
|
slices.join(SLASH2) + SLASH2,
|
@@ -20503,24 +20503,24 @@ var require_ignore = __commonJS({
|
|
20503
20503
|
checkUnignored,
|
20504
20504
|
slices
|
20505
20505
|
);
|
20506
|
-
return cache6[
|
20506
|
+
return cache6[path70] = parent.ignored ? parent : this._testOne(path70, checkUnignored);
|
20507
20507
|
}
|
20508
|
-
ignores(
|
20509
|
-
return this._test(
|
20508
|
+
ignores(path70) {
|
20509
|
+
return this._test(path70, this._ignoreCache, false).ignored;
|
20510
20510
|
}
|
20511
20511
|
createFilter() {
|
20512
|
-
return (
|
20512
|
+
return (path70) => !this.ignores(path70);
|
20513
20513
|
}
|
20514
20514
|
filter(paths) {
|
20515
20515
|
return makeArray(paths).filter(this.createFilter());
|
20516
20516
|
}
|
20517
20517
|
// @returns {TestResult}
|
20518
|
-
test(
|
20519
|
-
return this._test(
|
20518
|
+
test(path70) {
|
20519
|
+
return this._test(path70, this._testCache, true);
|
20520
20520
|
}
|
20521
20521
|
};
|
20522
20522
|
var factory = /* @__PURE__ */ __name((options) => new Ignore(options), "factory");
|
20523
|
-
var isPathValid = /* @__PURE__ */ __name((
|
20523
|
+
var isPathValid = /* @__PURE__ */ __name((path70) => checkPath2(path70 && checkPath2.convert(path70), path70, RETURN_FALSE), "isPathValid");
|
20524
20524
|
factory.isPathValid = isPathValid;
|
20525
20525
|
factory.default = factory;
|
20526
20526
|
module3.exports = factory;
|
@@ -20531,7 +20531,7 @@ var require_ignore = __commonJS({
|
|
20531
20531
|
const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
|
20532
20532
|
checkPath2.convert = makePosix;
|
20533
20533
|
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
20534
|
-
checkPath2.isNotRelative = (
|
20534
|
+
checkPath2.isNotRelative = (path70) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path70) || isNotRelative(path70);
|
20535
20535
|
}
|
20536
20536
|
}
|
20537
20537
|
});
|
@@ -20576,11 +20576,11 @@ var require_Mime = __commonJS({
|
|
20576
20576
|
}
|
20577
20577
|
}
|
20578
20578
|
};
|
20579
|
-
Mime.prototype.getType = function(
|
20580
|
-
|
20581
|
-
let last =
|
20579
|
+
Mime.prototype.getType = function(path70) {
|
20580
|
+
path70 = String(path70);
|
20581
|
+
let last = path70.replace(/^.*[/\\]/, "").toLowerCase();
|
20582
20582
|
let ext = last.replace(/^.*\./, "").toLowerCase();
|
20583
|
-
let hasPath = last.length <
|
20583
|
+
let hasPath = last.length < path70.length;
|
20584
20584
|
let hasDot = ext.length < last.length - 1;
|
20585
20585
|
return (hasDot || !hasPath) && this._types[ext] || null;
|
20586
20586
|
};
|
@@ -20705,21 +20705,21 @@ var require_parser = __commonJS({
|
|
20705
20705
|
this._buf = null;
|
20706
20706
|
return this.obj;
|
20707
20707
|
}
|
20708
|
-
next(
|
20709
|
-
if (typeof
|
20710
|
-
this.state.parser =
|
20708
|
+
next(fn2) {
|
20709
|
+
if (typeof fn2 !== "function") throw new ParserError("Tried to set state to non-existent state: " + JSON.stringify(fn2));
|
20710
|
+
this.state.parser = fn2;
|
20711
20711
|
}
|
20712
|
-
goto(
|
20713
|
-
this.next(
|
20712
|
+
goto(fn2) {
|
20713
|
+
this.next(fn2);
|
20714
20714
|
return this.runOne();
|
20715
20715
|
}
|
20716
|
-
call(
|
20716
|
+
call(fn2, returnWith) {
|
20717
20717
|
if (returnWith) this.next(returnWith);
|
20718
20718
|
this.stack.push(this.state);
|
20719
|
-
this.state = new State(
|
20719
|
+
this.state = new State(fn2);
|
20720
20720
|
}
|
20721
|
-
callNow(
|
20722
|
-
this.call(
|
20721
|
+
callNow(fn2, returnWith) {
|
20722
|
+
this.call(fn2, returnWith);
|
20723
20723
|
return this.runOne();
|
20724
20724
|
}
|
20725
20725
|
return(value) {
|
@@ -22804,7 +22804,7 @@ var require_main2 = __commonJS({
|
|
22804
22804
|
"../../node_modules/.pnpm/dotenv@16.3.1/node_modules/dotenv/lib/main.js"(exports2, module3) {
|
22805
22805
|
init_import_meta_url();
|
22806
22806
|
var fs23 = require("fs");
|
22807
|
-
var
|
22807
|
+
var path70 = require("path");
|
22808
22808
|
var os11 = require("os");
|
22809
22809
|
var crypto8 = require("crypto");
|
22810
22810
|
var packageJson = require_package();
|
@@ -22903,7 +22903,7 @@ var require_main2 = __commonJS({
|
|
22903
22903
|
}
|
22904
22904
|
__name(_instructions, "_instructions");
|
22905
22905
|
function _vaultPath(options) {
|
22906
|
-
let dotenvPath =
|
22906
|
+
let dotenvPath = path70.resolve(process.cwd(), ".env");
|
22907
22907
|
if (options && options.path && options.path.length > 0) {
|
22908
22908
|
dotenvPath = options.path;
|
22909
22909
|
}
|
@@ -22911,7 +22911,7 @@ var require_main2 = __commonJS({
|
|
22911
22911
|
}
|
22912
22912
|
__name(_vaultPath, "_vaultPath");
|
22913
22913
|
function _resolveHome(envPath) {
|
22914
|
-
return envPath[0] === "~" ?
|
22914
|
+
return envPath[0] === "~" ? path70.join(os11.homedir(), envPath.slice(1)) : envPath;
|
22915
22915
|
}
|
22916
22916
|
__name(_resolveHome, "_resolveHome");
|
22917
22917
|
function _configVault(options) {
|
@@ -22926,7 +22926,7 @@ var require_main2 = __commonJS({
|
|
22926
22926
|
}
|
22927
22927
|
__name(_configVault, "_configVault");
|
22928
22928
|
function configDotenv(options) {
|
22929
|
-
let dotenvPath =
|
22929
|
+
let dotenvPath = path70.resolve(process.cwd(), ".env");
|
22930
22930
|
let encoding = "utf8";
|
22931
22931
|
const debug = Boolean(options && options.debug);
|
22932
22932
|
if (options) {
|
@@ -24201,11 +24201,11 @@ var require_text = __commonJS({
|
|
24201
24201
|
}
|
24202
24202
|
}
|
24203
24203
|
__name(asyncGeneratorStep, "asyncGeneratorStep");
|
24204
|
-
function _asyncToGenerator(
|
24204
|
+
function _asyncToGenerator(fn2) {
|
24205
24205
|
return function() {
|
24206
24206
|
var self2 = this, args = arguments;
|
24207
24207
|
return new Promise(function(resolve24, reject) {
|
24208
|
-
var gen =
|
24208
|
+
var gen = fn2.apply(self2, args);
|
24209
24209
|
function _next(value) {
|
24210
24210
|
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
|
24211
24211
|
}
|
@@ -24993,11 +24993,11 @@ var require_date = __commonJS({
|
|
24993
24993
|
}
|
24994
24994
|
}
|
24995
24995
|
__name(asyncGeneratorStep, "asyncGeneratorStep");
|
24996
|
-
function _asyncToGenerator(
|
24996
|
+
function _asyncToGenerator(fn2) {
|
24997
24997
|
return function() {
|
24998
24998
|
var self2 = this, args = arguments;
|
24999
24999
|
return new Promise(function(resolve24, reject) {
|
25000
|
-
var gen =
|
25000
|
+
var gen = fn2.apply(self2, args);
|
25001
25001
|
function _next(value) {
|
25002
25002
|
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
|
25003
25003
|
}
|
@@ -25227,11 +25227,11 @@ var require_number = __commonJS({
|
|
25227
25227
|
}
|
25228
25228
|
}
|
25229
25229
|
__name(asyncGeneratorStep, "asyncGeneratorStep");
|
25230
|
-
function _asyncToGenerator(
|
25230
|
+
function _asyncToGenerator(fn2) {
|
25231
25231
|
return function() {
|
25232
25232
|
var self2 = this, args = arguments;
|
25233
25233
|
return new Promise(function(resolve24, reject) {
|
25234
|
-
var gen =
|
25234
|
+
var gen = fn2.apply(self2, args);
|
25235
25235
|
function _next(value) {
|
25236
25236
|
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
|
25237
25237
|
}
|
@@ -25685,11 +25685,11 @@ var require_autocomplete = __commonJS({
|
|
25685
25685
|
}
|
25686
25686
|
}
|
25687
25687
|
__name(asyncGeneratorStep, "asyncGeneratorStep");
|
25688
|
-
function _asyncToGenerator(
|
25688
|
+
function _asyncToGenerator(fn2) {
|
25689
25689
|
return function() {
|
25690
25690
|
var self2 = this, args = arguments;
|
25691
25691
|
return new Promise(function(resolve24, reject) {
|
25692
|
-
var gen =
|
25692
|
+
var gen = fn2.apply(self2, args);
|
25693
25693
|
function _next(value) {
|
25694
25694
|
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
|
25695
25695
|
}
|
@@ -26364,11 +26364,11 @@ var require_dist2 = __commonJS({
|
|
26364
26364
|
}
|
26365
26365
|
}
|
26366
26366
|
__name(asyncGeneratorStep, "asyncGeneratorStep");
|
26367
|
-
function _asyncToGenerator(
|
26367
|
+
function _asyncToGenerator(fn2) {
|
26368
26368
|
return function() {
|
26369
26369
|
var self2 = this, args = arguments;
|
26370
26370
|
return new Promise(function(resolve24, reject) {
|
26371
|
-
var gen =
|
26371
|
+
var gen = fn2.apply(self2, args);
|
26372
26372
|
function _next(value) {
|
26373
26373
|
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
|
26374
26374
|
}
|
@@ -28816,13 +28816,13 @@ var require_define_lazy_prop = __commonJS({
|
|
28816
28816
|
"../../node_modules/.pnpm/define-lazy-prop@2.0.0/node_modules/define-lazy-prop/index.js"(exports2, module3) {
|
28817
28817
|
"use strict";
|
28818
28818
|
init_import_meta_url();
|
28819
|
-
module3.exports = (object, propertyName,
|
28819
|
+
module3.exports = (object, propertyName, fn2) => {
|
28820
28820
|
const define = /* @__PURE__ */ __name((value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true }), "define");
|
28821
28821
|
Object.defineProperty(object, propertyName, {
|
28822
28822
|
configurable: true,
|
28823
28823
|
enumerable: true,
|
28824
28824
|
get() {
|
28825
|
-
const result =
|
28825
|
+
const result = fn2();
|
28826
28826
|
define(result);
|
28827
28827
|
return result;
|
28828
28828
|
},
|
@@ -28839,13 +28839,13 @@ var require_define_lazy_prop = __commonJS({
|
|
28839
28839
|
var require_open = __commonJS({
|
28840
28840
|
"../../node_modules/.pnpm/open@8.4.0/node_modules/open/index.js"(exports2, module3) {
|
28841
28841
|
init_import_meta_url();
|
28842
|
-
var
|
28842
|
+
var path70 = require("path");
|
28843
28843
|
var childProcess2 = require("child_process");
|
28844
28844
|
var { promises: fs23, constants: fsConstants } = require("fs");
|
28845
28845
|
var isWsl = require_is_wsl();
|
28846
28846
|
var isDocker = require_is_docker();
|
28847
28847
|
var defineLazyProperty = require_define_lazy_prop();
|
28848
|
-
var localXdgOpenPath =
|
28848
|
+
var localXdgOpenPath = path70.join(__dirname, "xdg-open");
|
28849
28849
|
var { platform: platform3, arch: arch2 } = process;
|
28850
28850
|
var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
28851
28851
|
const defaultMountPoint = "/mnt/";
|
@@ -29276,8 +29276,8 @@ var require_path_parse = __commonJS({
|
|
29276
29276
|
var require_node_modules_paths = __commonJS({
|
29277
29277
|
"../../node_modules/.pnpm/resolve@1.22.8/node_modules/resolve/lib/node-modules-paths.js"(exports2, module3) {
|
29278
29278
|
init_import_meta_url();
|
29279
|
-
var
|
29280
|
-
var parse7 =
|
29279
|
+
var path70 = require("path");
|
29280
|
+
var parse7 = path70.parse || require_path_parse();
|
29281
29281
|
var getNodeModulesDirs = /* @__PURE__ */ __name(function getNodeModulesDirs2(absoluteStart, modules) {
|
29282
29282
|
var prefix = "/";
|
29283
29283
|
if (/^([A-Za-z]:)/.test(absoluteStart)) {
|
@@ -29293,7 +29293,7 @@ var require_node_modules_paths = __commonJS({
|
|
29293
29293
|
}
|
29294
29294
|
return paths.reduce(function(dirs, aPath) {
|
29295
29295
|
return dirs.concat(modules.map(function(moduleDir) {
|
29296
|
-
return
|
29296
|
+
return path70.resolve(prefix, aPath, moduleDir);
|
29297
29297
|
}));
|
29298
29298
|
}, []);
|
29299
29299
|
}, "getNodeModulesDirs");
|
@@ -29659,7 +29659,7 @@ var require_async = __commonJS({
|
|
29659
29659
|
init_import_meta_url();
|
29660
29660
|
var fs23 = require("fs");
|
29661
29661
|
var getHomedir = require_homedir();
|
29662
|
-
var
|
29662
|
+
var path70 = require("path");
|
29663
29663
|
var caller = require_caller();
|
29664
29664
|
var nodeModulesPaths = require_node_modules_paths();
|
29665
29665
|
var normalizeOptions = require_normalize_options();
|
@@ -29668,8 +29668,8 @@ var require_async = __commonJS({
|
|
29668
29668
|
var homedir3 = getHomedir();
|
29669
29669
|
var defaultPaths = /* @__PURE__ */ __name(function() {
|
29670
29670
|
return [
|
29671
|
-
|
29672
|
-
|
29671
|
+
path70.join(homedir3, ".node_modules"),
|
29672
|
+
path70.join(homedir3, ".node_libraries")
|
29673
29673
|
];
|
29674
29674
|
}, "defaultPaths");
|
29675
29675
|
var defaultIsFile = /* @__PURE__ */ __name(function isFile(file, cb2) {
|
@@ -29719,7 +29719,7 @@ var require_async = __commonJS({
|
|
29719
29719
|
var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x6, start, opts) {
|
29720
29720
|
var dirs = nodeModulesPaths(start, opts, x6);
|
29721
29721
|
for (var i5 = 0; i5 < dirs.length; i5++) {
|
29722
|
-
dirs[i5] =
|
29722
|
+
dirs[i5] = path70.join(dirs[i5], x6);
|
29723
29723
|
}
|
29724
29724
|
return dirs;
|
29725
29725
|
}, "getPackageCandidates");
|
@@ -29751,10 +29751,10 @@ var require_async = __commonJS({
|
|
29751
29751
|
var packageIterator = opts.packageIterator;
|
29752
29752
|
var extensions = opts.extensions || [".js"];
|
29753
29753
|
var includeCoreModules = opts.includeCoreModules !== false;
|
29754
|
-
var basedir = opts.basedir ||
|
29754
|
+
var basedir = opts.basedir || path70.dirname(caller());
|
29755
29755
|
var parent = opts.filename || basedir;
|
29756
29756
|
opts.paths = opts.paths || defaultPaths();
|
29757
|
-
var absoluteStart =
|
29757
|
+
var absoluteStart = path70.resolve(basedir);
|
29758
29758
|
maybeRealpath(
|
29759
29759
|
realpath2,
|
29760
29760
|
absoluteStart,
|
@@ -29767,7 +29767,7 @@ var require_async = __commonJS({
|
|
29767
29767
|
var res;
|
29768
29768
|
function init3(basedir2) {
|
29769
29769
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x6)) {
|
29770
|
-
res =
|
29770
|
+
res = path70.resolve(basedir2, x6);
|
29771
29771
|
if (x6 === "." || x6 === ".." || x6.slice(-1) === "/") res += "/";
|
29772
29772
|
if (/\/$/.test(x6) && res === basedir2) {
|
29773
29773
|
loadAsDirectory(res, opts.package, onfile);
|
@@ -29827,17 +29827,17 @@ var require_async = __commonJS({
|
|
29827
29827
|
var file = x8 + exts2[0];
|
29828
29828
|
var pkg = loadPackage;
|
29829
29829
|
if (pkg) onpkg(null, pkg);
|
29830
|
-
else loadpkg(
|
29830
|
+
else loadpkg(path70.dirname(file), onpkg);
|
29831
29831
|
function onpkg(err2, pkg_, dir) {
|
29832
29832
|
pkg = pkg_;
|
29833
29833
|
if (err2) return cb3(err2);
|
29834
29834
|
if (dir && pkg && opts.pathFilter) {
|
29835
|
-
var rfile =
|
29835
|
+
var rfile = path70.relative(dir, file);
|
29836
29836
|
var rel = rfile.slice(0, rfile.length - exts2[0].length);
|
29837
29837
|
var r7 = opts.pathFilter(pkg, x8, rel);
|
29838
29838
|
if (r7) return load(
|
29839
29839
|
[""].concat(extensions.slice()),
|
29840
|
-
|
29840
|
+
path70.resolve(dir, r7),
|
29841
29841
|
pkg
|
29842
29842
|
);
|
29843
29843
|
}
|
@@ -29861,10 +29861,10 @@ var require_async = __commonJS({
|
|
29861
29861
|
}
|
29862
29862
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return cb3(null);
|
29863
29863
|
maybeRealpath(realpath2, dir, opts, function(unwrapErr, pkgdir) {
|
29864
|
-
if (unwrapErr) return loadpkg(
|
29865
|
-
var pkgfile =
|
29864
|
+
if (unwrapErr) return loadpkg(path70.dirname(dir), cb3);
|
29865
|
+
var pkgfile = path70.join(pkgdir, "package.json");
|
29866
29866
|
isFile(pkgfile, function(err2, ex) {
|
29867
|
-
if (!ex) return loadpkg(
|
29867
|
+
if (!ex) return loadpkg(path70.dirname(dir), cb3);
|
29868
29868
|
readPackage(readFile18, pkgfile, function(err3, pkgParam) {
|
29869
29869
|
if (err3) cb3(err3);
|
29870
29870
|
var pkg = pkgParam;
|
@@ -29886,10 +29886,10 @@ var require_async = __commonJS({
|
|
29886
29886
|
}
|
29887
29887
|
maybeRealpath(realpath2, x7, opts, function(unwrapErr, pkgdir) {
|
29888
29888
|
if (unwrapErr) return cb3(unwrapErr);
|
29889
|
-
var pkgfile =
|
29889
|
+
var pkgfile = path70.join(pkgdir, "package.json");
|
29890
29890
|
isFile(pkgfile, function(err2, ex) {
|
29891
29891
|
if (err2) return cb3(err2);
|
29892
|
-
if (!ex) return loadAsFile(
|
29892
|
+
if (!ex) return loadAsFile(path70.join(x7, "index"), fpkg, cb3);
|
29893
29893
|
readPackage(readFile18, pkgfile, function(err3, pkgParam) {
|
29894
29894
|
if (err3) return cb3(err3);
|
29895
29895
|
var pkg = pkgParam;
|
@@ -29905,20 +29905,20 @@ var require_async = __commonJS({
|
|
29905
29905
|
if (pkg.main === "." || pkg.main === "./") {
|
29906
29906
|
pkg.main = "index";
|
29907
29907
|
}
|
29908
|
-
loadAsFile(
|
29908
|
+
loadAsFile(path70.resolve(x7, pkg.main), pkg, function(err4, m6, pkg2) {
|
29909
29909
|
if (err4) return cb3(err4);
|
29910
29910
|
if (m6) return cb3(null, m6, pkg2);
|
29911
|
-
if (!pkg2) return loadAsFile(
|
29912
|
-
var dir =
|
29911
|
+
if (!pkg2) return loadAsFile(path70.join(x7, "index"), pkg2, cb3);
|
29912
|
+
var dir = path70.resolve(x7, pkg2.main);
|
29913
29913
|
loadAsDirectory(dir, pkg2, function(err5, n6, pkg3) {
|
29914
29914
|
if (err5) return cb3(err5);
|
29915
29915
|
if (n6) return cb3(null, n6, pkg3);
|
29916
|
-
loadAsFile(
|
29916
|
+
loadAsFile(path70.join(x7, "index"), pkg3, cb3);
|
29917
29917
|
});
|
29918
29918
|
});
|
29919
29919
|
return;
|
29920
29920
|
}
|
29921
|
-
loadAsFile(
|
29921
|
+
loadAsFile(path70.join(x7, "/index"), pkg, cb3);
|
29922
29922
|
});
|
29923
29923
|
});
|
29924
29924
|
});
|
@@ -29927,7 +29927,7 @@ var require_async = __commonJS({
|
|
29927
29927
|
function processDirs(cb3, dirs) {
|
29928
29928
|
if (dirs.length === 0) return cb3(null, void 0);
|
29929
29929
|
var dir = dirs[0];
|
29930
|
-
isDirectory2(
|
29930
|
+
isDirectory2(path70.dirname(dir), isdir);
|
29931
29931
|
function isdir(err2, isdir2) {
|
29932
29932
|
if (err2) return cb3(err2);
|
29933
29933
|
if (!isdir2) return processDirs(cb3, dirs.slice(1));
|
@@ -30161,7 +30161,7 @@ var require_sync = __commonJS({
|
|
30161
30161
|
init_import_meta_url();
|
30162
30162
|
var isCore = require_is_core_module();
|
30163
30163
|
var fs23 = require("fs");
|
30164
|
-
var
|
30164
|
+
var path70 = require("path");
|
30165
30165
|
var getHomedir = require_homedir();
|
30166
30166
|
var caller = require_caller();
|
30167
30167
|
var nodeModulesPaths = require_node_modules_paths();
|
@@ -30170,8 +30170,8 @@ var require_sync = __commonJS({
|
|
30170
30170
|
var homedir3 = getHomedir();
|
30171
30171
|
var defaultPaths = /* @__PURE__ */ __name(function() {
|
30172
30172
|
return [
|
30173
|
-
|
30174
|
-
|
30173
|
+
path70.join(homedir3, ".node_modules"),
|
30174
|
+
path70.join(homedir3, ".node_libraries")
|
30175
30175
|
];
|
30176
30176
|
}, "defaultPaths");
|
30177
30177
|
var defaultIsFile = /* @__PURE__ */ __name(function isFile(file) {
|
@@ -30219,7 +30219,7 @@ var require_sync = __commonJS({
|
|
30219
30219
|
var getPackageCandidates = /* @__PURE__ */ __name(function getPackageCandidates2(x6, start, opts) {
|
30220
30220
|
var dirs = nodeModulesPaths(start, opts, x6);
|
30221
30221
|
for (var i5 = 0; i5 < dirs.length; i5++) {
|
30222
|
-
dirs[i5] =
|
30222
|
+
dirs[i5] = path70.join(dirs[i5], x6);
|
30223
30223
|
}
|
30224
30224
|
return dirs;
|
30225
30225
|
}, "getPackageCandidates");
|
@@ -30239,12 +30239,12 @@ var require_sync = __commonJS({
|
|
30239
30239
|
var packageIterator = opts.packageIterator;
|
30240
30240
|
var extensions = opts.extensions || [".js"];
|
30241
30241
|
var includeCoreModules = opts.includeCoreModules !== false;
|
30242
|
-
var basedir = opts.basedir ||
|
30242
|
+
var basedir = opts.basedir || path70.dirname(caller());
|
30243
30243
|
var parent = opts.filename || basedir;
|
30244
30244
|
opts.paths = opts.paths || defaultPaths();
|
30245
|
-
var absoluteStart = maybeRealpathSync(realpathSync4,
|
30245
|
+
var absoluteStart = maybeRealpathSync(realpathSync4, path70.resolve(basedir), opts);
|
30246
30246
|
if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x6)) {
|
30247
|
-
var res =
|
30247
|
+
var res = path70.resolve(absoluteStart, x6);
|
30248
30248
|
if (x6 === "." || x6 === ".." || x6.slice(-1) === "/") res += "/";
|
30249
30249
|
var m6 = loadAsFileSync(res) || loadAsDirectorySync(res);
|
30250
30250
|
if (m6) return maybeRealpathSync(realpathSync4, m6, opts);
|
@@ -30258,12 +30258,12 @@ var require_sync = __commonJS({
|
|
30258
30258
|
err.code = "MODULE_NOT_FOUND";
|
30259
30259
|
throw err;
|
30260
30260
|
function loadAsFileSync(x7) {
|
30261
|
-
var pkg = loadpkg(
|
30261
|
+
var pkg = loadpkg(path70.dirname(x7));
|
30262
30262
|
if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
|
30263
|
-
var rfile =
|
30263
|
+
var rfile = path70.relative(pkg.dir, x7);
|
30264
30264
|
var r7 = opts.pathFilter(pkg.pkg, x7, rfile);
|
30265
30265
|
if (r7) {
|
30266
|
-
x7 =
|
30266
|
+
x7 = path70.resolve(pkg.dir, r7);
|
30267
30267
|
}
|
30268
30268
|
}
|
30269
30269
|
if (isFile(x7)) {
|
@@ -30283,9 +30283,9 @@ var require_sync = __commonJS({
|
|
30283
30283
|
return;
|
30284
30284
|
}
|
30285
30285
|
if (/[/\\]node_modules[/\\]*$/.test(dir)) return;
|
30286
|
-
var pkgfile =
|
30286
|
+
var pkgfile = path70.join(maybeRealpathSync(realpathSync4, dir, opts), "package.json");
|
30287
30287
|
if (!isFile(pkgfile)) {
|
30288
|
-
return loadpkg(
|
30288
|
+
return loadpkg(path70.dirname(dir));
|
30289
30289
|
}
|
30290
30290
|
var pkg = readPackageSync(readFileSync29, pkgfile);
|
30291
30291
|
if (pkg && opts.packageFilter) {
|
@@ -30299,7 +30299,7 @@ var require_sync = __commonJS({
|
|
30299
30299
|
}
|
30300
30300
|
__name(loadpkg, "loadpkg");
|
30301
30301
|
function loadAsDirectorySync(x7) {
|
30302
|
-
var pkgfile =
|
30302
|
+
var pkgfile = path70.join(maybeRealpathSync(realpathSync4, x7, opts), "/package.json");
|
30303
30303
|
if (isFile(pkgfile)) {
|
30304
30304
|
try {
|
30305
30305
|
var pkg = readPackageSync(readFileSync29, pkgfile);
|
@@ -30322,15 +30322,15 @@ var require_sync = __commonJS({
|
|
30322
30322
|
pkg.main = "index";
|
30323
30323
|
}
|
30324
30324
|
try {
|
30325
|
-
var m7 = loadAsFileSync(
|
30325
|
+
var m7 = loadAsFileSync(path70.resolve(x7, pkg.main));
|
30326
30326
|
if (m7) return m7;
|
30327
|
-
var n7 = loadAsDirectorySync(
|
30327
|
+
var n7 = loadAsDirectorySync(path70.resolve(x7, pkg.main));
|
30328
30328
|
if (n7) return n7;
|
30329
30329
|
} catch (e7) {
|
30330
30330
|
}
|
30331
30331
|
}
|
30332
30332
|
}
|
30333
|
-
return loadAsFileSync(
|
30333
|
+
return loadAsFileSync(path70.join(x7, "/index"));
|
30334
30334
|
}
|
30335
30335
|
__name(loadAsDirectorySync, "loadAsDirectorySync");
|
30336
30336
|
function loadNodeModulesSync(x7, start) {
|
@@ -30340,7 +30340,7 @@ var require_sync = __commonJS({
|
|
30340
30340
|
var dirs = packageIterator ? packageIterator(x7, start, thunk, opts) : thunk();
|
30341
30341
|
for (var i5 = 0; i5 < dirs.length; i5++) {
|
30342
30342
|
var dir = dirs[i5];
|
30343
|
-
if (isDirectory2(
|
30343
|
+
if (isDirectory2(path70.dirname(dir))) {
|
30344
30344
|
var m7 = loadAsFileSync(dir);
|
30345
30345
|
if (m7) return m7;
|
30346
30346
|
var n7 = loadAsDirectorySync(dir);
|
@@ -30611,7 +30611,7 @@ var require_utils3 = __commonJS({
|
|
30611
30611
|
init_import_meta_url();
|
30612
30612
|
var fs23 = require("fs");
|
30613
30613
|
var ini = require_ini();
|
30614
|
-
var
|
30614
|
+
var path70 = require("path");
|
30615
30615
|
var stripJsonComments = require_strip_json_comments();
|
30616
30616
|
var parse7 = exports2.parse = function(content) {
|
30617
30617
|
if (/^\s*{/.test(content))
|
@@ -30625,7 +30625,7 @@ var require_utils3 = __commonJS({
|
|
30625
30625
|
for (var i5 in args)
|
30626
30626
|
if ("string" !== typeof args[i5])
|
30627
30627
|
return;
|
30628
|
-
var file2 =
|
30628
|
+
var file2 = path70.join.apply(null, args);
|
30629
30629
|
var content;
|
30630
30630
|
try {
|
30631
30631
|
return fs23.readFileSync(file2, "utf-8");
|
@@ -30663,15 +30663,15 @@ var require_utils3 = __commonJS({
|
|
30663
30663
|
return obj;
|
30664
30664
|
};
|
30665
30665
|
var find = exports2.find = function() {
|
30666
|
-
var rel =
|
30666
|
+
var rel = path70.join.apply(null, [].slice.call(arguments));
|
30667
30667
|
function find2(start, rel2) {
|
30668
|
-
var file2 =
|
30668
|
+
var file2 = path70.join(start, rel2);
|
30669
30669
|
try {
|
30670
30670
|
fs23.statSync(file2);
|
30671
30671
|
return file2;
|
30672
30672
|
} catch (err) {
|
30673
|
-
if (
|
30674
|
-
return find2(
|
30673
|
+
if (path70.dirname(start) !== start)
|
30674
|
+
return find2(path70.dirname(start), rel2);
|
30675
30675
|
}
|
30676
30676
|
}
|
30677
30677
|
__name(find2, "find");
|
@@ -31170,8 +31170,8 @@ var require_registry_auth_token = __commonJS({
|
|
31170
31170
|
return void 0;
|
31171
31171
|
}
|
31172
31172
|
__name(getLegacyAuthInfo, "getLegacyAuthInfo");
|
31173
|
-
function normalizePath2(
|
31174
|
-
return
|
31173
|
+
function normalizePath2(path70) {
|
31174
|
+
return path70[path70.length - 1] === "/" ? path70 : path70 + "/";
|
31175
31175
|
}
|
31176
31176
|
__name(normalizePath2, "normalizePath");
|
31177
31177
|
function getAuthInfoForUrl(regUrl, npmrc) {
|
@@ -32228,7 +32228,7 @@ var require_receiver2 = __commonJS({
|
|
32228
32228
|
"../../node_modules/.pnpm/ws@8.18.0/node_modules/ws/lib/receiver.js"(exports2, module3) {
|
32229
32229
|
"use strict";
|
32230
32230
|
init_import_meta_url();
|
32231
|
-
var { Writable:
|
32231
|
+
var { Writable: Writable5 } = require("stream");
|
32232
32232
|
var PerMessageDeflate = require_permessage_deflate();
|
32233
32233
|
var {
|
32234
32234
|
BINARY_TYPES,
|
@@ -32246,7 +32246,7 @@ var require_receiver2 = __commonJS({
|
|
32246
32246
|
var GET_DATA = 4;
|
32247
32247
|
var INFLATING = 5;
|
32248
32248
|
var DEFER_EVENT = 6;
|
32249
|
-
var Receiver2 = class extends
|
32249
|
+
var Receiver2 = class extends Writable5 {
|
32250
32250
|
static {
|
32251
32251
|
__name(this, "Receiver");
|
32252
32252
|
}
|
@@ -43517,16 +43517,16 @@ var require_rsa = __commonJS({
|
|
43517
43517
|
return 2;
|
43518
43518
|
}
|
43519
43519
|
__name(_getMillerRabinTests, "_getMillerRabinTests");
|
43520
|
-
function _detectNodeCrypto(
|
43521
|
-
return forge.util.isNodejs && typeof _crypto[
|
43520
|
+
function _detectNodeCrypto(fn2) {
|
43521
|
+
return forge.util.isNodejs && typeof _crypto[fn2] === "function";
|
43522
43522
|
}
|
43523
43523
|
__name(_detectNodeCrypto, "_detectNodeCrypto");
|
43524
|
-
function _detectSubtleCrypto(
|
43525
|
-
return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.crypto === "object" && typeof util5.globalScope.crypto.subtle === "object" && typeof util5.globalScope.crypto.subtle[
|
43524
|
+
function _detectSubtleCrypto(fn2) {
|
43525
|
+
return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.crypto === "object" && typeof util5.globalScope.crypto.subtle === "object" && typeof util5.globalScope.crypto.subtle[fn2] === "function";
|
43526
43526
|
}
|
43527
43527
|
__name(_detectSubtleCrypto, "_detectSubtleCrypto");
|
43528
|
-
function _detectSubtleMsCrypto(
|
43529
|
-
return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.msCrypto === "object" && typeof util5.globalScope.msCrypto.subtle === "object" && typeof util5.globalScope.msCrypto.subtle[
|
43528
|
+
function _detectSubtleMsCrypto(fn2) {
|
43529
|
+
return typeof util5.globalScope !== "undefined" && typeof util5.globalScope.msCrypto === "object" && typeof util5.globalScope.msCrypto.subtle === "object" && typeof util5.globalScope.msCrypto.subtle[fn2] === "function";
|
43530
43530
|
}
|
43531
43531
|
__name(_detectSubtleMsCrypto, "_detectSubtleMsCrypto");
|
43532
43532
|
function _intToUint8Array(x6) {
|
@@ -53266,17 +53266,17 @@ var require_eventemitter3 = __commonJS({
|
|
53266
53266
|
Events.prototype = /* @__PURE__ */ Object.create(null);
|
53267
53267
|
if (!new Events().__proto__) prefix = false;
|
53268
53268
|
}
|
53269
|
-
function EE(
|
53270
|
-
this.fn =
|
53269
|
+
function EE(fn2, context2, once) {
|
53270
|
+
this.fn = fn2;
|
53271
53271
|
this.context = context2;
|
53272
53272
|
this.once = once || false;
|
53273
53273
|
}
|
53274
53274
|
__name(EE, "EE");
|
53275
|
-
function addListener(emitter, event,
|
53276
|
-
if (typeof
|
53275
|
+
function addListener(emitter, event, fn2, context2, once) {
|
53276
|
+
if (typeof fn2 !== "function") {
|
53277
53277
|
throw new TypeError("The listener must be a function");
|
53278
53278
|
}
|
53279
|
-
var listener = new EE(
|
53279
|
+
var listener = new EE(fn2, context2 || emitter, once), evt = prefix ? prefix + event : event;
|
53280
53280
|
if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
|
53281
53281
|
else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
|
53282
53282
|
else emitter._events[evt] = [emitter._events[evt], listener];
|
@@ -53370,27 +53370,27 @@ var require_eventemitter3 = __commonJS({
|
|
53370
53370
|
}
|
53371
53371
|
return true;
|
53372
53372
|
}, "emit");
|
53373
|
-
EventEmitter5.prototype.on = /* @__PURE__ */ __name(function on(event,
|
53374
|
-
return addListener(this, event,
|
53373
|
+
EventEmitter5.prototype.on = /* @__PURE__ */ __name(function on(event, fn2, context2) {
|
53374
|
+
return addListener(this, event, fn2, context2, false);
|
53375
53375
|
}, "on");
|
53376
|
-
EventEmitter5.prototype.once = /* @__PURE__ */ __name(function once(event,
|
53377
|
-
return addListener(this, event,
|
53376
|
+
EventEmitter5.prototype.once = /* @__PURE__ */ __name(function once(event, fn2, context2) {
|
53377
|
+
return addListener(this, event, fn2, context2, true);
|
53378
53378
|
}, "once");
|
53379
|
-
EventEmitter5.prototype.removeListener = /* @__PURE__ */ __name(function removeListener(event,
|
53379
|
+
EventEmitter5.prototype.removeListener = /* @__PURE__ */ __name(function removeListener(event, fn2, context2, once) {
|
53380
53380
|
var evt = prefix ? prefix + event : event;
|
53381
53381
|
if (!this._events[evt]) return this;
|
53382
|
-
if (!
|
53382
|
+
if (!fn2) {
|
53383
53383
|
clearEvent(this, evt);
|
53384
53384
|
return this;
|
53385
53385
|
}
|
53386
53386
|
var listeners = this._events[evt];
|
53387
53387
|
if (listeners.fn) {
|
53388
|
-
if (listeners.fn ===
|
53388
|
+
if (listeners.fn === fn2 && (!once || listeners.once) && (!context2 || listeners.context === context2)) {
|
53389
53389
|
clearEvent(this, evt);
|
53390
53390
|
}
|
53391
53391
|
} else {
|
53392
53392
|
for (var i5 = 0, events6 = [], length = listeners.length; i5 < length; i5++) {
|
53393
|
-
if (listeners[i5].fn !==
|
53393
|
+
if (listeners[i5].fn !== fn2 || once && !listeners[i5].once || context2 && listeners[i5].context !== context2) {
|
53394
53394
|
events6.push(listeners[i5]);
|
53395
53395
|
}
|
53396
53396
|
}
|
@@ -53427,7 +53427,7 @@ var require_windows = __commonJS({
|
|
53427
53427
|
module3.exports = isexe;
|
53428
53428
|
isexe.sync = sync;
|
53429
53429
|
var fs23 = require("fs");
|
53430
|
-
function checkPathExt(
|
53430
|
+
function checkPathExt(path70, options) {
|
53431
53431
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
53432
53432
|
if (!pathext) {
|
53433
53433
|
return true;
|
@@ -53438,28 +53438,28 @@ var require_windows = __commonJS({
|
|
53438
53438
|
}
|
53439
53439
|
for (var i5 = 0; i5 < pathext.length; i5++) {
|
53440
53440
|
var p6 = pathext[i5].toLowerCase();
|
53441
|
-
if (p6 &&
|
53441
|
+
if (p6 && path70.substr(-p6.length).toLowerCase() === p6) {
|
53442
53442
|
return true;
|
53443
53443
|
}
|
53444
53444
|
}
|
53445
53445
|
return false;
|
53446
53446
|
}
|
53447
53447
|
__name(checkPathExt, "checkPathExt");
|
53448
|
-
function checkStat(stat10,
|
53448
|
+
function checkStat(stat10, path70, options) {
|
53449
53449
|
if (!stat10.isSymbolicLink() && !stat10.isFile()) {
|
53450
53450
|
return false;
|
53451
53451
|
}
|
53452
|
-
return checkPathExt(
|
53452
|
+
return checkPathExt(path70, options);
|
53453
53453
|
}
|
53454
53454
|
__name(checkStat, "checkStat");
|
53455
|
-
function isexe(
|
53456
|
-
fs23.stat(
|
53457
|
-
cb2(er, er ? false : checkStat(stat10,
|
53455
|
+
function isexe(path70, options, cb2) {
|
53456
|
+
fs23.stat(path70, function(er, stat10) {
|
53457
|
+
cb2(er, er ? false : checkStat(stat10, path70, options));
|
53458
53458
|
});
|
53459
53459
|
}
|
53460
53460
|
__name(isexe, "isexe");
|
53461
|
-
function sync(
|
53462
|
-
return checkStat(fs23.statSync(
|
53461
|
+
function sync(path70, options) {
|
53462
|
+
return checkStat(fs23.statSync(path70), path70, options);
|
53463
53463
|
}
|
53464
53464
|
__name(sync, "sync");
|
53465
53465
|
}
|
@@ -53472,14 +53472,14 @@ var require_mode = __commonJS({
|
|
53472
53472
|
module3.exports = isexe;
|
53473
53473
|
isexe.sync = sync;
|
53474
53474
|
var fs23 = require("fs");
|
53475
|
-
function isexe(
|
53476
|
-
fs23.stat(
|
53475
|
+
function isexe(path70, options, cb2) {
|
53476
|
+
fs23.stat(path70, function(er, stat10) {
|
53477
53477
|
cb2(er, er ? false : checkStat(stat10, options));
|
53478
53478
|
});
|
53479
53479
|
}
|
53480
53480
|
__name(isexe, "isexe");
|
53481
|
-
function sync(
|
53482
|
-
return checkStat(fs23.statSync(
|
53481
|
+
function sync(path70, options) {
|
53482
|
+
return checkStat(fs23.statSync(path70), options);
|
53483
53483
|
}
|
53484
53484
|
__name(sync, "sync");
|
53485
53485
|
function checkStat(stat10, options) {
|
@@ -53516,7 +53516,7 @@ var require_isexe = __commonJS({
|
|
53516
53516
|
}
|
53517
53517
|
module3.exports = isexe;
|
53518
53518
|
isexe.sync = sync;
|
53519
|
-
function isexe(
|
53519
|
+
function isexe(path70, options, cb2) {
|
53520
53520
|
if (typeof options === "function") {
|
53521
53521
|
cb2 = options;
|
53522
53522
|
options = {};
|
@@ -53526,7 +53526,7 @@ var require_isexe = __commonJS({
|
|
53526
53526
|
throw new TypeError("callback not provided");
|
53527
53527
|
}
|
53528
53528
|
return new Promise(function(resolve24, reject) {
|
53529
|
-
isexe(
|
53529
|
+
isexe(path70, options || {}, function(er, is) {
|
53530
53530
|
if (er) {
|
53531
53531
|
reject(er);
|
53532
53532
|
} else {
|
@@ -53535,7 +53535,7 @@ var require_isexe = __commonJS({
|
|
53535
53535
|
});
|
53536
53536
|
});
|
53537
53537
|
}
|
53538
|
-
core(
|
53538
|
+
core(path70, options || {}, function(er, is) {
|
53539
53539
|
if (er) {
|
53540
53540
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
53541
53541
|
er = null;
|
@@ -53546,9 +53546,9 @@ var require_isexe = __commonJS({
|
|
53546
53546
|
});
|
53547
53547
|
}
|
53548
53548
|
__name(isexe, "isexe");
|
53549
|
-
function sync(
|
53549
|
+
function sync(path70, options) {
|
53550
53550
|
try {
|
53551
|
-
return core.sync(
|
53551
|
+
return core.sync(path70, options || {});
|
53552
53552
|
} catch (er) {
|
53553
53553
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
53554
53554
|
return false;
|
@@ -53566,7 +53566,7 @@ var require_which = __commonJS({
|
|
53566
53566
|
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module3) {
|
53567
53567
|
init_import_meta_url();
|
53568
53568
|
var isWindows4 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
53569
|
-
var
|
53569
|
+
var path70 = require("path");
|
53570
53570
|
var COLON = isWindows4 ? ";" : ":";
|
53571
53571
|
var isexe = require_isexe();
|
53572
53572
|
var getNotFoundError = /* @__PURE__ */ __name((cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), "getNotFoundError");
|
@@ -53604,7 +53604,7 @@ var require_which = __commonJS({
|
|
53604
53604
|
return opt.all && found.length ? resolve24(found) : reject(getNotFoundError(cmd));
|
53605
53605
|
const ppRaw = pathEnv[i5];
|
53606
53606
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
53607
|
-
const pCmd =
|
53607
|
+
const pCmd = path70.join(pathPart, cmd);
|
53608
53608
|
const p6 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
53609
53609
|
resolve24(subStep(p6, i5, 0));
|
53610
53610
|
}), "step");
|
@@ -53631,7 +53631,7 @@ var require_which = __commonJS({
|
|
53631
53631
|
for (let i5 = 0; i5 < pathEnv.length; i5++) {
|
53632
53632
|
const ppRaw = pathEnv[i5];
|
53633
53633
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
53634
|
-
const pCmd =
|
53634
|
+
const pCmd = path70.join(pathPart, cmd);
|
53635
53635
|
const p6 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
53636
53636
|
for (let j6 = 0; j6 < pathExt.length; j6++) {
|
53637
53637
|
const cur = p6 + pathExt[j6];
|
@@ -53681,7 +53681,7 @@ var require_resolveCommand = __commonJS({
|
|
53681
53681
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module3) {
|
53682
53682
|
"use strict";
|
53683
53683
|
init_import_meta_url();
|
53684
|
-
var
|
53684
|
+
var path70 = require("path");
|
53685
53685
|
var which = require_which();
|
53686
53686
|
var getPathKey = require_path_key();
|
53687
53687
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
@@ -53699,7 +53699,7 @@ var require_resolveCommand = __commonJS({
|
|
53699
53699
|
try {
|
53700
53700
|
resolved = which.sync(parsed.command, {
|
53701
53701
|
path: env6[getPathKey({ env: env6 })],
|
53702
|
-
pathExt: withoutPathExt ?
|
53702
|
+
pathExt: withoutPathExt ? path70.delimiter : void 0
|
53703
53703
|
});
|
53704
53704
|
} catch (e7) {
|
53705
53705
|
} finally {
|
@@ -53708,7 +53708,7 @@ var require_resolveCommand = __commonJS({
|
|
53708
53708
|
}
|
53709
53709
|
}
|
53710
53710
|
if (resolved) {
|
53711
|
-
resolved =
|
53711
|
+
resolved = path70.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
53712
53712
|
}
|
53713
53713
|
return resolved;
|
53714
53714
|
}
|
@@ -53769,8 +53769,8 @@ var require_shebang_command = __commonJS({
|
|
53769
53769
|
if (!match2) {
|
53770
53770
|
return null;
|
53771
53771
|
}
|
53772
|
-
const [
|
53773
|
-
const binary =
|
53772
|
+
const [path70, argument] = match2[0].replace(/#! ?/, "").split(" ");
|
53773
|
+
const binary = path70.split("/").pop();
|
53774
53774
|
if (binary === "env") {
|
53775
53775
|
return argument;
|
53776
53776
|
}
|
@@ -53808,7 +53808,7 @@ var require_parse3 = __commonJS({
|
|
53808
53808
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module3) {
|
53809
53809
|
"use strict";
|
53810
53810
|
init_import_meta_url();
|
53811
|
-
var
|
53811
|
+
var path70 = require("path");
|
53812
53812
|
var resolveCommand = require_resolveCommand();
|
53813
53813
|
var escape2 = require_escape();
|
53814
53814
|
var readShebang = require_readShebang();
|
@@ -53834,7 +53834,7 @@ var require_parse3 = __commonJS({
|
|
53834
53834
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
53835
53835
|
if (parsed.options.forceShell || needsShell) {
|
53836
53836
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
53837
|
-
parsed.command =
|
53837
|
+
parsed.command = path70.normalize(parsed.command);
|
53838
53838
|
parsed.command = escape2.command(parsed.command);
|
53839
53839
|
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
53840
53840
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
@@ -54112,7 +54112,7 @@ var require_command_exists = __commonJS({
|
|
54112
54112
|
var exec3 = require("child_process").exec;
|
54113
54113
|
var execSync4 = require("child_process").execSync;
|
54114
54114
|
var fs23 = require("fs");
|
54115
|
-
var
|
54115
|
+
var path70 = require("path");
|
54116
54116
|
var access4 = fs23.access;
|
54117
54117
|
var accessSync = fs23.accessSync;
|
54118
54118
|
var constants4 = fs23.constants || fs23;
|
@@ -54216,8 +54216,8 @@ var require_command_exists = __commonJS({
|
|
54216
54216
|
cleanInput = /* @__PURE__ */ __name(function(s5) {
|
54217
54217
|
var isPathName = /[\\]/.test(s5);
|
54218
54218
|
if (isPathName) {
|
54219
|
-
var dirname17 = '"' +
|
54220
|
-
var basename7 = '"' +
|
54219
|
+
var dirname17 = '"' + path70.dirname(s5) + '"';
|
54220
|
+
var basename7 = '"' + path70.basename(s5) + '"';
|
54221
54221
|
return dirname17 + ":" + basename7;
|
54222
54222
|
}
|
54223
54223
|
return '"' + s5 + '"';
|
@@ -54401,8 +54401,8 @@ var require_md5_file = __commonJS({
|
|
54401
54401
|
var crypto8 = require("crypto");
|
54402
54402
|
var fs23 = require("fs");
|
54403
54403
|
var BUFFER_SIZE = 8192;
|
54404
|
-
function md5FileSync(
|
54405
|
-
const fd = fs23.openSync(
|
54404
|
+
function md5FileSync(path70) {
|
54405
|
+
const fd = fs23.openSync(path70, "r");
|
54406
54406
|
const hash = crypto8.createHash("md5");
|
54407
54407
|
const buffer = Buffer.alloc(BUFFER_SIZE);
|
54408
54408
|
try {
|
@@ -54417,10 +54417,10 @@ var require_md5_file = __commonJS({
|
|
54417
54417
|
return hash.digest("hex");
|
54418
54418
|
}
|
54419
54419
|
__name(md5FileSync, "md5FileSync");
|
54420
|
-
function md5File2(
|
54420
|
+
function md5File2(path70) {
|
54421
54421
|
return new Promise((resolve24, reject) => {
|
54422
54422
|
const output = crypto8.createHash("md5");
|
54423
|
-
const input = fs23.createReadStream(
|
54423
|
+
const input = fs23.createReadStream(path70);
|
54424
54424
|
input.on("error", (err) => {
|
54425
54425
|
reject(err);
|
54426
54426
|
});
|
@@ -54914,8 +54914,8 @@ var require_minimatch = __commonJS({
|
|
54914
54914
|
return new Minimatch2(pattern, options).match(p6);
|
54915
54915
|
};
|
54916
54916
|
module3.exports = minimatch;
|
54917
|
-
var
|
54918
|
-
minimatch.sep =
|
54917
|
+
var path70 = require_path();
|
54918
|
+
minimatch.sep = path70.sep;
|
54919
54919
|
var GLOBSTAR = Symbol("globstar **");
|
54920
54920
|
minimatch.GLOBSTAR = GLOBSTAR;
|
54921
54921
|
var expand = require_brace_expansion();
|
@@ -55430,8 +55430,8 @@ var require_minimatch = __commonJS({
|
|
55430
55430
|
if (this.empty) return f5 === "";
|
55431
55431
|
if (f5 === "/" && partial) return true;
|
55432
55432
|
const options = this.options;
|
55433
|
-
if (
|
55434
|
-
f5 = f5.split(
|
55433
|
+
if (path70.sep !== "/") {
|
55434
|
+
f5 = f5.split(path70.sep).join("/");
|
55435
55435
|
}
|
55436
55436
|
f5 = f5.split(slashSplit);
|
55437
55437
|
this.debug(this.pattern, "split", f5);
|
@@ -56702,7 +56702,7 @@ var init_esm = __esm({
|
|
56702
56702
|
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
56703
56703
|
const statMethod = opts.lstat ? import_fs10.lstatSync : import_fs10.statSync;
|
56704
56704
|
if (wantBigintFsStats) {
|
56705
|
-
this._stat = (
|
56705
|
+
this._stat = (path70) => statMethod(path70, { bigint: true });
|
56706
56706
|
} else {
|
56707
56707
|
this._stat = statMethod;
|
56708
56708
|
}
|
@@ -56727,8 +56727,8 @@ var init_esm = __esm({
|
|
56727
56727
|
const par = this.parent;
|
56728
56728
|
const fil = par && par.files;
|
56729
56729
|
if (fil && fil.length > 0) {
|
56730
|
-
const { path:
|
56731
|
-
const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent,
|
56730
|
+
const { path: path70, depth } = par;
|
56731
|
+
const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path70));
|
56732
56732
|
for (const entry of slice) {
|
56733
56733
|
if (!entry) {
|
56734
56734
|
batch--;
|
@@ -56769,20 +56769,20 @@ var init_esm = __esm({
|
|
56769
56769
|
this.reading = false;
|
56770
56770
|
}
|
56771
56771
|
}
|
56772
|
-
async _exploreDir(
|
56772
|
+
async _exploreDir(path70, depth) {
|
56773
56773
|
let files;
|
56774
56774
|
try {
|
56775
|
-
files = await (0, import_promises24.readdir)(
|
56775
|
+
files = await (0, import_promises24.readdir)(path70, this._rdOptions);
|
56776
56776
|
} catch (error2) {
|
56777
56777
|
this._onError(error2);
|
56778
56778
|
}
|
56779
|
-
return { files, depth, path:
|
56779
|
+
return { files, depth, path: path70 };
|
56780
56780
|
}
|
56781
|
-
_formatEntry(dirent,
|
56781
|
+
_formatEntry(dirent, path70) {
|
56782
56782
|
let entry;
|
56783
56783
|
const basename7 = this._isDirent ? dirent.name : dirent;
|
56784
56784
|
try {
|
56785
|
-
const fullPath = (0, import_path14.resolve)((0, import_path14.join)(
|
56785
|
+
const fullPath = (0, import_path14.resolve)((0, import_path14.join)(path70, basename7));
|
56786
56786
|
entry = { path: (0, import_path14.relative)(this._root, fullPath), fullPath, basename: basename7 };
|
56787
56787
|
entry[this._statsProp] = this._isDirent ? dirent : this._stat(fullPath);
|
56788
56788
|
} catch (err) {
|
@@ -56855,16 +56855,16 @@ var init_esm = __esm({
|
|
56855
56855
|
});
|
56856
56856
|
|
56857
56857
|
// ../../node_modules/.pnpm/chokidar@4.0.1/node_modules/chokidar/esm/handler.js
|
56858
|
-
function createFsWatchInstance(
|
56858
|
+
function createFsWatchInstance(path70, options, listener, errHandler, emitRaw) {
|
56859
56859
|
const handleEvent = /* @__PURE__ */ __name((rawEvent, evPath) => {
|
56860
|
-
listener(
|
56861
|
-
emitRaw(rawEvent, evPath, { watchedPath:
|
56862
|
-
if (evPath &&
|
56863
|
-
fsWatchBroadcast(sysPath.resolve(
|
56860
|
+
listener(path70);
|
56861
|
+
emitRaw(rawEvent, evPath, { watchedPath: path70 });
|
56862
|
+
if (evPath && path70 !== evPath) {
|
56863
|
+
fsWatchBroadcast(sysPath.resolve(path70, evPath), KEY_LISTENERS, sysPath.join(path70, evPath));
|
56864
56864
|
}
|
56865
56865
|
}, "handleEvent");
|
56866
56866
|
try {
|
56867
|
-
return (0, import_fs11.watch)(
|
56867
|
+
return (0, import_fs11.watch)(path70, {
|
56868
56868
|
persistent: options.persistent
|
56869
56869
|
}, handleEvent);
|
56870
56870
|
} catch (error2) {
|
@@ -57172,11 +57172,11 @@ var init_handler = __esm({
|
|
57172
57172
|
"zipx"
|
57173
57173
|
]);
|
57174
57174
|
isBinaryPath = /* @__PURE__ */ __name((filePath) => binaryExtensions.has(sysPath.extname(filePath).slice(1).toLowerCase()), "isBinaryPath");
|
57175
|
-
foreach = /* @__PURE__ */ __name((val2,
|
57175
|
+
foreach = /* @__PURE__ */ __name((val2, fn2) => {
|
57176
57176
|
if (val2 instanceof Set) {
|
57177
|
-
val2.forEach(
|
57177
|
+
val2.forEach(fn2);
|
57178
57178
|
} else {
|
57179
|
-
|
57179
|
+
fn2(val2);
|
57180
57180
|
}
|
57181
57181
|
}, "foreach");
|
57182
57182
|
addAndConvert = /* @__PURE__ */ __name((main2, prop, item) => {
|
@@ -57213,12 +57213,12 @@ var init_handler = __esm({
|
|
57213
57213
|
listener(val1, val2, val3);
|
57214
57214
|
});
|
57215
57215
|
}, "fsWatchBroadcast");
|
57216
|
-
setFsWatchListener = /* @__PURE__ */ __name((
|
57216
|
+
setFsWatchListener = /* @__PURE__ */ __name((path70, fullPath, options, handlers2) => {
|
57217
57217
|
const { listener, errHandler, rawEmitter } = handlers2;
|
57218
57218
|
let cont = FsWatchInstances.get(fullPath);
|
57219
57219
|
let watcher;
|
57220
57220
|
if (!options.persistent) {
|
57221
|
-
watcher = createFsWatchInstance(
|
57221
|
+
watcher = createFsWatchInstance(path70, options, listener, errHandler, rawEmitter);
|
57222
57222
|
if (!watcher)
|
57223
57223
|
return;
|
57224
57224
|
return watcher.close.bind(watcher);
|
@@ -57229,7 +57229,7 @@ var init_handler = __esm({
|
|
57229
57229
|
addAndConvert(cont, KEY_RAW, rawEmitter);
|
57230
57230
|
} else {
|
57231
57231
|
watcher = createFsWatchInstance(
|
57232
|
-
|
57232
|
+
path70,
|
57233
57233
|
options,
|
57234
57234
|
fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS),
|
57235
57235
|
errHandler,
|
@@ -57244,7 +57244,7 @@ var init_handler = __esm({
|
|
57244
57244
|
cont.watcherUnusable = true;
|
57245
57245
|
if (isWindows2 && error2.code === "EPERM") {
|
57246
57246
|
try {
|
57247
|
-
const fd = await (0, import_promises25.open)(
|
57247
|
+
const fd = await (0, import_promises25.open)(path70, "r");
|
57248
57248
|
await fd.close();
|
57249
57249
|
broadcastErr(error2);
|
57250
57250
|
} catch (err) {
|
@@ -57275,7 +57275,7 @@ var init_handler = __esm({
|
|
57275
57275
|
};
|
57276
57276
|
}, "setFsWatchListener");
|
57277
57277
|
FsWatchFileInstances = /* @__PURE__ */ new Map();
|
57278
|
-
setFsWatchFileListener = /* @__PURE__ */ __name((
|
57278
|
+
setFsWatchFileListener = /* @__PURE__ */ __name((path70, fullPath, options, handlers2) => {
|
57279
57279
|
const { listener, rawEmitter } = handlers2;
|
57280
57280
|
let cont = FsWatchFileInstances.get(fullPath);
|
57281
57281
|
const copts = cont && cont.options;
|
@@ -57297,7 +57297,7 @@ var init_handler = __esm({
|
|
57297
57297
|
});
|
57298
57298
|
const currmtime = curr.mtimeMs;
|
57299
57299
|
if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
|
57300
|
-
foreach(cont.listeners, (listener2) => listener2(
|
57300
|
+
foreach(cont.listeners, (listener2) => listener2(path70, curr));
|
57301
57301
|
}
|
57302
57302
|
})
|
57303
57303
|
};
|
@@ -57328,13 +57328,13 @@ var init_handler = __esm({
|
|
57328
57328
|
* @param listener on fs change
|
57329
57329
|
* @returns closer for the watcher instance
|
57330
57330
|
*/
|
57331
|
-
_watchWithNodeFs(
|
57331
|
+
_watchWithNodeFs(path70, listener) {
|
57332
57332
|
const opts = this.fsw.options;
|
57333
|
-
const directory = sysPath.dirname(
|
57334
|
-
const basename7 = sysPath.basename(
|
57333
|
+
const directory = sysPath.dirname(path70);
|
57334
|
+
const basename7 = sysPath.basename(path70);
|
57335
57335
|
const parent = this.fsw._getWatchedDir(directory);
|
57336
57336
|
parent.add(basename7);
|
57337
|
-
const absolutePath = sysPath.resolve(
|
57337
|
+
const absolutePath = sysPath.resolve(path70);
|
57338
57338
|
const options = {
|
57339
57339
|
persistent: opts.persistent
|
57340
57340
|
};
|
@@ -57344,12 +57344,12 @@ var init_handler = __esm({
|
|
57344
57344
|
if (opts.usePolling) {
|
57345
57345
|
const enableBin = opts.interval !== opts.binaryInterval;
|
57346
57346
|
options.interval = enableBin && isBinaryPath(basename7) ? opts.binaryInterval : opts.interval;
|
57347
|
-
closer = setFsWatchFileListener(
|
57347
|
+
closer = setFsWatchFileListener(path70, absolutePath, options, {
|
57348
57348
|
listener,
|
57349
57349
|
rawEmitter: this.fsw._emitRaw
|
57350
57350
|
});
|
57351
57351
|
} else {
|
57352
|
-
closer = setFsWatchListener(
|
57352
|
+
closer = setFsWatchListener(path70, absolutePath, options, {
|
57353
57353
|
listener,
|
57354
57354
|
errHandler: this._boundHandleError,
|
57355
57355
|
rawEmitter: this.fsw._emitRaw
|
@@ -57371,7 +57371,7 @@ var init_handler = __esm({
|
|
57371
57371
|
let prevStats = stats;
|
57372
57372
|
if (parent.has(basename7))
|
57373
57373
|
return;
|
57374
|
-
const listener = /* @__PURE__ */ __name(async (
|
57374
|
+
const listener = /* @__PURE__ */ __name(async (path70, newStats) => {
|
57375
57375
|
if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
|
57376
57376
|
return;
|
57377
57377
|
if (!newStats || newStats.mtimeMs === 0) {
|
@@ -57385,11 +57385,11 @@ var init_handler = __esm({
|
|
57385
57385
|
this.fsw._emit(EV.CHANGE, file, newStats2);
|
57386
57386
|
}
|
57387
57387
|
if ((isMacos || isLinux) && prevStats.ino !== newStats2.ino) {
|
57388
|
-
this.fsw._closeFile(
|
57388
|
+
this.fsw._closeFile(path70);
|
57389
57389
|
prevStats = newStats2;
|
57390
57390
|
const closer2 = this._watchWithNodeFs(file, listener);
|
57391
57391
|
if (closer2)
|
57392
|
-
this.fsw._addPathCloser(
|
57392
|
+
this.fsw._addPathCloser(path70, closer2);
|
57393
57393
|
} else {
|
57394
57394
|
prevStats = newStats2;
|
57395
57395
|
}
|
@@ -57421,7 +57421,7 @@ var init_handler = __esm({
|
|
57421
57421
|
* @param item basename of this item
|
57422
57422
|
* @returns true if no more processing is needed for this entry.
|
57423
57423
|
*/
|
57424
|
-
async _handleSymlink(entry, directory,
|
57424
|
+
async _handleSymlink(entry, directory, path70, item) {
|
57425
57425
|
if (this.fsw.closed) {
|
57426
57426
|
return;
|
57427
57427
|
}
|
@@ -57431,7 +57431,7 @@ var init_handler = __esm({
|
|
57431
57431
|
this.fsw._incrReadyCount();
|
57432
57432
|
let linkPath;
|
57433
57433
|
try {
|
57434
|
-
linkPath = await (0, import_promises25.realpath)(
|
57434
|
+
linkPath = await (0, import_promises25.realpath)(path70);
|
57435
57435
|
} catch (e7) {
|
57436
57436
|
this.fsw._emitReady();
|
57437
57437
|
return true;
|
@@ -57441,12 +57441,12 @@ var init_handler = __esm({
|
|
57441
57441
|
if (dir.has(item)) {
|
57442
57442
|
if (this.fsw._symlinkPaths.get(full) !== linkPath) {
|
57443
57443
|
this.fsw._symlinkPaths.set(full, linkPath);
|
57444
|
-
this.fsw._emit(EV.CHANGE,
|
57444
|
+
this.fsw._emit(EV.CHANGE, path70, entry.stats);
|
57445
57445
|
}
|
57446
57446
|
} else {
|
57447
57447
|
dir.add(item);
|
57448
57448
|
this.fsw._symlinkPaths.set(full, linkPath);
|
57449
|
-
this.fsw._emit(EV.ADD,
|
57449
|
+
this.fsw._emit(EV.ADD, path70, entry.stats);
|
57450
57450
|
}
|
57451
57451
|
this.fsw._emitReady();
|
57452
57452
|
return true;
|
@@ -57475,9 +57475,9 @@ var init_handler = __esm({
|
|
57475
57475
|
return;
|
57476
57476
|
}
|
57477
57477
|
const item = entry.path;
|
57478
|
-
let
|
57478
|
+
let path70 = sysPath.join(directory, item);
|
57479
57479
|
current.add(item);
|
57480
|
-
if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory,
|
57480
|
+
if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path70, item)) {
|
57481
57481
|
return;
|
57482
57482
|
}
|
57483
57483
|
if (this.fsw.closed) {
|
@@ -57486,8 +57486,8 @@ var init_handler = __esm({
|
|
57486
57486
|
}
|
57487
57487
|
if (item === target || !target && !previous.has(item)) {
|
57488
57488
|
this.fsw._incrReadyCount();
|
57489
|
-
|
57490
|
-
this._addToNodeFs(
|
57489
|
+
path70 = sysPath.join(dir, sysPath.relative(dir, path70));
|
57490
|
+
this._addToNodeFs(path70, initialAdd, wh, depth + 1);
|
57491
57491
|
}
|
57492
57492
|
}).on(EV.ERROR, this._boundHandleError);
|
57493
57493
|
return new Promise((resolve24, reject) => {
|
@@ -57556,13 +57556,13 @@ var init_handler = __esm({
|
|
57556
57556
|
* @param depth Child path actually targeted for watch
|
57557
57557
|
* @param target Child path actually targeted for watch
|
57558
57558
|
*/
|
57559
|
-
async _addToNodeFs(
|
57559
|
+
async _addToNodeFs(path70, initialAdd, priorWh, depth, target) {
|
57560
57560
|
const ready = this.fsw._emitReady;
|
57561
|
-
if (this.fsw._isIgnored(
|
57561
|
+
if (this.fsw._isIgnored(path70) || this.fsw.closed) {
|
57562
57562
|
ready();
|
57563
57563
|
return false;
|
57564
57564
|
}
|
57565
|
-
const wh = this.fsw._getWatchHelpers(
|
57565
|
+
const wh = this.fsw._getWatchHelpers(path70);
|
57566
57566
|
if (priorWh) {
|
57567
57567
|
wh.filterPath = (entry) => priorWh.filterPath(entry);
|
57568
57568
|
wh.filterDir = (entry) => priorWh.filterDir(entry);
|
@@ -57578,8 +57578,8 @@ var init_handler = __esm({
|
|
57578
57578
|
const follow = this.fsw.options.followSymlinks;
|
57579
57579
|
let closer;
|
57580
57580
|
if (stats.isDirectory()) {
|
57581
|
-
const absPath = sysPath.resolve(
|
57582
|
-
const targetPath = follow ? await (0, import_promises25.realpath)(
|
57581
|
+
const absPath = sysPath.resolve(path70);
|
57582
|
+
const targetPath = follow ? await (0, import_promises25.realpath)(path70) : path70;
|
57583
57583
|
if (this.fsw.closed)
|
57584
57584
|
return;
|
57585
57585
|
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
|
@@ -57589,29 +57589,29 @@ var init_handler = __esm({
|
|
57589
57589
|
this.fsw._symlinkPaths.set(absPath, targetPath);
|
57590
57590
|
}
|
57591
57591
|
} else if (stats.isSymbolicLink()) {
|
57592
|
-
const targetPath = follow ? await (0, import_promises25.realpath)(
|
57592
|
+
const targetPath = follow ? await (0, import_promises25.realpath)(path70) : path70;
|
57593
57593
|
if (this.fsw.closed)
|
57594
57594
|
return;
|
57595
57595
|
const parent = sysPath.dirname(wh.watchPath);
|
57596
57596
|
this.fsw._getWatchedDir(parent).add(wh.watchPath);
|
57597
57597
|
this.fsw._emit(EV.ADD, wh.watchPath, stats);
|
57598
|
-
closer = await this._handleDir(parent, stats, initialAdd, depth,
|
57598
|
+
closer = await this._handleDir(parent, stats, initialAdd, depth, path70, wh, targetPath);
|
57599
57599
|
if (this.fsw.closed)
|
57600
57600
|
return;
|
57601
57601
|
if (targetPath !== void 0) {
|
57602
|
-
this.fsw._symlinkPaths.set(sysPath.resolve(
|
57602
|
+
this.fsw._symlinkPaths.set(sysPath.resolve(path70), targetPath);
|
57603
57603
|
}
|
57604
57604
|
} else {
|
57605
57605
|
closer = this._handleFile(wh.watchPath, stats, initialAdd);
|
57606
57606
|
}
|
57607
57607
|
ready();
|
57608
57608
|
if (closer)
|
57609
|
-
this.fsw._addPathCloser(
|
57609
|
+
this.fsw._addPathCloser(path70, closer);
|
57610
57610
|
return false;
|
57611
57611
|
} catch (error2) {
|
57612
57612
|
if (this.fsw._handleError(error2)) {
|
57613
57613
|
ready();
|
57614
|
-
return
|
57614
|
+
return path70;
|
57615
57615
|
}
|
57616
57616
|
}
|
57617
57617
|
}
|
@@ -57646,26 +57646,26 @@ function createPattern(matcher) {
|
|
57646
57646
|
}
|
57647
57647
|
return () => false;
|
57648
57648
|
}
|
57649
|
-
function normalizePath(
|
57650
|
-
if (typeof
|
57649
|
+
function normalizePath(path70) {
|
57650
|
+
if (typeof path70 !== "string")
|
57651
57651
|
throw new Error("string expected");
|
57652
|
-
|
57653
|
-
|
57652
|
+
path70 = sysPath2.normalize(path70);
|
57653
|
+
path70 = path70.replace(/\\/g, "/");
|
57654
57654
|
let prepend = false;
|
57655
|
-
if (
|
57655
|
+
if (path70.startsWith("//"))
|
57656
57656
|
prepend = true;
|
57657
57657
|
const DOUBLE_SLASH_RE2 = /\/\//;
|
57658
|
-
while (
|
57659
|
-
|
57658
|
+
while (path70.match(DOUBLE_SLASH_RE2))
|
57659
|
+
path70 = path70.replace(DOUBLE_SLASH_RE2, "/");
|
57660
57660
|
if (prepend)
|
57661
|
-
|
57662
|
-
return
|
57661
|
+
path70 = "/" + path70;
|
57662
|
+
return path70;
|
57663
57663
|
}
|
57664
57664
|
function matchPatterns(patterns, testString, stats) {
|
57665
|
-
const
|
57665
|
+
const path70 = normalizePath(testString);
|
57666
57666
|
for (let index = 0; index < patterns.length; index++) {
|
57667
57667
|
const pattern = patterns[index];
|
57668
|
-
if (pattern(
|
57668
|
+
if (pattern(path70, stats)) {
|
57669
57669
|
return true;
|
57670
57670
|
}
|
57671
57671
|
}
|
@@ -57735,19 +57735,19 @@ var init_esm2 = __esm({
|
|
57735
57735
|
}
|
57736
57736
|
return str;
|
57737
57737
|
}, "toUnix");
|
57738
|
-
normalizePathToUnix = /* @__PURE__ */ __name((
|
57739
|
-
normalizeIgnored = /* @__PURE__ */ __name((cwd2 = "") => (
|
57740
|
-
if (typeof
|
57741
|
-
return normalizePathToUnix(sysPath2.isAbsolute(
|
57738
|
+
normalizePathToUnix = /* @__PURE__ */ __name((path70) => toUnix(sysPath2.normalize(toUnix(path70))), "normalizePathToUnix");
|
57739
|
+
normalizeIgnored = /* @__PURE__ */ __name((cwd2 = "") => (path70) => {
|
57740
|
+
if (typeof path70 === "string") {
|
57741
|
+
return normalizePathToUnix(sysPath2.isAbsolute(path70) ? path70 : sysPath2.join(cwd2, path70));
|
57742
57742
|
} else {
|
57743
|
-
return
|
57743
|
+
return path70;
|
57744
57744
|
}
|
57745
57745
|
}, "normalizeIgnored");
|
57746
|
-
getAbsolutePath = /* @__PURE__ */ __name((
|
57747
|
-
if (sysPath2.isAbsolute(
|
57748
|
-
return
|
57746
|
+
getAbsolutePath = /* @__PURE__ */ __name((path70, cwd2) => {
|
57747
|
+
if (sysPath2.isAbsolute(path70)) {
|
57748
|
+
return path70;
|
57749
57749
|
}
|
57750
|
-
return sysPath2.join(cwd2,
|
57750
|
+
return sysPath2.join(cwd2, path70);
|
57751
57751
|
}, "getAbsolutePath");
|
57752
57752
|
EMPTY_SET = Object.freeze(/* @__PURE__ */ new Set());
|
57753
57753
|
DirEntry = class {
|
@@ -57808,10 +57808,10 @@ var init_esm2 = __esm({
|
|
57808
57808
|
static {
|
57809
57809
|
__name(this, "WatchHelper");
|
57810
57810
|
}
|
57811
|
-
constructor(
|
57811
|
+
constructor(path70, follow, fsw) {
|
57812
57812
|
this.fsw = fsw;
|
57813
|
-
const watchPath =
|
57814
|
-
this.path =
|
57813
|
+
const watchPath = path70;
|
57814
|
+
this.path = path70 = path70.replace(REPLACER_RE, "");
|
57815
57815
|
this.watchPath = watchPath;
|
57816
57816
|
this.fullWatchPath = sysPath2.resolve(watchPath);
|
57817
57817
|
this.dirParts = [];
|
@@ -57936,20 +57936,20 @@ var init_esm2 = __esm({
|
|
57936
57936
|
this._closePromise = void 0;
|
57937
57937
|
let paths = unifyPaths(paths_);
|
57938
57938
|
if (cwd2) {
|
57939
|
-
paths = paths.map((
|
57940
|
-
const absPath = getAbsolutePath(
|
57939
|
+
paths = paths.map((path70) => {
|
57940
|
+
const absPath = getAbsolutePath(path70, cwd2);
|
57941
57941
|
return absPath;
|
57942
57942
|
});
|
57943
57943
|
}
|
57944
|
-
paths.forEach((
|
57945
|
-
this._removeIgnoredPath(
|
57944
|
+
paths.forEach((path70) => {
|
57945
|
+
this._removeIgnoredPath(path70);
|
57946
57946
|
});
|
57947
57947
|
this._userIgnored = void 0;
|
57948
57948
|
if (!this._readyCount)
|
57949
57949
|
this._readyCount = 0;
|
57950
57950
|
this._readyCount += paths.length;
|
57951
|
-
Promise.all(paths.map(async (
|
57952
|
-
const res = await this._nodeFsHandler._addToNodeFs(
|
57951
|
+
Promise.all(paths.map(async (path70) => {
|
57952
|
+
const res = await this._nodeFsHandler._addToNodeFs(path70, !_internal, void 0, 0, _origAdd);
|
57953
57953
|
if (res)
|
57954
57954
|
this._emitReady();
|
57955
57955
|
return res;
|
@@ -57971,17 +57971,17 @@ var init_esm2 = __esm({
|
|
57971
57971
|
return this;
|
57972
57972
|
const paths = unifyPaths(paths_);
|
57973
57973
|
const { cwd: cwd2 } = this.options;
|
57974
|
-
paths.forEach((
|
57975
|
-
if (!sysPath2.isAbsolute(
|
57974
|
+
paths.forEach((path70) => {
|
57975
|
+
if (!sysPath2.isAbsolute(path70) && !this._closers.has(path70)) {
|
57976
57976
|
if (cwd2)
|
57977
|
-
|
57978
|
-
|
57977
|
+
path70 = sysPath2.join(cwd2, path70);
|
57978
|
+
path70 = sysPath2.resolve(path70);
|
57979
57979
|
}
|
57980
|
-
this._closePath(
|
57981
|
-
this._addIgnoredPath(
|
57982
|
-
if (this._watched.has(
|
57980
|
+
this._closePath(path70);
|
57981
|
+
this._addIgnoredPath(path70);
|
57982
|
+
if (this._watched.has(path70)) {
|
57983
57983
|
this._addIgnoredPath({
|
57984
|
-
path:
|
57984
|
+
path: path70,
|
57985
57985
|
recursive: true
|
57986
57986
|
});
|
57987
57987
|
}
|
@@ -58045,38 +58045,38 @@ var init_esm2 = __esm({
|
|
58045
58045
|
* @param stats arguments to be passed with event
|
58046
58046
|
* @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
|
58047
58047
|
*/
|
58048
|
-
async _emit(event,
|
58048
|
+
async _emit(event, path70, stats) {
|
58049
58049
|
if (this.closed)
|
58050
58050
|
return;
|
58051
58051
|
const opts = this.options;
|
58052
58052
|
if (isWindows2)
|
58053
|
-
|
58053
|
+
path70 = sysPath2.normalize(path70);
|
58054
58054
|
if (opts.cwd)
|
58055
|
-
|
58056
|
-
const args = [event,
|
58055
|
+
path70 = sysPath2.relative(opts.cwd, path70);
|
58056
|
+
const args = [event, path70];
|
58057
58057
|
if (stats != null)
|
58058
58058
|
args.push(stats);
|
58059
58059
|
const awf = opts.awaitWriteFinish;
|
58060
58060
|
let pw;
|
58061
|
-
if (awf && (pw = this._pendingWrites.get(
|
58061
|
+
if (awf && (pw = this._pendingWrites.get(path70))) {
|
58062
58062
|
pw.lastChange = /* @__PURE__ */ new Date();
|
58063
58063
|
return this;
|
58064
58064
|
}
|
58065
58065
|
if (opts.atomic) {
|
58066
58066
|
if (event === EVENTS.UNLINK) {
|
58067
|
-
this._pendingUnlinks.set(
|
58067
|
+
this._pendingUnlinks.set(path70, args);
|
58068
58068
|
setTimeout(() => {
|
58069
|
-
this._pendingUnlinks.forEach((entry,
|
58069
|
+
this._pendingUnlinks.forEach((entry, path71) => {
|
58070
58070
|
this.emit(...entry);
|
58071
58071
|
this.emit(EVENTS.ALL, ...entry);
|
58072
|
-
this._pendingUnlinks.delete(
|
58072
|
+
this._pendingUnlinks.delete(path71);
|
58073
58073
|
});
|
58074
58074
|
}, typeof opts.atomic === "number" ? opts.atomic : 100);
|
58075
58075
|
return this;
|
58076
58076
|
}
|
58077
|
-
if (event === EVENTS.ADD && this._pendingUnlinks.has(
|
58077
|
+
if (event === EVENTS.ADD && this._pendingUnlinks.has(path70)) {
|
58078
58078
|
event = args[0] = EVENTS.CHANGE;
|
58079
|
-
this._pendingUnlinks.delete(
|
58079
|
+
this._pendingUnlinks.delete(path70);
|
58080
58080
|
}
|
58081
58081
|
}
|
58082
58082
|
if (awf && (event === EVENTS.ADD || event === EVENTS.CHANGE) && this._readyEmitted) {
|
@@ -58094,16 +58094,16 @@ var init_esm2 = __esm({
|
|
58094
58094
|
this.emitWithAll(event, args);
|
58095
58095
|
}
|
58096
58096
|
}, "awfEmit");
|
58097
|
-
this._awaitWriteFinish(
|
58097
|
+
this._awaitWriteFinish(path70, awf.stabilityThreshold, event, awfEmit);
|
58098
58098
|
return this;
|
58099
58099
|
}
|
58100
58100
|
if (event === EVENTS.CHANGE) {
|
58101
|
-
const isThrottled = !this._throttle(EVENTS.CHANGE,
|
58101
|
+
const isThrottled = !this._throttle(EVENTS.CHANGE, path70, 50);
|
58102
58102
|
if (isThrottled)
|
58103
58103
|
return this;
|
58104
58104
|
}
|
58105
58105
|
if (opts.alwaysStat && stats === void 0 && (event === EVENTS.ADD || event === EVENTS.ADD_DIR || event === EVENTS.CHANGE)) {
|
58106
|
-
const fullPath = opts.cwd ? sysPath2.join(opts.cwd,
|
58106
|
+
const fullPath = opts.cwd ? sysPath2.join(opts.cwd, path70) : path70;
|
58107
58107
|
let stats2;
|
58108
58108
|
try {
|
58109
58109
|
stats2 = await (0, import_promises26.stat)(fullPath);
|
@@ -58134,23 +58134,23 @@ var init_esm2 = __esm({
|
|
58134
58134
|
* @param timeout duration of time to suppress duplicate actions
|
58135
58135
|
* @returns tracking object or false if action should be suppressed
|
58136
58136
|
*/
|
58137
|
-
_throttle(actionType,
|
58137
|
+
_throttle(actionType, path70, timeout2) {
|
58138
58138
|
if (!this._throttled.has(actionType)) {
|
58139
58139
|
this._throttled.set(actionType, /* @__PURE__ */ new Map());
|
58140
58140
|
}
|
58141
58141
|
const action = this._throttled.get(actionType);
|
58142
58142
|
if (!action)
|
58143
58143
|
throw new Error("invalid throttle");
|
58144
|
-
const actionPath = action.get(
|
58144
|
+
const actionPath = action.get(path70);
|
58145
58145
|
if (actionPath) {
|
58146
58146
|
actionPath.count++;
|
58147
58147
|
return false;
|
58148
58148
|
}
|
58149
58149
|
let timeoutObject;
|
58150
58150
|
const clear = /* @__PURE__ */ __name(() => {
|
58151
|
-
const item = action.get(
|
58151
|
+
const item = action.get(path70);
|
58152
58152
|
const count = item ? item.count : 0;
|
58153
|
-
action.delete(
|
58153
|
+
action.delete(path70);
|
58154
58154
|
clearTimeout(timeoutObject);
|
58155
58155
|
if (item)
|
58156
58156
|
clearTimeout(item.timeoutObject);
|
@@ -58158,7 +58158,7 @@ var init_esm2 = __esm({
|
|
58158
58158
|
}, "clear");
|
58159
58159
|
timeoutObject = setTimeout(clear, timeout2);
|
58160
58160
|
const thr = { timeoutObject, clear, count: 0 };
|
58161
|
-
action.set(
|
58161
|
+
action.set(path70, thr);
|
58162
58162
|
return thr;
|
58163
58163
|
}
|
58164
58164
|
_incrReadyCount() {
|
@@ -58172,33 +58172,33 @@ var init_esm2 = __esm({
|
|
58172
58172
|
* @param event
|
58173
58173
|
* @param awfEmit Callback to be called when ready for event to be emitted.
|
58174
58174
|
*/
|
58175
|
-
_awaitWriteFinish(
|
58175
|
+
_awaitWriteFinish(path70, threshold, event, awfEmit) {
|
58176
58176
|
const awf = this.options.awaitWriteFinish;
|
58177
58177
|
if (typeof awf !== "object")
|
58178
58178
|
return;
|
58179
58179
|
const pollInterval = awf.pollInterval;
|
58180
58180
|
let timeoutHandler;
|
58181
|
-
let fullPath =
|
58182
|
-
if (this.options.cwd && !sysPath2.isAbsolute(
|
58183
|
-
fullPath = sysPath2.join(this.options.cwd,
|
58181
|
+
let fullPath = path70;
|
58182
|
+
if (this.options.cwd && !sysPath2.isAbsolute(path70)) {
|
58183
|
+
fullPath = sysPath2.join(this.options.cwd, path70);
|
58184
58184
|
}
|
58185
58185
|
const now = /* @__PURE__ */ new Date();
|
58186
58186
|
const writes = this._pendingWrites;
|
58187
58187
|
function awaitWriteFinishFn(prevStat) {
|
58188
58188
|
(0, import_fs12.stat)(fullPath, (err, curStat) => {
|
58189
|
-
if (err || !writes.has(
|
58189
|
+
if (err || !writes.has(path70)) {
|
58190
58190
|
if (err && err.code !== "ENOENT")
|
58191
58191
|
awfEmit(err);
|
58192
58192
|
return;
|
58193
58193
|
}
|
58194
58194
|
const now2 = Number(/* @__PURE__ */ new Date());
|
58195
58195
|
if (prevStat && curStat.size !== prevStat.size) {
|
58196
|
-
writes.get(
|
58196
|
+
writes.get(path70).lastChange = now2;
|
58197
58197
|
}
|
58198
|
-
const pw = writes.get(
|
58198
|
+
const pw = writes.get(path70);
|
58199
58199
|
const df = now2 - pw.lastChange;
|
58200
58200
|
if (df >= threshold) {
|
58201
|
-
writes.delete(
|
58201
|
+
writes.delete(path70);
|
58202
58202
|
awfEmit(void 0, curStat);
|
58203
58203
|
} else {
|
58204
58204
|
timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval, curStat);
|
@@ -58206,11 +58206,11 @@ var init_esm2 = __esm({
|
|
58206
58206
|
});
|
58207
58207
|
}
|
58208
58208
|
__name(awaitWriteFinishFn, "awaitWriteFinishFn");
|
58209
|
-
if (!writes.has(
|
58210
|
-
writes.set(
|
58209
|
+
if (!writes.has(path70)) {
|
58210
|
+
writes.set(path70, {
|
58211
58211
|
lastChange: now,
|
58212
58212
|
cancelWait: /* @__PURE__ */ __name(() => {
|
58213
|
-
writes.delete(
|
58213
|
+
writes.delete(path70);
|
58214
58214
|
clearTimeout(timeoutHandler);
|
58215
58215
|
return event;
|
58216
58216
|
}, "cancelWait")
|
@@ -58221,8 +58221,8 @@ var init_esm2 = __esm({
|
|
58221
58221
|
/**
|
58222
58222
|
* Determines whether user has asked to ignore this path.
|
58223
58223
|
*/
|
58224
|
-
_isIgnored(
|
58225
|
-
if (this.options.atomic && DOT_RE.test(
|
58224
|
+
_isIgnored(path70, stats) {
|
58225
|
+
if (this.options.atomic && DOT_RE.test(path70))
|
58226
58226
|
return true;
|
58227
58227
|
if (!this._userIgnored) {
|
58228
58228
|
const { cwd: cwd2 } = this.options;
|
@@ -58232,17 +58232,17 @@ var init_esm2 = __esm({
|
|
58232
58232
|
const list = [...ignoredPaths.map(normalizeIgnored(cwd2)), ...ignored];
|
58233
58233
|
this._userIgnored = anymatch(list, void 0);
|
58234
58234
|
}
|
58235
|
-
return this._userIgnored(
|
58235
|
+
return this._userIgnored(path70, stats);
|
58236
58236
|
}
|
58237
|
-
_isntIgnored(
|
58238
|
-
return !this._isIgnored(
|
58237
|
+
_isntIgnored(path70, stat10) {
|
58238
|
+
return !this._isIgnored(path70, stat10);
|
58239
58239
|
}
|
58240
58240
|
/**
|
58241
58241
|
* Provides a set of common helpers and properties relating to symlink handling.
|
58242
58242
|
* @param path file or directory pattern being watched
|
58243
58243
|
*/
|
58244
|
-
_getWatchHelpers(
|
58245
|
-
return new WatchHelper(
|
58244
|
+
_getWatchHelpers(path70) {
|
58245
|
+
return new WatchHelper(path70, this.options.followSymlinks, this);
|
58246
58246
|
}
|
58247
58247
|
// Directory helpers
|
58248
58248
|
// -----------------
|
@@ -58274,63 +58274,63 @@ var init_esm2 = __esm({
|
|
58274
58274
|
* @param item base path of item/directory
|
58275
58275
|
*/
|
58276
58276
|
_remove(directory, item, isDirectory2) {
|
58277
|
-
const
|
58278
|
-
const fullPath = sysPath2.resolve(
|
58279
|
-
isDirectory2 = isDirectory2 != null ? isDirectory2 : this._watched.has(
|
58280
|
-
if (!this._throttle("remove",
|
58277
|
+
const path70 = sysPath2.join(directory, item);
|
58278
|
+
const fullPath = sysPath2.resolve(path70);
|
58279
|
+
isDirectory2 = isDirectory2 != null ? isDirectory2 : this._watched.has(path70) || this._watched.has(fullPath);
|
58280
|
+
if (!this._throttle("remove", path70, 100))
|
58281
58281
|
return;
|
58282
58282
|
if (!isDirectory2 && this._watched.size === 1) {
|
58283
58283
|
this.add(directory, item, true);
|
58284
58284
|
}
|
58285
|
-
const wp = this._getWatchedDir(
|
58285
|
+
const wp = this._getWatchedDir(path70);
|
58286
58286
|
const nestedDirectoryChildren = wp.getChildren();
|
58287
|
-
nestedDirectoryChildren.forEach((nested) => this._remove(
|
58287
|
+
nestedDirectoryChildren.forEach((nested) => this._remove(path70, nested));
|
58288
58288
|
const parent = this._getWatchedDir(directory);
|
58289
58289
|
const wasTracked = parent.has(item);
|
58290
58290
|
parent.remove(item);
|
58291
58291
|
if (this._symlinkPaths.has(fullPath)) {
|
58292
58292
|
this._symlinkPaths.delete(fullPath);
|
58293
58293
|
}
|
58294
|
-
let relPath =
|
58294
|
+
let relPath = path70;
|
58295
58295
|
if (this.options.cwd)
|
58296
|
-
relPath = sysPath2.relative(this.options.cwd,
|
58296
|
+
relPath = sysPath2.relative(this.options.cwd, path70);
|
58297
58297
|
if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
|
58298
58298
|
const event = this._pendingWrites.get(relPath).cancelWait();
|
58299
58299
|
if (event === EVENTS.ADD)
|
58300
58300
|
return;
|
58301
58301
|
}
|
58302
|
-
this._watched.delete(
|
58302
|
+
this._watched.delete(path70);
|
58303
58303
|
this._watched.delete(fullPath);
|
58304
58304
|
const eventName = isDirectory2 ? EVENTS.UNLINK_DIR : EVENTS.UNLINK;
|
58305
|
-
if (wasTracked && !this._isIgnored(
|
58306
|
-
this._emit(eventName,
|
58307
|
-
this._closePath(
|
58305
|
+
if (wasTracked && !this._isIgnored(path70))
|
58306
|
+
this._emit(eventName, path70);
|
58307
|
+
this._closePath(path70);
|
58308
58308
|
}
|
58309
58309
|
/**
|
58310
58310
|
* Closes all watchers for a path
|
58311
58311
|
*/
|
58312
|
-
_closePath(
|
58313
|
-
this._closeFile(
|
58314
|
-
const dir = sysPath2.dirname(
|
58315
|
-
this._getWatchedDir(dir).remove(sysPath2.basename(
|
58312
|
+
_closePath(path70) {
|
58313
|
+
this._closeFile(path70);
|
58314
|
+
const dir = sysPath2.dirname(path70);
|
58315
|
+
this._getWatchedDir(dir).remove(sysPath2.basename(path70));
|
58316
58316
|
}
|
58317
58317
|
/**
|
58318
58318
|
* Closes only file-specific watchers
|
58319
58319
|
*/
|
58320
|
-
_closeFile(
|
58321
|
-
const closers = this._closers.get(
|
58320
|
+
_closeFile(path70) {
|
58321
|
+
const closers = this._closers.get(path70);
|
58322
58322
|
if (!closers)
|
58323
58323
|
return;
|
58324
58324
|
closers.forEach((closer) => closer());
|
58325
|
-
this._closers.delete(
|
58325
|
+
this._closers.delete(path70);
|
58326
58326
|
}
|
58327
|
-
_addPathCloser(
|
58327
|
+
_addPathCloser(path70, closer) {
|
58328
58328
|
if (!closer)
|
58329
58329
|
return;
|
58330
|
-
let list = this._closers.get(
|
58330
|
+
let list = this._closers.get(path70);
|
58331
58331
|
if (!list) {
|
58332
58332
|
list = [];
|
58333
|
-
this._closers.set(
|
58333
|
+
this._closers.set(path70, list);
|
58334
58334
|
}
|
58335
58335
|
list.push(closer);
|
58336
58336
|
}
|
@@ -59619,9 +59619,9 @@ var init_createPaginator = __esm({
|
|
59619
59619
|
return await client.send(new CommandCtor(input), ...args);
|
59620
59620
|
}, "makePagedClientRequest");
|
59621
59621
|
__name(createPaginator, "createPaginator");
|
59622
|
-
get = /* @__PURE__ */ __name((fromObject,
|
59622
|
+
get = /* @__PURE__ */ __name((fromObject, path70) => {
|
59623
59623
|
let cursor = fromObject;
|
59624
|
-
const pathComponents =
|
59624
|
+
const pathComponents = path70.split(".");
|
59625
59625
|
for (const step of pathComponents) {
|
59626
59626
|
if (!cursor || typeof cursor !== "object") {
|
59627
59627
|
return void 0;
|
@@ -60244,12 +60244,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
60244
60244
|
const password = request4.password ?? "";
|
60245
60245
|
auth = `${username}:${password}`;
|
60246
60246
|
}
|
60247
|
-
let
|
60247
|
+
let path70 = request4.path;
|
60248
60248
|
if (queryString) {
|
60249
|
-
|
60249
|
+
path70 += `?${queryString}`;
|
60250
60250
|
}
|
60251
60251
|
if (request4.fragment) {
|
60252
|
-
|
60252
|
+
path70 += `#${request4.fragment}`;
|
60253
60253
|
}
|
60254
60254
|
let hostname2 = request4.hostname ?? "";
|
60255
60255
|
if (hostname2[0] === "[" && hostname2.endsWith("]")) {
|
@@ -60261,7 +60261,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
60261
60261
|
headers: request4.headers,
|
60262
60262
|
host: hostname2,
|
60263
60263
|
method: request4.method,
|
60264
|
-
path:
|
60264
|
+
path: path70,
|
60265
60265
|
port: request4.port,
|
60266
60266
|
agent,
|
60267
60267
|
auth
|
@@ -60995,8 +60995,8 @@ var init_requestBuilder = __esm({
|
|
60995
60995
|
return this;
|
60996
60996
|
}
|
60997
60997
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
60998
|
-
this.resolvePathStack.push((
|
60999
|
-
this.path = resolvedPath(
|
60998
|
+
this.resolvePathStack.push((path70) => {
|
60999
|
+
this.path = resolvedPath(path70, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
61000
61000
|
});
|
61001
61001
|
return this;
|
61002
61002
|
}
|
@@ -61942,10 +61942,10 @@ ${longDate}
|
|
61942
61942
|
${credentialScope}
|
61943
61943
|
${toHex(hashedRequest)}`;
|
61944
61944
|
}
|
61945
|
-
getCanonicalPath({ path:
|
61945
|
+
getCanonicalPath({ path: path70 }) {
|
61946
61946
|
if (this.uriEscapePath) {
|
61947
61947
|
const normalizedPathSegments = [];
|
61948
|
-
for (const pathSegment of
|
61948
|
+
for (const pathSegment of path70.split("/")) {
|
61949
61949
|
if (pathSegment?.length === 0)
|
61950
61950
|
continue;
|
61951
61951
|
if (pathSegment === ".")
|
@@ -61956,11 +61956,11 @@ ${toHex(hashedRequest)}`;
|
|
61956
61956
|
normalizedPathSegments.push(pathSegment);
|
61957
61957
|
}
|
61958
61958
|
}
|
61959
|
-
const normalizedPath = `${
|
61959
|
+
const normalizedPath = `${path70?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path70?.endsWith("/") ? "/" : ""}`;
|
61960
61960
|
const doubleEncoded = escapeUri(normalizedPath);
|
61961
61961
|
return doubleEncoded.replace(/%2F/g, "/");
|
61962
61962
|
}
|
61963
|
-
return
|
61963
|
+
return path70;
|
61964
61964
|
}
|
61965
61965
|
async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) {
|
61966
61966
|
const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest);
|
@@ -65686,18 +65686,18 @@ var init_getAttrPathList = __esm({
|
|
65686
65686
|
"../../node_modules/.pnpm/@smithy+util-endpoints@2.1.7/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js"() {
|
65687
65687
|
init_import_meta_url();
|
65688
65688
|
init_types3();
|
65689
|
-
getAttrPathList = /* @__PURE__ */ __name((
|
65690
|
-
const parts =
|
65689
|
+
getAttrPathList = /* @__PURE__ */ __name((path70) => {
|
65690
|
+
const parts = path70.split(".");
|
65691
65691
|
const pathList = [];
|
65692
65692
|
for (const part of parts) {
|
65693
65693
|
const squareBracketIndex = part.indexOf("[");
|
65694
65694
|
if (squareBracketIndex !== -1) {
|
65695
65695
|
if (part.indexOf("]") !== part.length - 1) {
|
65696
|
-
throw new EndpointError(`Path: '${
|
65696
|
+
throw new EndpointError(`Path: '${path70}' does not end with ']'`);
|
65697
65697
|
}
|
65698
65698
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
65699
65699
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
65700
|
-
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${
|
65700
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path70}'`);
|
65701
65701
|
}
|
65702
65702
|
if (squareBracketIndex !== 0) {
|
65703
65703
|
pathList.push(part.slice(0, squareBracketIndex));
|
@@ -65719,9 +65719,9 @@ var init_getAttr = __esm({
|
|
65719
65719
|
init_import_meta_url();
|
65720
65720
|
init_types3();
|
65721
65721
|
init_getAttrPathList();
|
65722
|
-
getAttr = /* @__PURE__ */ __name((value,
|
65722
|
+
getAttr = /* @__PURE__ */ __name((value, path70) => getAttrPathList(path70).reduce((acc, index) => {
|
65723
65723
|
if (typeof acc !== "object") {
|
65724
|
-
throw new EndpointError(`Index '${index}' in '${
|
65724
|
+
throw new EndpointError(`Index '${index}' in '${path70}' not found in '${JSON.stringify(value)}'`);
|
65725
65725
|
} else if (Array.isArray(acc)) {
|
65726
65726
|
return acc[parseInt(index)];
|
65727
65727
|
}
|
@@ -65766,8 +65766,8 @@ var init_parseURL = __esm({
|
|
65766
65766
|
return value;
|
65767
65767
|
}
|
65768
65768
|
if (typeof value === "object" && "hostname" in value) {
|
65769
|
-
const { hostname: hostname3, port, protocol: protocol2 = "", path:
|
65770
|
-
const url4 = new URL(`${protocol2}//${hostname3}${port ? `:${port}` : ""}${
|
65769
|
+
const { hostname: hostname3, port, protocol: protocol2 = "", path: path70 = "", query = {} } = value;
|
65770
|
+
const url4 = new URL(`${protocol2}//${hostname3}${port ? `:${port}` : ""}${path70}`);
|
65771
65771
|
url4.search = Object.entries(query).map(([k6, v7]) => `${k6}=${v7}`).join("&");
|
65772
65772
|
return url4;
|
65773
65773
|
}
|
@@ -65962,13 +65962,13 @@ var init_callFunction = __esm({
|
|
65962
65962
|
init_customEndpointFunctions();
|
65963
65963
|
init_endpointFunctions();
|
65964
65964
|
init_evaluateExpression();
|
65965
|
-
callFunction = /* @__PURE__ */ __name(({ fn, argv }, options) => {
|
65965
|
+
callFunction = /* @__PURE__ */ __name(({ fn: fn2, argv }, options) => {
|
65966
65966
|
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
|
65967
|
-
const fnSegments =
|
65967
|
+
const fnSegments = fn2.split(".");
|
65968
65968
|
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
65969
65969
|
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
65970
65970
|
}
|
65971
|
-
return endpointFunctions[
|
65971
|
+
return endpointFunctions[fn2](...evaluatedArgs);
|
65972
65972
|
}, "callFunction");
|
65973
65973
|
}
|
65974
65974
|
});
|
@@ -67237,8 +67237,8 @@ var init_createConfigValueProvider = __esm({
|
|
67237
67237
|
return endpoint.url.href;
|
67238
67238
|
}
|
67239
67239
|
if ("hostname" in endpoint) {
|
67240
|
-
const { protocol, hostname: hostname2, port, path:
|
67241
|
-
return `${protocol}//${hostname2}${port ? ":" + port : ""}${
|
67240
|
+
const { protocol, hostname: hostname2, port, path: path70 } = endpoint;
|
67241
|
+
return `${protocol}//${hostname2}${port ? ":" + port : ""}${path70}`;
|
67242
67242
|
}
|
67243
67243
|
}
|
67244
67244
|
return endpoint;
|
@@ -67475,11 +67475,11 @@ var init_slurpFile = __esm({
|
|
67475
67475
|
import_fs15 = require("fs");
|
67476
67476
|
({ readFile: readFile11 } = import_fs15.promises);
|
67477
67477
|
filePromisesHash = {};
|
67478
|
-
slurpFile = /* @__PURE__ */ __name((
|
67479
|
-
if (!filePromisesHash[
|
67480
|
-
filePromisesHash[
|
67478
|
+
slurpFile = /* @__PURE__ */ __name((path70, options) => {
|
67479
|
+
if (!filePromisesHash[path70] || options?.ignoreCache) {
|
67480
|
+
filePromisesHash[path70] = readFile11(path70, "utf8");
|
67481
67481
|
}
|
67482
|
-
return filePromisesHash[
|
67482
|
+
return filePromisesHash[path70];
|
67483
67483
|
}, "slurpFile");
|
67484
67484
|
}
|
67485
67485
|
});
|
@@ -74245,14 +74245,14 @@ var init_Aws_query = __esm({
|
|
74245
74245
|
cfId: output.headers["x-amz-cf-id"]
|
74246
74246
|
}), "deserializeMetadata");
|
74247
74247
|
throwDefaultError5 = withBaseException(STSServiceException);
|
74248
|
-
buildHttpRpcRequest = /* @__PURE__ */ __name(async (context2, headers,
|
74248
|
+
buildHttpRpcRequest = /* @__PURE__ */ __name(async (context2, headers, path70, resolvedHostname, body) => {
|
74249
74249
|
const { hostname: hostname2, protocol = "https", port, path: basePath } = await context2.endpoint();
|
74250
74250
|
const contents = {
|
74251
74251
|
protocol,
|
74252
74252
|
hostname: hostname2,
|
74253
74253
|
port,
|
74254
74254
|
method: "POST",
|
74255
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) +
|
74255
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path70 : basePath + path70,
|
74256
74256
|
headers
|
74257
74257
|
};
|
74258
74258
|
if (resolvedHostname !== void 0) {
|
@@ -75848,10 +75848,10 @@ var require_promisify = __commonJS({
|
|
75848
75848
|
"use strict";
|
75849
75849
|
init_import_meta_url();
|
75850
75850
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75851
|
-
function promisify3(
|
75851
|
+
function promisify3(fn2) {
|
75852
75852
|
return function(req, opts) {
|
75853
75853
|
return new Promise((resolve24, reject) => {
|
75854
|
-
|
75854
|
+
fn2.call(this, req, opts, (err, rtn) => {
|
75855
75855
|
if (err) {
|
75856
75856
|
reject(err);
|
75857
75857
|
} else {
|
@@ -75936,7 +75936,7 @@ var require_src5 = __commonJS({
|
|
75936
75936
|
set protocol(v7) {
|
75937
75937
|
this.explicitProtocol = v7;
|
75938
75938
|
}
|
75939
|
-
callback(req, opts,
|
75939
|
+
callback(req, opts, fn2) {
|
75940
75940
|
throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
|
75941
75941
|
}
|
75942
75942
|
/**
|
@@ -76543,11 +76543,11 @@ var init_validateURL = __esm({
|
|
76543
76543
|
"../workers-shared/utils/configuration/validateURL.ts"() {
|
76544
76544
|
"use strict";
|
76545
76545
|
init_import_meta_url();
|
76546
|
-
extractPathname = /* @__PURE__ */ __name((
|
76547
|
-
if (!
|
76548
|
-
|
76546
|
+
extractPathname = /* @__PURE__ */ __name((path70 = "/", includeSearch, includeHash) => {
|
76547
|
+
if (!path70.startsWith("/")) {
|
76548
|
+
path70 = `/${path70}`;
|
76549
76549
|
}
|
76550
|
-
const url4 = new URL(`//${
|
76550
|
+
const url4 = new URL(`//${path70}`, "relative://");
|
76551
76551
|
return `${url4.pathname}${includeSearch ? url4.search : ""}${includeHash ? url4.hash : ""}`;
|
76552
76552
|
}, "extractPathname");
|
76553
76553
|
URL_REGEX = /^https:\/\/+(?<host>[^/]+)\/?(?<path>.*)/;
|
@@ -76580,8 +76580,8 @@ var init_validateURL = __esm({
|
|
76580
76580
|
if (!token.startsWith("/") && onlyRelative) {
|
76581
76581
|
token = `/${token}`;
|
76582
76582
|
}
|
76583
|
-
const
|
76584
|
-
if (
|
76583
|
+
const path70 = PATH_REGEX.exec(token);
|
76584
|
+
if (path70) {
|
76585
76585
|
try {
|
76586
76586
|
return [extractPathname(token, includeSearch, includeHash), void 0];
|
76587
76587
|
} catch {
|
@@ -76640,7 +76640,7 @@ function parseHeaders(input, {
|
|
76640
76640
|
});
|
76641
76641
|
}
|
76642
76642
|
}
|
76643
|
-
const [
|
76643
|
+
const [path70, pathError] = validateUrl(line, false, true);
|
76644
76644
|
if (pathError) {
|
76645
76645
|
invalid.push({
|
76646
76646
|
line,
|
@@ -76651,7 +76651,7 @@ function parseHeaders(input, {
|
|
76651
76651
|
continue;
|
76652
76652
|
}
|
76653
76653
|
rule = {
|
76654
|
-
path:
|
76654
|
+
path: path70,
|
76655
76655
|
line,
|
76656
76656
|
headers: {},
|
76657
76657
|
unsetHeaders: []
|
@@ -77770,8 +77770,8 @@ ${val2.stack}`;
|
|
77770
77770
|
var ret = wasm.memory;
|
77771
77771
|
return addHeapObject(ret);
|
77772
77772
|
};
|
77773
|
-
var
|
77774
|
-
var bytes = require("fs").readFileSync(
|
77773
|
+
var path70 = require("path").join(__dirname, "html_rewriter_bg.wasm");
|
77774
|
+
var bytes = require("fs").readFileSync(path70);
|
77775
77775
|
var wasmModule = new WebAssembly.Module(bytes);
|
77776
77776
|
var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
77777
77777
|
wasm = wasmInstance.exports;
|
@@ -78981,8 +78981,8 @@ async function generateAssetsFetch(directory, log2) {
|
|
78981
78981
|
});
|
78982
78982
|
watch([headersFile, redirectsFile], { persistent: true }).on(
|
78983
78983
|
"change",
|
78984
|
-
(
|
78985
|
-
switch (
|
78984
|
+
(path70) => {
|
78985
|
+
switch (path70) {
|
78986
78986
|
case headersFile: {
|
78987
78987
|
log2.log("_headers modified. Re-evaluating...");
|
78988
78988
|
const contents = (0, import_node_fs33.readFileSync)(headersFile).toString();
|
@@ -79012,8 +79012,8 @@ async function generateAssetsFetch(directory, log2) {
|
|
79012
79012
|
metadata,
|
79013
79013
|
xServerEnvHeader: "dev",
|
79014
79014
|
logError: console.error,
|
79015
|
-
findAssetEntryForPath: /* @__PURE__ */ __name(async (
|
79016
|
-
const filepath = (0, import_node_path62.resolve)((0, import_node_path62.join)(directory,
|
79015
|
+
findAssetEntryForPath: /* @__PURE__ */ __name(async (path70) => {
|
79016
|
+
const filepath = (0, import_node_path62.resolve)((0, import_node_path62.join)(directory, path70));
|
79017
79017
|
if (!filepath.startsWith(directory)) {
|
79018
79018
|
return null;
|
79019
79019
|
}
|
@@ -79129,6 +79129,7 @@ var cli_exports2 = {};
|
|
79129
79129
|
__export(cli_exports2, {
|
79130
79130
|
experimental_patchConfig: () => experimental_patchConfig,
|
79131
79131
|
experimental_readRawConfig: () => experimental_readRawConfig,
|
79132
|
+
experimental_startMixedModeSession: () => startMixedModeSession,
|
79132
79133
|
getPlatformProxy: () => getPlatformProxy,
|
79133
79134
|
unstable_DevEnv: () => DevEnv,
|
79134
79135
|
unstable_dev: () => unstable_dev,
|
@@ -80256,11 +80257,11 @@ var parser = new YargsParser({
|
|
80256
80257
|
resolve: import_path.resolve,
|
80257
80258
|
// TODO: figure out a way to combine ESM and CJS coverage, such that
|
80258
80259
|
// we can exercise all the lines below:
|
80259
|
-
require: /* @__PURE__ */ __name((
|
80260
|
+
require: /* @__PURE__ */ __name((path70) => {
|
80260
80261
|
if (typeof require !== "undefined") {
|
80261
|
-
return require(
|
80262
|
-
} else if (
|
80263
|
-
return JSON.parse((0, import_fs.readFileSync)(
|
80262
|
+
return require(path70);
|
80263
|
+
} else if (path70.match(/\.json$/)) {
|
80264
|
+
return JSON.parse((0, import_fs.readFileSync)(path70, "utf8"));
|
80264
80265
|
} else {
|
80265
80266
|
throw Error("only .json config files are supported in ESM");
|
80266
80267
|
}
|
@@ -80378,8 +80379,8 @@ var UI = class {
|
|
80378
80379
|
ts += " ".repeat(wrapWidth - mixin2.stringWidth(col));
|
80379
80380
|
}
|
80380
80381
|
if (row[c6].align && row[c6].align !== "left" && this.wrap) {
|
80381
|
-
const
|
80382
|
-
ts =
|
80382
|
+
const fn2 = align[row[c6].align];
|
80383
|
+
ts = fn2(ts, wrapWidth);
|
80383
80384
|
if (mixin2.stringWidth(ts) < wrapWidth) {
|
80384
80385
|
ts += " ".repeat((width || 0) - mixin2.stringWidth(ts) - 1);
|
80385
80386
|
}
|
@@ -81399,7 +81400,7 @@ var import_miniflare8 = require("miniflare");
|
|
81399
81400
|
init_import_meta_url();
|
81400
81401
|
var import_node_assert5 = __toESM(require("node:assert"));
|
81401
81402
|
var import_node_crypto4 = require("node:crypto");
|
81402
|
-
var
|
81403
|
+
var import_node_path16 = __toESM(require("node:path"));
|
81403
81404
|
var import_miniflare6 = require("miniflare");
|
81404
81405
|
|
81405
81406
|
// src/ai/fetcher.ts
|
@@ -81413,7 +81414,7 @@ var import_undici3 = __toESM(require_undici());
|
|
81413
81414
|
|
81414
81415
|
// package.json
|
81415
81416
|
var name = "wrangler";
|
81416
|
-
var version = "4.14.
|
81417
|
+
var version = "4.14.2";
|
81417
81418
|
|
81418
81419
|
// src/environment-variables/misc-variables.ts
|
81419
81420
|
init_import_meta_url();
|
@@ -82719,12 +82720,12 @@ function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
|
|
82719
82720
|
return result;
|
82720
82721
|
}
|
82721
82722
|
__name(parseTree, "parseTree");
|
82722
|
-
function findNodeAtLocation(root,
|
82723
|
+
function findNodeAtLocation(root, path70) {
|
82723
82724
|
if (!root) {
|
82724
82725
|
return void 0;
|
82725
82726
|
}
|
82726
82727
|
let node2 = root;
|
82727
|
-
for (let segment of
|
82728
|
+
for (let segment of path70) {
|
82728
82729
|
if (typeof segment === "string") {
|
82729
82730
|
if (node2.type !== "object" || !Array.isArray(node2.children)) {
|
82730
82731
|
return void 0;
|
@@ -83073,14 +83074,14 @@ __name(getNodeType, "getNodeType");
|
|
83073
83074
|
|
83074
83075
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
83075
83076
|
function setProperty(text, originalPath, value, options) {
|
83076
|
-
const
|
83077
|
+
const path70 = originalPath.slice();
|
83077
83078
|
const errors = [];
|
83078
83079
|
const root = parseTree(text, errors);
|
83079
83080
|
let parent = void 0;
|
83080
83081
|
let lastSegment = void 0;
|
83081
|
-
while (
|
83082
|
-
lastSegment =
|
83083
|
-
parent = findNodeAtLocation(root,
|
83082
|
+
while (path70.length > 0) {
|
83083
|
+
lastSegment = path70.pop();
|
83084
|
+
parent = findNodeAtLocation(root, path70);
|
83084
83085
|
if (parent === void 0 && value !== void 0) {
|
83085
83086
|
if (typeof lastSegment === "string") {
|
83086
83087
|
value = { [lastSegment]: value };
|
@@ -83311,8 +83312,8 @@ function format5(documentText, range, options) {
|
|
83311
83312
|
return format4(documentText, range, options);
|
83312
83313
|
}
|
83313
83314
|
__name(format5, "format");
|
83314
|
-
function modify(text,
|
83315
|
-
return setProperty(text,
|
83315
|
+
function modify(text, path70, value, options) {
|
83316
|
+
return setProperty(text, path70, value, options);
|
83316
83317
|
}
|
83317
83318
|
__name(modify, "modify");
|
83318
83319
|
function applyEdits(text, edits) {
|
@@ -84708,9 +84709,9 @@ Please add "${field}" to "env.${envName}".`
|
|
84708
84709
|
return rawEnv[field] ?? defaultValue;
|
84709
84710
|
}
|
84710
84711
|
__name(notInheritable, "notInheritable");
|
84711
|
-
function unwindPropertyPath(root,
|
84712
|
+
function unwindPropertyPath(root, path70) {
|
84712
84713
|
let container = root;
|
84713
|
-
const parts =
|
84714
|
+
const parts = path70.split(".");
|
84714
84715
|
for (let i5 = 0; i5 < parts.length - 1; i5++) {
|
84715
84716
|
if (!hasProperty(container, parts[i5])) {
|
84716
84717
|
return;
|
@@ -90548,7 +90549,10 @@ function validateScopeKeys(scopes) {
|
|
90548
90549
|
return scopes.every((scope) => scope in DefaultScopes);
|
90549
90550
|
}
|
90550
90551
|
__name(validateScopeKeys, "validateScopeKeys");
|
90551
|
-
|
90552
|
+
function getCallbackUrl(host = "localhost", port = 8976) {
|
90553
|
+
return `http://${host}:${port}/oauth/callback`;
|
90554
|
+
}
|
90555
|
+
__name(getCallbackUrl, "getCallbackUrl");
|
90552
90556
|
var LocalState = {
|
90553
90557
|
...getAuthTokens()
|
90554
90558
|
};
|
@@ -90790,7 +90794,7 @@ function isReturningFromAuthServer(query) {
|
|
90790
90794
|
return true;
|
90791
90795
|
}
|
90792
90796
|
__name(isReturningFromAuthServer, "isReturningFromAuthServer");
|
90793
|
-
async function getAuthURL(scopes, clientId) {
|
90797
|
+
async function getAuthURL(scopes, clientId, callbackHost, callbackPort) {
|
90794
90798
|
const { codeChallenge, codeVerifier } = await generatePKCECodes();
|
90795
90799
|
const stateQueryParam = generateRandomState(RECOMMENDED_STATE_LENGTH);
|
90796
90800
|
Object.assign(LocalState, {
|
@@ -90801,7 +90805,7 @@ async function getAuthURL(scopes, clientId) {
|
|
90801
90805
|
return generateAuthUrl({
|
90802
90806
|
authUrl: getAuthUrlFromEnv(),
|
90803
90807
|
clientId,
|
90804
|
-
callbackUrl:
|
90808
|
+
callbackUrl: getCallbackUrl(callbackHost, callbackPort),
|
90805
90809
|
scopes,
|
90806
90810
|
stateQueryParam,
|
90807
90811
|
codeChallenge
|
@@ -90880,7 +90884,7 @@ async function exchangeAuthCodeForAccessToken() {
|
|
90880
90884
|
const params = new URLSearchParams({
|
90881
90885
|
grant_type: `authorization_code`,
|
90882
90886
|
code: authorizationCode ?? "",
|
90883
|
-
redirect_uri:
|
90887
|
+
redirect_uri: getCallbackUrl(),
|
90884
90888
|
client_id: getClientIdFromEnv(),
|
90885
90889
|
code_verifier: codeVerifier
|
90886
90890
|
});
|
@@ -90988,7 +90992,12 @@ async function loginOrRefreshIfRequired(props) {
|
|
90988
90992
|
}
|
90989
90993
|
__name(loginOrRefreshIfRequired, "loginOrRefreshIfRequired");
|
90990
90994
|
async function getOauthToken(options) {
|
90991
|
-
const urlToOpen = await getAuthURL(
|
90995
|
+
const urlToOpen = await getAuthURL(
|
90996
|
+
options.scopes,
|
90997
|
+
options.clientId,
|
90998
|
+
options.callbackHost,
|
90999
|
+
options.callbackPort
|
91000
|
+
);
|
90992
91001
|
let server;
|
90993
91002
|
let loginTimeoutHandle;
|
90994
91003
|
const timerPromise = new Promise((_4, reject) => {
|
@@ -91524,18 +91533,78 @@ __name(AIFetcher, "AIFetcher");
|
|
91524
91533
|
// src/deployment-bundle/module-collection.ts
|
91525
91534
|
init_import_meta_url();
|
91526
91535
|
var import_node_crypto3 = __toESM(require("node:crypto"));
|
91527
|
-
var
|
91536
|
+
var import_node_fs8 = require("node:fs");
|
91528
91537
|
var import_promises4 = require("node:fs/promises");
|
91529
|
-
var
|
91538
|
+
var import_node_path15 = __toESM(require("node:path"));
|
91530
91539
|
var import_glob_to_regexp2 = __toESM(require_glob_to_regexp());
|
91531
91540
|
var import_resolve = __toESM(require_resolve());
|
91532
91541
|
|
91533
91542
|
// src/deployment-bundle/find-additional-modules.ts
|
91534
91543
|
init_import_meta_url();
|
91535
91544
|
var import_promises3 = require("node:fs/promises");
|
91536
|
-
var
|
91545
|
+
var import_node_path14 = __toESM(require("node:path"));
|
91537
91546
|
var import_glob_to_regexp = __toESM(require_glob_to_regexp());
|
91538
91547
|
|
91548
|
+
// src/paths.ts
|
91549
|
+
init_import_meta_url();
|
91550
|
+
var import_node_console = require("node:console");
|
91551
|
+
var import_node_fs6 = __toESM(require("node:fs"));
|
91552
|
+
var import_node_path12 = __toESM(require("node:path"));
|
91553
|
+
var import_signal_exit3 = __toESM(require_signal_exit());
|
91554
|
+
function toUrlPath(filePath) {
|
91555
|
+
(0, import_node_console.assert)(
|
91556
|
+
!/^[a-z]:/i.test(filePath),
|
91557
|
+
"Tried to convert a Windows file path with a drive to a URL path."
|
91558
|
+
);
|
91559
|
+
return filePath.replace(/\\/g, "/");
|
91560
|
+
}
|
91561
|
+
__name(toUrlPath, "toUrlPath");
|
91562
|
+
function readableRelative(to) {
|
91563
|
+
const relativePath = import_node_path12.default.relative(process.cwd(), to);
|
91564
|
+
if (
|
91565
|
+
// No directory nesting, return as-is
|
91566
|
+
import_node_path12.default.basename(relativePath) === relativePath || // Outside current directory
|
91567
|
+
relativePath.startsWith(".")
|
91568
|
+
) {
|
91569
|
+
return relativePath;
|
91570
|
+
} else {
|
91571
|
+
return "./" + relativePath;
|
91572
|
+
}
|
91573
|
+
}
|
91574
|
+
__name(readableRelative, "readableRelative");
|
91575
|
+
function getBasePath() {
|
91576
|
+
return import_node_path12.default.resolve(__dirname, "..");
|
91577
|
+
}
|
91578
|
+
__name(getBasePath, "getBasePath");
|
91579
|
+
function getWranglerHiddenDirPath(projectRoot) {
|
91580
|
+
projectRoot ??= process.cwd();
|
91581
|
+
return import_node_path12.default.join(projectRoot, ".wrangler");
|
91582
|
+
}
|
91583
|
+
__name(getWranglerHiddenDirPath, "getWranglerHiddenDirPath");
|
91584
|
+
function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
|
91585
|
+
const tmpRoot = import_node_path12.default.join(getWranglerHiddenDirPath(projectRoot), "tmp");
|
91586
|
+
import_node_fs6.default.mkdirSync(tmpRoot, { recursive: true });
|
91587
|
+
const tmpPrefix = import_node_path12.default.join(tmpRoot, `${prefix}-`);
|
91588
|
+
const tmpDir = import_node_fs6.default.realpathSync(import_node_fs6.default.mkdtempSync(tmpPrefix));
|
91589
|
+
const removeDir = /* @__PURE__ */ __name(() => {
|
91590
|
+
if (cleanup) {
|
91591
|
+
try {
|
91592
|
+
return import_node_fs6.default.rmSync(tmpDir, { recursive: true, force: true });
|
91593
|
+
} catch (e7) {
|
91594
|
+
}
|
91595
|
+
}
|
91596
|
+
}, "removeDir");
|
91597
|
+
const removeExitListener = (0, import_signal_exit3.default)(removeDir);
|
91598
|
+
return {
|
91599
|
+
path: tmpDir,
|
91600
|
+
remove() {
|
91601
|
+
removeExitListener();
|
91602
|
+
removeDir();
|
91603
|
+
}
|
91604
|
+
};
|
91605
|
+
}
|
91606
|
+
__name(getWranglerTmpDir, "getWranglerTmpDir");
|
91607
|
+
|
91539
91608
|
// src/deployment-bundle/bundle-type.ts
|
91540
91609
|
init_import_meta_url();
|
91541
91610
|
function getBundleType(format9, file) {
|
@@ -91608,8 +91677,8 @@ __name(parseRules, "parseRules");
|
|
91608
91677
|
|
91609
91678
|
// src/deployment-bundle/source-maps.ts
|
91610
91679
|
init_import_meta_url();
|
91611
|
-
var
|
91612
|
-
var
|
91680
|
+
var import_node_fs7 = __toESM(require("node:fs"));
|
91681
|
+
var import_node_path13 = __toESM(require("node:path"));
|
91613
91682
|
function loadSourceMaps(main2, modules, bundle) {
|
91614
91683
|
const { sourceMapPath, sourceMapMetadata } = bundle;
|
91615
91684
|
if (sourceMapPath && sourceMapMetadata) {
|
@@ -91624,18 +91693,18 @@ function loadSourceMap({ name: name2, filePath }, sourceMapPath, { entryDirector
|
|
91624
91693
|
return [];
|
91625
91694
|
}
|
91626
91695
|
const map2 = JSON.parse(
|
91627
|
-
|
91696
|
+
import_node_fs7.default.readFileSync(import_node_path13.default.join(entryDirectory, sourceMapPath), "utf8")
|
91628
91697
|
);
|
91629
91698
|
map2.file = name2;
|
91630
91699
|
if (map2.sourceRoot) {
|
91631
|
-
const sourceRootPath =
|
91632
|
-
|
91700
|
+
const sourceRootPath = import_node_path13.default.dirname(
|
91701
|
+
import_node_path13.default.join(entryDirectory, sourceMapPath)
|
91633
91702
|
);
|
91634
|
-
map2.sourceRoot =
|
91703
|
+
map2.sourceRoot = import_node_path13.default.relative(sourceRootPath, map2.sourceRoot);
|
91635
91704
|
}
|
91636
91705
|
map2.sources = map2.sources.map((source) => {
|
91637
|
-
const originalPath =
|
91638
|
-
return
|
91706
|
+
const originalPath = import_node_path13.default.join(import_node_path13.default.dirname(filePath), source);
|
91707
|
+
return import_node_path13.default.relative(entryDirectory, originalPath);
|
91639
91708
|
});
|
91640
91709
|
return [
|
91641
91710
|
{
|
@@ -91695,14 +91764,14 @@ function sourceMapForModule(module3) {
|
|
91695
91764
|
if (sourceMapUrl === void 0) {
|
91696
91765
|
return;
|
91697
91766
|
}
|
91698
|
-
const sourcemapPath =
|
91699
|
-
if (!
|
91767
|
+
const sourcemapPath = import_node_path13.default.join(import_node_path13.default.dirname(module3.filePath), sourceMapUrl);
|
91768
|
+
if (!import_node_fs7.default.existsSync(sourcemapPath)) {
|
91700
91769
|
throw new Error(
|
91701
91770
|
`Invalid source map path in ${module3.filePath}: ${sourcemapPath} does not exist.`
|
91702
91771
|
);
|
91703
91772
|
}
|
91704
91773
|
const map2 = JSON.parse(
|
91705
|
-
|
91774
|
+
import_node_fs7.default.readFileSync(sourcemapPath, "utf8")
|
91706
91775
|
);
|
91707
91776
|
map2.file = module3.name;
|
91708
91777
|
if (map2.sourceRoot) {
|
@@ -91732,12 +91801,18 @@ function stripPrefix(prefix, input) {
|
|
91732
91801
|
__name(stripPrefix, "stripPrefix");
|
91733
91802
|
|
91734
91803
|
// src/deployment-bundle/find-additional-modules.ts
|
91735
|
-
async function* getFiles(
|
91736
|
-
|
91804
|
+
async function* getFiles(configPath, moduleRoot, relativeTo, projectRoot) {
|
91805
|
+
const wranglerHiddenDirPath = getWranglerHiddenDirPath(projectRoot);
|
91806
|
+
for (const file of await (0, import_promises3.readdir)(moduleRoot, { withFileTypes: true })) {
|
91807
|
+
const absPath = import_node_path14.default.join(moduleRoot, file.name);
|
91737
91808
|
if (file.isDirectory()) {
|
91738
|
-
|
91809
|
+
if (absPath !== wranglerHiddenDirPath) {
|
91810
|
+
yield* getFiles(configPath, absPath, relativeTo, projectRoot);
|
91811
|
+
}
|
91739
91812
|
} else {
|
91740
|
-
|
91813
|
+
if (absPath !== configPath) {
|
91814
|
+
yield import_node_path14.default.relative(relativeTo, absPath).replaceAll("\\", "/");
|
91815
|
+
}
|
91741
91816
|
}
|
91742
91817
|
}
|
91743
91818
|
}
|
@@ -91748,8 +91823,13 @@ function isValidPythonPackageName(name2) {
|
|
91748
91823
|
}
|
91749
91824
|
__name(isValidPythonPackageName, "isValidPythonPackageName");
|
91750
91825
|
async function findAdditionalModules(entry, rules, attachSourcemaps = false) {
|
91751
|
-
const files = getFiles(
|
91752
|
-
|
91826
|
+
const files = getFiles(
|
91827
|
+
entry.configPath,
|
91828
|
+
entry.moduleRoot,
|
91829
|
+
entry.moduleRoot,
|
91830
|
+
entry.projectRoot
|
91831
|
+
);
|
91832
|
+
const relativeEntryPoint = import_node_path14.default.relative(entry.moduleRoot, entry.file).replaceAll("\\", "/");
|
91753
91833
|
if (Array.isArray(rules)) {
|
91754
91834
|
rules = parseRules(rules);
|
91755
91835
|
}
|
@@ -91762,7 +91842,7 @@ async function findAdditionalModules(entry, rules, attachSourcemaps = false) {
|
|
91762
91842
|
let pythonRequirements = "";
|
91763
91843
|
try {
|
91764
91844
|
pythonRequirements = await (0, import_promises3.readFile)(
|
91765
|
-
|
91845
|
+
import_node_path14.default.resolve(entry.projectRoot, "requirements.txt"),
|
91766
91846
|
"utf-8"
|
91767
91847
|
);
|
91768
91848
|
} catch (e7) {
|
@@ -91826,7 +91906,7 @@ async function matchFiles(files, relativeTo, { rules, removedRules }) {
|
|
91826
91906
|
if (!regexp.test(filePath)) {
|
91827
91907
|
continue;
|
91828
91908
|
}
|
91829
|
-
const absoluteFilePath =
|
91909
|
+
const absoluteFilePath = import_node_path14.default.join(relativeTo, filePath);
|
91830
91910
|
const fileContent = await (0, import_promises3.readFile)(
|
91831
91911
|
absoluteFilePath
|
91832
91912
|
);
|
@@ -91871,19 +91951,19 @@ async function* findAdditionalModuleWatchDirs(root) {
|
|
91871
91951
|
if (entry.name === "node_modules" || entry.name === ".git") {
|
91872
91952
|
continue;
|
91873
91953
|
}
|
91874
|
-
yield* findAdditionalModuleWatchDirs(
|
91954
|
+
yield* findAdditionalModuleWatchDirs(import_node_path14.default.join(root, entry.name));
|
91875
91955
|
}
|
91876
91956
|
}
|
91877
91957
|
}
|
91878
91958
|
__name(findAdditionalModuleWatchDirs, "findAdditionalModuleWatchDirs");
|
91879
91959
|
async function writeAdditionalModules(modules, destination) {
|
91880
91960
|
for (const module3 of modules) {
|
91881
|
-
const modulePath =
|
91961
|
+
const modulePath = import_node_path14.default.resolve(destination, module3.name);
|
91882
91962
|
logger.debug("Writing additional module to output", modulePath);
|
91883
|
-
await (0, import_promises3.mkdir)(
|
91963
|
+
await (0, import_promises3.mkdir)(import_node_path14.default.dirname(modulePath), { recursive: true });
|
91884
91964
|
await (0, import_promises3.writeFile)(modulePath, module3.content);
|
91885
91965
|
if (module3.sourceMap) {
|
91886
|
-
const sourcemapPath =
|
91966
|
+
const sourcemapPath = import_node_path14.default.resolve(destination, module3.sourceMap.name);
|
91887
91967
|
await (0, import_promises3.writeFile)(sourcemapPath, module3.sourceMap.content);
|
91888
91968
|
}
|
91889
91969
|
}
|
@@ -91942,7 +92022,7 @@ function createModuleCollector(props) {
|
|
91942
92022
|
}
|
91943
92023
|
const found = await findAdditionalModules(props.entry, parsedRules);
|
91944
92024
|
foundModulePaths = found.map(
|
91945
|
-
({ name: name2 }) =>
|
92025
|
+
({ name: name2 }) => import_node_path15.default.resolve(props.entry.moduleRoot, name2)
|
91946
92026
|
);
|
91947
92027
|
modules.push(...found);
|
91948
92028
|
}
|
@@ -91957,7 +92037,7 @@ function createModuleCollector(props) {
|
|
91957
92037
|
const watchDirs = [];
|
91958
92038
|
if (props.findAdditionalModules) {
|
91959
92039
|
watchFiles = foundModulePaths;
|
91960
|
-
const root =
|
92040
|
+
const root = import_node_path15.default.resolve(props.entry.moduleRoot);
|
91961
92041
|
for await (const dir of findAdditionalModuleWatchDirs(root)) {
|
91962
92042
|
watchDirs.push(dir);
|
91963
92043
|
}
|
@@ -91986,12 +92066,12 @@ function createModuleCollector(props) {
|
|
91986
92066
|
return;
|
91987
92067
|
}
|
91988
92068
|
logger.warn(
|
91989
|
-
`Deprecation: detected a legacy module import in "./${
|
92069
|
+
`Deprecation: detected a legacy module import in "./${import_node_path15.default.relative(
|
91990
92070
|
process.cwd(),
|
91991
92071
|
args.importer
|
91992
92072
|
)}". This will stop working in the future. Replace references to "${args.path}" with "./${args.path}";`
|
91993
92073
|
);
|
91994
|
-
const filePath =
|
92074
|
+
const filePath = import_node_path15.default.join(
|
91995
92075
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
91996
92076
|
props.wrangler1xLegacyModuleReferences.rootDirectory,
|
91997
92077
|
args.path
|
@@ -92000,7 +92080,7 @@ function createModuleCollector(props) {
|
|
92000
92080
|
filePath
|
92001
92081
|
);
|
92002
92082
|
const fileHash = import_node_crypto3.default.createHash("sha1").update(fileContent).digest("hex");
|
92003
|
-
const fileName = props.preserveFileNames ? args.path : `./${fileHash}-${
|
92083
|
+
const fileName = props.preserveFileNames ? args.path : `./${fileHash}-${import_node_path15.default.basename(args.path)}`;
|
92004
92084
|
const { rule } = rulesMatchers.find(({ regex: regex2 }) => regex2.test(fileName)) || {};
|
92005
92085
|
if (rule) {
|
92006
92086
|
modules.push({
|
@@ -92034,7 +92114,7 @@ function createModuleCollector(props) {
|
|
92034
92114
|
if (args.pluginData?.skip) {
|
92035
92115
|
return;
|
92036
92116
|
}
|
92037
|
-
let filePath =
|
92117
|
+
let filePath = import_node_path15.default.join(args.resolveDir, args.path);
|
92038
92118
|
if (foundModulePaths.includes(filePath)) {
|
92039
92119
|
return { path: args.path, external: true };
|
92040
92120
|
}
|
@@ -92065,7 +92145,7 @@ function createModuleCollector(props) {
|
|
92065
92145
|
filePath
|
92066
92146
|
);
|
92067
92147
|
const fileHash = import_node_crypto3.default.createHash("sha1").update(fileContent).digest("hex");
|
92068
|
-
const fileName = props.preserveFileNames ? args.path : `./${fileHash}-${
|
92148
|
+
const fileName = props.preserveFileNames ? args.path : `./${fileHash}-${import_node_path15.default.basename(args.path)}`;
|
92069
92149
|
modules.push({
|
92070
92150
|
name: fileName,
|
92071
92151
|
filePath,
|
@@ -92127,8 +92207,8 @@ function getWrangler1xLegacyModuleReferences(rootDirectory, entryPath) {
|
|
92127
92207
|
return {
|
92128
92208
|
rootDirectory,
|
92129
92209
|
fileNames: new Set(
|
92130
|
-
(0,
|
92131
|
-
(dirEntry) => dirEntry.isFile() && dirEntry.name !==
|
92210
|
+
(0, import_node_fs8.readdirSync)(rootDirectory, { withFileTypes: true }).filter(
|
92211
|
+
(dirEntry) => dirEntry.isFile() && dirEntry.name !== import_node_path15.default.basename(entryPath)
|
92132
92212
|
).map((dirEnt) => dirEnt.name)
|
92133
92213
|
)
|
92134
92214
|
};
|
@@ -92429,8 +92509,8 @@ function getSourceMappingPrepareStackTrace(retrieveSourceMap) {
|
|
92429
92509
|
// Make sure we're using fresh copies of files each time we source map
|
92430
92510
|
emptyCacheBetweenOperations: true,
|
92431
92511
|
// Allow retriever to be overridden at prepare stack trace time
|
92432
|
-
retrieveSourceMap(
|
92433
|
-
return retrieveSourceMapOverride?.(
|
92512
|
+
retrieveSourceMap(path70) {
|
92513
|
+
return retrieveSourceMapOverride?.(path70) ?? null;
|
92434
92514
|
}
|
92435
92515
|
});
|
92436
92516
|
sourceMappingPrepareStackTrace = Error.prepareStackTrace;
|
@@ -92532,7 +92612,7 @@ function lineMatchToCallSite(lineMatch) {
|
|
92532
92612
|
typeName,
|
92533
92613
|
functionName,
|
92534
92614
|
methodName,
|
92535
|
-
fileName: lineMatch[2]
|
92615
|
+
fileName: lineMatch[2],
|
92536
92616
|
lineNumber: parseInt(lineMatch[3]) || null,
|
92537
92617
|
columnNumber: parseInt(lineMatch[4]) || null,
|
92538
92618
|
native: isNative
|
@@ -92546,6 +92626,21 @@ var CallSite = class {
|
|
92546
92626
|
static {
|
92547
92627
|
__name(this, "CallSite");
|
92548
92628
|
}
|
92629
|
+
getScriptHash() {
|
92630
|
+
throw new Error("Method not implemented.");
|
92631
|
+
}
|
92632
|
+
getEnclosingColumnNumber() {
|
92633
|
+
throw new Error("Method not implemented.");
|
92634
|
+
}
|
92635
|
+
getEnclosingLineNumber() {
|
92636
|
+
throw new Error("Method not implemented.");
|
92637
|
+
}
|
92638
|
+
getPosition() {
|
92639
|
+
throw new Error("Method not implemented.");
|
92640
|
+
}
|
92641
|
+
toString() {
|
92642
|
+
throw new Error("Method not implemented.");
|
92643
|
+
}
|
92549
92644
|
getThis() {
|
92550
92645
|
return null;
|
92551
92646
|
}
|
@@ -92895,7 +92990,7 @@ async function buildSourceOptions(config) {
|
|
92895
92990
|
config.bundle.modules
|
92896
92991
|
);
|
92897
92992
|
const entrypointNames = isPython ? [] : config.bundle.entry.exports;
|
92898
|
-
const modulesRoot =
|
92993
|
+
const modulesRoot = import_node_path16.default.dirname(scriptPath3);
|
92899
92994
|
const sourceOptions = {
|
92900
92995
|
modulesRoot,
|
92901
92996
|
modules: [
|
@@ -92908,7 +93003,7 @@ async function buildSourceOptions(config) {
|
|
92908
93003
|
// Misc (WebAssembly, etc, ...)
|
92909
93004
|
...modules.map((module3) => ({
|
92910
93005
|
type: ModuleTypeToRuleType[module3.type ?? "esm"],
|
92911
|
-
path:
|
93006
|
+
path: import_node_path16.default.resolve(modulesRoot, module3.name),
|
92912
93007
|
contents: module3.content
|
92913
93008
|
}))
|
92914
93009
|
]
|
@@ -92989,14 +93084,14 @@ function buildMiniflareBindingOptions(config) {
|
|
92989
93084
|
const wasmBindings = { ...bindings.wasm_modules };
|
92990
93085
|
if (config.format === "service-worker" && config.bundle) {
|
92991
93086
|
const scriptPath3 = config.bundle.path;
|
92992
|
-
const modulesRoot =
|
93087
|
+
const modulesRoot = import_node_path16.default.dirname(scriptPath3);
|
92993
93088
|
for (const { type, name: name2 } of config.bundle.modules) {
|
92994
93089
|
if (type === "text") {
|
92995
|
-
textBlobBindings[getIdentifier(name2)] =
|
93090
|
+
textBlobBindings[getIdentifier(name2)] = import_node_path16.default.resolve(modulesRoot, name2);
|
92996
93091
|
} else if (type === "buffer") {
|
92997
|
-
dataBlobBindings[getIdentifier(name2)] =
|
93092
|
+
dataBlobBindings[getIdentifier(name2)] = import_node_path16.default.resolve(modulesRoot, name2);
|
92998
93093
|
} else if (type === "compiled-wasm") {
|
92999
|
-
wasmBindings[getIdentifier(name2)] =
|
93094
|
+
wasmBindings[getIdentifier(name2)] = import_node_path16.default.resolve(modulesRoot, name2);
|
93000
93095
|
}
|
93001
93096
|
}
|
93002
93097
|
}
|
@@ -93310,16 +93405,16 @@ function buildMiniflareBindingOptions(config) {
|
|
93310
93405
|
__name(buildMiniflareBindingOptions, "buildMiniflareBindingOptions");
|
93311
93406
|
function buildPersistOptions(localPersistencePath) {
|
93312
93407
|
if (localPersistencePath !== null) {
|
93313
|
-
const v3Path =
|
93408
|
+
const v3Path = import_node_path16.default.join(localPersistencePath, "v3");
|
93314
93409
|
return {
|
93315
|
-
cachePersist:
|
93316
|
-
durableObjectsPersist:
|
93317
|
-
kvPersist:
|
93318
|
-
r2Persist:
|
93319
|
-
d1Persist:
|
93320
|
-
workflowsPersist:
|
93321
|
-
secretsStorePersist:
|
93322
|
-
analyticsEngineDatasetsPersist:
|
93410
|
+
cachePersist: import_node_path16.default.join(v3Path, "cache"),
|
93411
|
+
durableObjectsPersist: import_node_path16.default.join(v3Path, "do"),
|
93412
|
+
kvPersist: import_node_path16.default.join(v3Path, "kv"),
|
93413
|
+
r2Persist: import_node_path16.default.join(v3Path, "r2"),
|
93414
|
+
d1Persist: import_node_path16.default.join(v3Path, "d1"),
|
93415
|
+
workflowsPersist: import_node_path16.default.join(v3Path, "workflows"),
|
93416
|
+
secretsStorePersist: import_node_path16.default.join(v3Path, "secrets-store"),
|
93417
|
+
analyticsEngineDatasetsPersist: import_node_path16.default.join(v3Path, "analytics-engine")
|
93323
93418
|
};
|
93324
93419
|
}
|
93325
93420
|
}
|
@@ -93343,7 +93438,7 @@ function buildSitesOptions({
|
|
93343
93438
|
if (legacyAssetPaths !== void 0) {
|
93344
93439
|
const { baseDirectory, assetDirectory, includePatterns, excludePatterns } = legacyAssetPaths;
|
93345
93440
|
return {
|
93346
|
-
sitePath:
|
93441
|
+
sitePath: import_node_path16.default.join(baseDirectory, assetDirectory),
|
93347
93442
|
siteInclude: includePatterns.length > 0 ? includePatterns : void 0,
|
93348
93443
|
siteExclude: excludePatterns.length > 0 ? excludePatterns : void 0
|
93349
93444
|
};
|
@@ -94318,19 +94413,19 @@ init_import_meta_url();
|
|
94318
94413
|
var import_node_assert9 = __toESM(require("node:assert"));
|
94319
94414
|
var import_node_crypto7 = require("node:crypto");
|
94320
94415
|
var import_node_events2 = __toESM(require("node:events"));
|
94321
|
-
var
|
94416
|
+
var import_node_path20 = __toESM(require("node:path"));
|
94322
94417
|
var import_miniflare10 = require("miniflare");
|
94323
94418
|
|
94324
94419
|
// embed-worker:/home/runner/work/workers-sdk/workers-sdk/packages/wrangler/templates/startDevWorker/InspectorProxyWorker.ts
|
94325
94420
|
init_import_meta_url();
|
94326
|
-
var
|
94327
|
-
var scriptPath =
|
94421
|
+
var import_node_path17 = __toESM(require("node:path"));
|
94422
|
+
var scriptPath = import_node_path17.default.resolve(__dirname, "..", "wrangler-dist/InspectorProxyWorker.js");
|
94328
94423
|
var InspectorProxyWorker_default = scriptPath;
|
94329
94424
|
|
94330
94425
|
// embed-worker:/home/runner/work/workers-sdk/workers-sdk/packages/wrangler/templates/startDevWorker/ProxyWorker.ts
|
94331
94426
|
init_import_meta_url();
|
94332
|
-
var
|
94333
|
-
var scriptPath2 =
|
94427
|
+
var import_node_path18 = __toESM(require("node:path"));
|
94428
|
+
var scriptPath2 = import_node_path18.default.resolve(__dirname, "..", "wrangler-dist/ProxyWorker.js");
|
94334
94429
|
var ProxyWorker_default = scriptPath2;
|
94335
94430
|
|
94336
94431
|
// ../../node_modules/.pnpm/ws@8.18.0/node_modules/ws/wrapper.mjs
|
@@ -94353,8 +94448,8 @@ var import_open2 = __toESM(require_open());
|
|
94353
94448
|
// src/api/startDevWorker/bundle-allowed-paths.ts
|
94354
94449
|
init_import_meta_url();
|
94355
94450
|
var import_node_assert8 = __toESM(require("node:assert"));
|
94356
|
-
var
|
94357
|
-
var
|
94451
|
+
var import_node_fs9 = __toESM(require("node:fs"));
|
94452
|
+
var import_node_path19 = __toESM(require("node:path"));
|
94358
94453
|
var import_node_url6 = require("node:url");
|
94359
94454
|
function isAllowedSourcePath(bundle, filePath) {
|
94360
94455
|
const allowed = getBundleReferencedPaths(bundle);
|
@@ -94381,12 +94476,12 @@ function getBundleReferencedPaths(bundle) {
|
|
94381
94476
|
}
|
94382
94477
|
const sourceMappingPath = (0, import_node_url6.fileURLToPath)(sourceMappingURL);
|
94383
94478
|
allowed.sourceMapPaths.add(sourceMappingPath);
|
94384
|
-
const sourceMapData =
|
94479
|
+
const sourceMapData = import_node_fs9.default.readFileSync(sourceMappingPath, "utf8");
|
94385
94480
|
const sourceMap = JSON.parse(sourceMapData);
|
94386
94481
|
const sourceRoot = sourceMap.sourceRoot ?? "";
|
94387
94482
|
for (const source of sourceMap.sources) {
|
94388
94483
|
const sourceURL = new URL(
|
94389
|
-
|
94484
|
+
import_node_path19.default.posix.join(sourceRoot, source),
|
94390
94485
|
sourceMappingURL
|
94391
94486
|
);
|
94392
94487
|
allowed.sourcePaths.add((0, import_node_url6.fileURLToPath)(sourceURL));
|
@@ -94409,7 +94504,7 @@ function* getBundleSourcePaths(bundle) {
|
|
94409
94504
|
}
|
94410
94505
|
__name(getBundleSourcePaths, "getBundleSourcePaths");
|
94411
94506
|
function maybeGetSourceMappingURL(sourcePath) {
|
94412
|
-
const source =
|
94507
|
+
const source = import_node_fs9.default.readFileSync(sourcePath, "utf8");
|
94413
94508
|
const sourceMappingURLIndex = source.lastIndexOf("//# sourceMappingURL=");
|
94414
94509
|
if (sourceMappingURLIndex === -1) {
|
94415
94510
|
return;
|
@@ -94628,8 +94723,8 @@ var openInspector = /* @__PURE__ */ __name(async (inspectorPort, worker) => {
|
|
94628
94723
|
|
94629
94724
|
// src/https-options.ts
|
94630
94725
|
init_import_meta_url();
|
94631
|
-
var
|
94632
|
-
var
|
94726
|
+
var fs8 = __toESM(require("node:fs"));
|
94727
|
+
var path21 = __toESM(require("node:path"));
|
94633
94728
|
var import_miniflare9 = require("miniflare");
|
94634
94729
|
var CERT_EXPIRY_DAYS = 30;
|
94635
94730
|
var ONE_DAY_IN_MS = 864e5;
|
@@ -94646,37 +94741,37 @@ function getHttpsOptions(customHttpsKeyPath = getHttpsKeyPathFromEnv(), customHt
|
|
94646
94741
|
"Must specify both certificate path and key path to use a Custom Certificate."
|
94647
94742
|
);
|
94648
94743
|
}
|
94649
|
-
if (!
|
94744
|
+
if (!fs8.existsSync(customHttpsKeyPath)) {
|
94650
94745
|
throw new UserError(
|
94651
94746
|
"Missing Custom Certificate Key at " + customHttpsKeyPath
|
94652
94747
|
);
|
94653
94748
|
}
|
94654
|
-
if (!
|
94749
|
+
if (!fs8.existsSync(customHttpsCertPath)) {
|
94655
94750
|
throw new UserError(
|
94656
94751
|
"Missing Custom Certificate File at " + customHttpsCertPath
|
94657
94752
|
);
|
94658
94753
|
}
|
94659
94754
|
logger.log("Using custom certificate at ", customHttpsKeyPath);
|
94660
94755
|
return {
|
94661
|
-
key:
|
94662
|
-
cert:
|
94756
|
+
key: fs8.readFileSync(customHttpsKeyPath, "utf8"),
|
94757
|
+
cert: fs8.readFileSync(customHttpsCertPath, "utf8")
|
94663
94758
|
};
|
94664
94759
|
}
|
94665
|
-
const certDirectory =
|
94666
|
-
const keyPath =
|
94667
|
-
const certPath =
|
94668
|
-
const regenerate = !
|
94760
|
+
const certDirectory = path21.join(getGlobalWranglerConfigPath(), "local-cert");
|
94761
|
+
const keyPath = path21.join(certDirectory, "key.pem");
|
94762
|
+
const certPath = path21.join(certDirectory, "cert.pem");
|
94763
|
+
const regenerate = !fs8.existsSync(keyPath) || !fs8.existsSync(certPath) || hasCertificateExpired(keyPath, certPath);
|
94669
94764
|
if (regenerate) {
|
94670
94765
|
logger.log("Generating new self-signed certificate...");
|
94671
94766
|
const { key, cert } = generateCertificate();
|
94672
94767
|
try {
|
94673
|
-
|
94674
|
-
|
94675
|
-
|
94768
|
+
fs8.mkdirSync(certDirectory, { recursive: true });
|
94769
|
+
fs8.writeFileSync(keyPath, key, "utf8");
|
94770
|
+
fs8.writeFileSync(certPath, cert, "utf8");
|
94676
94771
|
} catch (e7) {
|
94677
94772
|
const message = e7 instanceof Error ? e7.message : `${e7}`;
|
94678
94773
|
logger.warn(
|
94679
|
-
`Unable to cache generated self-signed certificate in ${
|
94774
|
+
`Unable to cache generated self-signed certificate in ${path21.relative(
|
94680
94775
|
process.cwd(),
|
94681
94776
|
certDirectory
|
94682
94777
|
)}.
|
@@ -94686,15 +94781,15 @@ ${message}`
|
|
94686
94781
|
return { key, cert };
|
94687
94782
|
} else {
|
94688
94783
|
return {
|
94689
|
-
key:
|
94690
|
-
cert:
|
94784
|
+
key: fs8.readFileSync(keyPath, "utf8"),
|
94785
|
+
cert: fs8.readFileSync(certPath, "utf8")
|
94691
94786
|
};
|
94692
94787
|
}
|
94693
94788
|
}
|
94694
94789
|
__name(getHttpsOptions, "getHttpsOptions");
|
94695
94790
|
function hasCertificateExpired(keyPath, certPath) {
|
94696
|
-
const keyStat =
|
94697
|
-
const certStat =
|
94791
|
+
const keyStat = fs8.statSync(keyPath);
|
94792
|
+
const certStat = fs8.statSync(certPath);
|
94698
94793
|
const created = Math.max(keyStat.mtimeMs, certStat.mtimeMs);
|
94699
94794
|
return Date.now() - created > (CERT_EXPIRY_DAYS - 2) * ONE_DAY_IN_MS;
|
94700
94795
|
}
|
@@ -94772,7 +94867,7 @@ var ProxyController = class extends Controller {
|
|
94772
94867
|
name: "ProxyWorker",
|
94773
94868
|
compatibilityDate: "2023-12-18",
|
94774
94869
|
compatibilityFlags: ["nodejs_compat"],
|
94775
|
-
modulesRoot:
|
94870
|
+
modulesRoot: import_node_path20.default.dirname(ProxyWorker_default),
|
94776
94871
|
modules: [{ type: "ESModule", path: ProxyWorker_default }],
|
94777
94872
|
durableObjects: {
|
94778
94873
|
DURABLE_OBJECT: {
|
@@ -94801,7 +94896,7 @@ var ProxyController = class extends Controller {
|
|
94801
94896
|
"nodejs_compat",
|
94802
94897
|
"increase_websocket_message_size"
|
94803
94898
|
],
|
94804
|
-
modulesRoot:
|
94899
|
+
modulesRoot: import_node_path20.default.dirname(InspectorProxyWorker_default),
|
94805
94900
|
modules: [{ type: "ESModule", path: InspectorProxyWorker_default }],
|
94806
94901
|
durableObjects: {
|
94807
94902
|
DURABLE_OBJECT: {
|
@@ -95548,8 +95643,8 @@ function getErrorMap() {
|
|
95548
95643
|
}
|
95549
95644
|
__name(getErrorMap, "getErrorMap");
|
95550
95645
|
var makeIssue = /* @__PURE__ */ __name((params) => {
|
95551
|
-
const { data, path:
|
95552
|
-
const fullPath = [...
|
95646
|
+
const { data, path: path70, errorMaps, issueData } = params;
|
95647
|
+
const fullPath = [...path70, ...issueData.path || []];
|
95553
95648
|
const fullIssue = {
|
95554
95649
|
...issueData,
|
95555
95650
|
path: fullPath
|
@@ -95655,11 +95750,11 @@ var ParseInputLazyPath = class {
|
|
95655
95750
|
static {
|
95656
95751
|
__name(this, "ParseInputLazyPath");
|
95657
95752
|
}
|
95658
|
-
constructor(parent, value,
|
95753
|
+
constructor(parent, value, path70, key) {
|
95659
95754
|
this._cachedPath = [];
|
95660
95755
|
this.parent = parent;
|
95661
95756
|
this.data = value;
|
95662
|
-
this._path =
|
95757
|
+
this._path = path70;
|
95663
95758
|
this._key = key;
|
95664
95759
|
}
|
95665
95760
|
get path() {
|
@@ -98197,7 +98292,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
98197
98292
|
}
|
98198
98293
|
__name(makeReturnsIssue, "makeReturnsIssue");
|
98199
98294
|
const params = { errorMap: ctx.common.contextualErrorMap };
|
98200
|
-
const
|
98295
|
+
const fn2 = ctx.data;
|
98201
98296
|
if (this._def.returns instanceof ZodPromise) {
|
98202
98297
|
const me = this;
|
98203
98298
|
return OK(async function(...args) {
|
@@ -98206,7 +98301,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
98206
98301
|
error2.addIssue(makeArgsIssue(args, e7));
|
98207
98302
|
throw error2;
|
98208
98303
|
});
|
98209
|
-
const result = await Reflect.apply(
|
98304
|
+
const result = await Reflect.apply(fn2, this, parsedArgs);
|
98210
98305
|
const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e7) => {
|
98211
98306
|
error2.addIssue(makeReturnsIssue(result, e7));
|
98212
98307
|
throw error2;
|
@@ -98220,7 +98315,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
98220
98315
|
if (!parsedArgs.success) {
|
98221
98316
|
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
98222
98317
|
}
|
98223
|
-
const result = Reflect.apply(
|
98318
|
+
const result = Reflect.apply(fn2, this, parsedArgs.data);
|
98224
98319
|
const parsedReturns = me._def.returns.safeParse(result, params);
|
98225
98320
|
if (!parsedReturns.success) {
|
98226
98321
|
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
@@ -99336,7 +99431,7 @@ var PQueue = class extends import_eventemitter3.default {
|
|
99336
99431
|
/**
|
99337
99432
|
Adds a sync or async task to the queue. Always returns a promise.
|
99338
99433
|
*/
|
99339
|
-
async add(
|
99434
|
+
async add(fn2, options = {}) {
|
99340
99435
|
return new Promise((resolve24, reject) => {
|
99341
99436
|
const run2 = /* @__PURE__ */ __name(async () => {
|
99342
99437
|
var _a3;
|
@@ -99348,7 +99443,7 @@ var PQueue = class extends import_eventemitter3.default {
|
|
99348
99443
|
reject(new AbortError("The task was aborted."));
|
99349
99444
|
return;
|
99350
99445
|
}
|
99351
|
-
const operation = __classPrivateFieldGet2(this, _PQueue_timeout, "f") === void 0 && options.timeout === void 0 ?
|
99446
|
+
const operation = __classPrivateFieldGet2(this, _PQueue_timeout, "f") === void 0 && options.timeout === void 0 ? fn2({ signal: options.signal }) : pTimeout(Promise.resolve(fn2({ signal: options.signal })), options.timeout === void 0 ? __classPrivateFieldGet2(this, _PQueue_timeout, "f") : options.timeout, () => {
|
99352
99447
|
if (options.throwOnTimeout === void 0 ? __classPrivateFieldGet2(this, _PQueue_throwOnTimeout, "f") : options.throwOnTimeout) {
|
99353
99448
|
reject(timeoutError);
|
99354
99449
|
}
|
@@ -99894,16 +99989,16 @@ var import_undici4 = __toESM(require_undici());
|
|
99894
99989
|
|
99895
99990
|
// src/dev/get-local-persistence-path.ts
|
99896
99991
|
init_import_meta_url();
|
99897
|
-
var
|
99992
|
+
var import_node_path21 = __toESM(require("node:path"));
|
99898
99993
|
function getLocalPersistencePath(persistTo, { userConfigPath }) {
|
99899
99994
|
return persistTo ? (
|
99900
99995
|
// If path specified, always treat it as relative to cwd()
|
99901
|
-
|
99996
|
+
import_node_path21.default.resolve(process.cwd(), persistTo)
|
99902
99997
|
) : (
|
99903
99998
|
// Otherwise, treat it as relative to the Wrangler configuration file,
|
99904
99999
|
// if one can be found, otherwise cwd()
|
99905
|
-
|
99906
|
-
userConfigPath ?
|
100000
|
+
import_node_path21.default.resolve(
|
100001
|
+
userConfigPath ? import_node_path21.default.dirname(userConfigPath) : process.cwd(),
|
99907
100002
|
".wrangler/state"
|
99908
100003
|
)
|
99909
100004
|
);
|
@@ -100201,7 +100296,7 @@ var import_node_process9 = require("node:process");
|
|
100201
100296
|
// ../../node_modules/.pnpm/execa@6.1.0/node_modules/execa/index.js
|
100202
100297
|
init_import_meta_url();
|
100203
100298
|
var import_node_buffer2 = require("node:buffer");
|
100204
|
-
var
|
100299
|
+
var import_node_path23 = __toESM(require("node:path"), 1);
|
100205
100300
|
var import_node_child_process = __toESM(require("node:child_process"), 1);
|
100206
100301
|
var import_node_process8 = __toESM(require("node:process"), 1);
|
100207
100302
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
@@ -100224,7 +100319,7 @@ __name(stripFinalNewline, "stripFinalNewline");
|
|
100224
100319
|
// ../../node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
|
100225
100320
|
init_import_meta_url();
|
100226
100321
|
var import_node_process7 = __toESM(require("node:process"), 1);
|
100227
|
-
var
|
100322
|
+
var import_node_path22 = __toESM(require("node:path"), 1);
|
100228
100323
|
var import_node_url9 = __toESM(require("node:url"), 1);
|
100229
100324
|
|
100230
100325
|
// ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
@@ -100250,22 +100345,22 @@ function npmRunPath(options = {}) {
|
|
100250
100345
|
} = options;
|
100251
100346
|
let previous;
|
100252
100347
|
const cwdString = cwd2 instanceof URL ? import_node_url9.default.fileURLToPath(cwd2) : cwd2;
|
100253
|
-
let cwdPath =
|
100348
|
+
let cwdPath = import_node_path22.default.resolve(cwdString);
|
100254
100349
|
const result = [];
|
100255
100350
|
while (previous !== cwdPath) {
|
100256
|
-
result.push(
|
100351
|
+
result.push(import_node_path22.default.join(cwdPath, "node_modules/.bin"));
|
100257
100352
|
previous = cwdPath;
|
100258
|
-
cwdPath =
|
100353
|
+
cwdPath = import_node_path22.default.resolve(cwdPath, "..");
|
100259
100354
|
}
|
100260
|
-
result.push(
|
100261
|
-
return [...result, path_].join(
|
100355
|
+
result.push(import_node_path22.default.resolve(cwdString, execPath, ".."));
|
100356
|
+
return [...result, path_].join(import_node_path22.default.delimiter);
|
100262
100357
|
}
|
100263
100358
|
__name(npmRunPath, "npmRunPath");
|
100264
100359
|
function npmRunPathEnv({ env: env6 = import_node_process7.default.env, ...options } = {}) {
|
100265
100360
|
env6 = { ...env6 };
|
100266
|
-
const
|
100267
|
-
options.path = env6[
|
100268
|
-
env6[
|
100361
|
+
const path70 = pathKey({ env: env6 });
|
100362
|
+
options.path = env6[path70];
|
100363
|
+
env6[path70] = npmRunPath(options);
|
100269
100364
|
return env6;
|
100270
100365
|
}
|
100271
100366
|
__name(npmRunPathEnv, "npmRunPathEnv");
|
@@ -100819,7 +100914,7 @@ var normalizeStdio = /* @__PURE__ */ __name((options) => {
|
|
100819
100914
|
// ../../node_modules/.pnpm/execa@6.1.0/node_modules/execa/lib/kill.js
|
100820
100915
|
init_import_meta_url();
|
100821
100916
|
var import_node_os4 = __toESM(require("node:os"), 1);
|
100822
|
-
var
|
100917
|
+
var import_signal_exit4 = __toESM(require_signal_exit(), 1);
|
100823
100918
|
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
100824
100919
|
var spawnedKill = /* @__PURE__ */ __name((kill, signal = "SIGTERM", options = {}) => {
|
100825
100920
|
const killResult = kill(signal);
|
@@ -100883,7 +100978,7 @@ var setExitHandler = /* @__PURE__ */ __name(async (spawned, { cleanup, detached
|
|
100883
100978
|
if (!cleanup || detached) {
|
100884
100979
|
return timedPromise;
|
100885
100980
|
}
|
100886
|
-
const removeExitHandler = (0,
|
100981
|
+
const removeExitHandler = (0, import_signal_exit4.default)(() => {
|
100887
100982
|
spawned.kill();
|
100888
100983
|
});
|
100889
100984
|
return timedPromise.finally(() => {
|
@@ -101060,7 +101155,7 @@ var handleArguments = /* @__PURE__ */ __name((file, args, options = {}) => {
|
|
101060
101155
|
};
|
101061
101156
|
options.env = getEnv(options);
|
101062
101157
|
options.stdio = normalizeStdio(options);
|
101063
|
-
if (import_node_process8.default.platform === "win32" &&
|
101158
|
+
if (import_node_process8.default.platform === "win32" && import_node_path23.default.basename(file, ".exe") === "cmd") {
|
101064
101159
|
args.unshift("/q");
|
101065
101160
|
}
|
101066
101161
|
return { file, args, options, parsed };
|
@@ -101334,8 +101429,8 @@ __name(getNodeVersion, "getNodeVersion");
|
|
101334
101429
|
// src/metrics/metrics-config.ts
|
101335
101430
|
init_import_meta_url();
|
101336
101431
|
var import_node_crypto8 = require("node:crypto");
|
101337
|
-
var
|
101338
|
-
var
|
101432
|
+
var import_node_fs10 = require("node:fs");
|
101433
|
+
var import_node_path24 = __toESM(require("node:path"));
|
101339
101434
|
var CURRENT_METRICS_DATE = new Date(2022, 6, 4);
|
101340
101435
|
function getMetricsConfig({
|
101341
101436
|
sendMetrics
|
@@ -101374,8 +101469,8 @@ function getMetricsConfig({
|
|
101374
101469
|
}
|
101375
101470
|
__name(getMetricsConfig, "getMetricsConfig");
|
101376
101471
|
function writeMetricsConfig(config) {
|
101377
|
-
(0,
|
101378
|
-
(0,
|
101472
|
+
(0, import_node_fs10.mkdirSync)(import_node_path24.default.dirname(getMetricsConfigPath()), { recursive: true });
|
101473
|
+
(0, import_node_fs10.writeFileSync)(
|
101379
101474
|
getMetricsConfigPath(),
|
101380
101475
|
JSON.stringify(
|
101381
101476
|
config,
|
@@ -101387,7 +101482,7 @@ function writeMetricsConfig(config) {
|
|
101387
101482
|
__name(writeMetricsConfig, "writeMetricsConfig");
|
101388
101483
|
function readMetricsConfig() {
|
101389
101484
|
try {
|
101390
|
-
const config = (0,
|
101485
|
+
const config = (0, import_node_fs10.readFileSync)(getMetricsConfigPath(), "utf8");
|
101391
101486
|
return JSON.parse(
|
101392
101487
|
config,
|
101393
101488
|
(key, value) => key === "date" ? new Date(value) : value
|
@@ -101407,7 +101502,7 @@ function updateMetricsPermission(enabled) {
|
|
101407
101502
|
}
|
101408
101503
|
__name(updateMetricsPermission, "updateMetricsPermission");
|
101409
101504
|
function getMetricsConfigPath() {
|
101410
|
-
return
|
101505
|
+
return import_node_path24.default.resolve(getGlobalWranglerConfigPath(), "metrics.json");
|
101411
101506
|
}
|
101412
101507
|
__name(getMetricsConfigPath, "getMetricsConfigPath");
|
101413
101508
|
function getDeviceId(config) {
|
@@ -101675,7 +101770,7 @@ __name(getMetricsUsageHeaders, "getMetricsUsageHeaders");
|
|
101675
101770
|
|
101676
101771
|
// src/r2/helpers.ts
|
101677
101772
|
init_import_meta_url();
|
101678
|
-
var
|
101773
|
+
var fs9 = __toESM(require("node:fs"));
|
101679
101774
|
var import_web = require("node:stream/web");
|
101680
101775
|
var import_miniflare14 = require("miniflare");
|
101681
101776
|
|
@@ -102720,7 +102815,7 @@ function isValidR2BucketName(name2) {
|
|
102720
102815
|
__name(isValidR2BucketName, "isValidR2BucketName");
|
102721
102816
|
var CHUNK_SIZE = 1024;
|
102722
102817
|
async function createFileReadableStream(filePath) {
|
102723
|
-
const handle = await
|
102818
|
+
const handle = await fs9.promises.open(filePath, "r");
|
102724
102819
|
let position = 0;
|
102725
102820
|
return new import_web.ReadableStream({
|
102726
102821
|
async pull(controller) {
|
@@ -103159,62 +103254,6 @@ var fs11 = __toESM(require("node:fs"));
|
|
103159
103254
|
var path28 = __toESM(require("node:path"));
|
103160
103255
|
var esbuild = __toESM(require("esbuild"));
|
103161
103256
|
|
103162
|
-
// src/paths.ts
|
103163
|
-
init_import_meta_url();
|
103164
|
-
var import_node_console = require("node:console");
|
103165
|
-
var import_node_fs10 = __toESM(require("node:fs"));
|
103166
|
-
var import_node_path24 = __toESM(require("node:path"));
|
103167
|
-
var import_signal_exit4 = __toESM(require_signal_exit());
|
103168
|
-
function toUrlPath(filePath) {
|
103169
|
-
(0, import_node_console.assert)(
|
103170
|
-
!/^[a-z]:/i.test(filePath),
|
103171
|
-
"Tried to convert a Windows file path with a drive to a URL path."
|
103172
|
-
);
|
103173
|
-
return filePath.replace(/\\/g, "/");
|
103174
|
-
}
|
103175
|
-
__name(toUrlPath, "toUrlPath");
|
103176
|
-
function readableRelative(to) {
|
103177
|
-
const relativePath = import_node_path24.default.relative(process.cwd(), to);
|
103178
|
-
if (
|
103179
|
-
// No directory nesting, return as-is
|
103180
|
-
import_node_path24.default.basename(relativePath) === relativePath || // Outside current directory
|
103181
|
-
relativePath.startsWith(".")
|
103182
|
-
) {
|
103183
|
-
return relativePath;
|
103184
|
-
} else {
|
103185
|
-
return "./" + relativePath;
|
103186
|
-
}
|
103187
|
-
}
|
103188
|
-
__name(readableRelative, "readableRelative");
|
103189
|
-
function getBasePath() {
|
103190
|
-
return import_node_path24.default.resolve(__dirname, "..");
|
103191
|
-
}
|
103192
|
-
__name(getBasePath, "getBasePath");
|
103193
|
-
function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
|
103194
|
-
projectRoot ??= process.cwd();
|
103195
|
-
const tmpRoot = import_node_path24.default.join(projectRoot, ".wrangler", "tmp");
|
103196
|
-
import_node_fs10.default.mkdirSync(tmpRoot, { recursive: true });
|
103197
|
-
const tmpPrefix = import_node_path24.default.join(tmpRoot, `${prefix}-`);
|
103198
|
-
const tmpDir = import_node_fs10.default.realpathSync(import_node_fs10.default.mkdtempSync(tmpPrefix));
|
103199
|
-
const removeDir = /* @__PURE__ */ __name(() => {
|
103200
|
-
if (cleanup) {
|
103201
|
-
try {
|
103202
|
-
return import_node_fs10.default.rmSync(tmpDir, { recursive: true, force: true });
|
103203
|
-
} catch (e7) {
|
103204
|
-
}
|
103205
|
-
}
|
103206
|
-
}, "removeDir");
|
103207
|
-
const removeExitListener = (0, import_signal_exit4.default)(removeDir);
|
103208
|
-
return {
|
103209
|
-
path: tmpDir,
|
103210
|
-
remove() {
|
103211
|
-
removeExitListener();
|
103212
|
-
removeDir();
|
103213
|
-
}
|
103214
|
-
};
|
103215
|
-
}
|
103216
|
-
__name(getWranglerTmpDir, "getWranglerTmpDir");
|
103217
|
-
|
103218
103257
|
// src/deployment-bundle/apply-middleware.ts
|
103219
103258
|
init_import_meta_url();
|
103220
103259
|
var fs10 = __toESM(require("node:fs"));
|
@@ -103556,10 +103595,10 @@ function handleRequireCallsToNodeJSBuiltins(build5) {
|
|
103556
103595
|
});
|
103557
103596
|
build5.onLoad(
|
103558
103597
|
{ filter: /.*/, namespace: REQUIRED_NODE_BUILT_IN_NAMESPACE },
|
103559
|
-
({ path:
|
103598
|
+
({ path: path70 }) => {
|
103560
103599
|
return {
|
103561
103600
|
contents: esm_default2`
|
103562
|
-
import libDefault from '${
|
103601
|
+
import libDefault from '${path70}';
|
103563
103602
|
module.exports = libDefault;`,
|
103564
103603
|
loader: "js"
|
103565
103604
|
};
|
@@ -103593,10 +103632,10 @@ function handleUnenvAliasedPackages(build5, alias, external) {
|
|
103593
103632
|
});
|
103594
103633
|
build5.onLoad(
|
103595
103634
|
{ filter: /.*/, namespace: REQUIRED_UNENV_ALIAS_NAMESPACE },
|
103596
|
-
({ path:
|
103635
|
+
({ path: path70 }) => {
|
103597
103636
|
return {
|
103598
103637
|
contents: esm_default2`
|
103599
|
-
import * as esm from '${
|
103638
|
+
import * as esm from '${path70}';
|
103600
103639
|
module.exports = Object.entries(esm)
|
103601
103640
|
.filter(([k,]) => k !== 'default')
|
103602
103641
|
.reduce((cjs, [k, value]) =>
|
@@ -103636,12 +103675,12 @@ function handleNodeJSGlobals(build5, inject, polyfill2) {
|
|
103636
103675
|
// Inject the polyfills - needs an absolute path
|
103637
103676
|
...polyfill2.map((m6) => require.resolve(m6))
|
103638
103677
|
];
|
103639
|
-
build5.onResolve({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path:
|
103640
|
-
path:
|
103678
|
+
build5.onResolve({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path: path70 }) => ({
|
103679
|
+
path: path70
|
103641
103680
|
}));
|
103642
|
-
build5.onLoad({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path:
|
103643
|
-
const module3 = virtualModulePathToSpecifier.get(
|
103644
|
-
(0, import_node_assert13.default)(module3, `Expected ${
|
103681
|
+
build5.onLoad({ filter: UNENV_VIRTUAL_MODULE_RE }, ({ path: path70 }) => {
|
103682
|
+
const module3 = virtualModulePathToSpecifier.get(path70);
|
103683
|
+
(0, import_node_assert13.default)(module3, `Expected ${path70} to be mapped to a module specifier`);
|
103645
103684
|
const injects = injectsByModule.get(module3);
|
103646
103685
|
(0, import_node_assert13.default)(injects, `Expected ${module3} to inject values`);
|
103647
103686
|
const imports = injects.map(
|
@@ -103671,21 +103710,21 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((mode) => ({
|
|
103671
103710
|
});
|
103672
103711
|
pluginBuild.onResolve(
|
103673
103712
|
{ filter: /node:.*/ },
|
103674
|
-
async ({ path:
|
103675
|
-
const specifier = `${
|
103713
|
+
async ({ path: path70, kind, resolveDir, importer }) => {
|
103714
|
+
const specifier = `${path70}:${kind}:${resolveDir}:${importer}`;
|
103676
103715
|
if (seen.has(specifier)) {
|
103677
103716
|
return;
|
103678
103717
|
}
|
103679
103718
|
seen.add(specifier);
|
103680
|
-
const result = await pluginBuild.resolve(
|
103719
|
+
const result = await pluginBuild.resolve(path70, {
|
103681
103720
|
kind,
|
103682
103721
|
resolveDir,
|
103683
103722
|
importer
|
103684
103723
|
});
|
103685
103724
|
if (result.errors.length > 0) {
|
103686
|
-
const pathWarnedPackages = warnedPackages.get(
|
103725
|
+
const pathWarnedPackages = warnedPackages.get(path70) ?? [];
|
103687
103726
|
pathWarnedPackages.push(importer);
|
103688
|
-
warnedPackages.set(
|
103727
|
+
warnedPackages.set(path70, pathWarnedPackages);
|
103689
103728
|
return { external: true };
|
103690
103729
|
}
|
103691
103730
|
return result;
|
@@ -103713,10 +103752,10 @@ var nodejsCompatPlugin = /* @__PURE__ */ __name((mode) => ({
|
|
103713
103752
|
});
|
103714
103753
|
pluginBuild.onEnd(() => {
|
103715
103754
|
if (mode !== "v1") {
|
103716
|
-
warnedPackages.forEach((importers,
|
103755
|
+
warnedPackages.forEach((importers, path70) => {
|
103717
103756
|
logger.warn(
|
103718
103757
|
dedent2`
|
103719
|
-
The package "${
|
103758
|
+
The package "${path70}" wasn't found on the file system but is built into node.
|
103720
103759
|
Your Worker may throw errors at runtime unless you enable the "nodejs_compat" compatibility flag. Refer to https://developers.cloudflare.com/workers/runtime-apis/nodejs/ for more details. Imported from:
|
103721
103760
|
${toList(importers, pluginBuild.initialOptions.absWorkingDir)}`
|
103722
103761
|
);
|
@@ -106766,8 +106805,8 @@ function usage(yargs, shim3) {
|
|
106766
106805
|
const emit = typeof level === "function" ? level : logger4[level];
|
106767
106806
|
emit(self2.help());
|
106768
106807
|
};
|
106769
|
-
self2.functionDescription = (
|
106770
|
-
const description =
|
106808
|
+
self2.functionDescription = (fn2) => {
|
106809
|
+
const description = fn2.name ? shim3.Parser.decamelize(fn2.name, "-") : __("generated-value");
|
106771
106810
|
return ["(", description, ")"].join("");
|
106772
106811
|
};
|
106773
106812
|
self2.stringifiedValues = /* @__PURE__ */ __name(function stringifiedValues(values, separator) {
|
@@ -107145,8 +107184,8 @@ var Completion = class {
|
|
107145
107184
|
script = script.replace(/{{completion_command}}/g, cmd);
|
107146
107185
|
return script.replace(/{{app_path}}/g, $0);
|
107147
107186
|
}
|
107148
|
-
registerFunction(
|
107149
|
-
this.customCompletionFunction =
|
107187
|
+
registerFunction(fn2) {
|
107188
|
+
this.customCompletionFunction = fn2;
|
107150
107189
|
}
|
107151
107190
|
setParsed(parsed) {
|
107152
107191
|
this.aliases = parsed.aliases;
|
@@ -107763,10 +107802,10 @@ var YargsInstance = class {
|
|
107763
107802
|
});
|
107764
107803
|
return this;
|
107765
107804
|
}
|
107766
|
-
completion(cmd, desc,
|
107767
|
-
argsert("[string] [string|boolean|function] [function]", [cmd, desc,
|
107805
|
+
completion(cmd, desc, fn2) {
|
107806
|
+
argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn2], arguments.length);
|
107768
107807
|
if (typeof desc === "function") {
|
107769
|
-
|
107808
|
+
fn2 = desc;
|
107770
107809
|
desc = void 0;
|
107771
107810
|
}
|
107772
107811
|
__classPrivateFieldSet2(this, _YargsInstance_completionCommand, cmd || __classPrivateFieldGet3(this, _YargsInstance_completionCommand, "f") || "completion", "f");
|
@@ -107774,8 +107813,8 @@ var YargsInstance = class {
|
|
107774
107813
|
desc = "generate completion script";
|
107775
107814
|
}
|
107776
107815
|
this.command(__classPrivateFieldGet3(this, _YargsInstance_completionCommand, "f"), desc);
|
107777
|
-
if (
|
107778
|
-
__classPrivateFieldGet3(this, _YargsInstance_completion, "f").registerFunction(
|
107816
|
+
if (fn2)
|
107817
|
+
__classPrivateFieldGet3(this, _YargsInstance_completion, "f").registerFunction(fn2);
|
107779
107818
|
return this;
|
107780
107819
|
}
|
107781
107820
|
command(cmd, description, builder, handler, middlewares, deprecated2) {
|
@@ -109935,13 +109974,13 @@ var getQueryString = /* @__PURE__ */ __name((params) => {
|
|
109935
109974
|
}, "getQueryString");
|
109936
109975
|
var getUrl = /* @__PURE__ */ __name((config, options) => {
|
109937
109976
|
const encoder = config.ENCODE_PATH || encodeURI;
|
109938
|
-
const
|
109977
|
+
const path70 = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring2, group) => {
|
109939
109978
|
if (options.path?.hasOwnProperty(group)) {
|
109940
109979
|
return encoder(String(options.path[group]));
|
109941
109980
|
}
|
109942
109981
|
return substring2;
|
109943
109982
|
});
|
109944
|
-
const url4 = `${config.BASE}${
|
109983
|
+
const url4 = `${config.BASE}${path70}`;
|
109945
109984
|
if (options.query) {
|
109946
109985
|
return `${url4}${getQueryString(options.query)}`;
|
109947
109986
|
}
|
@@ -110899,8 +110938,8 @@ var import_process2 = require("process");
|
|
110899
110938
|
|
110900
110939
|
// src/cloudchamber/helpers/wrap.ts
|
110901
110940
|
init_import_meta_url();
|
110902
|
-
async function wrap2(
|
110903
|
-
return
|
110941
|
+
async function wrap2(fn2) {
|
110942
|
+
return fn2.then((data) => [data, null]).catch((err) => [null, err]);
|
110904
110943
|
}
|
110905
110944
|
__name(wrap2, "wrap");
|
110906
110945
|
|
@@ -111435,11 +111474,11 @@ var Diff = class {
|
|
111435
111474
|
while (!execEditLength()) {
|
111436
111475
|
}
|
111437
111476
|
}
|
111438
|
-
addToPath(
|
111439
|
-
const last =
|
111477
|
+
addToPath(path70, added, removed, oldPosInc) {
|
111478
|
+
const last = path70.lastComponent;
|
111440
111479
|
if (last && last.added === added && last.removed === removed) {
|
111441
111480
|
return {
|
111442
|
-
oldPos:
|
111481
|
+
oldPos: path70.oldPos + oldPosInc,
|
111443
111482
|
lastComponent: {
|
111444
111483
|
count: last.count + 1,
|
111445
111484
|
added,
|
@@ -111449,7 +111488,7 @@ var Diff = class {
|
|
111449
111488
|
};
|
111450
111489
|
}
|
111451
111490
|
return {
|
111452
|
-
oldPos:
|
111491
|
+
oldPos: path70.oldPos + oldPosInc,
|
111453
111492
|
lastComponent: {
|
111454
111493
|
count: 1,
|
111455
111494
|
added,
|
@@ -112101,8 +112140,8 @@ function pushYargs(yargs) {
|
|
112101
112140
|
}).positional("TAG", { type: "string", demandOption: true });
|
112102
112141
|
}
|
112103
112142
|
__name(pushYargs, "pushYargs");
|
112104
|
-
async function isDir(
|
112105
|
-
const stats = await (0, import_promises10.stat)(
|
112143
|
+
async function isDir(path70) {
|
112144
|
+
const stats = await (0, import_promises10.stat)(path70);
|
112106
112145
|
return await stats.isDirectory();
|
112107
112146
|
}
|
112108
112147
|
__name(isDir, "isDir");
|
@@ -112740,15 +112779,15 @@ var sshCommand = /* @__PURE__ */ __name((yargs) => {
|
|
112740
112779
|
}, "sshCommand");
|
112741
112780
|
async function tryToRetrieveAllDefaultSSHKeyPaths() {
|
112742
112781
|
const HOME = (0, import_os3.homedir)();
|
112743
|
-
const
|
112782
|
+
const path70 = `${HOME}/.ssh`;
|
112744
112783
|
const paths = [];
|
112745
112784
|
try {
|
112746
|
-
const dirList = await (0, import_promises11.readdir)(
|
112785
|
+
const dirList = await (0, import_promises11.readdir)(path70);
|
112747
112786
|
for (const file of dirList) {
|
112748
112787
|
if (file.endsWith(".pub")) {
|
112749
|
-
const s5 = await (0, import_promises11.stat)(`${
|
112788
|
+
const s5 = await (0, import_promises11.stat)(`${path70}/${file}`);
|
112750
112789
|
if (s5.isFile()) {
|
112751
|
-
paths.push(`${
|
112790
|
+
paths.push(`${path70}/${file}`);
|
112752
112791
|
}
|
112753
112792
|
}
|
112754
112793
|
}
|
@@ -112760,8 +112799,8 @@ async function tryToRetrieveAllDefaultSSHKeyPaths() {
|
|
112760
112799
|
__name(tryToRetrieveAllDefaultSSHKeyPaths, "tryToRetrieveAllDefaultSSHKeyPaths");
|
112761
112800
|
async function tryToRetrieveADefaultPath() {
|
112762
112801
|
const paths = await tryToRetrieveAllDefaultSSHKeyPaths();
|
112763
|
-
const
|
112764
|
-
return
|
112802
|
+
const path70 = paths.pop();
|
112803
|
+
return path70 ?? "";
|
112765
112804
|
}
|
112766
112805
|
__name(tryToRetrieveADefaultPath, "tryToRetrieveADefaultPath");
|
112767
112806
|
function clipPublicSSHKey(value) {
|
@@ -115024,7 +115063,20 @@ __name(printResourceLocation, "printResourceLocation");
|
|
115024
115063
|
|
115025
115064
|
// src/wrangler-banner.ts
|
115026
115065
|
init_import_meta_url();
|
115066
|
+
|
115067
|
+
// ../../node_modules/.pnpm/semiver@1.1.0/node_modules/semiver/dist/semiver.mjs
|
115068
|
+
init_import_meta_url();
|
115069
|
+
var fn = new Intl.Collator(0, { numeric: 1 }).compare;
|
115070
|
+
function semiver_default(a5, b6, bool) {
|
115071
|
+
a5 = a5.split(".");
|
115072
|
+
b6 = b6.split(".");
|
115073
|
+
return fn(a5[0], b6[0]) || fn(a5[1], b6[1]) || (b6[2] = b6.slice(2).join("."), bool = /[.-]/.test(a5[2] = a5.slice(2).join(".")), bool == /[.-]/.test(b6[2]) ? fn(a5[2], b6[2]) : bool ? -1 : 1);
|
115074
|
+
}
|
115075
|
+
__name(semiver_default, "default");
|
115076
|
+
|
115077
|
+
// src/wrangler-banner.ts
|
115027
115078
|
init_supports_color();
|
115079
|
+
var MIN_NODE_VERSION = "20.0.0";
|
115028
115080
|
async function printWranglerBanner(performUpdateCheck = true) {
|
115029
115081
|
let text = ` \u26C5\uFE0F wrangler ${version}`;
|
115030
115082
|
let maybeNewVersion;
|
@@ -115037,6 +115089,11 @@ async function printWranglerBanner(performUpdateCheck = true) {
|
|
115037
115089
|
logger.log(
|
115038
115090
|
"\n" + text + "\n" + (supports_color_default2.stdout ? source_default.hex("#FF8800")("-".repeat(text.length)) : "-".repeat(text.length)) + "\n"
|
115039
115091
|
);
|
115092
|
+
if (semiver_default(process.versions.node, MIN_NODE_VERSION) < 0) {
|
115093
|
+
logger.warn(
|
115094
|
+
`Wrangler requires at least Node.js v${MIN_NODE_VERSION}. You are using v${process.versions.node}. Please update your version of Node.js.`
|
115095
|
+
);
|
115096
|
+
}
|
115040
115097
|
if (maybeNewVersion !== void 0) {
|
115041
115098
|
const currentMajor = parseInt(version.split(".")[0]);
|
115042
115099
|
const newMajor = parseInt(maybeNewVersion.split(".")[0]);
|
@@ -115139,7 +115196,8 @@ function createHandler(def) {
|
|
115139
115196
|
}
|
115140
115197
|
const experimentalFlags = def.behaviour?.overrideExperimentalFlags ? def.behaviour?.overrideExperimentalFlags(args) : {
|
115141
115198
|
MULTIWORKER: false,
|
115142
|
-
RESOURCES_PROVISION: args.experimentalProvision ?? false
|
115199
|
+
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
115200
|
+
MIXED_MODE: args.experimentalMixedMode ?? false
|
115143
115201
|
};
|
115144
115202
|
await run(
|
115145
115203
|
experimentalFlags,
|
@@ -117321,19 +117379,40 @@ __name(resolveEntryWithAssets, "resolveEntryWithAssets");
|
|
117321
117379
|
init_import_meta_url();
|
117322
117380
|
var import_node_fs16 = require("node:fs");
|
117323
117381
|
var import_node_path31 = __toESM(require("node:path"));
|
117382
|
+
var import_node_stream = require("node:stream");
|
117324
117383
|
async function runCustomBuild(expectedEntryAbsolute, expectedEntryRelative, build5, configPath) {
|
117325
117384
|
if (build5.command) {
|
117326
|
-
logger.log("
|
117385
|
+
logger.log(source_default.blue("[custom build]"), "Running:", build5.command);
|
117327
117386
|
try {
|
117328
|
-
|
117387
|
+
const res = execaCommand(build5.command, {
|
117329
117388
|
shell: true,
|
117330
|
-
// we keep these two as "inherit" so that
|
117331
|
-
// logs are still visible.
|
117332
|
-
stdout: "inherit",
|
117333
|
-
stderr: "inherit",
|
117334
117389
|
...build5.cwd && { cwd: build5.cwd }
|
117335
117390
|
});
|
117391
|
+
res.stdout?.pipe(
|
117392
|
+
new import_node_stream.Writable({
|
117393
|
+
write(chunk, _4, callback) {
|
117394
|
+
const lines = chunk.toString().split("\n");
|
117395
|
+
for (const line of lines) {
|
117396
|
+
logger.log(source_default.blue("[custom build]"), line);
|
117397
|
+
}
|
117398
|
+
callback();
|
117399
|
+
}
|
117400
|
+
})
|
117401
|
+
);
|
117402
|
+
res.stderr?.pipe(
|
117403
|
+
new import_node_stream.Writable({
|
117404
|
+
write(chunk, _4, callback) {
|
117405
|
+
const lines = chunk.toString().split("\n");
|
117406
|
+
for (const line of lines) {
|
117407
|
+
logger.log(source_default.red("[custom build]"), line);
|
117408
|
+
}
|
117409
|
+
callback();
|
117410
|
+
}
|
117411
|
+
})
|
117412
|
+
);
|
117413
|
+
await res;
|
117336
117414
|
} catch (e7) {
|
117415
|
+
logger.error(e7);
|
117337
117416
|
throw new UserError(
|
117338
117417
|
`Running custom build \`${build5.command}\` failed. There are likely more logs from your build command above.`,
|
117339
117418
|
{
|
@@ -117496,6 +117575,7 @@ ${migrateUrl}`
|
|
117496
117575
|
return {
|
117497
117576
|
file: paths.absolutePath,
|
117498
117577
|
projectRoot,
|
117578
|
+
configPath: config.configPath,
|
117499
117579
|
format: format9,
|
117500
117580
|
moduleRoot: args.moduleRoot ?? config.base_dir ?? import_node_path32.default.dirname(paths.absolutePath),
|
117501
117581
|
name: config.name ?? "worker",
|
@@ -117848,7 +117928,8 @@ var deployCommand = createCommand({
|
|
117848
117928
|
useConfigRedirectIfAvailable: true,
|
117849
117929
|
overrideExperimentalFlags: /* @__PURE__ */ __name((args) => ({
|
117850
117930
|
MULTIWORKER: false,
|
117851
|
-
RESOURCES_PROVISION: args.experimentalProvision ?? false
|
117931
|
+
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
117932
|
+
MIXED_MODE: false
|
117852
117933
|
}), "overrideExperimentalFlags")
|
117853
117934
|
},
|
117854
117935
|
validateArgs(args) {
|
@@ -120384,14 +120465,14 @@ function getPagesTmpDir() {
|
|
120384
120465
|
return tmpDirCache;
|
120385
120466
|
}
|
120386
120467
|
__name(getPagesTmpDir, "getPagesTmpDir");
|
120387
|
-
function debounce(
|
120468
|
+
function debounce(fn2, delayMs = 100) {
|
120388
120469
|
let crrTimeoutId;
|
120389
120470
|
return () => {
|
120390
120471
|
if (crrTimeoutId) {
|
120391
120472
|
clearTimeout(crrTimeoutId);
|
120392
120473
|
}
|
120393
120474
|
crrTimeoutId = setTimeout(() => {
|
120394
|
-
|
120475
|
+
fn2();
|
120395
120476
|
}, delayMs);
|
120396
120477
|
};
|
120397
120478
|
}
|
@@ -120539,6 +120620,7 @@ function buildWorkerFromFunctions({
|
|
120539
120620
|
const entry = {
|
120540
120621
|
file: (0, import_node_path38.resolve)(getBasePath(), "templates/pages-template-worker.ts"),
|
120541
120622
|
projectRoot: functionsDirectory,
|
120623
|
+
configPath: void 0,
|
120542
120624
|
format: "modules",
|
120543
120625
|
moduleRoot: functionsDirectory,
|
120544
120626
|
exports: []
|
@@ -120605,6 +120687,7 @@ function buildRawWorker({
|
|
120605
120687
|
const entry = {
|
120606
120688
|
file: workerScriptPath,
|
120607
120689
|
projectRoot: (0, import_node_path38.resolve)(directory),
|
120690
|
+
configPath: void 0,
|
120608
120691
|
format: "modules",
|
120609
120692
|
moduleRoot: (0, import_node_path38.resolve)(directory),
|
120610
120693
|
exports: []
|
@@ -120675,6 +120758,7 @@ async function produceWorkerBundleForWorkerJSDirectory({
|
|
120675
120758
|
{
|
120676
120759
|
file: entrypoint,
|
120677
120760
|
projectRoot: (0, import_node_path38.resolve)(workerJSDirectory),
|
120761
|
+
configPath: void 0,
|
120678
120762
|
format: "modules",
|
120679
120763
|
moduleRoot: (0, import_node_path38.resolve)(workerJSDirectory),
|
120680
120764
|
exports: []
|
@@ -120871,6 +120955,7 @@ function buildPluginFromFunctions({
|
|
120871
120955
|
const entry = {
|
120872
120956
|
file: (0, import_node_path39.resolve)(getBasePath(), "templates/pages-template-plugin.ts"),
|
120873
120957
|
projectRoot: functionsDirectory,
|
120958
|
+
configPath: void 0,
|
120874
120959
|
format: "modules",
|
120875
120960
|
moduleRoot: functionsDirectory,
|
120876
120961
|
exports: []
|
@@ -120921,8 +121006,8 @@ function buildPluginFromFunctions({
|
|
120921
121006
|
]
|
120922
121007
|
};
|
120923
121008
|
}
|
120924
|
-
const
|
120925
|
-
return { path:
|
121009
|
+
const path70 = `assets:./${(0, import_node_path39.relative)(outdir, directory)}`;
|
121010
|
+
return { path: path70, external: true, namespace: "assets" };
|
120926
121011
|
});
|
120927
121012
|
}
|
120928
121013
|
},
|
@@ -121086,7 +121171,7 @@ function compareRoutes({ routePath: routePathA, method: methodA }, { routePath:
|
|
121086
121171
|
return routePathA.localeCompare(routePathB);
|
121087
121172
|
}
|
121088
121173
|
__name(compareRoutes, "compareRoutes");
|
121089
|
-
async function forEachFile(baseDir,
|
121174
|
+
async function forEachFile(baseDir, fn2) {
|
121090
121175
|
const searchPaths = [baseDir];
|
121091
121176
|
const returnValues = [];
|
121092
121177
|
while (isNotEmpty(searchPaths)) {
|
@@ -121097,7 +121182,7 @@ async function forEachFile(baseDir, fn) {
|
|
121097
121182
|
if (entry.isDirectory()) {
|
121098
121183
|
searchPaths.push(pathname);
|
121099
121184
|
} else if (entry.isFile()) {
|
121100
|
-
returnValues.push(await
|
121185
|
+
returnValues.push(await fn2(pathname));
|
121101
121186
|
}
|
121102
121187
|
}
|
121103
121188
|
}
|
@@ -124588,7 +124673,8 @@ ${JSON.stringify(defaultRoutesJSONSpec, null, 2)}`
|
|
124588
124673
|
const devServer = await run(
|
124589
124674
|
{
|
124590
124675
|
MULTIWORKER: Array.isArray(args.config),
|
124591
|
-
RESOURCES_PROVISION: false
|
124676
|
+
RESOURCES_PROVISION: false,
|
124677
|
+
MIXED_MODE: false
|
124592
124678
|
},
|
124593
124679
|
() => startDev({
|
124594
124680
|
script: scriptEntrypoint,
|
@@ -124651,6 +124737,7 @@ ${JSON.stringify(defaultRoutesJSONSpec, null, 2)}`
|
|
124651
124737
|
persistTo: args.persistTo,
|
124652
124738
|
logLevel: args.logLevel ?? "log",
|
124653
124739
|
experimentalProvision: void 0,
|
124740
|
+
experimentalMixedMode: false,
|
124654
124741
|
experimentalVectorizeBindToProd: false,
|
124655
124742
|
experimentalImagesLocalMode: false,
|
124656
124743
|
enableIpc: true,
|
@@ -132118,11 +132205,11 @@ var r2BucketCatalogEnableCommand = createCommand({
|
|
132118
132205
|
const response = await enableR2Catalog(accountId, args.bucket);
|
132119
132206
|
let catalogHost;
|
132120
132207
|
const env6 = getCloudflareApiEnvironmentFromEnv();
|
132121
|
-
const
|
132208
|
+
const path70 = response.name.replace("_", "/");
|
132122
132209
|
if (env6 === "staging") {
|
132123
|
-
catalogHost = `https://catalog-staging.cloudflarestorage.com/${
|
132210
|
+
catalogHost = `https://catalog-staging.cloudflarestorage.com/${path70}`;
|
132124
132211
|
} else {
|
132125
|
-
catalogHost = `https://catalog.cloudflarestorage.com/${
|
132212
|
+
catalogHost = `https://catalog.cloudflarestorage.com/${path70}`;
|
132126
132213
|
}
|
132127
132214
|
logger.log(
|
132128
132215
|
`\u2728 Successfully enabled data catalog on bucket '${args.bucket}'.
|
@@ -132197,11 +132284,11 @@ var r2BucketCatalogGetCommand = createCommand({
|
|
132197
132284
|
const catalog = await getR2Catalog(accountId, args.bucket);
|
132198
132285
|
const env6 = getCloudflareApiEnvironmentFromEnv();
|
132199
132286
|
let catalogHost;
|
132200
|
-
const
|
132287
|
+
const path70 = catalog.name.replace("_", "/");
|
132201
132288
|
if (env6 === "staging") {
|
132202
|
-
catalogHost = `https://catalog-staging.cloudflarestorage.com/${
|
132289
|
+
catalogHost = `https://catalog-staging.cloudflarestorage.com/${path70}`;
|
132203
132290
|
} else {
|
132204
|
-
catalogHost = `https://catalog.cloudflarestorage.com/${
|
132291
|
+
catalogHost = `https://catalog.cloudflarestorage.com/${path70}`;
|
132205
132292
|
}
|
132206
132293
|
const output = {
|
132207
132294
|
"Catalog URI": catalogHost,
|
@@ -135500,8 +135587,8 @@ function isValidProtocol(protocol) {
|
|
135500
135587
|
}
|
135501
135588
|
__name(isValidProtocol, "isValidProtocol");
|
135502
135589
|
function dsnToString(dsn, withPassword = false) {
|
135503
|
-
const { host, path:
|
135504
|
-
return `${protocol}://${publicKey}${withPassword && pass2 ? `:${pass2}` : ""}@${host}${port ? `:${port}` : ""}/${
|
135590
|
+
const { host, path: path70, pass: pass2, port, projectId, protocol, publicKey } = dsn;
|
135591
|
+
return `${protocol}://${publicKey}${withPassword && pass2 ? `:${pass2}` : ""}@${host}${port ? `:${port}` : ""}/${path70 ? `${path70}/` : path70}${projectId}`;
|
135505
135592
|
}
|
135506
135593
|
__name(dsnToString, "dsnToString");
|
135507
135594
|
function dsnFromString(str) {
|
@@ -135513,11 +135600,11 @@ function dsnFromString(str) {
|
|
135513
135600
|
return void 0;
|
135514
135601
|
}
|
135515
135602
|
const [protocol, publicKey, pass2 = "", host, port = "", lastPath] = match2.slice(1);
|
135516
|
-
let
|
135603
|
+
let path70 = "";
|
135517
135604
|
let projectId = lastPath;
|
135518
135605
|
const split = projectId.split("/");
|
135519
135606
|
if (split.length > 1) {
|
135520
|
-
|
135607
|
+
path70 = split.slice(0, -1).join("/");
|
135521
135608
|
projectId = split.pop();
|
135522
135609
|
}
|
135523
135610
|
if (projectId) {
|
@@ -135526,7 +135613,7 @@ function dsnFromString(str) {
|
|
135526
135613
|
projectId = projectMatch[0];
|
135527
135614
|
}
|
135528
135615
|
}
|
135529
|
-
return dsnFromComponents({ host, pass: pass2, path:
|
135616
|
+
return dsnFromComponents({ host, pass: pass2, path: path70, projectId, port, protocol, publicKey });
|
135530
135617
|
}
|
135531
135618
|
__name(dsnFromString, "dsnFromString");
|
135532
135619
|
function dsnFromComponents(components) {
|
@@ -135892,12 +135979,12 @@ function stripSentryFramesAndReverse(stack) {
|
|
135892
135979
|
}
|
135893
135980
|
__name(stripSentryFramesAndReverse, "stripSentryFramesAndReverse");
|
135894
135981
|
var defaultFunctionName = "<anonymous>";
|
135895
|
-
function getFunctionName(
|
135982
|
+
function getFunctionName(fn2) {
|
135896
135983
|
try {
|
135897
|
-
if (!
|
135984
|
+
if (!fn2 || typeof fn2 !== "function") {
|
135898
135985
|
return defaultFunctionName;
|
135899
135986
|
}
|
135900
|
-
return
|
135987
|
+
return fn2.name || defaultFunctionName;
|
135901
135988
|
} catch (e7) {
|
135902
135989
|
return defaultFunctionName;
|
135903
135990
|
}
|
@@ -136618,9 +136705,9 @@ function getNumberOfUrlSegments(url4) {
|
|
136618
136705
|
}
|
136619
136706
|
__name(getNumberOfUrlSegments, "getNumberOfUrlSegments");
|
136620
136707
|
function getSanitizedUrlString(url4) {
|
136621
|
-
const { protocol, host, path:
|
136708
|
+
const { protocol, host, path: path70 } = url4;
|
136622
136709
|
const filteredHost = host && host.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
|
136623
|
-
return `${protocol ? `${protocol}://` : ""}${filteredHost}${
|
136710
|
+
return `${protocol ? `${protocol}://` : ""}${filteredHost}${path70}`;
|
136624
136711
|
}
|
136625
136712
|
__name(getSanitizedUrlString, "getSanitizedUrlString");
|
136626
136713
|
|
@@ -136635,13 +136722,13 @@ var DEFAULT_REQUEST_INCLUDES = ["cookies", "data", "headers", "method", "query_s
|
|
136635
136722
|
var DEFAULT_USER_INCLUDES = ["id", "username", "email"];
|
136636
136723
|
function extractPathForTransaction(req, options = {}) {
|
136637
136724
|
const method = req.method && req.method.toUpperCase();
|
136638
|
-
let
|
136725
|
+
let path70 = "";
|
136639
136726
|
let source = "url";
|
136640
136727
|
if (options.customRoute || req.route) {
|
136641
|
-
|
136728
|
+
path70 = options.customRoute || `${req.baseUrl || ""}${req.route && req.route.path}`;
|
136642
136729
|
source = "route";
|
136643
136730
|
} else if (req.originalUrl || req.url) {
|
136644
|
-
|
136731
|
+
path70 = stripUrlQueryAndFragment(req.originalUrl || req.url || "");
|
136645
136732
|
}
|
136646
136733
|
let name2 = "";
|
136647
136734
|
if (options.method && method) {
|
@@ -136650,8 +136737,8 @@ function extractPathForTransaction(req, options = {}) {
|
|
136650
136737
|
if (options.method && options.path) {
|
136651
136738
|
name2 += " ";
|
136652
136739
|
}
|
136653
|
-
if (options.path &&
|
136654
|
-
name2 +=
|
136740
|
+
if (options.path && path70) {
|
136741
|
+
name2 += path70;
|
136655
136742
|
}
|
136656
136743
|
return [name2, source];
|
136657
136744
|
}
|
@@ -137342,16 +137429,16 @@ function _optionalChain(ops) {
|
|
137342
137429
|
let i5 = 1;
|
137343
137430
|
while (i5 < ops.length) {
|
137344
137431
|
const op = ops[i5];
|
137345
|
-
const
|
137432
|
+
const fn2 = ops[i5 + 1];
|
137346
137433
|
i5 += 2;
|
137347
137434
|
if ((op === "optionalAccess" || op === "optionalCall") && value == null) {
|
137348
137435
|
return;
|
137349
137436
|
}
|
137350
137437
|
if (op === "access" || op === "optionalAccess") {
|
137351
137438
|
lastAccessLHS = value;
|
137352
|
-
value =
|
137439
|
+
value = fn2(value);
|
137353
137440
|
} else if (op === "call" || op === "optionalCall") {
|
137354
|
-
value =
|
137441
|
+
value = fn2((...args) => value.call(lastAccessLHS, ...args));
|
137355
137442
|
lastAccessLHS = void 0;
|
137356
137443
|
}
|
137357
137444
|
}
|
@@ -141031,15 +141118,15 @@ var Express = class _Express {
|
|
141031
141118
|
}
|
141032
141119
|
};
|
141033
141120
|
Express.__initStatic();
|
141034
|
-
function wrap3(
|
141035
|
-
const arity =
|
141121
|
+
function wrap3(fn2, method) {
|
141122
|
+
const arity = fn2.length;
|
141036
141123
|
switch (arity) {
|
141037
141124
|
case 2: {
|
141038
141125
|
return function(req, res) {
|
141039
141126
|
const transaction = res.__sentry_transaction;
|
141040
141127
|
if (transaction) {
|
141041
141128
|
const span = transaction.startChild({
|
141042
|
-
description:
|
141129
|
+
description: fn2.name,
|
141043
141130
|
op: `middleware.express.${method}`,
|
141044
141131
|
origin: "auto.middleware.express"
|
141045
141132
|
});
|
@@ -141047,18 +141134,18 @@ function wrap3(fn, method) {
|
|
141047
141134
|
span.finish();
|
141048
141135
|
});
|
141049
141136
|
}
|
141050
|
-
return
|
141137
|
+
return fn2.call(this, req, res);
|
141051
141138
|
};
|
141052
141139
|
}
|
141053
141140
|
case 3: {
|
141054
141141
|
return function(req, res, next) {
|
141055
141142
|
const transaction = res.__sentry_transaction;
|
141056
141143
|
const span = _optionalChain([transaction, "optionalAccess", (_22) => _22.startChild, "call", (_32) => _32({
|
141057
|
-
description:
|
141144
|
+
description: fn2.name,
|
141058
141145
|
op: `middleware.express.${method}`,
|
141059
141146
|
origin: "auto.middleware.express"
|
141060
141147
|
})]);
|
141061
|
-
|
141148
|
+
fn2.call(this, req, res, function(...args) {
|
141062
141149
|
_optionalChain([span, "optionalAccess", (_4) => _4.finish, "call", (_5) => _5()]);
|
141063
141150
|
next.call(this, ...args);
|
141064
141151
|
});
|
@@ -141068,11 +141155,11 @@ function wrap3(fn, method) {
|
|
141068
141155
|
return function(err, req, res, next) {
|
141069
141156
|
const transaction = res.__sentry_transaction;
|
141070
141157
|
const span = _optionalChain([transaction, "optionalAccess", (_6) => _6.startChild, "call", (_7) => _7({
|
141071
|
-
description:
|
141158
|
+
description: fn2.name,
|
141072
141159
|
op: `middleware.express.${method}`,
|
141073
141160
|
origin: "auto.middleware.express"
|
141074
141161
|
})]);
|
141075
|
-
|
141162
|
+
fn2.call(this, err, req, res, function(...args) {
|
141076
141163
|
_optionalChain([span, "optionalAccess", (_8) => _8.finish, "call", (_9) => _9()]);
|
141077
141164
|
next.call(this, ...args);
|
141078
141165
|
});
|
@@ -141162,13 +141249,13 @@ function instrumentRouter(appOrRouter) {
|
|
141162
141249
|
}, "process_params");
|
141163
141250
|
}
|
141164
141251
|
__name(instrumentRouter, "instrumentRouter");
|
141165
|
-
var extractOriginalRoute = /* @__PURE__ */ __name((
|
141166
|
-
if (!
|
141252
|
+
var extractOriginalRoute = /* @__PURE__ */ __name((path70, regexp, keys) => {
|
141253
|
+
if (!path70 || !regexp || !keys || Object.keys(keys).length === 0 || !_optionalChain([keys, "access", (_10) => _10[0], "optionalAccess", (_11) => _11.offset])) {
|
141167
141254
|
return void 0;
|
141168
141255
|
}
|
141169
141256
|
const orderedKeys = keys.sort((a5, b6) => a5.offset - b6.offset);
|
141170
141257
|
const pathRegex = new RegExp(regexp, `${regexp.flags}d`);
|
141171
|
-
const execResult = pathRegex.exec(
|
141258
|
+
const execResult = pathRegex.exec(path70);
|
141172
141259
|
if (!execResult || !execResult.indices) {
|
141173
141260
|
return void 0;
|
141174
141261
|
}
|
@@ -141176,7 +141263,7 @@ var extractOriginalRoute = /* @__PURE__ */ __name((path69, regexp, keys) => {
|
|
141176
141263
|
if (paramIndices.length !== orderedKeys.length) {
|
141177
141264
|
return void 0;
|
141178
141265
|
}
|
141179
|
-
let resultPath =
|
141266
|
+
let resultPath = path70;
|
141180
141267
|
let indexShift = 0;
|
141181
141268
|
paramIndices.forEach((item, index) => {
|
141182
141269
|
if (item) {
|
@@ -142091,8 +142178,8 @@ init_import_meta_url();
|
|
142091
142178
|
init_import_meta_url();
|
142092
142179
|
var import_path20 = require("path");
|
142093
142180
|
var isWindowsPlatform = import_path20.sep === "\\";
|
142094
|
-
function normalizeWindowsPath(
|
142095
|
-
return
|
142181
|
+
function normalizeWindowsPath(path70) {
|
142182
|
+
return path70.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
142096
142183
|
}
|
142097
142184
|
__name(normalizeWindowsPath, "normalizeWindowsPath");
|
142098
142185
|
function getModuleFromFilename(filename, normalizeWindowsPathSeparator = isWindowsPlatform) {
|
@@ -142283,15 +142370,15 @@ init_import_meta_url();
|
|
142283
142370
|
var import_url7 = require("url");
|
142284
142371
|
function extractRawUrl(requestOptions) {
|
142285
142372
|
const { protocol, hostname: hostname2, port } = parseRequestOptions(requestOptions);
|
142286
|
-
const
|
142287
|
-
return `${protocol}//${hostname2}${port}${
|
142373
|
+
const path70 = requestOptions.path ? requestOptions.path : "/";
|
142374
|
+
return `${protocol}//${hostname2}${port}${path70}`;
|
142288
142375
|
}
|
142289
142376
|
__name(extractRawUrl, "extractRawUrl");
|
142290
142377
|
function extractUrl(requestOptions) {
|
142291
142378
|
const { protocol, hostname: hostname2, port } = parseRequestOptions(requestOptions);
|
142292
|
-
const
|
142379
|
+
const path70 = requestOptions.pathname || "/";
|
142293
142380
|
const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : "";
|
142294
|
-
return `${protocol}//${authority}${hostname2}${port}${
|
142381
|
+
return `${protocol}//${authority}${hostname2}${port}${path70}`;
|
142295
142382
|
}
|
142296
142383
|
__name(extractUrl, "extractUrl");
|
142297
142384
|
function redactAuthority(auth) {
|
@@ -142838,8 +142925,8 @@ function collectModules() {
|
|
142838
142925
|
const paths = getPaths();
|
142839
142926
|
const infos = {};
|
142840
142927
|
const seen = {};
|
142841
|
-
paths.forEach((
|
142842
|
-
let dir =
|
142928
|
+
paths.forEach((path70) => {
|
142929
|
+
let dir = path70;
|
142843
142930
|
const updir = /* @__PURE__ */ __name(() => {
|
142844
142931
|
const orig = dir;
|
142845
142932
|
dir = (0, import_path21.dirname)(orig);
|
@@ -142916,9 +143003,9 @@ init_import_meta_url();
|
|
142916
143003
|
var import_fs20 = require("fs");
|
142917
143004
|
var FILE_CONTENT_CACHE = new LRUMap(100);
|
142918
143005
|
var DEFAULT_LINES_OF_CONTEXT = 7;
|
142919
|
-
function readTextFileAsync(
|
143006
|
+
function readTextFileAsync(path70) {
|
142920
143007
|
return new Promise((resolve24, reject) => {
|
142921
|
-
(0, import_fs20.readFile)(
|
143008
|
+
(0, import_fs20.readFile)(path70, "utf8", (err, data) => {
|
142922
143009
|
if (err) reject(err);
|
142923
143010
|
else resolve24(data);
|
142924
143011
|
});
|
@@ -143377,8 +143464,8 @@ function createCallbackList(complete) {
|
|
143377
143464
|
}
|
143378
143465
|
__name(checkedComplete, "checkedComplete");
|
143379
143466
|
callbacks.push(checkedComplete);
|
143380
|
-
function add(
|
143381
|
-
callbacks.push(
|
143467
|
+
function add(fn2) {
|
143468
|
+
callbacks.push(fn2);
|
143382
143469
|
}
|
143383
143470
|
__name(add, "add");
|
143384
143471
|
function next(result) {
|
@@ -143594,17 +143681,17 @@ var LocalVariables = class _LocalVariables {
|
|
143594
143681
|
for (let i5 = 0; i5 < Math.min(callFrames.length, 5); i5++) {
|
143595
143682
|
const { scopeChain, functionName, this: obj } = callFrames[i5];
|
143596
143683
|
const localScope = scopeChain.find((scope) => scope.type === "local");
|
143597
|
-
const
|
143684
|
+
const fn2 = obj.className === "global" || !obj.className ? functionName : `${obj.className}.${functionName}`;
|
143598
143685
|
if (_optionalChain([localScope, "optionalAccess", (_39) => _39.object, "access", (_40) => _40.objectId]) === void 0) {
|
143599
143686
|
add((frames) => {
|
143600
|
-
frames[i5] = { function:
|
143687
|
+
frames[i5] = { function: fn2 };
|
143601
143688
|
next(frames);
|
143602
143689
|
});
|
143603
143690
|
} else {
|
143604
143691
|
const id = localScope.object.objectId;
|
143605
143692
|
add(
|
143606
143693
|
(frames) => _optionalChain([this, "access", (_41) => _41._session, "optionalAccess", (_42) => _42.getLocalVariables, "call", (_43) => _43(id, (vars) => {
|
143607
|
-
frames[i5] = { function:
|
143694
|
+
frames[i5] = { function: fn2, vars };
|
143608
143695
|
next(frames);
|
143609
143696
|
})])
|
143610
143697
|
);
|
@@ -144632,9 +144719,9 @@ async function generate({
|
|
144632
144719
|
script: worker
|
144633
144720
|
});
|
144634
144721
|
const flagsString = compatibilityFlags.length ? `+${compatibilityFlags.join("+")}` : "";
|
144635
|
-
const
|
144722
|
+
const path70 = `http://dummy.com/${compatibilityDate}${flagsString}`;
|
144636
144723
|
try {
|
144637
|
-
const res = await mf.dispatchFetch(
|
144724
|
+
const res = await mf.dispatchFetch(path70);
|
144638
144725
|
const text = await res.text();
|
144639
144726
|
if (!res.ok) {
|
144640
144727
|
throw new Error(text);
|
@@ -145170,8 +145257,8 @@ async function generateEnvTypes(config, args, envInterface, outputPath, entrypoi
|
|
145170
145257
|
}
|
145171
145258
|
}
|
145172
145259
|
__name(generateEnvTypes, "generateEnvTypes");
|
145173
|
-
var checkPath = /* @__PURE__ */ __name((
|
145174
|
-
const wranglerOverrideDTSPath = findUpSync(
|
145260
|
+
var checkPath = /* @__PURE__ */ __name((path70) => {
|
145261
|
+
const wranglerOverrideDTSPath = findUpSync(path70);
|
145175
145262
|
if (wranglerOverrideDTSPath === void 0) {
|
145176
145263
|
return;
|
145177
145264
|
}
|
@@ -145179,7 +145266,7 @@ var checkPath = /* @__PURE__ */ __name((path69) => {
|
|
145179
145266
|
const fileContent = fs22.readFileSync(wranglerOverrideDTSPath, "utf8");
|
145180
145267
|
if (!fileContent.includes("Generated by Wrangler") && !fileContent.includes("Runtime types generated with workerd")) {
|
145181
145268
|
throw new UserError(
|
145182
|
-
`A non-Wrangler ${(0, import_node_path56.basename)(
|
145269
|
+
`A non-Wrangler ${(0, import_node_path56.basename)(path70)} already exists, please rename and try again.`,
|
145183
145270
|
{ telemetryMessage: "A non-Wrangler .d.ts file already exists" }
|
145184
145271
|
);
|
145185
145272
|
}
|
@@ -145766,10 +145853,10 @@ var VECTORIZE_V1_MAX_BATCH_SIZE = 1e3;
|
|
145766
145853
|
var VECTORIZE_MAX_BATCH_SIZE = 5e3;
|
145767
145854
|
var VECTORIZE_UPSERT_BATCH_SIZE = VECTORIZE_V1_MAX_BATCH_SIZE;
|
145768
145855
|
var VECTORIZE_MAX_UPSERT_VECTOR_RECORDS = 1e5;
|
145769
|
-
async function isValidFile(
|
145856
|
+
async function isValidFile(path70) {
|
145770
145857
|
try {
|
145771
|
-
await (0, import_promises33.access)(
|
145772
|
-
const fileStat = await (0, import_promises33.stat)(
|
145858
|
+
await (0, import_promises33.access)(path70, import_promises33.constants.R_OK);
|
145859
|
+
const fileStat = await (0, import_promises33.stat)(path70);
|
145773
145860
|
return fileStat.isFile() && fileStat.size > 0;
|
145774
145861
|
} catch (err) {
|
145775
145862
|
return false;
|
@@ -148432,7 +148519,8 @@ var versionsUploadCommand = createCommand({
|
|
148432
148519
|
useConfigRedirectIfAvailable: true,
|
148433
148520
|
overrideExperimentalFlags: /* @__PURE__ */ __name((args) => ({
|
148434
148521
|
MULTIWORKER: false,
|
148435
|
-
RESOURCES_PROVISION: args.experimentalProvision ?? false
|
148522
|
+
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
148523
|
+
MIXED_MODE: false
|
148436
148524
|
}), "overrideExperimentalFlags")
|
148437
148525
|
},
|
148438
148526
|
handler: /* @__PURE__ */ __name(async function versionsUploadHandler(args, { config }) {
|
@@ -150667,6 +150755,11 @@ function createCLIParser(argv) {
|
|
150667
150755
|
type: "boolean",
|
150668
150756
|
hidden: true,
|
150669
150757
|
alias: ["x-provision"]
|
150758
|
+
}).option("experimental-mixed-mode", {
|
150759
|
+
describe: `Experimental: Enable Mixed Mode`,
|
150760
|
+
type: "boolean",
|
150761
|
+
hidden: true,
|
150762
|
+
alias: ["x-mixed-mode"]
|
150670
150763
|
}).epilogue(
|
150671
150764
|
`Please report any issues to ${source_default.hex("#3B818D")(
|
150672
150765
|
"https://github.com/cloudflare/workers-sdk/issues/new/choose"
|
@@ -153588,7 +153681,8 @@ var dev = createCommand({
|
|
153588
153681
|
provideConfig: false,
|
153589
153682
|
overrideExperimentalFlags: /* @__PURE__ */ __name((args) => ({
|
153590
153683
|
MULTIWORKER: Array.isArray(args.config),
|
153591
|
-
RESOURCES_PROVISION: args.experimentalProvision ?? false
|
153684
|
+
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
153685
|
+
MIXED_MODE: args.experimentalMixedMode ?? false
|
153592
153686
|
}), "overrideExperimentalFlags")
|
153593
153687
|
},
|
153594
153688
|
metadata: {
|
@@ -154459,6 +154553,7 @@ unstable_dev()'s behaviour will likely change in future releases`
|
|
154459
154553
|
logLevel: options?.logLevel ?? defaultLogLevel,
|
154460
154554
|
port: options?.port ?? 0,
|
154461
154555
|
experimentalProvision: void 0,
|
154556
|
+
experimentalMixedMode: false,
|
154462
154557
|
experimentalVectorizeBindToProd: vectorizeBindToProd ?? false,
|
154463
154558
|
experimentalImagesLocalMode: imagesLocalMode ?? false,
|
154464
154559
|
enableIpc: options?.experimental?.enableIpc,
|
@@ -154468,7 +154563,8 @@ unstable_dev()'s behaviour will likely change in future releases`
|
|
154468
154563
|
{
|
154469
154564
|
// TODO: can we make this work?
|
154470
154565
|
MULTIWORKER: false,
|
154471
|
-
RESOURCES_PROVISION: false
|
154566
|
+
RESOURCES_PROVISION: false,
|
154567
|
+
MIXED_MODE: false
|
154472
154568
|
},
|
154473
154569
|
() => startDev(devOptions)
|
154474
154570
|
);
|
@@ -154714,6 +154810,7 @@ var BundlerController = class extends Controller {
|
|
154714
154810
|
const entry = {
|
154715
154811
|
file: config.entrypoint,
|
154716
154812
|
projectRoot: config.projectRoot,
|
154813
|
+
configPath: config.config,
|
154717
154814
|
format: config.build.format,
|
154718
154815
|
moduleRoot: config.build.moduleRoot,
|
154719
154816
|
exports: config.build.exports
|
@@ -154812,7 +154909,7 @@ var BundlerController = class extends Controller {
|
|
154812
154909
|
(0, import_assert6.default)(pathsToWatch, "config.build.custom.watch");
|
154813
154910
|
this.#customBuildWatcher = watch(pathsToWatch, {
|
154814
154911
|
persistent: true,
|
154815
|
-
//
|
154912
|
+
// The initial custom build is always done in getEntry()
|
154816
154913
|
ignoreInitial: true
|
154817
154914
|
});
|
154818
154915
|
this.#customBuildWatcher.on("ready", () => {
|
@@ -154837,6 +154934,7 @@ var BundlerController = class extends Controller {
|
|
154837
154934
|
const entry = {
|
154838
154935
|
file: config.entrypoint,
|
154839
154936
|
projectRoot: config.projectRoot,
|
154937
|
+
configPath: config.config,
|
154840
154938
|
format: config.build.format,
|
154841
154939
|
moduleRoot: config.build.moduleRoot,
|
154842
154940
|
exports: config.build.exports,
|
@@ -156425,7 +156523,9 @@ async function getPlatformProxy(options = {}) {
|
|
156425
156523
|
const miniflareOptions = await run(
|
156426
156524
|
{
|
156427
156525
|
MULTIWORKER: false,
|
156428
|
-
RESOURCES_PROVISION: false
|
156526
|
+
RESOURCES_PROVISION: false,
|
156527
|
+
// TODO: when possible mixed mode should be made available for getPlatformProxy
|
156528
|
+
MIXED_MODE: false
|
156429
156529
|
},
|
156430
156530
|
() => getMiniflareOptionsFromConfig(rawConfig, env6, options)
|
156431
156531
|
);
|
@@ -156593,6 +156693,38 @@ function unstable_getMiniflareWorkerOptions(configOrConfigPath, env6, options) {
|
|
156593
156693
|
}
|
156594
156694
|
__name(unstable_getMiniflareWorkerOptions, "unstable_getMiniflareWorkerOptions");
|
156595
156695
|
|
156696
|
+
// src/api/mixedMode/index.ts
|
156697
|
+
init_import_meta_url();
|
156698
|
+
var import_node_path67 = __toESM(require("node:path"));
|
156699
|
+
async function startMixedModeSession(bindings) {
|
156700
|
+
const proxyServerWorkerWranglerConfig = import_node_path67.default.resolve(
|
156701
|
+
getBasePath(),
|
156702
|
+
"templates/mixedMode/proxyServerWorker/wrangler.jsonc"
|
156703
|
+
);
|
156704
|
+
const worker = await startWorker({
|
156705
|
+
config: proxyServerWorkerWranglerConfig,
|
156706
|
+
dev: {
|
156707
|
+
remote: true,
|
156708
|
+
auth: {
|
156709
|
+
accountId: await requireAuth({}),
|
156710
|
+
apiToken: requireApiToken()
|
156711
|
+
}
|
156712
|
+
},
|
156713
|
+
bindings
|
156714
|
+
});
|
156715
|
+
const mixedModeConnectionString = await worker.url;
|
156716
|
+
const setConfig = /* @__PURE__ */ __name(async (newBindings) => {
|
156717
|
+
await worker.setConfig({ bindings: newBindings });
|
156718
|
+
}, "setConfig");
|
156719
|
+
return {
|
156720
|
+
ready: worker.ready,
|
156721
|
+
mixedModeConnectionString,
|
156722
|
+
setConfig,
|
156723
|
+
dispose: worker.dispose
|
156724
|
+
};
|
156725
|
+
}
|
156726
|
+
__name(startMixedModeSession, "startMixedModeSession");
|
156727
|
+
|
156596
156728
|
// src/config/patch-config.ts
|
156597
156729
|
init_import_meta_url();
|
156598
156730
|
var import_fs25 = require("fs");
|
@@ -156666,6 +156798,7 @@ var generateASSETSBinding2 = (
|
|
156666
156798
|
0 && (module.exports = {
|
156667
156799
|
experimental_patchConfig,
|
156668
156800
|
experimental_readRawConfig,
|
156801
|
+
experimental_startMixedModeSession,
|
156669
156802
|
getPlatformProxy,
|
156670
156803
|
unstable_DevEnv,
|
156671
156804
|
unstable_dev,
|