meshy-node 0.9.5 → 0.9.7
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/README.md +1 -1
- package/main.cjs +867 -797
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
package/main.cjs
CHANGED
|
@@ -4809,7 +4809,7 @@ var init_esm3 = __esm({
|
|
|
4809
4809
|
// ../../node_modules/.pnpm/@azure+core-util@1.13.1/node_modules/@azure/core-util/dist/esm/createAbortablePromise.js
|
|
4810
4810
|
function createAbortablePromise(buildPromise, options) {
|
|
4811
4811
|
const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options ?? {};
|
|
4812
|
-
return new Promise((
|
|
4812
|
+
return new Promise((resolve24, reject) => {
|
|
4813
4813
|
function rejectOnAbort() {
|
|
4814
4814
|
reject(new AbortError(abortErrorMsg ?? "The operation was aborted."));
|
|
4815
4815
|
}
|
|
@@ -4827,7 +4827,7 @@ function createAbortablePromise(buildPromise, options) {
|
|
|
4827
4827
|
try {
|
|
4828
4828
|
buildPromise((x) => {
|
|
4829
4829
|
removeListeners();
|
|
4830
|
-
|
|
4830
|
+
resolve24(x);
|
|
4831
4831
|
}, (x) => {
|
|
4832
4832
|
removeListeners();
|
|
4833
4833
|
reject(x);
|
|
@@ -4850,8 +4850,8 @@ var init_createAbortablePromise = __esm({
|
|
|
4850
4850
|
function delay2(timeInMs, options) {
|
|
4851
4851
|
let token;
|
|
4852
4852
|
const { abortSignal, abortErrorMsg } = options ?? {};
|
|
4853
|
-
return createAbortablePromise((
|
|
4854
|
-
token = setTimeout(
|
|
4853
|
+
return createAbortablePromise((resolve24) => {
|
|
4854
|
+
token = setTimeout(resolve24, timeInMs);
|
|
4855
4855
|
}, {
|
|
4856
4856
|
cleanupBeforeAbort: () => clearTimeout(token),
|
|
4857
4857
|
abortSignal,
|
|
@@ -5402,9 +5402,9 @@ function isStreamComplete(stream) {
|
|
|
5402
5402
|
if (stream.readable === false) {
|
|
5403
5403
|
return Promise.resolve();
|
|
5404
5404
|
}
|
|
5405
|
-
return new Promise((
|
|
5405
|
+
return new Promise((resolve24) => {
|
|
5406
5406
|
const handler = () => {
|
|
5407
|
-
|
|
5407
|
+
resolve24();
|
|
5408
5408
|
stream.removeListener("close", handler);
|
|
5409
5409
|
stream.removeListener("end", handler);
|
|
5410
5410
|
stream.removeListener("error", handler);
|
|
@@ -5445,7 +5445,7 @@ function getDecodedResponseStream(stream, headers) {
|
|
|
5445
5445
|
return stream;
|
|
5446
5446
|
}
|
|
5447
5447
|
function streamToText(stream) {
|
|
5448
|
-
return new Promise((
|
|
5448
|
+
return new Promise((resolve24, reject) => {
|
|
5449
5449
|
const buffer = [];
|
|
5450
5450
|
stream.on("data", (chunk) => {
|
|
5451
5451
|
if (Buffer.isBuffer(chunk)) {
|
|
@@ -5455,7 +5455,7 @@ function streamToText(stream) {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
});
|
|
5457
5457
|
stream.on("end", () => {
|
|
5458
|
-
|
|
5458
|
+
resolve24(Buffer.concat(buffer).toString("utf8"));
|
|
5459
5459
|
});
|
|
5460
5460
|
stream.on("error", (e) => {
|
|
5461
5461
|
if (e && e?.name === "AbortError") {
|
|
@@ -5643,8 +5643,8 @@ var init_nodeHttpClient = __esm({
|
|
|
5643
5643
|
headers: request2.headers.toJSON({ preserveCase: true }),
|
|
5644
5644
|
...request2.requestOverrides
|
|
5645
5645
|
};
|
|
5646
|
-
return new Promise((
|
|
5647
|
-
const req = isInsecure ? import_node_http.default.request(options,
|
|
5646
|
+
return new Promise((resolve24, reject) => {
|
|
5647
|
+
const req = isInsecure ? import_node_http.default.request(options, resolve24) : import_node_https.default.request(options, resolve24);
|
|
5648
5648
|
req.once("error", (err) => {
|
|
5649
5649
|
reject(new RestError(err.message, { code: err.code ?? RestError.REQUEST_SEND_ERROR, request: request2 }));
|
|
5650
5650
|
});
|
|
@@ -5906,7 +5906,7 @@ var init_decompressResponsePolicy = __esm({
|
|
|
5906
5906
|
|
|
5907
5907
|
// ../../node_modules/.pnpm/@typespec+ts-http-runtime@0.3.5/node_modules/@typespec/ts-http-runtime/dist/esm/util/helpers.js
|
|
5908
5908
|
function delay3(delayInMs, value, options) {
|
|
5909
|
-
return new Promise((
|
|
5909
|
+
return new Promise((resolve24, reject) => {
|
|
5910
5910
|
let timer = void 0;
|
|
5911
5911
|
let onAborted = void 0;
|
|
5912
5912
|
const rejectOnAbort = () => {
|
|
@@ -5929,7 +5929,7 @@ function delay3(delayInMs, value, options) {
|
|
|
5929
5929
|
}
|
|
5930
5930
|
timer = setTimeout(() => {
|
|
5931
5931
|
removeListeners();
|
|
5932
|
-
|
|
5932
|
+
resolve24(value);
|
|
5933
5933
|
}, delayInMs);
|
|
5934
5934
|
if (options?.abortSignal) {
|
|
5935
5935
|
options.abortSignal.addEventListener("abort", onAborted);
|
|
@@ -6974,8 +6974,8 @@ var require_helpers = __commonJS({
|
|
|
6974
6974
|
function req(url3, opts = {}) {
|
|
6975
6975
|
const href = typeof url3 === "string" ? url3 : url3.href;
|
|
6976
6976
|
const req2 = (href.startsWith("https:") ? https4 : http6).request(url3, opts);
|
|
6977
|
-
const promise = new Promise((
|
|
6978
|
-
req2.once("response",
|
|
6977
|
+
const promise = new Promise((resolve24, reject) => {
|
|
6978
|
+
req2.once("response", resolve24).once("error", reject).end();
|
|
6979
6979
|
});
|
|
6980
6980
|
req2.then = promise.then.bind(promise);
|
|
6981
6981
|
return req2;
|
|
@@ -7154,7 +7154,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
7154
7154
|
var debug_1 = __importDefault(require_src());
|
|
7155
7155
|
var debug = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
|
7156
7156
|
function parseProxyResponse(socket) {
|
|
7157
|
-
return new Promise((
|
|
7157
|
+
return new Promise((resolve24, reject) => {
|
|
7158
7158
|
let buffersLength = 0;
|
|
7159
7159
|
const buffers = [];
|
|
7160
7160
|
function read() {
|
|
@@ -7220,7 +7220,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
7220
7220
|
}
|
|
7221
7221
|
debug("got proxy server response: %o %o", firstLine, headers);
|
|
7222
7222
|
cleanup();
|
|
7223
|
-
|
|
7223
|
+
resolve24({
|
|
7224
7224
|
connect: {
|
|
7225
7225
|
statusCode,
|
|
7226
7226
|
statusText,
|
|
@@ -8638,8 +8638,8 @@ function getClient(endpoint, clientOptions = {}) {
|
|
|
8638
8638
|
}
|
|
8639
8639
|
const { allowInsecureConnection: allowInsecureConnection2, httpClient } = clientOptions;
|
|
8640
8640
|
const endpointUrl = clientOptions.endpoint ?? endpoint;
|
|
8641
|
-
const client = (
|
|
8642
|
-
const getUrl3 = (requestOptions) => buildRequestUrl(endpointUrl,
|
|
8641
|
+
const client = (path44, ...args) => {
|
|
8642
|
+
const getUrl3 = (requestOptions) => buildRequestUrl(endpointUrl, path44, args, { allowInsecureConnection: allowInsecureConnection2, ...requestOptions });
|
|
8643
8643
|
return {
|
|
8644
8644
|
get: (requestOptions = {}) => {
|
|
8645
8645
|
return buildOperation("GET", getUrl3(requestOptions), pipeline3, requestOptions, allowInsecureConnection2, httpClient);
|
|
@@ -10382,8 +10382,8 @@ var init_parseUtil = __esm({
|
|
|
10382
10382
|
init_errors();
|
|
10383
10383
|
init_en();
|
|
10384
10384
|
makeIssue = (params) => {
|
|
10385
|
-
const { data, path:
|
|
10386
|
-
const fullPath = [...
|
|
10385
|
+
const { data, path: path44, errorMaps, issueData } = params;
|
|
10386
|
+
const fullPath = [...path44, ...issueData.path || []];
|
|
10387
10387
|
const fullIssue = {
|
|
10388
10388
|
...issueData,
|
|
10389
10389
|
path: fullPath
|
|
@@ -10697,11 +10697,11 @@ var init_types = __esm({
|
|
|
10697
10697
|
init_parseUtil();
|
|
10698
10698
|
init_util();
|
|
10699
10699
|
ParseInputLazyPath = class {
|
|
10700
|
-
constructor(parent, value,
|
|
10700
|
+
constructor(parent, value, path44, key) {
|
|
10701
10701
|
this._cachedPath = [];
|
|
10702
10702
|
this.parent = parent;
|
|
10703
10703
|
this.data = value;
|
|
10704
|
-
this._path =
|
|
10704
|
+
this._path = path44;
|
|
10705
10705
|
this._key = key;
|
|
10706
10706
|
}
|
|
10707
10707
|
get path() {
|
|
@@ -15356,8 +15356,8 @@ var require_node2 = __commonJS({
|
|
|
15356
15356
|
}
|
|
15357
15357
|
break;
|
|
15358
15358
|
case "FILE":
|
|
15359
|
-
var
|
|
15360
|
-
stream2 = new
|
|
15359
|
+
var fs41 = require("fs");
|
|
15360
|
+
stream2 = new fs41.SyncWriteStream(fd2, { autoClose: false });
|
|
15361
15361
|
stream2._type = "fs";
|
|
15362
15362
|
break;
|
|
15363
15363
|
case "PIPE":
|
|
@@ -19028,10 +19028,10 @@ var require_raw_body = __commonJS({
|
|
|
19028
19028
|
if (done) {
|
|
19029
19029
|
return readStream(stream, encoding, length, limit, wrap4(done));
|
|
19030
19030
|
}
|
|
19031
|
-
return new Promise(function executor(
|
|
19031
|
+
return new Promise(function executor(resolve24, reject) {
|
|
19032
19032
|
readStream(stream, encoding, length, limit, function onRead(err, buf) {
|
|
19033
19033
|
if (err) return reject(err);
|
|
19034
|
-
|
|
19034
|
+
resolve24(buf);
|
|
19035
19035
|
});
|
|
19036
19036
|
});
|
|
19037
19037
|
}
|
|
@@ -28171,11 +28171,11 @@ var require_mime_types = __commonJS({
|
|
|
28171
28171
|
}
|
|
28172
28172
|
return exts[0];
|
|
28173
28173
|
}
|
|
28174
|
-
function lookup(
|
|
28175
|
-
if (!
|
|
28174
|
+
function lookup(path44) {
|
|
28175
|
+
if (!path44 || typeof path44 !== "string") {
|
|
28176
28176
|
return false;
|
|
28177
28177
|
}
|
|
28178
|
-
var extension2 = extname4("x." +
|
|
28178
|
+
var extension2 = extname4("x." + path44).toLowerCase().substr(1);
|
|
28179
28179
|
if (!extension2) {
|
|
28180
28180
|
return false;
|
|
28181
28181
|
}
|
|
@@ -31752,7 +31752,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
31752
31752
|
init_cjs_shims();
|
|
31753
31753
|
module2.exports = pathToRegexp;
|
|
31754
31754
|
var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g;
|
|
31755
|
-
function pathToRegexp(
|
|
31755
|
+
function pathToRegexp(path44, keys, options) {
|
|
31756
31756
|
options = options || {};
|
|
31757
31757
|
keys = keys || [];
|
|
31758
31758
|
var strict = options.strict;
|
|
@@ -31766,8 +31766,8 @@ var require_path_to_regexp = __commonJS({
|
|
|
31766
31766
|
var pos = 0;
|
|
31767
31767
|
var backtrack = "";
|
|
31768
31768
|
var m;
|
|
31769
|
-
if (
|
|
31770
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
31769
|
+
if (path44 instanceof RegExp) {
|
|
31770
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path44.source)) {
|
|
31771
31771
|
if (m[0][0] === "\\") continue;
|
|
31772
31772
|
keys.push({
|
|
31773
31773
|
name: m[1] || name2++,
|
|
@@ -31775,18 +31775,18 @@ var require_path_to_regexp = __commonJS({
|
|
|
31775
31775
|
offset: m.index
|
|
31776
31776
|
});
|
|
31777
31777
|
}
|
|
31778
|
-
return
|
|
31778
|
+
return path44;
|
|
31779
31779
|
}
|
|
31780
|
-
if (Array.isArray(
|
|
31781
|
-
|
|
31780
|
+
if (Array.isArray(path44)) {
|
|
31781
|
+
path44 = path44.map(function(value) {
|
|
31782
31782
|
return pathToRegexp(value, keys, options).source;
|
|
31783
31783
|
});
|
|
31784
|
-
return new RegExp(
|
|
31784
|
+
return new RegExp(path44.join("|"), flags);
|
|
31785
31785
|
}
|
|
31786
|
-
if (typeof
|
|
31786
|
+
if (typeof path44 !== "string") {
|
|
31787
31787
|
throw new TypeError("path must be a string, array of strings, or regular expression");
|
|
31788
31788
|
}
|
|
31789
|
-
|
|
31789
|
+
path44 = path44.replace(
|
|
31790
31790
|
/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
|
|
31791
31791
|
function(match, slash, format, key, capture, star, optional2, offset) {
|
|
31792
31792
|
if (match[0] === "\\") {
|
|
@@ -31803,7 +31803,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
31803
31803
|
if (slash || format) {
|
|
31804
31804
|
backtrack = "";
|
|
31805
31805
|
} else {
|
|
31806
|
-
backtrack +=
|
|
31806
|
+
backtrack += path44.slice(pos, offset);
|
|
31807
31807
|
}
|
|
31808
31808
|
pos = offset + match.length;
|
|
31809
31809
|
if (match === "*") {
|
|
@@ -31833,7 +31833,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
31833
31833
|
return result;
|
|
31834
31834
|
}
|
|
31835
31835
|
);
|
|
31836
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
31836
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path44)) {
|
|
31837
31837
|
if (m[0][0] === "\\") continue;
|
|
31838
31838
|
if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
|
|
31839
31839
|
keys.splice(keysOffset + i, 0, {
|
|
@@ -31845,13 +31845,13 @@ var require_path_to_regexp = __commonJS({
|
|
|
31845
31845
|
}
|
|
31846
31846
|
i++;
|
|
31847
31847
|
}
|
|
31848
|
-
|
|
31848
|
+
path44 += strict ? "" : path44[path44.length - 1] === "/" ? "?" : "/?";
|
|
31849
31849
|
if (end) {
|
|
31850
|
-
|
|
31851
|
-
} else if (
|
|
31852
|
-
|
|
31850
|
+
path44 += "$";
|
|
31851
|
+
} else if (path44[path44.length - 1] !== "/") {
|
|
31852
|
+
path44 += lookahead ? "(?=/|$)" : "(?:/|$)";
|
|
31853
31853
|
}
|
|
31854
|
-
return new RegExp("^" +
|
|
31854
|
+
return new RegExp("^" + path44, flags);
|
|
31855
31855
|
}
|
|
31856
31856
|
}
|
|
31857
31857
|
});
|
|
@@ -31865,19 +31865,19 @@ var require_layer = __commonJS({
|
|
|
31865
31865
|
var debug = require_src2()("express:router:layer");
|
|
31866
31866
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
31867
31867
|
module2.exports = Layer;
|
|
31868
|
-
function Layer(
|
|
31868
|
+
function Layer(path44, options, fn) {
|
|
31869
31869
|
if (!(this instanceof Layer)) {
|
|
31870
|
-
return new Layer(
|
|
31870
|
+
return new Layer(path44, options, fn);
|
|
31871
31871
|
}
|
|
31872
|
-
debug("new %o",
|
|
31872
|
+
debug("new %o", path44);
|
|
31873
31873
|
var opts = options || {};
|
|
31874
31874
|
this.handle = fn;
|
|
31875
31875
|
this.name = fn.name || "<anonymous>";
|
|
31876
31876
|
this.params = void 0;
|
|
31877
31877
|
this.path = void 0;
|
|
31878
|
-
this.regexp = pathRegexp(
|
|
31879
|
-
this.regexp.fast_star =
|
|
31880
|
-
this.regexp.fast_slash =
|
|
31878
|
+
this.regexp = pathRegexp(path44, this.keys = [], opts);
|
|
31879
|
+
this.regexp.fast_star = path44 === "*";
|
|
31880
|
+
this.regexp.fast_slash = path44 === "/" && opts.end === false;
|
|
31881
31881
|
}
|
|
31882
31882
|
Layer.prototype.handle_error = function handle_error(error2, req, res, next) {
|
|
31883
31883
|
var fn = this.handle;
|
|
@@ -31901,20 +31901,20 @@ var require_layer = __commonJS({
|
|
|
31901
31901
|
next(err);
|
|
31902
31902
|
}
|
|
31903
31903
|
};
|
|
31904
|
-
Layer.prototype.match = function match(
|
|
31904
|
+
Layer.prototype.match = function match(path44) {
|
|
31905
31905
|
var match2;
|
|
31906
|
-
if (
|
|
31906
|
+
if (path44 != null) {
|
|
31907
31907
|
if (this.regexp.fast_slash) {
|
|
31908
31908
|
this.params = {};
|
|
31909
31909
|
this.path = "";
|
|
31910
31910
|
return true;
|
|
31911
31911
|
}
|
|
31912
31912
|
if (this.regexp.fast_star) {
|
|
31913
|
-
this.params = { "0": decode_param(
|
|
31914
|
-
this.path =
|
|
31913
|
+
this.params = { "0": decode_param(path44) };
|
|
31914
|
+
this.path = path44;
|
|
31915
31915
|
return true;
|
|
31916
31916
|
}
|
|
31917
|
-
match2 = this.regexp.exec(
|
|
31917
|
+
match2 = this.regexp.exec(path44);
|
|
31918
31918
|
}
|
|
31919
31919
|
if (!match2) {
|
|
31920
31920
|
this.params = void 0;
|
|
@@ -32009,10 +32009,10 @@ var require_route = __commonJS({
|
|
|
32009
32009
|
var slice = Array.prototype.slice;
|
|
32010
32010
|
var toString = Object.prototype.toString;
|
|
32011
32011
|
module2.exports = Route;
|
|
32012
|
-
function Route(
|
|
32013
|
-
this.path =
|
|
32012
|
+
function Route(path44) {
|
|
32013
|
+
this.path = path44;
|
|
32014
32014
|
this.stack = [];
|
|
32015
|
-
debug("new %o",
|
|
32015
|
+
debug("new %o", path44);
|
|
32016
32016
|
this.methods = {};
|
|
32017
32017
|
}
|
|
32018
32018
|
Route.prototype._handles_method = function _handles_method(method) {
|
|
@@ -32227,8 +32227,8 @@ var require_router = __commonJS({
|
|
|
32227
32227
|
if (++sync > 100) {
|
|
32228
32228
|
return setImmediate(next, err);
|
|
32229
32229
|
}
|
|
32230
|
-
var
|
|
32231
|
-
if (
|
|
32230
|
+
var path44 = getPathname(req);
|
|
32231
|
+
if (path44 == null) {
|
|
32232
32232
|
return done(layerError);
|
|
32233
32233
|
}
|
|
32234
32234
|
var layer;
|
|
@@ -32236,7 +32236,7 @@ var require_router = __commonJS({
|
|
|
32236
32236
|
var route;
|
|
32237
32237
|
while (match !== true && idx < stack.length) {
|
|
32238
32238
|
layer = stack[idx++];
|
|
32239
|
-
match = matchLayer(layer,
|
|
32239
|
+
match = matchLayer(layer, path44);
|
|
32240
32240
|
route = layer.route;
|
|
32241
32241
|
if (typeof match !== "boolean") {
|
|
32242
32242
|
layerError = layerError || match;
|
|
@@ -32274,18 +32274,18 @@ var require_router = __commonJS({
|
|
|
32274
32274
|
} else if (route) {
|
|
32275
32275
|
layer.handle_request(req, res, next);
|
|
32276
32276
|
} else {
|
|
32277
|
-
trim_prefix(layer, layerError, layerPath,
|
|
32277
|
+
trim_prefix(layer, layerError, layerPath, path44);
|
|
32278
32278
|
}
|
|
32279
32279
|
sync = 0;
|
|
32280
32280
|
});
|
|
32281
32281
|
}
|
|
32282
|
-
function trim_prefix(layer, layerError, layerPath,
|
|
32282
|
+
function trim_prefix(layer, layerError, layerPath, path44) {
|
|
32283
32283
|
if (layerPath.length !== 0) {
|
|
32284
|
-
if (layerPath !==
|
|
32284
|
+
if (layerPath !== path44.slice(0, layerPath.length)) {
|
|
32285
32285
|
next(layerError);
|
|
32286
32286
|
return;
|
|
32287
32287
|
}
|
|
32288
|
-
var c =
|
|
32288
|
+
var c = path44[layerPath.length];
|
|
32289
32289
|
if (c && c !== "/" && c !== ".") return next(layerError);
|
|
32290
32290
|
debug("trim prefix (%s) from url %s", layerPath, req.url);
|
|
32291
32291
|
removed = layerPath;
|
|
@@ -32363,7 +32363,7 @@ var require_router = __commonJS({
|
|
|
32363
32363
|
};
|
|
32364
32364
|
proto.use = function use(fn) {
|
|
32365
32365
|
var offset = 0;
|
|
32366
|
-
var
|
|
32366
|
+
var path44 = "/";
|
|
32367
32367
|
if (typeof fn !== "function") {
|
|
32368
32368
|
var arg = fn;
|
|
32369
32369
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -32371,7 +32371,7 @@ var require_router = __commonJS({
|
|
|
32371
32371
|
}
|
|
32372
32372
|
if (typeof arg !== "function") {
|
|
32373
32373
|
offset = 1;
|
|
32374
|
-
|
|
32374
|
+
path44 = fn;
|
|
32375
32375
|
}
|
|
32376
32376
|
}
|
|
32377
32377
|
var callbacks = flatten(slice.call(arguments, offset));
|
|
@@ -32383,8 +32383,8 @@ var require_router = __commonJS({
|
|
|
32383
32383
|
if (typeof fn !== "function") {
|
|
32384
32384
|
throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
|
|
32385
32385
|
}
|
|
32386
|
-
debug("use %o %s",
|
|
32387
|
-
var layer = new Layer(
|
|
32386
|
+
debug("use %o %s", path44, fn.name || "<anonymous>");
|
|
32387
|
+
var layer = new Layer(path44, {
|
|
32388
32388
|
sensitive: this.caseSensitive,
|
|
32389
32389
|
strict: false,
|
|
32390
32390
|
end: false
|
|
@@ -32394,9 +32394,9 @@ var require_router = __commonJS({
|
|
|
32394
32394
|
}
|
|
32395
32395
|
return this;
|
|
32396
32396
|
};
|
|
32397
|
-
proto.route = function route(
|
|
32398
|
-
var route2 = new Route(
|
|
32399
|
-
var layer = new Layer(
|
|
32397
|
+
proto.route = function route(path44) {
|
|
32398
|
+
var route2 = new Route(path44);
|
|
32399
|
+
var layer = new Layer(path44, {
|
|
32400
32400
|
sensitive: this.caseSensitive,
|
|
32401
32401
|
strict: this.strict,
|
|
32402
32402
|
end: true
|
|
@@ -32406,8 +32406,8 @@ var require_router = __commonJS({
|
|
|
32406
32406
|
return route2;
|
|
32407
32407
|
};
|
|
32408
32408
|
methods.concat("all").forEach(function(method) {
|
|
32409
|
-
proto[method] = function(
|
|
32410
|
-
var route = this.route(
|
|
32409
|
+
proto[method] = function(path44) {
|
|
32410
|
+
var route = this.route(path44);
|
|
32411
32411
|
route[method].apply(route, slice.call(arguments, 1));
|
|
32412
32412
|
return this;
|
|
32413
32413
|
};
|
|
@@ -32443,9 +32443,9 @@ var require_router = __commonJS({
|
|
|
32443
32443
|
}
|
|
32444
32444
|
return toString.call(obj).replace(objectRegExp, "$1");
|
|
32445
32445
|
}
|
|
32446
|
-
function matchLayer(layer,
|
|
32446
|
+
function matchLayer(layer, path44) {
|
|
32447
32447
|
try {
|
|
32448
|
-
return layer.match(
|
|
32448
|
+
return layer.match(path44);
|
|
32449
32449
|
} catch (err) {
|
|
32450
32450
|
return err;
|
|
32451
32451
|
}
|
|
@@ -32566,13 +32566,13 @@ var require_view = __commonJS({
|
|
|
32566
32566
|
"use strict";
|
|
32567
32567
|
init_cjs_shims();
|
|
32568
32568
|
var debug = require_src2()("express:view");
|
|
32569
|
-
var
|
|
32570
|
-
var
|
|
32571
|
-
var dirname11 =
|
|
32572
|
-
var basename6 =
|
|
32573
|
-
var extname4 =
|
|
32574
|
-
var
|
|
32575
|
-
var
|
|
32569
|
+
var path44 = require("path");
|
|
32570
|
+
var fs41 = require("fs");
|
|
32571
|
+
var dirname11 = path44.dirname;
|
|
32572
|
+
var basename6 = path44.basename;
|
|
32573
|
+
var extname4 = path44.extname;
|
|
32574
|
+
var join29 = path44.join;
|
|
32575
|
+
var resolve24 = path44.resolve;
|
|
32576
32576
|
module2.exports = View3;
|
|
32577
32577
|
function View3(name2, options) {
|
|
32578
32578
|
var opts = options || {};
|
|
@@ -32601,39 +32601,39 @@ var require_view = __commonJS({
|
|
|
32601
32601
|
this.path = this.lookup(fileName);
|
|
32602
32602
|
}
|
|
32603
32603
|
View3.prototype.lookup = function lookup(name2) {
|
|
32604
|
-
var
|
|
32604
|
+
var path45;
|
|
32605
32605
|
var roots = [].concat(this.root);
|
|
32606
32606
|
debug('lookup "%s"', name2);
|
|
32607
|
-
for (var i = 0; i < roots.length && !
|
|
32607
|
+
for (var i = 0; i < roots.length && !path45; i++) {
|
|
32608
32608
|
var root = roots[i];
|
|
32609
|
-
var loc =
|
|
32609
|
+
var loc = resolve24(root, name2);
|
|
32610
32610
|
var dir = dirname11(loc);
|
|
32611
32611
|
var file = basename6(loc);
|
|
32612
|
-
|
|
32612
|
+
path45 = this.resolve(dir, file);
|
|
32613
32613
|
}
|
|
32614
|
-
return
|
|
32614
|
+
return path45;
|
|
32615
32615
|
};
|
|
32616
32616
|
View3.prototype.render = function render(options, callback) {
|
|
32617
32617
|
debug('render "%s"', this.path);
|
|
32618
32618
|
this.engine(this.path, options, callback);
|
|
32619
32619
|
};
|
|
32620
|
-
View3.prototype.resolve = function
|
|
32620
|
+
View3.prototype.resolve = function resolve25(dir, file) {
|
|
32621
32621
|
var ext = this.ext;
|
|
32622
|
-
var
|
|
32623
|
-
var stat3 = tryStat(
|
|
32622
|
+
var path45 = join29(dir, file);
|
|
32623
|
+
var stat3 = tryStat(path45);
|
|
32624
32624
|
if (stat3 && stat3.isFile()) {
|
|
32625
|
-
return
|
|
32625
|
+
return path45;
|
|
32626
32626
|
}
|
|
32627
|
-
|
|
32628
|
-
stat3 = tryStat(
|
|
32627
|
+
path45 = join29(dir, basename6(file, ext), "index" + ext);
|
|
32628
|
+
stat3 = tryStat(path45);
|
|
32629
32629
|
if (stat3 && stat3.isFile()) {
|
|
32630
|
-
return
|
|
32630
|
+
return path45;
|
|
32631
32631
|
}
|
|
32632
32632
|
};
|
|
32633
|
-
function tryStat(
|
|
32634
|
-
debug('stat "%s"',
|
|
32633
|
+
function tryStat(path45) {
|
|
32634
|
+
debug('stat "%s"', path45);
|
|
32635
32635
|
try {
|
|
32636
|
-
return
|
|
32636
|
+
return fs41.statSync(path45);
|
|
32637
32637
|
} catch (e) {
|
|
32638
32638
|
return void 0;
|
|
32639
32639
|
}
|
|
@@ -32934,8 +32934,8 @@ var require_mime = __commonJS({
|
|
|
32934
32934
|
"../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports2, module2) {
|
|
32935
32935
|
"use strict";
|
|
32936
32936
|
init_cjs_shims();
|
|
32937
|
-
var
|
|
32938
|
-
var
|
|
32937
|
+
var path44 = require("path");
|
|
32938
|
+
var fs41 = require("fs");
|
|
32939
32939
|
function Mime() {
|
|
32940
32940
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
32941
32941
|
this.extensions = /* @__PURE__ */ Object.create(null);
|
|
@@ -32956,7 +32956,7 @@ var require_mime = __commonJS({
|
|
|
32956
32956
|
};
|
|
32957
32957
|
Mime.prototype.load = function(file) {
|
|
32958
32958
|
this._loading = file;
|
|
32959
|
-
var map = {}, content =
|
|
32959
|
+
var map = {}, content = fs41.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
|
|
32960
32960
|
lines.forEach(function(line) {
|
|
32961
32961
|
var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
|
|
32962
32962
|
map[fields.shift()] = fields;
|
|
@@ -32964,8 +32964,8 @@ var require_mime = __commonJS({
|
|
|
32964
32964
|
this.define(map);
|
|
32965
32965
|
this._loading = null;
|
|
32966
32966
|
};
|
|
32967
|
-
Mime.prototype.lookup = function(
|
|
32968
|
-
var ext =
|
|
32967
|
+
Mime.prototype.lookup = function(path45, fallback) {
|
|
32968
|
+
var ext = path45.replace(/^.*[\.\/\\]/, "").toLowerCase();
|
|
32969
32969
|
return this.types[ext] || fallback || this.default_type;
|
|
32970
32970
|
};
|
|
32971
32971
|
Mime.prototype.extension = function(mimeType) {
|
|
@@ -33080,33 +33080,33 @@ var require_send = __commonJS({
|
|
|
33080
33080
|
var escapeHtml2 = require_escape_html();
|
|
33081
33081
|
var etag = require_etag();
|
|
33082
33082
|
var fresh = require_fresh();
|
|
33083
|
-
var
|
|
33083
|
+
var fs41 = require("fs");
|
|
33084
33084
|
var mime = require_mime();
|
|
33085
33085
|
var ms = require_ms();
|
|
33086
33086
|
var onFinished = require_on_finished();
|
|
33087
33087
|
var parseRange = require_range_parser();
|
|
33088
|
-
var
|
|
33088
|
+
var path44 = require("path");
|
|
33089
33089
|
var statuses = require_statuses();
|
|
33090
33090
|
var Stream = require("stream");
|
|
33091
33091
|
var util5 = require("util");
|
|
33092
|
-
var extname4 =
|
|
33093
|
-
var
|
|
33094
|
-
var normalize7 =
|
|
33095
|
-
var
|
|
33096
|
-
var sep11 =
|
|
33092
|
+
var extname4 = path44.extname;
|
|
33093
|
+
var join29 = path44.join;
|
|
33094
|
+
var normalize7 = path44.normalize;
|
|
33095
|
+
var resolve24 = path44.resolve;
|
|
33096
|
+
var sep11 = path44.sep;
|
|
33097
33097
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
33098
33098
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
|
|
33099
33099
|
var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
33100
33100
|
module2.exports = send;
|
|
33101
33101
|
module2.exports.mime = mime;
|
|
33102
|
-
function send(req,
|
|
33103
|
-
return new SendStream(req,
|
|
33102
|
+
function send(req, path45, options) {
|
|
33103
|
+
return new SendStream(req, path45, options);
|
|
33104
33104
|
}
|
|
33105
|
-
function SendStream(req,
|
|
33105
|
+
function SendStream(req, path45, options) {
|
|
33106
33106
|
Stream.call(this);
|
|
33107
33107
|
var opts = options || {};
|
|
33108
33108
|
this.options = opts;
|
|
33109
|
-
this.path =
|
|
33109
|
+
this.path = path45;
|
|
33110
33110
|
this.req = req;
|
|
33111
33111
|
this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
|
|
33112
33112
|
this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
|
|
@@ -33129,7 +33129,7 @@ var require_send = __commonJS({
|
|
|
33129
33129
|
this._maxage = opts.maxAge || opts.maxage;
|
|
33130
33130
|
this._maxage = typeof this._maxage === "string" ? ms(this._maxage) : Number(this._maxage);
|
|
33131
33131
|
this._maxage = !isNaN(this._maxage) ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) : 0;
|
|
33132
|
-
this._root = opts.root ?
|
|
33132
|
+
this._root = opts.root ? resolve24(opts.root) : null;
|
|
33133
33133
|
if (!this._root && opts.from) {
|
|
33134
33134
|
this.from(opts.from);
|
|
33135
33135
|
}
|
|
@@ -33152,8 +33152,8 @@ var require_send = __commonJS({
|
|
|
33152
33152
|
this._index = index2;
|
|
33153
33153
|
return this;
|
|
33154
33154
|
}, "send.index: pass index as option");
|
|
33155
|
-
SendStream.prototype.root = function root(
|
|
33156
|
-
this._root =
|
|
33155
|
+
SendStream.prototype.root = function root(path45) {
|
|
33156
|
+
this._root = resolve24(String(path45));
|
|
33157
33157
|
debug("root %s", this._root);
|
|
33158
33158
|
return this;
|
|
33159
33159
|
};
|
|
@@ -33266,10 +33266,10 @@ var require_send = __commonJS({
|
|
|
33266
33266
|
var lastModified = this.res.getHeader("Last-Modified");
|
|
33267
33267
|
return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
|
|
33268
33268
|
};
|
|
33269
|
-
SendStream.prototype.redirect = function redirect(
|
|
33269
|
+
SendStream.prototype.redirect = function redirect(path45) {
|
|
33270
33270
|
var res = this.res;
|
|
33271
33271
|
if (hasListeners(this, "directory")) {
|
|
33272
|
-
this.emit("directory", res,
|
|
33272
|
+
this.emit("directory", res, path45);
|
|
33273
33273
|
return;
|
|
33274
33274
|
}
|
|
33275
33275
|
if (this.hasTrailingSlash()) {
|
|
@@ -33289,42 +33289,42 @@ var require_send = __commonJS({
|
|
|
33289
33289
|
SendStream.prototype.pipe = function pipe2(res) {
|
|
33290
33290
|
var root = this._root;
|
|
33291
33291
|
this.res = res;
|
|
33292
|
-
var
|
|
33293
|
-
if (
|
|
33292
|
+
var path45 = decode(this.path);
|
|
33293
|
+
if (path45 === -1) {
|
|
33294
33294
|
this.error(400);
|
|
33295
33295
|
return res;
|
|
33296
33296
|
}
|
|
33297
|
-
if (~
|
|
33297
|
+
if (~path45.indexOf("\0")) {
|
|
33298
33298
|
this.error(400);
|
|
33299
33299
|
return res;
|
|
33300
33300
|
}
|
|
33301
33301
|
var parts;
|
|
33302
33302
|
if (root !== null) {
|
|
33303
|
-
if (
|
|
33304
|
-
|
|
33303
|
+
if (path45) {
|
|
33304
|
+
path45 = normalize7("." + sep11 + path45);
|
|
33305
33305
|
}
|
|
33306
|
-
if (UP_PATH_REGEXP.test(
|
|
33307
|
-
debug('malicious path "%s"',
|
|
33306
|
+
if (UP_PATH_REGEXP.test(path45)) {
|
|
33307
|
+
debug('malicious path "%s"', path45);
|
|
33308
33308
|
this.error(403);
|
|
33309
33309
|
return res;
|
|
33310
33310
|
}
|
|
33311
|
-
parts =
|
|
33312
|
-
|
|
33311
|
+
parts = path45.split(sep11);
|
|
33312
|
+
path45 = normalize7(join29(root, path45));
|
|
33313
33313
|
} else {
|
|
33314
|
-
if (UP_PATH_REGEXP.test(
|
|
33315
|
-
debug('malicious path "%s"',
|
|
33314
|
+
if (UP_PATH_REGEXP.test(path45)) {
|
|
33315
|
+
debug('malicious path "%s"', path45);
|
|
33316
33316
|
this.error(403);
|
|
33317
33317
|
return res;
|
|
33318
33318
|
}
|
|
33319
|
-
parts = normalize7(
|
|
33320
|
-
|
|
33319
|
+
parts = normalize7(path45).split(sep11);
|
|
33320
|
+
path45 = resolve24(path45);
|
|
33321
33321
|
}
|
|
33322
33322
|
if (containsDotFile(parts)) {
|
|
33323
33323
|
var access = this._dotfiles;
|
|
33324
33324
|
if (access === void 0) {
|
|
33325
33325
|
access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
|
|
33326
33326
|
}
|
|
33327
|
-
debug('%s dotfile "%s"', access,
|
|
33327
|
+
debug('%s dotfile "%s"', access, path45);
|
|
33328
33328
|
switch (access) {
|
|
33329
33329
|
case "allow":
|
|
33330
33330
|
break;
|
|
@@ -33338,13 +33338,13 @@ var require_send = __commonJS({
|
|
|
33338
33338
|
}
|
|
33339
33339
|
}
|
|
33340
33340
|
if (this._index.length && this.hasTrailingSlash()) {
|
|
33341
|
-
this.sendIndex(
|
|
33341
|
+
this.sendIndex(path45);
|
|
33342
33342
|
return res;
|
|
33343
33343
|
}
|
|
33344
|
-
this.sendFile(
|
|
33344
|
+
this.sendFile(path45);
|
|
33345
33345
|
return res;
|
|
33346
33346
|
};
|
|
33347
|
-
SendStream.prototype.send = function send2(
|
|
33347
|
+
SendStream.prototype.send = function send2(path45, stat3) {
|
|
33348
33348
|
var len = stat3.size;
|
|
33349
33349
|
var options = this.options;
|
|
33350
33350
|
var opts = {};
|
|
@@ -33356,9 +33356,9 @@ var require_send = __commonJS({
|
|
|
33356
33356
|
this.headersAlreadySent();
|
|
33357
33357
|
return;
|
|
33358
33358
|
}
|
|
33359
|
-
debug('pipe "%s"',
|
|
33360
|
-
this.setHeader(
|
|
33361
|
-
this.type(
|
|
33359
|
+
debug('pipe "%s"', path45);
|
|
33360
|
+
this.setHeader(path45, stat3);
|
|
33361
|
+
this.type(path45);
|
|
33362
33362
|
if (this.isConditionalGET()) {
|
|
33363
33363
|
if (this.isPreconditionFailure()) {
|
|
33364
33364
|
this.error(412);
|
|
@@ -33407,28 +33407,28 @@ var require_send = __commonJS({
|
|
|
33407
33407
|
res.end();
|
|
33408
33408
|
return;
|
|
33409
33409
|
}
|
|
33410
|
-
this.stream(
|
|
33410
|
+
this.stream(path45, opts);
|
|
33411
33411
|
};
|
|
33412
|
-
SendStream.prototype.sendFile = function sendFile(
|
|
33412
|
+
SendStream.prototype.sendFile = function sendFile(path45) {
|
|
33413
33413
|
var i = 0;
|
|
33414
33414
|
var self2 = this;
|
|
33415
|
-
debug('stat "%s"',
|
|
33416
|
-
|
|
33417
|
-
if (err && err.code === "ENOENT" && !extname4(
|
|
33415
|
+
debug('stat "%s"', path45);
|
|
33416
|
+
fs41.stat(path45, function onstat(err, stat3) {
|
|
33417
|
+
if (err && err.code === "ENOENT" && !extname4(path45) && path45[path45.length - 1] !== sep11) {
|
|
33418
33418
|
return next(err);
|
|
33419
33419
|
}
|
|
33420
33420
|
if (err) return self2.onStatError(err);
|
|
33421
|
-
if (stat3.isDirectory()) return self2.redirect(
|
|
33422
|
-
self2.emit("file",
|
|
33423
|
-
self2.send(
|
|
33421
|
+
if (stat3.isDirectory()) return self2.redirect(path45);
|
|
33422
|
+
self2.emit("file", path45, stat3);
|
|
33423
|
+
self2.send(path45, stat3);
|
|
33424
33424
|
});
|
|
33425
33425
|
function next(err) {
|
|
33426
33426
|
if (self2._extensions.length <= i) {
|
|
33427
33427
|
return err ? self2.onStatError(err) : self2.error(404);
|
|
33428
33428
|
}
|
|
33429
|
-
var p =
|
|
33429
|
+
var p = path45 + "." + self2._extensions[i++];
|
|
33430
33430
|
debug('stat "%s"', p);
|
|
33431
|
-
|
|
33431
|
+
fs41.stat(p, function(err2, stat3) {
|
|
33432
33432
|
if (err2) return next(err2);
|
|
33433
33433
|
if (stat3.isDirectory()) return next();
|
|
33434
33434
|
self2.emit("file", p, stat3);
|
|
@@ -33436,7 +33436,7 @@ var require_send = __commonJS({
|
|
|
33436
33436
|
});
|
|
33437
33437
|
}
|
|
33438
33438
|
};
|
|
33439
|
-
SendStream.prototype.sendIndex = function sendIndex(
|
|
33439
|
+
SendStream.prototype.sendIndex = function sendIndex(path45) {
|
|
33440
33440
|
var i = -1;
|
|
33441
33441
|
var self2 = this;
|
|
33442
33442
|
function next(err) {
|
|
@@ -33444,9 +33444,9 @@ var require_send = __commonJS({
|
|
|
33444
33444
|
if (err) return self2.onStatError(err);
|
|
33445
33445
|
return self2.error(404);
|
|
33446
33446
|
}
|
|
33447
|
-
var p =
|
|
33447
|
+
var p = join29(path45, self2._index[i]);
|
|
33448
33448
|
debug('stat "%s"', p);
|
|
33449
|
-
|
|
33449
|
+
fs41.stat(p, function(err2, stat3) {
|
|
33450
33450
|
if (err2) return next(err2);
|
|
33451
33451
|
if (stat3.isDirectory()) return next();
|
|
33452
33452
|
self2.emit("file", p, stat3);
|
|
@@ -33455,10 +33455,10 @@ var require_send = __commonJS({
|
|
|
33455
33455
|
}
|
|
33456
33456
|
next();
|
|
33457
33457
|
};
|
|
33458
|
-
SendStream.prototype.stream = function stream(
|
|
33458
|
+
SendStream.prototype.stream = function stream(path45, options) {
|
|
33459
33459
|
var self2 = this;
|
|
33460
33460
|
var res = this.res;
|
|
33461
|
-
var stream2 =
|
|
33461
|
+
var stream2 = fs41.createReadStream(path45, options);
|
|
33462
33462
|
this.emit("stream", stream2);
|
|
33463
33463
|
stream2.pipe(res);
|
|
33464
33464
|
function cleanup() {
|
|
@@ -33473,10 +33473,10 @@ var require_send = __commonJS({
|
|
|
33473
33473
|
self2.emit("end");
|
|
33474
33474
|
});
|
|
33475
33475
|
};
|
|
33476
|
-
SendStream.prototype.type = function type(
|
|
33476
|
+
SendStream.prototype.type = function type(path45) {
|
|
33477
33477
|
var res = this.res;
|
|
33478
33478
|
if (res.getHeader("Content-Type")) return;
|
|
33479
|
-
var type2 = mime.lookup(
|
|
33479
|
+
var type2 = mime.lookup(path45);
|
|
33480
33480
|
if (!type2) {
|
|
33481
33481
|
debug("no content-type");
|
|
33482
33482
|
return;
|
|
@@ -33485,9 +33485,9 @@ var require_send = __commonJS({
|
|
|
33485
33485
|
debug("content-type %s", type2);
|
|
33486
33486
|
res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
|
|
33487
33487
|
};
|
|
33488
|
-
SendStream.prototype.setHeader = function setHeader(
|
|
33488
|
+
SendStream.prototype.setHeader = function setHeader(path45, stat3) {
|
|
33489
33489
|
var res = this.res;
|
|
33490
|
-
this.emit("headers", res,
|
|
33490
|
+
this.emit("headers", res, path45, stat3);
|
|
33491
33491
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
33492
33492
|
debug("accept ranges");
|
|
33493
33493
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -33546,9 +33546,9 @@ var require_send = __commonJS({
|
|
|
33546
33546
|
}
|
|
33547
33547
|
return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
|
|
33548
33548
|
}
|
|
33549
|
-
function decode(
|
|
33549
|
+
function decode(path45) {
|
|
33550
33550
|
try {
|
|
33551
|
-
return decodeURIComponent(
|
|
33551
|
+
return decodeURIComponent(path45);
|
|
33552
33552
|
} catch (err) {
|
|
33553
33553
|
return -1;
|
|
33554
33554
|
}
|
|
@@ -34462,10 +34462,10 @@ var require_utils2 = __commonJS({
|
|
|
34462
34462
|
var querystring = require("querystring");
|
|
34463
34463
|
exports2.etag = createETagGenerator({ weak: false });
|
|
34464
34464
|
exports2.wetag = createETagGenerator({ weak: true });
|
|
34465
|
-
exports2.isAbsolute = function(
|
|
34466
|
-
if ("/" ===
|
|
34467
|
-
if (":" ===
|
|
34468
|
-
if ("\\\\" ===
|
|
34465
|
+
exports2.isAbsolute = function(path44) {
|
|
34466
|
+
if ("/" === path44[0]) return true;
|
|
34467
|
+
if (":" === path44[1] && ("\\" === path44[2] || "/" === path44[2])) return true;
|
|
34468
|
+
if ("\\\\" === path44.substring(0, 2)) return true;
|
|
34469
34469
|
};
|
|
34470
34470
|
exports2.flatten = deprecate.function(
|
|
34471
34471
|
flatten,
|
|
@@ -34602,7 +34602,7 @@ var require_application = __commonJS({
|
|
|
34602
34602
|
var deprecate = require_depd()("express");
|
|
34603
34603
|
var flatten = require_array_flatten();
|
|
34604
34604
|
var merge4 = require_utils_merge();
|
|
34605
|
-
var
|
|
34605
|
+
var resolve24 = require("path").resolve;
|
|
34606
34606
|
var setPrototypeOf = require_setprototypeof();
|
|
34607
34607
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
34608
34608
|
var slice = Array.prototype.slice;
|
|
@@ -34641,7 +34641,7 @@ var require_application = __commonJS({
|
|
|
34641
34641
|
this.mountpath = "/";
|
|
34642
34642
|
this.locals.settings = this.settings;
|
|
34643
34643
|
this.set("view", View3);
|
|
34644
|
-
this.set("views",
|
|
34644
|
+
this.set("views", resolve24("views"));
|
|
34645
34645
|
this.set("jsonp callback name", "callback");
|
|
34646
34646
|
if (env3 === "production") {
|
|
34647
34647
|
this.enable("view cache");
|
|
@@ -34677,7 +34677,7 @@ var require_application = __commonJS({
|
|
|
34677
34677
|
};
|
|
34678
34678
|
app.use = function use(fn) {
|
|
34679
34679
|
var offset = 0;
|
|
34680
|
-
var
|
|
34680
|
+
var path44 = "/";
|
|
34681
34681
|
if (typeof fn !== "function") {
|
|
34682
34682
|
var arg = fn;
|
|
34683
34683
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -34685,7 +34685,7 @@ var require_application = __commonJS({
|
|
|
34685
34685
|
}
|
|
34686
34686
|
if (typeof arg !== "function") {
|
|
34687
34687
|
offset = 1;
|
|
34688
|
-
|
|
34688
|
+
path44 = fn;
|
|
34689
34689
|
}
|
|
34690
34690
|
}
|
|
34691
34691
|
var fns = flatten(slice.call(arguments, offset));
|
|
@@ -34696,12 +34696,12 @@ var require_application = __commonJS({
|
|
|
34696
34696
|
var router = this._router;
|
|
34697
34697
|
fns.forEach(function(fn2) {
|
|
34698
34698
|
if (!fn2 || !fn2.handle || !fn2.set) {
|
|
34699
|
-
return router.use(
|
|
34699
|
+
return router.use(path44, fn2);
|
|
34700
34700
|
}
|
|
34701
|
-
debug(".use app under %s",
|
|
34702
|
-
fn2.mountpath =
|
|
34701
|
+
debug(".use app under %s", path44);
|
|
34702
|
+
fn2.mountpath = path44;
|
|
34703
34703
|
fn2.parent = this;
|
|
34704
|
-
router.use(
|
|
34704
|
+
router.use(path44, function mounted_app(req, res, next) {
|
|
34705
34705
|
var orig = req.app;
|
|
34706
34706
|
fn2.handle(req, res, function(err) {
|
|
34707
34707
|
setPrototypeOf(req, orig.request);
|
|
@@ -34713,9 +34713,9 @@ var require_application = __commonJS({
|
|
|
34713
34713
|
}, this);
|
|
34714
34714
|
return this;
|
|
34715
34715
|
};
|
|
34716
|
-
app.route = function route(
|
|
34716
|
+
app.route = function route(path44) {
|
|
34717
34717
|
this.lazyrouter();
|
|
34718
|
-
return this._router.route(
|
|
34718
|
+
return this._router.route(path44);
|
|
34719
34719
|
};
|
|
34720
34720
|
app.engine = function engine(ext, fn) {
|
|
34721
34721
|
if (typeof fn !== "function") {
|
|
@@ -34766,7 +34766,7 @@ var require_application = __commonJS({
|
|
|
34766
34766
|
}
|
|
34767
34767
|
return this;
|
|
34768
34768
|
};
|
|
34769
|
-
app.path = function
|
|
34769
|
+
app.path = function path44() {
|
|
34770
34770
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
34771
34771
|
};
|
|
34772
34772
|
app.enabled = function enabled2(setting) {
|
|
@@ -34782,19 +34782,19 @@ var require_application = __commonJS({
|
|
|
34782
34782
|
return this.set(setting, false);
|
|
34783
34783
|
};
|
|
34784
34784
|
methods.forEach(function(method) {
|
|
34785
|
-
app[method] = function(
|
|
34785
|
+
app[method] = function(path44) {
|
|
34786
34786
|
if (method === "get" && arguments.length === 1) {
|
|
34787
|
-
return this.set(
|
|
34787
|
+
return this.set(path44);
|
|
34788
34788
|
}
|
|
34789
34789
|
this.lazyrouter();
|
|
34790
|
-
var route = this._router.route(
|
|
34790
|
+
var route = this._router.route(path44);
|
|
34791
34791
|
route[method].apply(route, slice.call(arguments, 1));
|
|
34792
34792
|
return this;
|
|
34793
34793
|
};
|
|
34794
34794
|
});
|
|
34795
|
-
app.all = function all(
|
|
34795
|
+
app.all = function all(path44) {
|
|
34796
34796
|
this.lazyrouter();
|
|
34797
|
-
var route = this._router.route(
|
|
34797
|
+
var route = this._router.route(path44);
|
|
34798
34798
|
var args = slice.call(arguments, 1);
|
|
34799
34799
|
for (var i = 0; i < methods.length; i++) {
|
|
34800
34800
|
route[methods[i]].apply(route, args);
|
|
@@ -35560,7 +35560,7 @@ var require_request = __commonJS({
|
|
|
35560
35560
|
var subdomains2 = !isIP(hostname6) ? hostname6.split(".").reverse() : [hostname6];
|
|
35561
35561
|
return subdomains2.slice(offset);
|
|
35562
35562
|
});
|
|
35563
|
-
defineGetter(req, "path", function
|
|
35563
|
+
defineGetter(req, "path", function path44() {
|
|
35564
35564
|
return parse6(this).pathname;
|
|
35565
35565
|
});
|
|
35566
35566
|
defineGetter(req, "hostname", function hostname6() {
|
|
@@ -35885,9 +35885,9 @@ var require_response = __commonJS({
|
|
|
35885
35885
|
var encodeUrl = require_encodeurl();
|
|
35886
35886
|
var escapeHtml2 = require_escape_html();
|
|
35887
35887
|
var http6 = require("http");
|
|
35888
|
-
var
|
|
35888
|
+
var isAbsolute13 = require_utils2().isAbsolute;
|
|
35889
35889
|
var onFinished = require_on_finished();
|
|
35890
|
-
var
|
|
35890
|
+
var path44 = require("path");
|
|
35891
35891
|
var statuses = require_statuses();
|
|
35892
35892
|
var merge4 = require_utils_merge();
|
|
35893
35893
|
var sign = require_cookie_signature().sign;
|
|
@@ -35896,9 +35896,9 @@ var require_response = __commonJS({
|
|
|
35896
35896
|
var setCharset = require_utils2().setCharset;
|
|
35897
35897
|
var cookie = require_cookie();
|
|
35898
35898
|
var send = require_send();
|
|
35899
|
-
var extname4 =
|
|
35899
|
+
var extname4 = path44.extname;
|
|
35900
35900
|
var mime = send.mime;
|
|
35901
|
-
var
|
|
35901
|
+
var resolve24 = path44.resolve;
|
|
35902
35902
|
var vary = require_vary();
|
|
35903
35903
|
var res = Object.create(http6.ServerResponse.prototype);
|
|
35904
35904
|
module2.exports = res;
|
|
@@ -36075,26 +36075,26 @@ var require_response = __commonJS({
|
|
|
36075
36075
|
this.type("txt");
|
|
36076
36076
|
return this.send(body);
|
|
36077
36077
|
};
|
|
36078
|
-
res.sendFile = function sendFile(
|
|
36078
|
+
res.sendFile = function sendFile(path45, options, callback) {
|
|
36079
36079
|
var done = callback;
|
|
36080
36080
|
var req = this.req;
|
|
36081
36081
|
var res2 = this;
|
|
36082
36082
|
var next = req.next;
|
|
36083
36083
|
var opts = options || {};
|
|
36084
|
-
if (!
|
|
36084
|
+
if (!path45) {
|
|
36085
36085
|
throw new TypeError("path argument is required to res.sendFile");
|
|
36086
36086
|
}
|
|
36087
|
-
if (typeof
|
|
36087
|
+
if (typeof path45 !== "string") {
|
|
36088
36088
|
throw new TypeError("path must be a string to res.sendFile");
|
|
36089
36089
|
}
|
|
36090
36090
|
if (typeof options === "function") {
|
|
36091
36091
|
done = options;
|
|
36092
36092
|
opts = {};
|
|
36093
36093
|
}
|
|
36094
|
-
if (!opts.root && !
|
|
36094
|
+
if (!opts.root && !isAbsolute13(path45)) {
|
|
36095
36095
|
throw new TypeError("path must be absolute or specify root to res.sendFile");
|
|
36096
36096
|
}
|
|
36097
|
-
var pathname = encodeURI(
|
|
36097
|
+
var pathname = encodeURI(path45);
|
|
36098
36098
|
var file = send(req, pathname, opts);
|
|
36099
36099
|
sendfile(res2, file, opts, function(err) {
|
|
36100
36100
|
if (done) return done(err);
|
|
@@ -36104,7 +36104,7 @@ var require_response = __commonJS({
|
|
|
36104
36104
|
}
|
|
36105
36105
|
});
|
|
36106
36106
|
};
|
|
36107
|
-
res.sendfile = function(
|
|
36107
|
+
res.sendfile = function(path45, options, callback) {
|
|
36108
36108
|
var done = callback;
|
|
36109
36109
|
var req = this.req;
|
|
36110
36110
|
var res2 = this;
|
|
@@ -36114,7 +36114,7 @@ var require_response = __commonJS({
|
|
|
36114
36114
|
done = options;
|
|
36115
36115
|
opts = {};
|
|
36116
36116
|
}
|
|
36117
|
-
var file = send(req,
|
|
36117
|
+
var file = send(req, path45, opts);
|
|
36118
36118
|
sendfile(res2, file, opts, function(err) {
|
|
36119
36119
|
if (done) return done(err);
|
|
36120
36120
|
if (err && err.code === "EISDIR") return next();
|
|
@@ -36127,7 +36127,7 @@ var require_response = __commonJS({
|
|
|
36127
36127
|
res.sendfile,
|
|
36128
36128
|
"res.sendfile: Use res.sendFile instead"
|
|
36129
36129
|
);
|
|
36130
|
-
res.download = function download(
|
|
36130
|
+
res.download = function download(path45, filename, options, callback) {
|
|
36131
36131
|
var done = callback;
|
|
36132
36132
|
var name2 = filename;
|
|
36133
36133
|
var opts = options || null;
|
|
@@ -36144,7 +36144,7 @@ var require_response = __commonJS({
|
|
|
36144
36144
|
opts = filename;
|
|
36145
36145
|
}
|
|
36146
36146
|
var headers = {
|
|
36147
|
-
"Content-Disposition": contentDisposition(name2 ||
|
|
36147
|
+
"Content-Disposition": contentDisposition(name2 || path45)
|
|
36148
36148
|
};
|
|
36149
36149
|
if (opts && opts.headers) {
|
|
36150
36150
|
var keys = Object.keys(opts.headers);
|
|
@@ -36157,7 +36157,7 @@ var require_response = __commonJS({
|
|
|
36157
36157
|
}
|
|
36158
36158
|
opts = Object.create(opts);
|
|
36159
36159
|
opts.headers = headers;
|
|
36160
|
-
var fullPath = !opts.root ?
|
|
36160
|
+
var fullPath = !opts.root ? resolve24(path45) : path45;
|
|
36161
36161
|
return this.sendFile(fullPath, opts, done);
|
|
36162
36162
|
};
|
|
36163
36163
|
res.contentType = res.type = function contentType(type) {
|
|
@@ -36424,7 +36424,7 @@ var require_serve_static = __commonJS({
|
|
|
36424
36424
|
var encodeUrl = require_encodeurl();
|
|
36425
36425
|
var escapeHtml2 = require_escape_html();
|
|
36426
36426
|
var parseUrl = require_parseurl();
|
|
36427
|
-
var
|
|
36427
|
+
var resolve24 = require("path").resolve;
|
|
36428
36428
|
var send = require_send();
|
|
36429
36429
|
var url3 = require("url");
|
|
36430
36430
|
module2.exports = serveStatic;
|
|
@@ -36444,7 +36444,7 @@ var require_serve_static = __commonJS({
|
|
|
36444
36444
|
throw new TypeError("option setHeaders must be function");
|
|
36445
36445
|
}
|
|
36446
36446
|
opts.maxage = opts.maxage || opts.maxAge || 0;
|
|
36447
|
-
opts.root =
|
|
36447
|
+
opts.root = resolve24(root);
|
|
36448
36448
|
var onDirectory = redirect ? createRedirectDirectoryListener() : createNotFoundDirectoryListener();
|
|
36449
36449
|
return function serveStatic2(req, res, next) {
|
|
36450
36450
|
if (req.method !== "GET" && req.method !== "HEAD") {
|
|
@@ -36459,11 +36459,11 @@ var require_serve_static = __commonJS({
|
|
|
36459
36459
|
}
|
|
36460
36460
|
var forwardError = !fallthrough;
|
|
36461
36461
|
var originalUrl = parseUrl.original(req);
|
|
36462
|
-
var
|
|
36463
|
-
if (
|
|
36464
|
-
|
|
36462
|
+
var path44 = parseUrl(req).pathname;
|
|
36463
|
+
if (path44 === "/" && originalUrl.pathname.substr(-1) !== "/") {
|
|
36464
|
+
path44 = "";
|
|
36465
36465
|
}
|
|
36466
|
-
var stream = send(req,
|
|
36466
|
+
var stream = send(req, path44, opts);
|
|
36467
36467
|
stream.on("directory", onDirectory);
|
|
36468
36468
|
if (setHeaders) {
|
|
36469
36469
|
stream.on("headers", setHeaders);
|
|
@@ -36803,10 +36803,10 @@ function assignProp(target, prop, value) {
|
|
|
36803
36803
|
configurable: true
|
|
36804
36804
|
});
|
|
36805
36805
|
}
|
|
36806
|
-
function getElementAtPath(obj,
|
|
36807
|
-
if (!
|
|
36806
|
+
function getElementAtPath(obj, path44) {
|
|
36807
|
+
if (!path44)
|
|
36808
36808
|
return obj;
|
|
36809
|
-
return
|
|
36809
|
+
return path44.reduce((acc, key) => acc?.[key], obj);
|
|
36810
36810
|
}
|
|
36811
36811
|
function promiseAllObject(promisesObj) {
|
|
36812
36812
|
const keys = Object.keys(promisesObj);
|
|
@@ -37055,11 +37055,11 @@ function aborted(x, startIndex = 0) {
|
|
|
37055
37055
|
}
|
|
37056
37056
|
return false;
|
|
37057
37057
|
}
|
|
37058
|
-
function prefixIssues(
|
|
37058
|
+
function prefixIssues(path44, issues) {
|
|
37059
37059
|
return issues.map((iss) => {
|
|
37060
37060
|
var _a;
|
|
37061
37061
|
(_a = iss).path ?? (_a.path = []);
|
|
37062
|
-
iss.path.unshift(
|
|
37062
|
+
iss.path.unshift(path44);
|
|
37063
37063
|
return iss;
|
|
37064
37064
|
});
|
|
37065
37065
|
}
|
|
@@ -43250,7 +43250,7 @@ var init_protocol = __esm({
|
|
|
43250
43250
|
return;
|
|
43251
43251
|
}
|
|
43252
43252
|
const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1e3;
|
|
43253
|
-
await new Promise((
|
|
43253
|
+
await new Promise((resolve24) => setTimeout(resolve24, pollInterval));
|
|
43254
43254
|
options?.signal?.throwIfAborted();
|
|
43255
43255
|
}
|
|
43256
43256
|
} catch (error2) {
|
|
@@ -43267,7 +43267,7 @@ var init_protocol = __esm({
|
|
|
43267
43267
|
*/
|
|
43268
43268
|
request(request2, resultSchema, options) {
|
|
43269
43269
|
const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {};
|
|
43270
|
-
return new Promise((
|
|
43270
|
+
return new Promise((resolve24, reject) => {
|
|
43271
43271
|
const earlyReject = (error2) => {
|
|
43272
43272
|
reject(error2);
|
|
43273
43273
|
};
|
|
@@ -43345,7 +43345,7 @@ var init_protocol = __esm({
|
|
|
43345
43345
|
if (!parseResult.success) {
|
|
43346
43346
|
reject(parseResult.error);
|
|
43347
43347
|
} else {
|
|
43348
|
-
|
|
43348
|
+
resolve24(parseResult.data);
|
|
43349
43349
|
}
|
|
43350
43350
|
} catch (error2) {
|
|
43351
43351
|
reject(error2);
|
|
@@ -43606,12 +43606,12 @@ var init_protocol = __esm({
|
|
|
43606
43606
|
}
|
|
43607
43607
|
} catch {
|
|
43608
43608
|
}
|
|
43609
|
-
return new Promise((
|
|
43609
|
+
return new Promise((resolve24, reject) => {
|
|
43610
43610
|
if (signal.aborted) {
|
|
43611
43611
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
43612
43612
|
return;
|
|
43613
43613
|
}
|
|
43614
|
-
const timeoutId = setTimeout(
|
|
43614
|
+
const timeoutId = setTimeout(resolve24, interval);
|
|
43615
43615
|
signal.addEventListener("abort", () => {
|
|
43616
43616
|
clearTimeout(timeoutId);
|
|
43617
43617
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
@@ -46659,7 +46659,7 @@ var require_compile = __commonJS({
|
|
|
46659
46659
|
const schOrFunc = root.refs[ref];
|
|
46660
46660
|
if (schOrFunc)
|
|
46661
46661
|
return schOrFunc;
|
|
46662
|
-
let _sch =
|
|
46662
|
+
let _sch = resolve24.call(this, root, ref);
|
|
46663
46663
|
if (_sch === void 0) {
|
|
46664
46664
|
const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref];
|
|
46665
46665
|
const { schemaId } = this.opts;
|
|
@@ -46686,7 +46686,7 @@ var require_compile = __commonJS({
|
|
|
46686
46686
|
function sameSchemaEnv(s1, s2) {
|
|
46687
46687
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
46688
46688
|
}
|
|
46689
|
-
function
|
|
46689
|
+
function resolve24(root, ref) {
|
|
46690
46690
|
let sch;
|
|
46691
46691
|
while (typeof (sch = this.refs[ref]) == "string")
|
|
46692
46692
|
ref = sch;
|
|
@@ -46905,8 +46905,8 @@ var require_utils3 = __commonJS({
|
|
|
46905
46905
|
}
|
|
46906
46906
|
return ind;
|
|
46907
46907
|
}
|
|
46908
|
-
function removeDotSegments(
|
|
46909
|
-
let input =
|
|
46908
|
+
function removeDotSegments(path44) {
|
|
46909
|
+
let input = path44;
|
|
46910
46910
|
const output = [];
|
|
46911
46911
|
let nextSlash = -1;
|
|
46912
46912
|
let len = 0;
|
|
@@ -47159,8 +47159,8 @@ var require_schemes = __commonJS({
|
|
|
47159
47159
|
wsComponent.secure = void 0;
|
|
47160
47160
|
}
|
|
47161
47161
|
if (wsComponent.resourceName) {
|
|
47162
|
-
const [
|
|
47163
|
-
wsComponent.path =
|
|
47162
|
+
const [path44, query] = wsComponent.resourceName.split("?");
|
|
47163
|
+
wsComponent.path = path44 && path44 !== "/" ? path44 : void 0;
|
|
47164
47164
|
wsComponent.query = query;
|
|
47165
47165
|
wsComponent.resourceName = void 0;
|
|
47166
47166
|
}
|
|
@@ -47320,7 +47320,7 @@ var require_fast_uri = __commonJS({
|
|
|
47320
47320
|
}
|
|
47321
47321
|
return uri;
|
|
47322
47322
|
}
|
|
47323
|
-
function
|
|
47323
|
+
function resolve24(baseURI, relativeURI, options) {
|
|
47324
47324
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
47325
47325
|
const resolved = resolveComponent(parse6(baseURI, schemelessOptions), parse6(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
47326
47326
|
schemelessOptions.skipEscape = true;
|
|
@@ -47578,7 +47578,7 @@ var require_fast_uri = __commonJS({
|
|
|
47578
47578
|
var fastUri = {
|
|
47579
47579
|
SCHEMES,
|
|
47580
47580
|
normalize: normalize7,
|
|
47581
|
-
resolve:
|
|
47581
|
+
resolve: resolve24,
|
|
47582
47582
|
resolveComponent,
|
|
47583
47583
|
equal,
|
|
47584
47584
|
serialize,
|
|
@@ -50599,12 +50599,12 @@ var require_dist4 = __commonJS({
|
|
|
50599
50599
|
throw new Error(`Unknown format "${name2}"`);
|
|
50600
50600
|
return f;
|
|
50601
50601
|
};
|
|
50602
|
-
function addFormats(ajv, list,
|
|
50602
|
+
function addFormats(ajv, list, fs41, exportName) {
|
|
50603
50603
|
var _a;
|
|
50604
50604
|
var _b;
|
|
50605
50605
|
(_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
|
|
50606
50606
|
for (const f of list)
|
|
50607
|
-
ajv.addFormat(f,
|
|
50607
|
+
ajv.addFormat(f, fs41[f]);
|
|
50608
50608
|
}
|
|
50609
50609
|
module2.exports = exports2 = formatsPlugin;
|
|
50610
50610
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -51435,8 +51435,8 @@ var require_windows = __commonJS({
|
|
|
51435
51435
|
init_cjs_shims();
|
|
51436
51436
|
module2.exports = isexe;
|
|
51437
51437
|
isexe.sync = sync;
|
|
51438
|
-
var
|
|
51439
|
-
function checkPathExt(
|
|
51438
|
+
var fs41 = require("fs");
|
|
51439
|
+
function checkPathExt(path44, options) {
|
|
51440
51440
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
51441
51441
|
if (!pathext) {
|
|
51442
51442
|
return true;
|
|
@@ -51447,25 +51447,25 @@ var require_windows = __commonJS({
|
|
|
51447
51447
|
}
|
|
51448
51448
|
for (var i = 0; i < pathext.length; i++) {
|
|
51449
51449
|
var p = pathext[i].toLowerCase();
|
|
51450
|
-
if (p &&
|
|
51450
|
+
if (p && path44.substr(-p.length).toLowerCase() === p) {
|
|
51451
51451
|
return true;
|
|
51452
51452
|
}
|
|
51453
51453
|
}
|
|
51454
51454
|
return false;
|
|
51455
51455
|
}
|
|
51456
|
-
function checkStat(stat3,
|
|
51456
|
+
function checkStat(stat3, path44, options) {
|
|
51457
51457
|
if (!stat3.isSymbolicLink() && !stat3.isFile()) {
|
|
51458
51458
|
return false;
|
|
51459
51459
|
}
|
|
51460
|
-
return checkPathExt(
|
|
51460
|
+
return checkPathExt(path44, options);
|
|
51461
51461
|
}
|
|
51462
|
-
function isexe(
|
|
51463
|
-
|
|
51464
|
-
cb(er, er ? false : checkStat(stat3,
|
|
51462
|
+
function isexe(path44, options, cb) {
|
|
51463
|
+
fs41.stat(path44, function(er, stat3) {
|
|
51464
|
+
cb(er, er ? false : checkStat(stat3, path44, options));
|
|
51465
51465
|
});
|
|
51466
51466
|
}
|
|
51467
|
-
function sync(
|
|
51468
|
-
return checkStat(
|
|
51467
|
+
function sync(path44, options) {
|
|
51468
|
+
return checkStat(fs41.statSync(path44), path44, options);
|
|
51469
51469
|
}
|
|
51470
51470
|
}
|
|
51471
51471
|
});
|
|
@@ -51477,14 +51477,14 @@ var require_mode = __commonJS({
|
|
|
51477
51477
|
init_cjs_shims();
|
|
51478
51478
|
module2.exports = isexe;
|
|
51479
51479
|
isexe.sync = sync;
|
|
51480
|
-
var
|
|
51481
|
-
function isexe(
|
|
51482
|
-
|
|
51480
|
+
var fs41 = require("fs");
|
|
51481
|
+
function isexe(path44, options, cb) {
|
|
51482
|
+
fs41.stat(path44, function(er, stat3) {
|
|
51483
51483
|
cb(er, er ? false : checkStat(stat3, options));
|
|
51484
51484
|
});
|
|
51485
51485
|
}
|
|
51486
|
-
function sync(
|
|
51487
|
-
return checkStat(
|
|
51486
|
+
function sync(path44, options) {
|
|
51487
|
+
return checkStat(fs41.statSync(path44), options);
|
|
51488
51488
|
}
|
|
51489
51489
|
function checkStat(stat3, options) {
|
|
51490
51490
|
return stat3.isFile() && checkMode(stat3, options);
|
|
@@ -51510,7 +51510,7 @@ var require_isexe = __commonJS({
|
|
|
51510
51510
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
51511
51511
|
"use strict";
|
|
51512
51512
|
init_cjs_shims();
|
|
51513
|
-
var
|
|
51513
|
+
var fs41 = require("fs");
|
|
51514
51514
|
var core;
|
|
51515
51515
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
51516
51516
|
core = require_windows();
|
|
@@ -51519,7 +51519,7 @@ var require_isexe = __commonJS({
|
|
|
51519
51519
|
}
|
|
51520
51520
|
module2.exports = isexe;
|
|
51521
51521
|
isexe.sync = sync;
|
|
51522
|
-
function isexe(
|
|
51522
|
+
function isexe(path44, options, cb) {
|
|
51523
51523
|
if (typeof options === "function") {
|
|
51524
51524
|
cb = options;
|
|
51525
51525
|
options = {};
|
|
@@ -51528,17 +51528,17 @@ var require_isexe = __commonJS({
|
|
|
51528
51528
|
if (typeof Promise !== "function") {
|
|
51529
51529
|
throw new TypeError("callback not provided");
|
|
51530
51530
|
}
|
|
51531
|
-
return new Promise(function(
|
|
51532
|
-
isexe(
|
|
51531
|
+
return new Promise(function(resolve24, reject) {
|
|
51532
|
+
isexe(path44, options || {}, function(er, is) {
|
|
51533
51533
|
if (er) {
|
|
51534
51534
|
reject(er);
|
|
51535
51535
|
} else {
|
|
51536
|
-
|
|
51536
|
+
resolve24(is);
|
|
51537
51537
|
}
|
|
51538
51538
|
});
|
|
51539
51539
|
});
|
|
51540
51540
|
}
|
|
51541
|
-
core(
|
|
51541
|
+
core(path44, options || {}, function(er, is) {
|
|
51542
51542
|
if (er) {
|
|
51543
51543
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
51544
51544
|
er = null;
|
|
@@ -51548,9 +51548,9 @@ var require_isexe = __commonJS({
|
|
|
51548
51548
|
cb(er, is);
|
|
51549
51549
|
});
|
|
51550
51550
|
}
|
|
51551
|
-
function sync(
|
|
51551
|
+
function sync(path44, options) {
|
|
51552
51552
|
try {
|
|
51553
|
-
return core.sync(
|
|
51553
|
+
return core.sync(path44, options || {});
|
|
51554
51554
|
} catch (er) {
|
|
51555
51555
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
51556
51556
|
return false;
|
|
@@ -51568,7 +51568,7 @@ var require_which = __commonJS({
|
|
|
51568
51568
|
"use strict";
|
|
51569
51569
|
init_cjs_shims();
|
|
51570
51570
|
var isWindows3 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
51571
|
-
var
|
|
51571
|
+
var path44 = require("path");
|
|
51572
51572
|
var COLON = isWindows3 ? ";" : ":";
|
|
51573
51573
|
var isexe = require_isexe();
|
|
51574
51574
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -51601,27 +51601,27 @@ var require_which = __commonJS({
|
|
|
51601
51601
|
opt = {};
|
|
51602
51602
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
51603
51603
|
const found = [];
|
|
51604
|
-
const step = (i) => new Promise((
|
|
51604
|
+
const step = (i) => new Promise((resolve24, reject) => {
|
|
51605
51605
|
if (i === pathEnv.length)
|
|
51606
|
-
return opt.all && found.length ?
|
|
51606
|
+
return opt.all && found.length ? resolve24(found) : reject(getNotFoundError(cmd));
|
|
51607
51607
|
const ppRaw = pathEnv[i];
|
|
51608
51608
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
51609
|
-
const pCmd =
|
|
51609
|
+
const pCmd = path44.join(pathPart, cmd);
|
|
51610
51610
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
51611
|
-
|
|
51611
|
+
resolve24(subStep(p, i, 0));
|
|
51612
51612
|
});
|
|
51613
|
-
const subStep = (p, i, ii) => new Promise((
|
|
51613
|
+
const subStep = (p, i, ii) => new Promise((resolve24, reject) => {
|
|
51614
51614
|
if (ii === pathExt.length)
|
|
51615
|
-
return
|
|
51615
|
+
return resolve24(step(i + 1));
|
|
51616
51616
|
const ext = pathExt[ii];
|
|
51617
51617
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
51618
51618
|
if (!er && is) {
|
|
51619
51619
|
if (opt.all)
|
|
51620
51620
|
found.push(p + ext);
|
|
51621
51621
|
else
|
|
51622
|
-
return
|
|
51622
|
+
return resolve24(p + ext);
|
|
51623
51623
|
}
|
|
51624
|
-
return
|
|
51624
|
+
return resolve24(subStep(p, i, ii + 1));
|
|
51625
51625
|
});
|
|
51626
51626
|
});
|
|
51627
51627
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -51633,7 +51633,7 @@ var require_which = __commonJS({
|
|
|
51633
51633
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
51634
51634
|
const ppRaw = pathEnv[i];
|
|
51635
51635
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
51636
|
-
const pCmd =
|
|
51636
|
+
const pCmd = path44.join(pathPart, cmd);
|
|
51637
51637
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
51638
51638
|
for (let j = 0; j < pathExt.length; j++) {
|
|
51639
51639
|
const cur = p + pathExt[j];
|
|
@@ -51683,7 +51683,7 @@ var require_resolveCommand = __commonJS({
|
|
|
51683
51683
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
51684
51684
|
"use strict";
|
|
51685
51685
|
init_cjs_shims();
|
|
51686
|
-
var
|
|
51686
|
+
var path44 = require("path");
|
|
51687
51687
|
var which = require_which();
|
|
51688
51688
|
var getPathKey = require_path_key();
|
|
51689
51689
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -51701,7 +51701,7 @@ var require_resolveCommand = __commonJS({
|
|
|
51701
51701
|
try {
|
|
51702
51702
|
resolved = which.sync(parsed.command, {
|
|
51703
51703
|
path: env3[getPathKey({ env: env3 })],
|
|
51704
|
-
pathExt: withoutPathExt ?
|
|
51704
|
+
pathExt: withoutPathExt ? path44.delimiter : void 0
|
|
51705
51705
|
});
|
|
51706
51706
|
} catch (e) {
|
|
51707
51707
|
} finally {
|
|
@@ -51710,7 +51710,7 @@ var require_resolveCommand = __commonJS({
|
|
|
51710
51710
|
}
|
|
51711
51711
|
}
|
|
51712
51712
|
if (resolved) {
|
|
51713
|
-
resolved =
|
|
51713
|
+
resolved = path44.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
51714
51714
|
}
|
|
51715
51715
|
return resolved;
|
|
51716
51716
|
}
|
|
@@ -51767,8 +51767,8 @@ var require_shebang_command = __commonJS({
|
|
|
51767
51767
|
if (!match) {
|
|
51768
51768
|
return null;
|
|
51769
51769
|
}
|
|
51770
|
-
const [
|
|
51771
|
-
const binary =
|
|
51770
|
+
const [path44, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
51771
|
+
const binary = path44.split("/").pop();
|
|
51772
51772
|
if (binary === "env") {
|
|
51773
51773
|
return argument;
|
|
51774
51774
|
}
|
|
@@ -51782,16 +51782,16 @@ var require_readShebang = __commonJS({
|
|
|
51782
51782
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
51783
51783
|
"use strict";
|
|
51784
51784
|
init_cjs_shims();
|
|
51785
|
-
var
|
|
51785
|
+
var fs41 = require("fs");
|
|
51786
51786
|
var shebangCommand = require_shebang_command();
|
|
51787
51787
|
function readShebang(command) {
|
|
51788
51788
|
const size = 150;
|
|
51789
51789
|
const buffer = Buffer.alloc(size);
|
|
51790
51790
|
let fd;
|
|
51791
51791
|
try {
|
|
51792
|
-
fd =
|
|
51793
|
-
|
|
51794
|
-
|
|
51792
|
+
fd = fs41.openSync(command, "r");
|
|
51793
|
+
fs41.readSync(fd, buffer, 0, size, 0);
|
|
51794
|
+
fs41.closeSync(fd);
|
|
51795
51795
|
} catch (e) {
|
|
51796
51796
|
}
|
|
51797
51797
|
return shebangCommand(buffer.toString());
|
|
@@ -51805,7 +51805,7 @@ var require_parse3 = __commonJS({
|
|
|
51805
51805
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
51806
51806
|
"use strict";
|
|
51807
51807
|
init_cjs_shims();
|
|
51808
|
-
var
|
|
51808
|
+
var path44 = require("path");
|
|
51809
51809
|
var resolveCommand = require_resolveCommand();
|
|
51810
51810
|
var escape2 = require_escape();
|
|
51811
51811
|
var readShebang = require_readShebang();
|
|
@@ -51830,7 +51830,7 @@ var require_parse3 = __commonJS({
|
|
|
51830
51830
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
51831
51831
|
if (parsed.options.forceShell || needsShell) {
|
|
51832
51832
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
51833
|
-
parsed.command =
|
|
51833
|
+
parsed.command = path44.normalize(parsed.command);
|
|
51834
51834
|
parsed.command = escape2.command(parsed.command);
|
|
51835
51835
|
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
|
51836
51836
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -51928,7 +51928,7 @@ var require_cross_spawn = __commonJS({
|
|
|
51928
51928
|
enoent.hookChildProcess(spawned, parsed);
|
|
51929
51929
|
return spawned;
|
|
51930
51930
|
}
|
|
51931
|
-
function
|
|
51931
|
+
function spawnSync7(command, args, options) {
|
|
51932
51932
|
const parsed = parse6(command, args, options);
|
|
51933
51933
|
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
51934
51934
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
@@ -51936,7 +51936,7 @@ var require_cross_spawn = __commonJS({
|
|
|
51936
51936
|
}
|
|
51937
51937
|
module2.exports = spawn10;
|
|
51938
51938
|
module2.exports.spawn = spawn10;
|
|
51939
|
-
module2.exports.sync =
|
|
51939
|
+
module2.exports.sync = spawnSync7;
|
|
51940
51940
|
module2.exports._parse = parse6;
|
|
51941
51941
|
module2.exports._enoent = enoent;
|
|
51942
51942
|
}
|
|
@@ -52041,7 +52041,7 @@ var init_stdio2 = __esm({
|
|
|
52041
52041
|
if (this._process) {
|
|
52042
52042
|
throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");
|
|
52043
52043
|
}
|
|
52044
|
-
return new Promise((
|
|
52044
|
+
return new Promise((resolve24, reject) => {
|
|
52045
52045
|
this._process = (0, import_cross_spawn.default)(this._serverParams.command, this._serverParams.args ?? [], {
|
|
52046
52046
|
// merge default env with server env because mcp server needs some env vars
|
|
52047
52047
|
env: {
|
|
@@ -52058,7 +52058,7 @@ var init_stdio2 = __esm({
|
|
|
52058
52058
|
this.onerror?.(error2);
|
|
52059
52059
|
});
|
|
52060
52060
|
this._process.on("spawn", () => {
|
|
52061
|
-
|
|
52061
|
+
resolve24();
|
|
52062
52062
|
});
|
|
52063
52063
|
this._process.on("close", (_code) => {
|
|
52064
52064
|
this._process = void 0;
|
|
@@ -52117,22 +52117,22 @@ var init_stdio2 = __esm({
|
|
|
52117
52117
|
if (this._process) {
|
|
52118
52118
|
const processToClose = this._process;
|
|
52119
52119
|
this._process = void 0;
|
|
52120
|
-
const closePromise = new Promise((
|
|
52120
|
+
const closePromise = new Promise((resolve24) => {
|
|
52121
52121
|
processToClose.once("close", () => {
|
|
52122
|
-
|
|
52122
|
+
resolve24();
|
|
52123
52123
|
});
|
|
52124
52124
|
});
|
|
52125
52125
|
try {
|
|
52126
52126
|
processToClose.stdin?.end();
|
|
52127
52127
|
} catch {
|
|
52128
52128
|
}
|
|
52129
|
-
await Promise.race([closePromise, new Promise((
|
|
52129
|
+
await Promise.race([closePromise, new Promise((resolve24) => setTimeout(resolve24, 2e3).unref())]);
|
|
52130
52130
|
if (processToClose.exitCode === null) {
|
|
52131
52131
|
try {
|
|
52132
52132
|
processToClose.kill("SIGTERM");
|
|
52133
52133
|
} catch {
|
|
52134
52134
|
}
|
|
52135
|
-
await Promise.race([closePromise, new Promise((
|
|
52135
|
+
await Promise.race([closePromise, new Promise((resolve24) => setTimeout(resolve24, 2e3).unref())]);
|
|
52136
52136
|
}
|
|
52137
52137
|
if (processToClose.exitCode === null) {
|
|
52138
52138
|
try {
|
|
@@ -52144,15 +52144,15 @@ var init_stdio2 = __esm({
|
|
|
52144
52144
|
this._readBuffer.clear();
|
|
52145
52145
|
}
|
|
52146
52146
|
send(message) {
|
|
52147
|
-
return new Promise((
|
|
52147
|
+
return new Promise((resolve24) => {
|
|
52148
52148
|
if (!this._process?.stdin) {
|
|
52149
52149
|
throw new Error("Not connected");
|
|
52150
52150
|
}
|
|
52151
52151
|
const json = serializeMessage(message);
|
|
52152
52152
|
if (this._process.stdin.write(json)) {
|
|
52153
|
-
|
|
52153
|
+
resolve24();
|
|
52154
52154
|
} else {
|
|
52155
|
-
this._process.stdin.once("drain",
|
|
52155
|
+
this._process.stdin.once("drain", resolve24);
|
|
52156
52156
|
}
|
|
52157
52157
|
});
|
|
52158
52158
|
}
|
|
@@ -57233,8 +57233,8 @@ var init_promise2 = __esm({
|
|
|
57233
57233
|
_resolve;
|
|
57234
57234
|
_reject;
|
|
57235
57235
|
constructor() {
|
|
57236
|
-
this._promise = new Promise((
|
|
57237
|
-
this._resolve =
|
|
57236
|
+
this._promise = new Promise((resolve24, reject) => {
|
|
57237
|
+
this._resolve = resolve24;
|
|
57238
57238
|
this._reject = reject;
|
|
57239
57239
|
});
|
|
57240
57240
|
}
|
|
@@ -57320,9 +57320,9 @@ var init_configuration = __esm({
|
|
|
57320
57320
|
|
|
57321
57321
|
// ../../node_modules/.pnpm/@opentelemetry+core@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/core/build/esm/internal/exporter.js
|
|
57322
57322
|
function _export(exporter, arg) {
|
|
57323
|
-
return new Promise((
|
|
57323
|
+
return new Promise((resolve24) => {
|
|
57324
57324
|
context3.with(suppressTracing(context3.active()), () => {
|
|
57325
|
-
exporter.export(arg,
|
|
57325
|
+
exporter.export(arg, resolve24);
|
|
57326
57326
|
});
|
|
57327
57327
|
});
|
|
57328
57328
|
}
|
|
@@ -57785,9 +57785,9 @@ __export(getMachineId_linux_exports, {
|
|
|
57785
57785
|
});
|
|
57786
57786
|
async function getMachineId2() {
|
|
57787
57787
|
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
57788
|
-
for (const
|
|
57788
|
+
for (const path44 of paths) {
|
|
57789
57789
|
try {
|
|
57790
|
-
const result = await import_fs.promises.readFile(
|
|
57790
|
+
const result = await import_fs.promises.readFile(path44, { encoding: "utf8" });
|
|
57791
57791
|
return result.trim();
|
|
57792
57792
|
} catch (e) {
|
|
57793
57793
|
diag2.debug(`error reading machine id: ${e}`);
|
|
@@ -58877,8 +58877,8 @@ var init_BatchLogRecordProcessorBase = __esm({
|
|
|
58877
58877
|
_exportScheduledPromise;
|
|
58878
58878
|
_exportScheduledResolve;
|
|
58879
58879
|
constructor(exporter, logRecords, exportTimeoutMillis) {
|
|
58880
|
-
this._exportScheduledPromise = new Promise((
|
|
58881
|
-
this._exportScheduledResolve =
|
|
58880
|
+
this._exportScheduledPromise = new Promise((resolve24) => {
|
|
58881
|
+
this._exportScheduledResolve = resolve24;
|
|
58882
58882
|
});
|
|
58883
58883
|
this._exportCompleted = this._executeExport(exporter, logRecords, exportTimeoutMillis);
|
|
58884
58884
|
}
|
|
@@ -58902,14 +58902,14 @@ var init_BatchLogRecordProcessorBase = __esm({
|
|
|
58902
58902
|
}
|
|
58903
58903
|
}
|
|
58904
58904
|
async _exportWithTimeout(exporter, logRecords, exportTimeoutMillis) {
|
|
58905
|
-
return new Promise((
|
|
58905
|
+
return new Promise((resolve24, reject) => {
|
|
58906
58906
|
const timer = setTimeout(() => {
|
|
58907
58907
|
reject(new Error("Timeout"));
|
|
58908
58908
|
}, exportTimeoutMillis);
|
|
58909
58909
|
exporter.export(logRecords, (result) => {
|
|
58910
58910
|
clearTimeout(timer);
|
|
58911
58911
|
if (result.code === ExportResultCode.SUCCESS) {
|
|
58912
|
-
|
|
58912
|
+
resolve24();
|
|
58913
58913
|
} else {
|
|
58914
58914
|
reject(result.error ?? new Error("BatchLogRecordProcessor: log record export failed"));
|
|
58915
58915
|
}
|
|
@@ -63713,14 +63713,14 @@ var init_BatchSpanProcessorBase = __esm({
|
|
|
63713
63713
|
* for all other cases _flush should be used
|
|
63714
63714
|
* */
|
|
63715
63715
|
_flushAll() {
|
|
63716
|
-
return new Promise((
|
|
63716
|
+
return new Promise((resolve24, reject) => {
|
|
63717
63717
|
const promises2 = [];
|
|
63718
63718
|
const count = Math.ceil(this._finishedSpans.length / this._maxExportBatchSize);
|
|
63719
63719
|
for (let i = 0, j = count; i < j; i++) {
|
|
63720
63720
|
promises2.push(this._flushOneBatch());
|
|
63721
63721
|
}
|
|
63722
63722
|
Promise.all(promises2).then(() => {
|
|
63723
|
-
|
|
63723
|
+
resolve24();
|
|
63724
63724
|
}).catch(reject);
|
|
63725
63725
|
});
|
|
63726
63726
|
}
|
|
@@ -63729,7 +63729,7 @@ var init_BatchSpanProcessorBase = __esm({
|
|
|
63729
63729
|
if (this._finishedSpans.length === 0) {
|
|
63730
63730
|
return Promise.resolve();
|
|
63731
63731
|
}
|
|
63732
|
-
return new Promise((
|
|
63732
|
+
return new Promise((resolve24, reject) => {
|
|
63733
63733
|
const timer = setTimeout(() => {
|
|
63734
63734
|
reject(new Error("Timeout"));
|
|
63735
63735
|
}, this._exportTimeoutMillis);
|
|
@@ -63744,7 +63744,7 @@ var init_BatchSpanProcessorBase = __esm({
|
|
|
63744
63744
|
const doExport = () => this._exporter.export(spans, (result) => {
|
|
63745
63745
|
clearTimeout(timer);
|
|
63746
63746
|
if (result.code === ExportResultCode.SUCCESS) {
|
|
63747
|
-
|
|
63747
|
+
resolve24();
|
|
63748
63748
|
} else {
|
|
63749
63749
|
reject(result.error ?? new Error("BatchSpanProcessor: span export failed"));
|
|
63750
63750
|
}
|
|
@@ -64110,12 +64110,12 @@ var init_MultiSpanProcessor = __esm({
|
|
|
64110
64110
|
for (const spanProcessor of this._spanProcessors) {
|
|
64111
64111
|
promises2.push(spanProcessor.forceFlush());
|
|
64112
64112
|
}
|
|
64113
|
-
return new Promise((
|
|
64113
|
+
return new Promise((resolve24) => {
|
|
64114
64114
|
Promise.all(promises2).then(() => {
|
|
64115
|
-
|
|
64115
|
+
resolve24();
|
|
64116
64116
|
}).catch((error2) => {
|
|
64117
64117
|
globalErrorHandler(error2 || new Error("MultiSpanProcessor: forceFlush failed"));
|
|
64118
|
-
|
|
64118
|
+
resolve24();
|
|
64119
64119
|
});
|
|
64120
64120
|
});
|
|
64121
64121
|
}
|
|
@@ -64141,9 +64141,9 @@ var init_MultiSpanProcessor = __esm({
|
|
|
64141
64141
|
for (const spanProcessor of this._spanProcessors) {
|
|
64142
64142
|
promises2.push(spanProcessor.shutdown());
|
|
64143
64143
|
}
|
|
64144
|
-
return new Promise((
|
|
64144
|
+
return new Promise((resolve24, reject) => {
|
|
64145
64145
|
Promise.all(promises2).then(() => {
|
|
64146
|
-
|
|
64146
|
+
resolve24();
|
|
64147
64147
|
}, reject);
|
|
64148
64148
|
});
|
|
64149
64149
|
}
|
|
@@ -64196,32 +64196,32 @@ var init_BasicTracerProvider = __esm({
|
|
|
64196
64196
|
forceFlush() {
|
|
64197
64197
|
const timeout = this._config.forceFlushTimeoutMillis;
|
|
64198
64198
|
const promises2 = this._activeSpanProcessor["_spanProcessors"].map((spanProcessor) => {
|
|
64199
|
-
return new Promise((
|
|
64199
|
+
return new Promise((resolve24) => {
|
|
64200
64200
|
let state3;
|
|
64201
64201
|
const timeoutInterval = setTimeout(() => {
|
|
64202
|
-
|
|
64202
|
+
resolve24(new Error(`Span processor did not completed within timeout period of ${timeout} ms`));
|
|
64203
64203
|
state3 = ForceFlushState.timeout;
|
|
64204
64204
|
}, timeout);
|
|
64205
64205
|
spanProcessor.forceFlush().then(() => {
|
|
64206
64206
|
clearTimeout(timeoutInterval);
|
|
64207
64207
|
if (state3 !== ForceFlushState.timeout) {
|
|
64208
64208
|
state3 = ForceFlushState.resolved;
|
|
64209
|
-
|
|
64209
|
+
resolve24(state3);
|
|
64210
64210
|
}
|
|
64211
64211
|
}).catch((error2) => {
|
|
64212
64212
|
clearTimeout(timeoutInterval);
|
|
64213
64213
|
state3 = ForceFlushState.error;
|
|
64214
|
-
|
|
64214
|
+
resolve24(error2);
|
|
64215
64215
|
});
|
|
64216
64216
|
});
|
|
64217
64217
|
});
|
|
64218
|
-
return new Promise((
|
|
64218
|
+
return new Promise((resolve24, reject) => {
|
|
64219
64219
|
Promise.all(promises2).then((results) => {
|
|
64220
64220
|
const errors = results.filter((result) => result !== ForceFlushState.resolved);
|
|
64221
64221
|
if (errors.length > 0) {
|
|
64222
64222
|
reject(errors);
|
|
64223
64223
|
} else {
|
|
64224
|
-
|
|
64224
|
+
resolve24();
|
|
64225
64225
|
}
|
|
64226
64226
|
}).catch((error2) => reject([error2]));
|
|
64227
64227
|
});
|
|
@@ -65244,19 +65244,19 @@ var require_module_details_from_path = __commonJS({
|
|
|
65244
65244
|
basedir += segments[i] + sep11;
|
|
65245
65245
|
}
|
|
65246
65246
|
}
|
|
65247
|
-
var
|
|
65247
|
+
var path44 = "";
|
|
65248
65248
|
var lastSegmentIndex = segments.length - 1;
|
|
65249
65249
|
for (var i2 = index + offset; i2 <= lastSegmentIndex; i2++) {
|
|
65250
65250
|
if (i2 === lastSegmentIndex) {
|
|
65251
|
-
|
|
65251
|
+
path44 += segments[i2];
|
|
65252
65252
|
} else {
|
|
65253
|
-
|
|
65253
|
+
path44 += segments[i2] + sep11;
|
|
65254
65254
|
}
|
|
65255
65255
|
}
|
|
65256
65256
|
return {
|
|
65257
65257
|
name: name2,
|
|
65258
65258
|
basedir,
|
|
65259
|
-
path:
|
|
65259
|
+
path: path44
|
|
65260
65260
|
};
|
|
65261
65261
|
};
|
|
65262
65262
|
}
|
|
@@ -65267,7 +65267,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65267
65267
|
"../../node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js"(exports2, module2) {
|
|
65268
65268
|
"use strict";
|
|
65269
65269
|
init_cjs_shims();
|
|
65270
|
-
var
|
|
65270
|
+
var path44 = require("path");
|
|
65271
65271
|
var Module = require("module");
|
|
65272
65272
|
var debug = require_src()("require-in-the-middle");
|
|
65273
65273
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
@@ -65412,7 +65412,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65412
65412
|
}
|
|
65413
65413
|
moduleName = filename;
|
|
65414
65414
|
} else if (hasWhitelist === true && modules.includes(filename)) {
|
|
65415
|
-
const parsedPath =
|
|
65415
|
+
const parsedPath = path44.parse(filename);
|
|
65416
65416
|
moduleName = parsedPath.name;
|
|
65417
65417
|
basedir = parsedPath.dir;
|
|
65418
65418
|
} else {
|
|
@@ -65450,7 +65450,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65450
65450
|
}
|
|
65451
65451
|
if (res !== filename) {
|
|
65452
65452
|
if (internals === true) {
|
|
65453
|
-
moduleName = moduleName +
|
|
65453
|
+
moduleName = moduleName + path44.sep + path44.relative(basedir, filename);
|
|
65454
65454
|
debug("preparing to process require of internal file: %s", moduleName);
|
|
65455
65455
|
} else {
|
|
65456
65456
|
debug("ignoring require of non-main module file: %s", res);
|
|
@@ -65486,8 +65486,8 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65486
65486
|
}
|
|
65487
65487
|
};
|
|
65488
65488
|
function resolveModuleName(stat3) {
|
|
65489
|
-
const normalizedPath =
|
|
65490
|
-
return
|
|
65489
|
+
const normalizedPath = path44.sep !== "/" ? stat3.path.split(path44.sep).join("/") : stat3.path;
|
|
65490
|
+
return path44.posix.join(stat3.name, normalizedPath).replace(normalize7, "");
|
|
65491
65491
|
}
|
|
65492
65492
|
}
|
|
65493
65493
|
});
|
|
@@ -65566,15 +65566,15 @@ var init_ModuleNameTrie = __esm({
|
|
|
65566
65566
|
|
|
65567
65567
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
|
|
65568
65568
|
function normalizePathSeparators(moduleNameOrPath) {
|
|
65569
|
-
return
|
|
65569
|
+
return path34.sep !== ModuleNameSeparator ? moduleNameOrPath.split(path34.sep).join(ModuleNameSeparator) : moduleNameOrPath;
|
|
65570
65570
|
}
|
|
65571
|
-
var import_require_in_the_middle,
|
|
65571
|
+
var import_require_in_the_middle, path34, isMocha, RequireInTheMiddleSingleton;
|
|
65572
65572
|
var init_RequireInTheMiddleSingleton = __esm({
|
|
65573
65573
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js"() {
|
|
65574
65574
|
"use strict";
|
|
65575
65575
|
init_cjs_shims();
|
|
65576
65576
|
import_require_in_the_middle = __toESM(require_require_in_the_middle());
|
|
65577
|
-
|
|
65577
|
+
path34 = __toESM(require("path"));
|
|
65578
65578
|
init_ModuleNameTrie();
|
|
65579
65579
|
isMocha = [
|
|
65580
65580
|
"afterEach",
|
|
@@ -65699,7 +65699,7 @@ var require_import_in_the_middle = __commonJS({
|
|
|
65699
65699
|
"../../node_modules/.pnpm/import-in-the-middle@3.0.2/node_modules/import-in-the-middle/index.js"(exports2, module2) {
|
|
65700
65700
|
"use strict";
|
|
65701
65701
|
init_cjs_shims();
|
|
65702
|
-
var
|
|
65702
|
+
var path44 = require("path");
|
|
65703
65703
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
65704
65704
|
var { fileURLToPath: fileURLToPath2 } = require("url");
|
|
65705
65705
|
var { MessageChannel } = require("worker_threads");
|
|
@@ -65754,8 +65754,8 @@ var require_import_in_the_middle = __commonJS({
|
|
|
65754
65754
|
function waitForAllMessagesAcknowledged() {
|
|
65755
65755
|
const timer = setInterval(() => {
|
|
65756
65756
|
}, 1e3);
|
|
65757
|
-
const promise = new Promise((
|
|
65758
|
-
resolveFn =
|
|
65757
|
+
const promise = new Promise((resolve24) => {
|
|
65758
|
+
resolveFn = resolve24;
|
|
65759
65759
|
}).then(() => {
|
|
65760
65760
|
clearInterval(timer);
|
|
65761
65761
|
});
|
|
@@ -65818,7 +65818,7 @@ var require_import_in_the_middle = __commonJS({
|
|
|
65818
65818
|
} else if (baseDir.endsWith(specifiers.get(loadUrl)) || isTurbopackSpecifier(specifiers.get(loadUrl), baseDir)) {
|
|
65819
65819
|
callHookFn(hookFn, namespace, name2, baseDir);
|
|
65820
65820
|
} else if (internals) {
|
|
65821
|
-
const internalPath = name2 +
|
|
65821
|
+
const internalPath = name2 + path44.sep + path44.relative(baseDir, filePath);
|
|
65822
65822
|
callHookFn(hookFn, namespace, internalPath, baseDir);
|
|
65823
65823
|
}
|
|
65824
65824
|
} else if (matchArg === specifier) {
|
|
@@ -65892,12 +65892,12 @@ function isSupported(supportedVersions, version3, includePrerelease) {
|
|
|
65892
65892
|
return satisfies(version3, supportedVersion, { includePrerelease });
|
|
65893
65893
|
});
|
|
65894
65894
|
}
|
|
65895
|
-
var
|
|
65895
|
+
var path35, import_util10, import_import_in_the_middle, import_require_in_the_middle2, import_fs3, InstrumentationBase;
|
|
65896
65896
|
var init_instrumentation2 = __esm({
|
|
65897
65897
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js"() {
|
|
65898
65898
|
"use strict";
|
|
65899
65899
|
init_cjs_shims();
|
|
65900
|
-
|
|
65900
|
+
path35 = __toESM(require("path"));
|
|
65901
65901
|
import_util10 = require("util");
|
|
65902
65902
|
init_semver2();
|
|
65903
65903
|
init_shimmer();
|
|
@@ -65998,7 +65998,7 @@ var init_instrumentation2 = __esm({
|
|
|
65998
65998
|
}
|
|
65999
65999
|
_extractPackageVersion(baseDir) {
|
|
66000
66000
|
try {
|
|
66001
|
-
const json = (0, import_fs3.readFileSync)(
|
|
66001
|
+
const json = (0, import_fs3.readFileSync)(path35.join(baseDir, "package.json"), {
|
|
66002
66002
|
encoding: "utf8"
|
|
66003
66003
|
});
|
|
66004
66004
|
const version3 = JSON.parse(json).version;
|
|
@@ -66040,7 +66040,7 @@ var init_instrumentation2 = __esm({
|
|
|
66040
66040
|
return exports2;
|
|
66041
66041
|
}
|
|
66042
66042
|
const files = module2.files ?? [];
|
|
66043
|
-
const normalizedName =
|
|
66043
|
+
const normalizedName = path35.normalize(name2);
|
|
66044
66044
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported(f.supportedVersions, version3, module2.includePrerelease));
|
|
66045
66045
|
return supportedFileInstrumentations.reduce((patchedExports, file) => {
|
|
66046
66046
|
file.moduleExports = patchedExports;
|
|
@@ -66086,8 +66086,8 @@ var init_instrumentation2 = __esm({
|
|
|
66086
66086
|
this._warnOnPreloadedModules();
|
|
66087
66087
|
for (const module2 of this._modules) {
|
|
66088
66088
|
const hookFn = (exports2, name2, baseDir) => {
|
|
66089
|
-
if (!baseDir &&
|
|
66090
|
-
const parsedPath =
|
|
66089
|
+
if (!baseDir && path35.isAbsolute(name2)) {
|
|
66090
|
+
const parsedPath = path35.parse(name2);
|
|
66091
66091
|
name2 = parsedPath.name;
|
|
66092
66092
|
baseDir = parsedPath.dir;
|
|
66093
66093
|
}
|
|
@@ -66096,7 +66096,7 @@ var init_instrumentation2 = __esm({
|
|
|
66096
66096
|
const onRequire = (exports2, name2, baseDir) => {
|
|
66097
66097
|
return this._onRequire(module2, exports2, name2, baseDir);
|
|
66098
66098
|
};
|
|
66099
|
-
const hook =
|
|
66099
|
+
const hook = path35.isAbsolute(module2.name) ? new import_require_in_the_middle2.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
|
|
66100
66100
|
this._hooks.push(hook);
|
|
66101
66101
|
const esmHook = new import_import_in_the_middle.Hook([module2.name], { internals: true }, hookFn);
|
|
66102
66102
|
this._hooks.push(esmHook);
|
|
@@ -68698,7 +68698,7 @@ var init_version5 = __esm({
|
|
|
68698
68698
|
|
|
68699
68699
|
// ../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/otlp-exporter-base/build/esm/transport/http-transport-utils.js
|
|
68700
68700
|
function sendWithHttp(request2, url3, headers, compression, userAgent, agent, data, timeoutMillis) {
|
|
68701
|
-
return new Promise((
|
|
68701
|
+
return new Promise((resolve24) => {
|
|
68702
68702
|
const parsedUrl = new URL(url3);
|
|
68703
68703
|
if (userAgent) {
|
|
68704
68704
|
headers["User-Agent"] = `${userAgent} ${DEFAULT_USER_AGENT}`;
|
|
@@ -68717,7 +68717,7 @@ function sendWithHttp(request2, url3, headers, compression, userAgent, agent, da
|
|
|
68717
68717
|
responseSize += chunk.length;
|
|
68718
68718
|
if (responseSize > MAX_RESPONSE_BODY_SIZE) {
|
|
68719
68719
|
const sizeError = new Error(`OTLP export response body exceeded size limit of ${MAX_RESPONSE_BODY_SIZE} bytes`);
|
|
68720
|
-
|
|
68720
|
+
resolve24({ status: "failure", error: sizeError });
|
|
68721
68721
|
res.destroy();
|
|
68722
68722
|
return;
|
|
68723
68723
|
}
|
|
@@ -68725,18 +68725,18 @@ function sendWithHttp(request2, url3, headers, compression, userAgent, agent, da
|
|
|
68725
68725
|
});
|
|
68726
68726
|
res.on("end", () => {
|
|
68727
68727
|
if (res.statusCode && res.statusCode <= 299) {
|
|
68728
|
-
|
|
68728
|
+
resolve24({
|
|
68729
68729
|
status: "success",
|
|
68730
68730
|
data: Buffer.concat(responseData)
|
|
68731
68731
|
});
|
|
68732
68732
|
} else if (res.statusCode && isExportHTTPErrorRetryable(res.statusCode)) {
|
|
68733
|
-
|
|
68733
|
+
resolve24({
|
|
68734
68734
|
status: "retryable",
|
|
68735
68735
|
retryInMillis: parseRetryAfterToMills(res.headers["retry-after"])
|
|
68736
68736
|
});
|
|
68737
68737
|
} else {
|
|
68738
68738
|
const error2 = new OTLPExporterError(res.statusMessage, res.statusCode, Buffer.concat(responseData).toString());
|
|
68739
|
-
|
|
68739
|
+
resolve24({
|
|
68740
68740
|
status: "failure",
|
|
68741
68741
|
error: error2
|
|
68742
68742
|
});
|
|
@@ -68744,17 +68744,17 @@ function sendWithHttp(request2, url3, headers, compression, userAgent, agent, da
|
|
|
68744
68744
|
});
|
|
68745
68745
|
res.on("error", (error2) => {
|
|
68746
68746
|
if (res.statusCode && res.statusCode <= 299) {
|
|
68747
|
-
|
|
68747
|
+
resolve24({
|
|
68748
68748
|
status: "success"
|
|
68749
68749
|
});
|
|
68750
68750
|
} else if (res.statusCode && isExportHTTPErrorRetryable(res.statusCode)) {
|
|
68751
|
-
|
|
68751
|
+
resolve24({
|
|
68752
68752
|
status: "retryable",
|
|
68753
68753
|
error: error2,
|
|
68754
68754
|
retryInMillis: parseRetryAfterToMills(res.headers["retry-after"])
|
|
68755
68755
|
});
|
|
68756
68756
|
} else {
|
|
68757
|
-
|
|
68757
|
+
resolve24({
|
|
68758
68758
|
status: "failure",
|
|
68759
68759
|
error: error2
|
|
68760
68760
|
});
|
|
@@ -68763,26 +68763,26 @@ function sendWithHttp(request2, url3, headers, compression, userAgent, agent, da
|
|
|
68763
68763
|
});
|
|
68764
68764
|
req.setTimeout(timeoutMillis, () => {
|
|
68765
68765
|
req.destroy();
|
|
68766
|
-
|
|
68766
|
+
resolve24({
|
|
68767
68767
|
status: "retryable",
|
|
68768
68768
|
error: new Error("Request timed out")
|
|
68769
68769
|
});
|
|
68770
68770
|
});
|
|
68771
68771
|
req.on("error", (error2) => {
|
|
68772
68772
|
if (isHttpTransportNetworkErrorRetryable(error2)) {
|
|
68773
|
-
|
|
68773
|
+
resolve24({
|
|
68774
68774
|
status: "retryable",
|
|
68775
68775
|
error: error2
|
|
68776
68776
|
});
|
|
68777
68777
|
} else {
|
|
68778
|
-
|
|
68778
|
+
resolve24({
|
|
68779
68779
|
status: "failure",
|
|
68780
68780
|
error: error2
|
|
68781
68781
|
});
|
|
68782
68782
|
}
|
|
68783
68783
|
});
|
|
68784
68784
|
compressAndSend(req, compression, data, (error2) => {
|
|
68785
|
-
|
|
68785
|
+
resolve24({
|
|
68786
68786
|
status: "failure",
|
|
68787
68787
|
error: error2
|
|
68788
68788
|
});
|
|
@@ -68902,9 +68902,9 @@ var init_retrying_transport = __esm({
|
|
|
68902
68902
|
this._transport = transport;
|
|
68903
68903
|
}
|
|
68904
68904
|
retry(data, timeoutMillis, inMillis) {
|
|
68905
|
-
return new Promise((
|
|
68905
|
+
return new Promise((resolve24, reject) => {
|
|
68906
68906
|
setTimeout(() => {
|
|
68907
|
-
this._transport.send(data, timeoutMillis).then(
|
|
68907
|
+
this._transport.send(data, timeoutMillis).then(resolve24, reject);
|
|
68908
68908
|
}, inMillis);
|
|
68909
68909
|
});
|
|
68910
68910
|
}
|
|
@@ -69027,7 +69027,7 @@ function appendRootPathToUrlIfNeeded(url3) {
|
|
|
69027
69027
|
return void 0;
|
|
69028
69028
|
}
|
|
69029
69029
|
}
|
|
69030
|
-
function appendResourcePathToUrl(url3,
|
|
69030
|
+
function appendResourcePathToUrl(url3, path44) {
|
|
69031
69031
|
try {
|
|
69032
69032
|
new URL(url3);
|
|
69033
69033
|
} catch {
|
|
@@ -69037,11 +69037,11 @@ function appendResourcePathToUrl(url3, path43) {
|
|
|
69037
69037
|
if (!url3.endsWith("/")) {
|
|
69038
69038
|
url3 = url3 + "/";
|
|
69039
69039
|
}
|
|
69040
|
-
url3 +=
|
|
69040
|
+
url3 += path44;
|
|
69041
69041
|
try {
|
|
69042
69042
|
new URL(url3);
|
|
69043
69043
|
} catch {
|
|
69044
|
-
diag2.warn(`Configuration: Provided URL appended with '${
|
|
69044
|
+
diag2.warn(`Configuration: Provided URL appended with '${path44}' is not a valid URL, using 'undefined' instead of '${url3}'`);
|
|
69045
69045
|
return void 0;
|
|
69046
69046
|
}
|
|
69047
69047
|
return url3;
|
|
@@ -69066,7 +69066,7 @@ function readFileFromEnv(signalSpecificEnvVar, nonSignalSpecificEnvVar, warningM
|
|
|
69066
69066
|
const filePath = signalSpecificPath ?? nonSignalSpecificPath;
|
|
69067
69067
|
if (filePath != null) {
|
|
69068
69068
|
try {
|
|
69069
|
-
return
|
|
69069
|
+
return fs34.readFileSync(path36.resolve(process.cwd(), filePath));
|
|
69070
69070
|
} catch {
|
|
69071
69071
|
diag2.warn(warningMessage);
|
|
69072
69072
|
return void 0;
|
|
@@ -69097,13 +69097,13 @@ function getNodeHttpConfigurationFromEnvironment(signalIdentifier, signalResourc
|
|
|
69097
69097
|
})
|
|
69098
69098
|
};
|
|
69099
69099
|
}
|
|
69100
|
-
var
|
|
69100
|
+
var fs34, path36;
|
|
69101
69101
|
var init_otlp_node_http_env_configuration = __esm({
|
|
69102
69102
|
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-node-http-env-configuration.js"() {
|
|
69103
69103
|
"use strict";
|
|
69104
69104
|
init_cjs_shims();
|
|
69105
|
-
|
|
69106
|
-
|
|
69105
|
+
fs34 = __toESM(require("fs"));
|
|
69106
|
+
path36 = __toESM(require("path"));
|
|
69107
69107
|
init_esm11();
|
|
69108
69108
|
init_esm8();
|
|
69109
69109
|
init_shared_env_configuration();
|
|
@@ -69795,7 +69795,7 @@ var require_call_credentials = __commonJS({
|
|
|
69795
69795
|
if (isCurrentOauth2Client(googleCredentials)) {
|
|
69796
69796
|
getHeaders = googleCredentials.getRequestHeaders(options.service_url);
|
|
69797
69797
|
} else {
|
|
69798
|
-
getHeaders = new Promise((
|
|
69798
|
+
getHeaders = new Promise((resolve24, reject) => {
|
|
69799
69799
|
googleCredentials.getRequestMetadata(options.service_url, (err, headers) => {
|
|
69800
69800
|
if (err) {
|
|
69801
69801
|
reject(err);
|
|
@@ -69805,7 +69805,7 @@ var require_call_credentials = __commonJS({
|
|
|
69805
69805
|
reject(new Error("Headers not set by metadata plugin"));
|
|
69806
69806
|
return;
|
|
69807
69807
|
}
|
|
69808
|
-
|
|
69808
|
+
resolve24(headers);
|
|
69809
69809
|
});
|
|
69810
69810
|
});
|
|
69811
69811
|
}
|
|
@@ -69858,10 +69858,10 @@ var require_call_credentials = __commonJS({
|
|
|
69858
69858
|
this.metadataGenerator = metadataGenerator;
|
|
69859
69859
|
}
|
|
69860
69860
|
generateMetadata(options) {
|
|
69861
|
-
return new Promise((
|
|
69861
|
+
return new Promise((resolve24, reject) => {
|
|
69862
69862
|
this.metadataGenerator(options, (err, metadata) => {
|
|
69863
69863
|
if (metadata !== void 0) {
|
|
69864
|
-
|
|
69864
|
+
resolve24(metadata);
|
|
69865
69865
|
} else {
|
|
69866
69866
|
reject(err);
|
|
69867
69867
|
}
|
|
@@ -69904,14 +69904,14 @@ var require_tls_helpers = __commonJS({
|
|
|
69904
69904
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69905
69905
|
exports2.CIPHER_SUITES = void 0;
|
|
69906
69906
|
exports2.getDefaultRootsData = getDefaultRootsData;
|
|
69907
|
-
var
|
|
69907
|
+
var fs41 = require("fs");
|
|
69908
69908
|
exports2.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
|
|
69909
69909
|
var DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
|
|
69910
69910
|
var defaultRootsData = null;
|
|
69911
69911
|
function getDefaultRootsData() {
|
|
69912
69912
|
if (DEFAULT_ROOTS_FILE_PATH) {
|
|
69913
69913
|
if (defaultRootsData === null) {
|
|
69914
|
-
defaultRootsData =
|
|
69914
|
+
defaultRootsData = fs41.readFileSync(DEFAULT_ROOTS_FILE_PATH);
|
|
69915
69915
|
}
|
|
69916
69916
|
return defaultRootsData;
|
|
69917
69917
|
}
|
|
@@ -69943,19 +69943,19 @@ var require_uri_parser = __commonJS({
|
|
|
69943
69943
|
};
|
|
69944
69944
|
}
|
|
69945
69945
|
var NUMBER_REGEX = /^\d+$/;
|
|
69946
|
-
function splitHostPort(
|
|
69947
|
-
if (
|
|
69948
|
-
const hostEnd =
|
|
69946
|
+
function splitHostPort(path44) {
|
|
69947
|
+
if (path44.startsWith("[")) {
|
|
69948
|
+
const hostEnd = path44.indexOf("]");
|
|
69949
69949
|
if (hostEnd === -1) {
|
|
69950
69950
|
return null;
|
|
69951
69951
|
}
|
|
69952
|
-
const host =
|
|
69952
|
+
const host = path44.substring(1, hostEnd);
|
|
69953
69953
|
if (host.indexOf(":") === -1) {
|
|
69954
69954
|
return null;
|
|
69955
69955
|
}
|
|
69956
|
-
if (
|
|
69957
|
-
if (
|
|
69958
|
-
const portString =
|
|
69956
|
+
if (path44.length > hostEnd + 1) {
|
|
69957
|
+
if (path44[hostEnd + 1] === ":") {
|
|
69958
|
+
const portString = path44.substring(hostEnd + 2);
|
|
69959
69959
|
if (NUMBER_REGEX.test(portString)) {
|
|
69960
69960
|
return {
|
|
69961
69961
|
host,
|
|
@@ -69973,7 +69973,7 @@ var require_uri_parser = __commonJS({
|
|
|
69973
69973
|
};
|
|
69974
69974
|
}
|
|
69975
69975
|
} else {
|
|
69976
|
-
const splitPath =
|
|
69976
|
+
const splitPath = path44.split(":");
|
|
69977
69977
|
if (splitPath.length === 2) {
|
|
69978
69978
|
if (NUMBER_REGEX.test(splitPath[1])) {
|
|
69979
69979
|
return {
|
|
@@ -69985,7 +69985,7 @@ var require_uri_parser = __commonJS({
|
|
|
69985
69985
|
}
|
|
69986
69986
|
} else {
|
|
69987
69987
|
return {
|
|
69988
|
-
host:
|
|
69988
|
+
host: path44
|
|
69989
69989
|
};
|
|
69990
69990
|
}
|
|
69991
69991
|
}
|
|
@@ -70224,14 +70224,14 @@ var require_channel_credentials = __commonJS({
|
|
|
70224
70224
|
}
|
|
70225
70225
|
connect(socket) {
|
|
70226
70226
|
const tlsConnectOptions = Object.assign({ socket }, this.connectionOptions);
|
|
70227
|
-
return new Promise((
|
|
70227
|
+
return new Promise((resolve24, reject) => {
|
|
70228
70228
|
const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => {
|
|
70229
70229
|
var _a;
|
|
70230
70230
|
if (((_a = this.connectionOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) {
|
|
70231
70231
|
reject(tlsSocket.authorizationError);
|
|
70232
70232
|
return;
|
|
70233
70233
|
}
|
|
70234
|
-
|
|
70234
|
+
resolve24({
|
|
70235
70235
|
socket: tlsSocket,
|
|
70236
70236
|
secure: true
|
|
70237
70237
|
});
|
|
@@ -70350,8 +70350,8 @@ var require_channel_credentials = __commonJS({
|
|
|
70350
70350
|
if (this.hasReceivedUpdates()) {
|
|
70351
70351
|
return Promise.resolve(this.getLatestSecureContext());
|
|
70352
70352
|
} else {
|
|
70353
|
-
return new Promise((
|
|
70354
|
-
this.secureContextWatchers.push(
|
|
70353
|
+
return new Promise((resolve24) => {
|
|
70354
|
+
this.secureContextWatchers.push(resolve24);
|
|
70355
70355
|
});
|
|
70356
70356
|
}
|
|
70357
70357
|
}
|
|
@@ -70384,7 +70384,7 @@ var require_channel_credentials = __commonJS({
|
|
|
70384
70384
|
this.callCredentials = callCredentials;
|
|
70385
70385
|
}
|
|
70386
70386
|
connect(socket) {
|
|
70387
|
-
return new Promise((
|
|
70387
|
+
return new Promise((resolve24, reject) => {
|
|
70388
70388
|
const secureContext = this.parent.getLatestSecureContext();
|
|
70389
70389
|
if (!secureContext) {
|
|
70390
70390
|
reject(new Error("Failed to load credentials"));
|
|
@@ -70409,7 +70409,7 @@ var require_channel_credentials = __commonJS({
|
|
|
70409
70409
|
reject(tlsSocket.authorizationError);
|
|
70410
70410
|
return;
|
|
70411
70411
|
}
|
|
70412
|
-
|
|
70412
|
+
resolve24({
|
|
70413
70413
|
socket: tlsSocket,
|
|
70414
70414
|
secure: true
|
|
70415
70415
|
});
|
|
@@ -73170,14 +73170,14 @@ var require_client_interceptors = __commonJS({
|
|
|
73170
73170
|
}
|
|
73171
73171
|
};
|
|
73172
73172
|
exports2.InterceptingCall = InterceptingCall;
|
|
73173
|
-
function getCall(channel,
|
|
73173
|
+
function getCall(channel, path44, options) {
|
|
73174
73174
|
var _a, _b;
|
|
73175
73175
|
const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : Infinity;
|
|
73176
73176
|
const host = options.host;
|
|
73177
73177
|
const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null;
|
|
73178
73178
|
const propagateFlags = options.propagate_flags;
|
|
73179
73179
|
const credentials = options.credentials;
|
|
73180
|
-
const call = channel.createCall(
|
|
73180
|
+
const call = channel.createCall(path44, deadline, host, parent, propagateFlags);
|
|
73181
73181
|
if (credentials) {
|
|
73182
73182
|
call.setCredentials(credentials);
|
|
73183
73183
|
}
|
|
@@ -73749,9 +73749,9 @@ var require_make_client = __commonJS({
|
|
|
73749
73749
|
ServiceClientImpl.serviceName = serviceName3;
|
|
73750
73750
|
return ServiceClientImpl;
|
|
73751
73751
|
}
|
|
73752
|
-
function partial2(fn,
|
|
73752
|
+
function partial2(fn, path44, serialize, deserialize) {
|
|
73753
73753
|
return function(...args) {
|
|
73754
|
-
return fn.call(this,
|
|
73754
|
+
return fn.call(this, path44, serialize, deserialize, ...args);
|
|
73755
73755
|
};
|
|
73756
73756
|
}
|
|
73757
73757
|
function isProtobufTypeDefinition(obj) {
|
|
@@ -74173,7 +74173,7 @@ var require_aspromise = __commonJS({
|
|
|
74173
74173
|
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
74174
74174
|
while (index < arguments.length)
|
|
74175
74175
|
params[offset++] = arguments[index++];
|
|
74176
|
-
return new Promise(function executor(
|
|
74176
|
+
return new Promise(function executor(resolve24, reject) {
|
|
74177
74177
|
params[offset] = function callback(err) {
|
|
74178
74178
|
if (pending) {
|
|
74179
74179
|
pending = false;
|
|
@@ -74183,7 +74183,7 @@ var require_aspromise = __commonJS({
|
|
|
74183
74183
|
var params2 = new Array(arguments.length - 1), offset2 = 0;
|
|
74184
74184
|
while (offset2 < params2.length)
|
|
74185
74185
|
params2[offset2++] = arguments[offset2];
|
|
74186
|
-
|
|
74186
|
+
resolve24.apply(null, params2);
|
|
74187
74187
|
}
|
|
74188
74188
|
}
|
|
74189
74189
|
};
|
|
@@ -76630,17 +76630,17 @@ var require_fs = __commonJS({
|
|
|
76630
76630
|
"../../node_modules/.pnpm/@protobufjs+fetch@1.1.1/node_modules/@protobufjs/fetch/util/fs.js"(exports2, module2) {
|
|
76631
76631
|
"use strict";
|
|
76632
76632
|
init_cjs_shims();
|
|
76633
|
-
var
|
|
76633
|
+
var fs41 = null;
|
|
76634
76634
|
try {
|
|
76635
|
-
|
|
76635
|
+
fs41 = require(
|
|
76636
76636
|
/* webpackIgnore: true */
|
|
76637
76637
|
"fs"
|
|
76638
76638
|
);
|
|
76639
|
-
if (!
|
|
76640
|
-
|
|
76639
|
+
if (!fs41 || !fs41.readFile || !fs41.readFileSync)
|
|
76640
|
+
fs41 = null;
|
|
76641
76641
|
} catch (e) {
|
|
76642
76642
|
}
|
|
76643
|
-
module2.exports =
|
|
76643
|
+
module2.exports = fs41;
|
|
76644
76644
|
}
|
|
76645
76645
|
});
|
|
76646
76646
|
|
|
@@ -76651,7 +76651,7 @@ var require_fetch = __commonJS({
|
|
|
76651
76651
|
init_cjs_shims();
|
|
76652
76652
|
module2.exports = fetch2;
|
|
76653
76653
|
var asPromise = require_aspromise();
|
|
76654
|
-
var
|
|
76654
|
+
var fs41 = require_fs();
|
|
76655
76655
|
function fetch2(filename, options, callback) {
|
|
76656
76656
|
if (typeof options === "function") {
|
|
76657
76657
|
callback = options;
|
|
@@ -76660,8 +76660,8 @@ var require_fetch = __commonJS({
|
|
|
76660
76660
|
options = {};
|
|
76661
76661
|
if (!callback)
|
|
76662
76662
|
return asPromise(fetch2, this, filename, options);
|
|
76663
|
-
if (!options.xhr &&
|
|
76664
|
-
return
|
|
76663
|
+
if (!options.xhr && fs41 && fs41.readFile)
|
|
76664
|
+
return fs41.readFile(filename, function fetchReadFileCallback(err, contents) {
|
|
76665
76665
|
return err && typeof XMLHttpRequest !== "undefined" ? fetch2.xhr(filename, options, callback) : err ? callback(err) : callback(null, options.binary ? contents : contents.toString("utf8"));
|
|
76666
76666
|
});
|
|
76667
76667
|
return fetch2.xhr(filename, options, callback);
|
|
@@ -76700,15 +76700,15 @@ var require_path = __commonJS({
|
|
|
76700
76700
|
"../../node_modules/.pnpm/@protobufjs+path@1.1.2/node_modules/@protobufjs/path/index.js"(exports2) {
|
|
76701
76701
|
"use strict";
|
|
76702
76702
|
init_cjs_shims();
|
|
76703
|
-
var
|
|
76704
|
-
var
|
|
76703
|
+
var path44 = exports2;
|
|
76704
|
+
var isAbsolute13 = (
|
|
76705
76705
|
/**
|
|
76706
76706
|
* Tests if the specified path is absolute.
|
|
76707
76707
|
* @param {string} path Path to test
|
|
76708
76708
|
* @returns {boolean} `true` if path is absolute
|
|
76709
76709
|
*/
|
|
76710
|
-
|
|
76711
|
-
return /^(?:\/|\w+:)/.test(
|
|
76710
|
+
path44.isAbsolute = function isAbsolute14(path45) {
|
|
76711
|
+
return /^(?:\/|\w+:)/.test(path45);
|
|
76712
76712
|
}
|
|
76713
76713
|
);
|
|
76714
76714
|
var normalize7 = (
|
|
@@ -76717,9 +76717,9 @@ var require_path = __commonJS({
|
|
|
76717
76717
|
* @param {string} path Path to normalize
|
|
76718
76718
|
* @returns {string} Normalized path
|
|
76719
76719
|
*/
|
|
76720
|
-
|
|
76721
|
-
|
|
76722
|
-
var parts =
|
|
76720
|
+
path44.normalize = function normalize8(path45) {
|
|
76721
|
+
path45 = path45.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
|
|
76722
|
+
var parts = path45.split("/"), absolute = isAbsolute13(path45), prefix = "";
|
|
76723
76723
|
if (absolute)
|
|
76724
76724
|
prefix = parts.shift() + "/";
|
|
76725
76725
|
for (var i = 0; i < parts.length; ) {
|
|
@@ -76738,10 +76738,10 @@ var require_path = __commonJS({
|
|
|
76738
76738
|
return prefix + parts.join("/");
|
|
76739
76739
|
}
|
|
76740
76740
|
);
|
|
76741
|
-
|
|
76741
|
+
path44.resolve = function resolve24(originPath, includePath, alreadyNormalized) {
|
|
76742
76742
|
if (!alreadyNormalized)
|
|
76743
76743
|
includePath = normalize7(includePath);
|
|
76744
|
-
if (
|
|
76744
|
+
if (isAbsolute13(includePath))
|
|
76745
76745
|
return includePath;
|
|
76746
76746
|
if (!alreadyNormalized)
|
|
76747
76747
|
originPath = normalize7(originPath);
|
|
@@ -76767,17 +76767,17 @@ var require_fs2 = __commonJS({
|
|
|
76767
76767
|
"../../node_modules/.pnpm/protobufjs@7.6.4/node_modules/protobufjs/src/util/fs.js"(exports2, module2) {
|
|
76768
76768
|
"use strict";
|
|
76769
76769
|
init_cjs_shims();
|
|
76770
|
-
var
|
|
76770
|
+
var fs41 = null;
|
|
76771
76771
|
try {
|
|
76772
|
-
|
|
76772
|
+
fs41 = require(
|
|
76773
76773
|
/* webpackIgnore: true */
|
|
76774
76774
|
"fs"
|
|
76775
76775
|
);
|
|
76776
|
-
if (!
|
|
76777
|
-
|
|
76776
|
+
if (!fs41 || !fs41.readFile || !fs41.readFileSync)
|
|
76777
|
+
fs41 = null;
|
|
76778
76778
|
} catch (e) {
|
|
76779
76779
|
}
|
|
76780
|
-
module2.exports =
|
|
76780
|
+
module2.exports = fs41;
|
|
76781
76781
|
}
|
|
76782
76782
|
});
|
|
76783
76783
|
|
|
@@ -76925,18 +76925,18 @@ var require_namespace = __commonJS({
|
|
|
76925
76925
|
object3.onRemove(this);
|
|
76926
76926
|
return clearCache(this);
|
|
76927
76927
|
};
|
|
76928
|
-
Namespace.prototype.define = function define2(
|
|
76929
|
-
if (util5.isString(
|
|
76930
|
-
|
|
76931
|
-
else if (!Array.isArray(
|
|
76928
|
+
Namespace.prototype.define = function define2(path44, json) {
|
|
76929
|
+
if (util5.isString(path44))
|
|
76930
|
+
path44 = path44.split(".");
|
|
76931
|
+
else if (!Array.isArray(path44))
|
|
76932
76932
|
throw TypeError("illegal path");
|
|
76933
|
-
if (
|
|
76933
|
+
if (path44 && path44.length && path44[0] === "")
|
|
76934
76934
|
throw Error("path must be relative");
|
|
76935
|
-
if (
|
|
76935
|
+
if (path44.length > util5.recursionLimit)
|
|
76936
76936
|
throw Error("max depth exceeded");
|
|
76937
76937
|
var ptr = this;
|
|
76938
|
-
while (
|
|
76939
|
-
var part =
|
|
76938
|
+
while (path44.length > 0) {
|
|
76939
|
+
var part = path44.shift();
|
|
76940
76940
|
if (ptr.nested && ptr.nested[part]) {
|
|
76941
76941
|
ptr = ptr.nested[part];
|
|
76942
76942
|
if (!(ptr instanceof Namespace))
|
|
@@ -76971,26 +76971,26 @@ var require_namespace = __commonJS({
|
|
|
76971
76971
|
});
|
|
76972
76972
|
return this;
|
|
76973
76973
|
};
|
|
76974
|
-
Namespace.prototype.lookup = function lookup(
|
|
76974
|
+
Namespace.prototype.lookup = function lookup(path44, filterTypes, parentAlreadyChecked) {
|
|
76975
76975
|
if (typeof filterTypes === "boolean") {
|
|
76976
76976
|
parentAlreadyChecked = filterTypes;
|
|
76977
76977
|
filterTypes = void 0;
|
|
76978
76978
|
} else if (filterTypes && !Array.isArray(filterTypes))
|
|
76979
76979
|
filterTypes = [filterTypes];
|
|
76980
|
-
if (util5.isString(
|
|
76981
|
-
if (
|
|
76980
|
+
if (util5.isString(path44) && path44.length) {
|
|
76981
|
+
if (path44 === ".")
|
|
76982
76982
|
return this.root;
|
|
76983
|
-
|
|
76984
|
-
} else if (!
|
|
76983
|
+
path44 = path44.split(".");
|
|
76984
|
+
} else if (!path44.length)
|
|
76985
76985
|
return this;
|
|
76986
|
-
var flatPath =
|
|
76987
|
-
if (
|
|
76988
|
-
return this.root.lookup(
|
|
76986
|
+
var flatPath = path44.join(".");
|
|
76987
|
+
if (path44[0] === "")
|
|
76988
|
+
return this.root.lookup(path44.slice(1), filterTypes);
|
|
76989
76989
|
var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
|
|
76990
76990
|
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
|
|
76991
76991
|
return found;
|
|
76992
76992
|
}
|
|
76993
|
-
found = this._lookupImpl(
|
|
76993
|
+
found = this._lookupImpl(path44, flatPath);
|
|
76994
76994
|
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
|
|
76995
76995
|
return found;
|
|
76996
76996
|
}
|
|
@@ -76998,7 +76998,7 @@ var require_namespace = __commonJS({
|
|
|
76998
76998
|
return null;
|
|
76999
76999
|
var current = this;
|
|
77000
77000
|
while (current.parent) {
|
|
77001
|
-
found = current.parent._lookupImpl(
|
|
77001
|
+
found = current.parent._lookupImpl(path44, flatPath);
|
|
77002
77002
|
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
|
|
77003
77003
|
return found;
|
|
77004
77004
|
}
|
|
@@ -77006,22 +77006,22 @@ var require_namespace = __commonJS({
|
|
|
77006
77006
|
}
|
|
77007
77007
|
return null;
|
|
77008
77008
|
};
|
|
77009
|
-
Namespace.prototype._lookupImpl = function lookup(
|
|
77009
|
+
Namespace.prototype._lookupImpl = function lookup(path44, flatPath) {
|
|
77010
77010
|
if (Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) {
|
|
77011
77011
|
return this._lookupCache[flatPath];
|
|
77012
77012
|
}
|
|
77013
|
-
var found = this.get(
|
|
77013
|
+
var found = this.get(path44[0]);
|
|
77014
77014
|
var exact = null;
|
|
77015
77015
|
if (found) {
|
|
77016
|
-
if (
|
|
77016
|
+
if (path44.length === 1) {
|
|
77017
77017
|
exact = found;
|
|
77018
77018
|
} else if (found instanceof Namespace) {
|
|
77019
|
-
|
|
77020
|
-
exact = found._lookupImpl(
|
|
77019
|
+
path44 = path44.slice(1);
|
|
77020
|
+
exact = found._lookupImpl(path44, path44.join("."));
|
|
77021
77021
|
}
|
|
77022
77022
|
} else {
|
|
77023
77023
|
for (var i = 0; i < this.nestedArray.length; ++i)
|
|
77024
|
-
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(
|
|
77024
|
+
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path44, flatPath))) {
|
|
77025
77025
|
exact = found;
|
|
77026
77026
|
break;
|
|
77027
77027
|
}
|
|
@@ -77029,28 +77029,28 @@ var require_namespace = __commonJS({
|
|
|
77029
77029
|
this._lookupCache[flatPath] = exact;
|
|
77030
77030
|
return exact;
|
|
77031
77031
|
};
|
|
77032
|
-
Namespace.prototype.lookupType = function lookupType(
|
|
77033
|
-
var found = this.lookup(
|
|
77032
|
+
Namespace.prototype.lookupType = function lookupType(path44) {
|
|
77033
|
+
var found = this.lookup(path44, [Type]);
|
|
77034
77034
|
if (!found)
|
|
77035
|
-
throw Error("no such type: " +
|
|
77035
|
+
throw Error("no such type: " + path44);
|
|
77036
77036
|
return found;
|
|
77037
77037
|
};
|
|
77038
|
-
Namespace.prototype.lookupEnum = function lookupEnum(
|
|
77039
|
-
var found = this.lookup(
|
|
77038
|
+
Namespace.prototype.lookupEnum = function lookupEnum(path44) {
|
|
77039
|
+
var found = this.lookup(path44, [Enum]);
|
|
77040
77040
|
if (!found)
|
|
77041
|
-
throw Error("no such Enum '" +
|
|
77041
|
+
throw Error("no such Enum '" + path44 + "' in " + this);
|
|
77042
77042
|
return found;
|
|
77043
77043
|
};
|
|
77044
|
-
Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(
|
|
77045
|
-
var found = this.lookup(
|
|
77044
|
+
Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path44) {
|
|
77045
|
+
var found = this.lookup(path44, [Type, Enum]);
|
|
77046
77046
|
if (!found)
|
|
77047
|
-
throw Error("no such Type or Enum '" +
|
|
77047
|
+
throw Error("no such Type or Enum '" + path44 + "' in " + this);
|
|
77048
77048
|
return found;
|
|
77049
77049
|
};
|
|
77050
|
-
Namespace.prototype.lookupService = function lookupService(
|
|
77051
|
-
var found = this.lookup(
|
|
77050
|
+
Namespace.prototype.lookupService = function lookupService(path44) {
|
|
77051
|
+
var found = this.lookup(path44, [Service]);
|
|
77052
77052
|
if (!found)
|
|
77053
|
-
throw Error("no such Service '" +
|
|
77053
|
+
throw Error("no such Service '" + path44 + "' in " + this);
|
|
77054
77054
|
return found;
|
|
77055
77055
|
};
|
|
77056
77056
|
Namespace._configure = function(Type_, Service_, Enum_) {
|
|
@@ -77099,7 +77099,7 @@ var require_mapfield = __commonJS({
|
|
|
77099
77099
|
keepComments ? this.comment : void 0
|
|
77100
77100
|
]);
|
|
77101
77101
|
};
|
|
77102
|
-
MapField.prototype.resolve = function
|
|
77102
|
+
MapField.prototype.resolve = function resolve24() {
|
|
77103
77103
|
if (this.resolved)
|
|
77104
77104
|
return this;
|
|
77105
77105
|
if (types.mapKey[this.keyType] === void 0)
|
|
@@ -77177,7 +77177,7 @@ var require_method = __commonJS({
|
|
|
77177
77177
|
this.parsedOptions
|
|
77178
77178
|
]);
|
|
77179
77179
|
};
|
|
77180
|
-
Method.prototype.resolve = function
|
|
77180
|
+
Method.prototype.resolve = function resolve24() {
|
|
77181
77181
|
if (this.resolved)
|
|
77182
77182
|
return this;
|
|
77183
77183
|
this.resolvedRequestType = this.parent.lookupType(this.requestType);
|
|
@@ -78473,13 +78473,13 @@ var require_util2 = __commonJS({
|
|
|
78473
78473
|
Object.defineProperty(object3, "$type", { value: enm, enumerable: false });
|
|
78474
78474
|
return enm;
|
|
78475
78475
|
};
|
|
78476
|
-
util5.setProperty = function setProperty(dst,
|
|
78477
|
-
function setProp(dst2,
|
|
78478
|
-
var part =
|
|
78476
|
+
util5.setProperty = function setProperty(dst, path44, value, ifNotSet) {
|
|
78477
|
+
function setProp(dst2, path45, value2) {
|
|
78478
|
+
var part = path45.shift();
|
|
78479
78479
|
if (util5.isUnsafeProperty(part))
|
|
78480
78480
|
return dst2;
|
|
78481
|
-
if (
|
|
78482
|
-
dst2[part] = setProp(dst2[part] || {},
|
|
78481
|
+
if (path45.length > 0) {
|
|
78482
|
+
dst2[part] = setProp(dst2[part] || {}, path45, value2);
|
|
78483
78483
|
} else {
|
|
78484
78484
|
var prevValue = dst2[part];
|
|
78485
78485
|
if (prevValue && ifNotSet)
|
|
@@ -78492,12 +78492,12 @@ var require_util2 = __commonJS({
|
|
|
78492
78492
|
}
|
|
78493
78493
|
if (typeof dst !== "object")
|
|
78494
78494
|
throw TypeError("dst must be an object");
|
|
78495
|
-
if (!
|
|
78495
|
+
if (!path44)
|
|
78496
78496
|
throw TypeError("path must be specified");
|
|
78497
|
-
|
|
78498
|
-
if (
|
|
78497
|
+
path44 = path44.split(".");
|
|
78498
|
+
if (path44.length > util5.recursionLimit)
|
|
78499
78499
|
throw Error("max depth exceeded");
|
|
78500
|
-
return setProp(dst,
|
|
78500
|
+
return setProp(dst, path44, value);
|
|
78501
78501
|
};
|
|
78502
78502
|
Object.defineProperty(util5, "decorateRoot", {
|
|
78503
78503
|
get: function() {
|
|
@@ -78801,7 +78801,7 @@ var require_field = __commonJS({
|
|
|
78801
78801
|
keepComments ? this.comment : void 0
|
|
78802
78802
|
]);
|
|
78803
78803
|
};
|
|
78804
|
-
Field.prototype.resolve = function
|
|
78804
|
+
Field.prototype.resolve = function resolve24() {
|
|
78805
78805
|
if (this.resolved)
|
|
78806
78806
|
return this;
|
|
78807
78807
|
if ((this.typeDefault = types.defaults[this.type]) === void 0) {
|
|
@@ -79047,12 +79047,12 @@ var require_object = __commonJS({
|
|
|
79047
79047
|
*/
|
|
79048
79048
|
fullName: {
|
|
79049
79049
|
get: function() {
|
|
79050
|
-
var
|
|
79050
|
+
var path44 = [this.name], ptr = this.parent;
|
|
79051
79051
|
while (ptr) {
|
|
79052
|
-
|
|
79052
|
+
path44.unshift(ptr.name);
|
|
79053
79053
|
ptr = ptr.parent;
|
|
79054
79054
|
}
|
|
79055
|
-
return
|
|
79055
|
+
return path44.join(".");
|
|
79056
79056
|
}
|
|
79057
79057
|
}
|
|
79058
79058
|
});
|
|
@@ -79076,7 +79076,7 @@ var require_object = __commonJS({
|
|
|
79076
79076
|
this.parent = null;
|
|
79077
79077
|
this.resolved = false;
|
|
79078
79078
|
};
|
|
79079
|
-
ReflectionObject.prototype.resolve = function
|
|
79079
|
+
ReflectionObject.prototype.resolve = function resolve24() {
|
|
79080
79080
|
if (this.resolved)
|
|
79081
79081
|
return this;
|
|
79082
79082
|
if (this.root instanceof Root)
|
|
@@ -83096,19 +83096,19 @@ var require_util3 = __commonJS({
|
|
|
83096
83096
|
init_cjs_shims();
|
|
83097
83097
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
83098
83098
|
exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
|
|
83099
|
-
var
|
|
83100
|
-
var
|
|
83099
|
+
var fs41 = require("fs");
|
|
83100
|
+
var path44 = require("path");
|
|
83101
83101
|
var Protobuf = require_protobufjs();
|
|
83102
83102
|
function addIncludePathResolver(root, includePaths) {
|
|
83103
83103
|
const originalResolvePath = root.resolvePath;
|
|
83104
83104
|
root.resolvePath = (origin, target) => {
|
|
83105
|
-
if (
|
|
83105
|
+
if (path44.isAbsolute(target)) {
|
|
83106
83106
|
return target;
|
|
83107
83107
|
}
|
|
83108
83108
|
for (const directory of includePaths) {
|
|
83109
|
-
const fullPath =
|
|
83109
|
+
const fullPath = path44.join(directory, target);
|
|
83110
83110
|
try {
|
|
83111
|
-
|
|
83111
|
+
fs41.accessSync(fullPath, fs41.constants.R_OK);
|
|
83112
83112
|
return fullPath;
|
|
83113
83113
|
} catch (err) {
|
|
83114
83114
|
continue;
|
|
@@ -84060,18 +84060,18 @@ var require_compression_filter = __commonJS({
|
|
|
84060
84060
|
this.maxRecvMessageLength = maxRecvMessageLength;
|
|
84061
84061
|
}
|
|
84062
84062
|
compressMessage(message) {
|
|
84063
|
-
return new Promise((
|
|
84063
|
+
return new Promise((resolve24, reject) => {
|
|
84064
84064
|
zlib5.deflate(message, (err, output) => {
|
|
84065
84065
|
if (err) {
|
|
84066
84066
|
reject(err);
|
|
84067
84067
|
} else {
|
|
84068
|
-
|
|
84068
|
+
resolve24(output);
|
|
84069
84069
|
}
|
|
84070
84070
|
});
|
|
84071
84071
|
});
|
|
84072
84072
|
}
|
|
84073
84073
|
decompressMessage(message) {
|
|
84074
|
-
return new Promise((
|
|
84074
|
+
return new Promise((resolve24, reject) => {
|
|
84075
84075
|
let totalLength = 0;
|
|
84076
84076
|
const messageParts = [];
|
|
84077
84077
|
const decompresser = zlib5.createInflate();
|
|
@@ -84093,7 +84093,7 @@ var require_compression_filter = __commonJS({
|
|
|
84093
84093
|
}
|
|
84094
84094
|
});
|
|
84095
84095
|
decompresser.on("end", () => {
|
|
84096
|
-
|
|
84096
|
+
resolve24(Buffer.concat(messageParts));
|
|
84097
84097
|
});
|
|
84098
84098
|
decompresser.write(message);
|
|
84099
84099
|
decompresser.end();
|
|
@@ -84106,18 +84106,18 @@ var require_compression_filter = __commonJS({
|
|
|
84106
84106
|
this.maxRecvMessageLength = maxRecvMessageLength;
|
|
84107
84107
|
}
|
|
84108
84108
|
compressMessage(message) {
|
|
84109
|
-
return new Promise((
|
|
84109
|
+
return new Promise((resolve24, reject) => {
|
|
84110
84110
|
zlib5.gzip(message, (err, output) => {
|
|
84111
84111
|
if (err) {
|
|
84112
84112
|
reject(err);
|
|
84113
84113
|
} else {
|
|
84114
|
-
|
|
84114
|
+
resolve24(output);
|
|
84115
84115
|
}
|
|
84116
84116
|
});
|
|
84117
84117
|
});
|
|
84118
84118
|
}
|
|
84119
84119
|
decompressMessage(message) {
|
|
84120
|
-
return new Promise((
|
|
84120
|
+
return new Promise((resolve24, reject) => {
|
|
84121
84121
|
let totalLength = 0;
|
|
84122
84122
|
const messageParts = [];
|
|
84123
84123
|
const decompresser = zlib5.createGunzip();
|
|
@@ -84139,7 +84139,7 @@ var require_compression_filter = __commonJS({
|
|
|
84139
84139
|
}
|
|
84140
84140
|
});
|
|
84141
84141
|
decompresser.on("end", () => {
|
|
84142
|
-
|
|
84142
|
+
resolve24(Buffer.concat(messageParts));
|
|
84143
84143
|
});
|
|
84144
84144
|
decompresser.write(message);
|
|
84145
84145
|
decompresser.end();
|
|
@@ -85482,7 +85482,7 @@ var require_http_proxy = __commonJS({
|
|
|
85482
85482
|
options.headers = headers;
|
|
85483
85483
|
const proxyAddressString = (0, subchannel_address_1.subchannelAddressToString)(address);
|
|
85484
85484
|
trace2("Using proxy " + proxyAddressString + " to connect to " + options.path);
|
|
85485
|
-
return new Promise((
|
|
85485
|
+
return new Promise((resolve24, reject) => {
|
|
85486
85486
|
const request2 = http6.request(options);
|
|
85487
85487
|
request2.once("connect", (res, socket, head) => {
|
|
85488
85488
|
request2.removeAllListeners();
|
|
@@ -85493,7 +85493,7 @@ var require_http_proxy = __commonJS({
|
|
|
85493
85493
|
socket.unshift(head);
|
|
85494
85494
|
}
|
|
85495
85495
|
trace2("Successfully established a plaintext connection to " + options.path + " through proxy " + proxyAddressString);
|
|
85496
|
-
|
|
85496
|
+
resolve24(socket);
|
|
85497
85497
|
} else {
|
|
85498
85498
|
(0, logging_1.log)(constants_1.LogVerbosity.ERROR, "Failed to connect to " + options.path + " through proxy " + proxyAddressString + " with status " + res.statusCode);
|
|
85499
85499
|
reject();
|
|
@@ -86396,7 +86396,7 @@ var require_transport = __commonJS({
|
|
|
86396
86396
|
if (secureConnectResult.socket.closed) {
|
|
86397
86397
|
return Promise.reject("Connection closed before starting HTTP/2 handshake");
|
|
86398
86398
|
}
|
|
86399
|
-
return new Promise((
|
|
86399
|
+
return new Promise((resolve24, reject) => {
|
|
86400
86400
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
86401
86401
|
let remoteName = null;
|
|
86402
86402
|
let realTarget = this.channelTarget;
|
|
@@ -86465,7 +86465,7 @@ var require_transport = __commonJS({
|
|
|
86465
86465
|
session.removeAllListeners();
|
|
86466
86466
|
secureConnectResult.socket.removeListener("close", closeHandler);
|
|
86467
86467
|
secureConnectResult.socket.removeListener("error", errorHandler);
|
|
86468
|
-
|
|
86468
|
+
resolve24(new Http2Transport(session, address, options, remoteName));
|
|
86469
86469
|
this.session = null;
|
|
86470
86470
|
});
|
|
86471
86471
|
session.once("close", closeHandler);
|
|
@@ -86479,7 +86479,7 @@ var require_transport = __commonJS({
|
|
|
86479
86479
|
if (proxiedSocket) {
|
|
86480
86480
|
return proxiedSocket;
|
|
86481
86481
|
} else {
|
|
86482
|
-
return new Promise((
|
|
86482
|
+
return new Promise((resolve24, reject) => {
|
|
86483
86483
|
const closeCallback = () => {
|
|
86484
86484
|
reject(new Error("Socket closed"));
|
|
86485
86485
|
};
|
|
@@ -86489,7 +86489,7 @@ var require_transport = __commonJS({
|
|
|
86489
86489
|
const socket = net.connect(address, () => {
|
|
86490
86490
|
socket.removeListener("close", closeCallback);
|
|
86491
86491
|
socket.removeListener("error", errorCallback);
|
|
86492
|
-
|
|
86492
|
+
resolve24(socket);
|
|
86493
86493
|
});
|
|
86494
86494
|
socket.once("close", closeCallback);
|
|
86495
86495
|
socket.once("error", errorCallback);
|
|
@@ -88488,9 +88488,9 @@ var require_server_call = __commonJS({
|
|
|
88488
88488
|
return status;
|
|
88489
88489
|
}
|
|
88490
88490
|
var ServerUnaryCallImpl = class extends events_1.EventEmitter {
|
|
88491
|
-
constructor(
|
|
88491
|
+
constructor(path44, call, metadata, request2) {
|
|
88492
88492
|
super();
|
|
88493
|
-
this.path =
|
|
88493
|
+
this.path = path44;
|
|
88494
88494
|
this.call = call;
|
|
88495
88495
|
this.metadata = metadata;
|
|
88496
88496
|
this.request = request2;
|
|
@@ -88520,9 +88520,9 @@ var require_server_call = __commonJS({
|
|
|
88520
88520
|
};
|
|
88521
88521
|
exports2.ServerUnaryCallImpl = ServerUnaryCallImpl;
|
|
88522
88522
|
var ServerReadableStreamImpl = class extends stream_1.Readable {
|
|
88523
|
-
constructor(
|
|
88523
|
+
constructor(path44, call, metadata) {
|
|
88524
88524
|
super({ objectMode: true });
|
|
88525
|
-
this.path =
|
|
88525
|
+
this.path = path44;
|
|
88526
88526
|
this.call = call;
|
|
88527
88527
|
this.metadata = metadata;
|
|
88528
88528
|
this.cancelled = false;
|
|
@@ -88554,9 +88554,9 @@ var require_server_call = __commonJS({
|
|
|
88554
88554
|
};
|
|
88555
88555
|
exports2.ServerReadableStreamImpl = ServerReadableStreamImpl;
|
|
88556
88556
|
var ServerWritableStreamImpl = class extends stream_1.Writable {
|
|
88557
|
-
constructor(
|
|
88557
|
+
constructor(path44, call, metadata, request2) {
|
|
88558
88558
|
super({ objectMode: true });
|
|
88559
|
-
this.path =
|
|
88559
|
+
this.path = path44;
|
|
88560
88560
|
this.call = call;
|
|
88561
88561
|
this.metadata = metadata;
|
|
88562
88562
|
this.request = request2;
|
|
@@ -88610,9 +88610,9 @@ var require_server_call = __commonJS({
|
|
|
88610
88610
|
};
|
|
88611
88611
|
exports2.ServerWritableStreamImpl = ServerWritableStreamImpl;
|
|
88612
88612
|
var ServerDuplexStreamImpl = class extends stream_1.Duplex {
|
|
88613
|
-
constructor(
|
|
88613
|
+
constructor(path44, call, metadata) {
|
|
88614
88614
|
super({ objectMode: true });
|
|
88615
|
-
this.path =
|
|
88615
|
+
this.path = path44;
|
|
88616
88616
|
this.call = call;
|
|
88617
88617
|
this.metadata = metadata;
|
|
88618
88618
|
this.pendingStatus = {
|
|
@@ -89803,7 +89803,7 @@ var require_server_interceptors = __commonJS({
|
|
|
89803
89803
|
} else {
|
|
89804
89804
|
decompresser = zlib5.createGunzip();
|
|
89805
89805
|
}
|
|
89806
|
-
return new Promise((
|
|
89806
|
+
return new Promise((resolve24, reject) => {
|
|
89807
89807
|
let totalLength = 0;
|
|
89808
89808
|
const messageParts = [];
|
|
89809
89809
|
decompresser.on("error", (error2) => {
|
|
@@ -89824,7 +89824,7 @@ var require_server_interceptors = __commonJS({
|
|
|
89824
89824
|
}
|
|
89825
89825
|
});
|
|
89826
89826
|
decompresser.on("end", () => {
|
|
89827
|
-
|
|
89827
|
+
resolve24(Buffer.concat(messageParts));
|
|
89828
89828
|
});
|
|
89829
89829
|
decompresser.write(messageContents);
|
|
89830
89830
|
decompresser.end();
|
|
@@ -90415,10 +90415,10 @@ var require_server = __commonJS({
|
|
|
90415
90415
|
bindOneAddress(address, boundPortObject) {
|
|
90416
90416
|
this.trace("Attempting to bind " + (0, subchannel_address_1.subchannelAddressToString)(address));
|
|
90417
90417
|
const http2Server = this.createHttp2Server(boundPortObject.credentials);
|
|
90418
|
-
return new Promise((
|
|
90418
|
+
return new Promise((resolve24, reject) => {
|
|
90419
90419
|
const onError = (err) => {
|
|
90420
90420
|
this.trace("Failed to bind " + (0, subchannel_address_1.subchannelAddressToString)(address) + " with error " + err.message);
|
|
90421
|
-
|
|
90421
|
+
resolve24({
|
|
90422
90422
|
port: "port" in address ? address.port : 1,
|
|
90423
90423
|
error: err.message
|
|
90424
90424
|
});
|
|
@@ -90446,7 +90446,7 @@ var require_server = __commonJS({
|
|
|
90446
90446
|
});
|
|
90447
90447
|
boundPortObject.listeningServers.add(http2Server);
|
|
90448
90448
|
this.trace("Successfully bound " + (0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress));
|
|
90449
|
-
|
|
90449
|
+
resolve24({
|
|
90450
90450
|
port: "port" in boundSubchannelAddress ? boundSubchannelAddress.port : 1
|
|
90451
90451
|
});
|
|
90452
90452
|
http2Server.removeListener("error", onError);
|
|
@@ -90499,7 +90499,7 @@ var require_server = __commonJS({
|
|
|
90499
90499
|
}
|
|
90500
90500
|
}
|
|
90501
90501
|
resolvePort(port) {
|
|
90502
|
-
return new Promise((
|
|
90502
|
+
return new Promise((resolve24, reject) => {
|
|
90503
90503
|
let seenResolution = false;
|
|
90504
90504
|
const resolverListener = (endpointList, attributes, serviceConfig, resolutionNote) => {
|
|
90505
90505
|
if (seenResolution) {
|
|
@@ -90515,7 +90515,7 @@ var require_server = __commonJS({
|
|
|
90515
90515
|
reject(new Error(`No addresses resolved for port ${port}`));
|
|
90516
90516
|
return true;
|
|
90517
90517
|
}
|
|
90518
|
-
|
|
90518
|
+
resolve24(addressList);
|
|
90519
90519
|
return true;
|
|
90520
90520
|
};
|
|
90521
90521
|
const resolver = (0, resolver_1.createResolver)(port, resolverListener, this.options);
|
|
@@ -90897,11 +90897,11 @@ var require_server = __commonJS({
|
|
|
90897
90897
|
}
|
|
90898
90898
|
return true;
|
|
90899
90899
|
}
|
|
90900
|
-
_retrieveHandler(
|
|
90901
|
-
serverCallTrace("Received call to method " +
|
|
90902
|
-
const handler = this.handlers.get(
|
|
90900
|
+
_retrieveHandler(path44) {
|
|
90901
|
+
serverCallTrace("Received call to method " + path44 + " at address " + this.serverAddressString);
|
|
90902
|
+
const handler = this.handlers.get(path44);
|
|
90903
90903
|
if (handler === void 0) {
|
|
90904
|
-
serverCallTrace("No handler registered for method " +
|
|
90904
|
+
serverCallTrace("No handler registered for method " + path44 + ". Sending UNIMPLEMENTED status.");
|
|
90905
90905
|
return null;
|
|
90906
90906
|
}
|
|
90907
90907
|
return handler;
|
|
@@ -90925,10 +90925,10 @@ var require_server = __commonJS({
|
|
|
90925
90925
|
channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed();
|
|
90926
90926
|
return;
|
|
90927
90927
|
}
|
|
90928
|
-
const
|
|
90929
|
-
const handler = this._retrieveHandler(
|
|
90928
|
+
const path44 = headers[HTTP2_HEADER_PATH];
|
|
90929
|
+
const handler = this._retrieveHandler(path44);
|
|
90930
90930
|
if (!handler) {
|
|
90931
|
-
this._respondWithError(getUnimplementedStatusResponse(
|
|
90931
|
+
this._respondWithError(getUnimplementedStatusResponse(path44), stream, channelzSessionInfo);
|
|
90932
90932
|
return;
|
|
90933
90933
|
}
|
|
90934
90934
|
const callEventTracker = {
|
|
@@ -90978,10 +90978,10 @@ var require_server = __commonJS({
|
|
|
90978
90978
|
if (this._verifyContentType(stream, headers) !== true) {
|
|
90979
90979
|
return;
|
|
90980
90980
|
}
|
|
90981
|
-
const
|
|
90982
|
-
const handler = this._retrieveHandler(
|
|
90981
|
+
const path44 = headers[HTTP2_HEADER_PATH];
|
|
90982
|
+
const handler = this._retrieveHandler(path44);
|
|
90983
90983
|
if (!handler) {
|
|
90984
|
-
this._respondWithError(getUnimplementedStatusResponse(
|
|
90984
|
+
this._respondWithError(getUnimplementedStatusResponse(path44), stream, null);
|
|
90985
90985
|
return;
|
|
90986
90986
|
}
|
|
90987
90987
|
const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options);
|
|
@@ -92005,7 +92005,7 @@ var require_certificate_provider = __commonJS({
|
|
|
92005
92005
|
init_cjs_shims();
|
|
92006
92006
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
92007
92007
|
exports2.FileWatcherCertificateProvider = void 0;
|
|
92008
|
-
var
|
|
92008
|
+
var fs41 = require("fs");
|
|
92009
92009
|
var logging = require_logging();
|
|
92010
92010
|
var constants_1 = require_constants2();
|
|
92011
92011
|
var util_1 = require("util");
|
|
@@ -92013,7 +92013,7 @@ var require_certificate_provider = __commonJS({
|
|
|
92013
92013
|
function trace2(text) {
|
|
92014
92014
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
|
92015
92015
|
}
|
|
92016
|
-
var readFilePromise = (0, util_1.promisify)(
|
|
92016
|
+
var readFilePromise = (0, util_1.promisify)(fs41.readFile);
|
|
92017
92017
|
var FileWatcherCertificateProvider = class {
|
|
92018
92018
|
constructor(config2) {
|
|
92019
92019
|
this.config = config2;
|
|
@@ -92270,13 +92270,13 @@ var require_resolver_uds = __commonJS({
|
|
|
92270
92270
|
this.listener = listener;
|
|
92271
92271
|
this.hasReturnedResult = false;
|
|
92272
92272
|
this.endpoints = [];
|
|
92273
|
-
let
|
|
92273
|
+
let path44;
|
|
92274
92274
|
if (target.authority === "") {
|
|
92275
|
-
|
|
92275
|
+
path44 = "/" + target.path;
|
|
92276
92276
|
} else {
|
|
92277
|
-
|
|
92277
|
+
path44 = target.path;
|
|
92278
92278
|
}
|
|
92279
|
-
this.endpoints = [{ addresses: [{ path:
|
|
92279
|
+
this.endpoints = [{ addresses: [{ path: path44 }] }];
|
|
92280
92280
|
}
|
|
92281
92281
|
updateResolution() {
|
|
92282
92282
|
if (!this.hasReturnedResult) {
|
|
@@ -92337,12 +92337,12 @@ var require_resolver_ip = __commonJS({
|
|
|
92337
92337
|
return;
|
|
92338
92338
|
}
|
|
92339
92339
|
const pathList = target.path.split(",");
|
|
92340
|
-
for (const
|
|
92341
|
-
const hostPort = (0, uri_parser_1.splitHostPort)(
|
|
92340
|
+
for (const path44 of pathList) {
|
|
92341
|
+
const hostPort = (0, uri_parser_1.splitHostPort)(path44);
|
|
92342
92342
|
if (hostPort === null) {
|
|
92343
92343
|
this.error = {
|
|
92344
92344
|
code: constants_1.Status.UNAVAILABLE,
|
|
92345
|
-
details: `Failed to parse ${target.scheme} address ${
|
|
92345
|
+
details: `Failed to parse ${target.scheme} address ${path44}`,
|
|
92346
92346
|
metadata: new metadata_1.Metadata()
|
|
92347
92347
|
};
|
|
92348
92348
|
return;
|
|
@@ -92350,7 +92350,7 @@ var require_resolver_ip = __commonJS({
|
|
|
92350
92350
|
if (target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host) || target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host)) {
|
|
92351
92351
|
this.error = {
|
|
92352
92352
|
code: constants_1.Status.UNAVAILABLE,
|
|
92353
|
-
details: `Failed to parse ${target.scheme} address ${
|
|
92353
|
+
details: `Failed to parse ${target.scheme} address ${path44}`,
|
|
92354
92354
|
metadata: new metadata_1.Metadata()
|
|
92355
92355
|
};
|
|
92356
92356
|
return;
|
|
@@ -93712,10 +93712,10 @@ var require_create_service_client_constructor = __commonJS({
|
|
|
93712
93712
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93713
93713
|
exports2.createServiceClientConstructor = void 0;
|
|
93714
93714
|
var grpc = require_src7();
|
|
93715
|
-
function createServiceClientConstructor(
|
|
93715
|
+
function createServiceClientConstructor(path44, name2) {
|
|
93716
93716
|
const serviceDefinition = {
|
|
93717
93717
|
export: {
|
|
93718
|
-
path:
|
|
93718
|
+
path: path44,
|
|
93719
93719
|
requestStream: false,
|
|
93720
93720
|
responseStream: false,
|
|
93721
93721
|
requestSerialize: (arg) => {
|
|
@@ -93820,22 +93820,22 @@ var require_grpc_exporter_transport = __commonJS({
|
|
|
93820
93820
|
});
|
|
93821
93821
|
}
|
|
93822
93822
|
}
|
|
93823
|
-
return new Promise((
|
|
93823
|
+
return new Promise((resolve24) => {
|
|
93824
93824
|
const deadline = Date.now() + timeoutMillis;
|
|
93825
93825
|
if (this._metadata == null) {
|
|
93826
|
-
return
|
|
93826
|
+
return resolve24({
|
|
93827
93827
|
error: new Error("metadata was null"),
|
|
93828
93828
|
status: "failure"
|
|
93829
93829
|
});
|
|
93830
93830
|
}
|
|
93831
93831
|
this._client.export(buffer, this._metadata, { deadline }, (err, response) => {
|
|
93832
93832
|
if (err) {
|
|
93833
|
-
|
|
93833
|
+
resolve24({
|
|
93834
93834
|
status: "failure",
|
|
93835
93835
|
error: err
|
|
93836
93836
|
});
|
|
93837
93837
|
} else {
|
|
93838
|
-
|
|
93838
|
+
resolve24({
|
|
93839
93839
|
data: response,
|
|
93840
93840
|
status: "success"
|
|
93841
93841
|
});
|
|
@@ -93937,8 +93937,8 @@ var require_otlp_grpc_env_configuration = __commonJS({
|
|
|
93937
93937
|
var core_1 = (init_esm11(), __toCommonJS(esm_exports4));
|
|
93938
93938
|
var grpc_exporter_transport_1 = require_grpc_exporter_transport();
|
|
93939
93939
|
var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
|
|
93940
|
-
var
|
|
93941
|
-
var
|
|
93940
|
+
var fs41 = require("fs");
|
|
93941
|
+
var path44 = require("path");
|
|
93942
93942
|
var api_1 = (init_esm8(), __toCommonJS(esm_exports));
|
|
93943
93943
|
function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
|
|
93944
93944
|
if (signalSpecific != null && signalSpecific !== "") {
|
|
@@ -93987,7 +93987,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
|
|
|
93987
93987
|
const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
|
|
93988
93988
|
if (filePath != null) {
|
|
93989
93989
|
try {
|
|
93990
|
-
return
|
|
93990
|
+
return fs41.readFileSync(path44.resolve(process.cwd(), filePath));
|
|
93991
93991
|
} catch {
|
|
93992
93992
|
api_1.diag.warn(warningMessage);
|
|
93993
93993
|
return void 0;
|
|
@@ -94508,7 +94508,7 @@ var require_PrometheusExporter = __commonJS({
|
|
|
94508
94508
|
api_1.diag.debug("Prometheus stopServer() was called but server was never started.");
|
|
94509
94509
|
return Promise.resolve();
|
|
94510
94510
|
} else {
|
|
94511
|
-
return new Promise((
|
|
94511
|
+
return new Promise((resolve24) => {
|
|
94512
94512
|
this._server.close((err) => {
|
|
94513
94513
|
if (!err) {
|
|
94514
94514
|
api_1.diag.debug("Prometheus exporter was stopped");
|
|
@@ -94517,7 +94517,7 @@ var require_PrometheusExporter = __commonJS({
|
|
|
94517
94517
|
(0, core_1.globalErrorHandler)(err);
|
|
94518
94518
|
}
|
|
94519
94519
|
}
|
|
94520
|
-
|
|
94520
|
+
resolve24();
|
|
94521
94521
|
});
|
|
94522
94522
|
});
|
|
94523
94523
|
}
|
|
@@ -94526,14 +94526,14 @@ var require_PrometheusExporter = __commonJS({
|
|
|
94526
94526
|
* Starts the Prometheus export server
|
|
94527
94527
|
*/
|
|
94528
94528
|
startServer() {
|
|
94529
|
-
this._startServerPromise ??= new Promise((
|
|
94529
|
+
this._startServerPromise ??= new Promise((resolve24, reject) => {
|
|
94530
94530
|
this._server.once("error", reject);
|
|
94531
94531
|
this._server.listen({
|
|
94532
94532
|
port: this._port,
|
|
94533
94533
|
host: this._host
|
|
94534
94534
|
}, () => {
|
|
94535
94535
|
api_1.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`);
|
|
94536
|
-
|
|
94536
|
+
resolve24();
|
|
94537
94537
|
});
|
|
94538
94538
|
});
|
|
94539
94539
|
return this._startServerPromise;
|
|
@@ -94968,9 +94968,9 @@ var init_zipkin = __esm({
|
|
|
94968
94968
|
}));
|
|
94969
94969
|
return;
|
|
94970
94970
|
}
|
|
94971
|
-
const promise = new Promise((
|
|
94971
|
+
const promise = new Promise((resolve24) => {
|
|
94972
94972
|
this._sendSpans(spans, serviceName3, (result) => {
|
|
94973
|
-
|
|
94973
|
+
resolve24();
|
|
94974
94974
|
resultCallback(result);
|
|
94975
94975
|
});
|
|
94976
94976
|
});
|
|
@@ -94993,9 +94993,9 @@ var init_zipkin = __esm({
|
|
|
94993
94993
|
* Exports any pending spans in exporter
|
|
94994
94994
|
*/
|
|
94995
94995
|
forceFlush() {
|
|
94996
|
-
return new Promise((
|
|
94996
|
+
return new Promise((resolve24, reject) => {
|
|
94997
94997
|
Promise.all(this._sendingPromises).then(() => {
|
|
94998
|
-
|
|
94998
|
+
resolve24();
|
|
94999
94999
|
}, reject);
|
|
95000
95000
|
});
|
|
95001
95001
|
}
|
|
@@ -95672,7 +95672,7 @@ var require_utils4 = __commonJS({
|
|
|
95672
95672
|
var exporter_metrics_otlp_http_1 = (init_esm27(), __toCommonJS(esm_exports20));
|
|
95673
95673
|
var exporter_metrics_otlp_proto_1 = (init_esm28(), __toCommonJS(esm_exports21));
|
|
95674
95674
|
var sdk_logs_1 = (init_esm13(), __toCommonJS(esm_exports6));
|
|
95675
|
-
var
|
|
95675
|
+
var fs41 = require("fs");
|
|
95676
95676
|
var RESOURCE_DETECTOR_ENVIRONMENT = "env";
|
|
95677
95677
|
var RESOURCE_DETECTOR_HOST = "host";
|
|
95678
95678
|
var RESOURCE_DETECTOR_OS = "os";
|
|
@@ -96095,21 +96095,21 @@ var require_utils4 = __commonJS({
|
|
|
96095
96095
|
const httpsAgentOptions = {};
|
|
96096
96096
|
if (tls.ca_file) {
|
|
96097
96097
|
try {
|
|
96098
|
-
httpsAgentOptions.ca =
|
|
96098
|
+
httpsAgentOptions.ca = fs41.readFileSync(tls.ca_file);
|
|
96099
96099
|
} catch (e) {
|
|
96100
96100
|
api_1.diag.warn(`Failed to read TLS CA file at ${tls.ca_file}: ${e}`);
|
|
96101
96101
|
}
|
|
96102
96102
|
}
|
|
96103
96103
|
if (tls.cert_file) {
|
|
96104
96104
|
try {
|
|
96105
|
-
httpsAgentOptions.cert =
|
|
96105
|
+
httpsAgentOptions.cert = fs41.readFileSync(tls.cert_file);
|
|
96106
96106
|
} catch (e) {
|
|
96107
96107
|
api_1.diag.warn(`Failed to read TLS cert file at ${tls.cert_file}: ${e}`);
|
|
96108
96108
|
}
|
|
96109
96109
|
}
|
|
96110
96110
|
if (tls.key_file) {
|
|
96111
96111
|
try {
|
|
96112
|
-
httpsAgentOptions.key =
|
|
96112
|
+
httpsAgentOptions.key = fs41.readFileSync(tls.key_file);
|
|
96113
96113
|
} catch (e) {
|
|
96114
96114
|
api_1.diag.warn(`Failed to read TLS key file at ${tls.key_file}: ${e}`);
|
|
96115
96115
|
}
|
|
@@ -97402,17 +97402,17 @@ var require_visit = __commonJS({
|
|
|
97402
97402
|
visit.BREAK = BREAK;
|
|
97403
97403
|
visit.SKIP = SKIP;
|
|
97404
97404
|
visit.REMOVE = REMOVE;
|
|
97405
|
-
function visit_(key, node, visitor,
|
|
97406
|
-
const ctrl = callVisitor(key, node, visitor,
|
|
97405
|
+
function visit_(key, node, visitor, path44) {
|
|
97406
|
+
const ctrl = callVisitor(key, node, visitor, path44);
|
|
97407
97407
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
97408
|
-
replaceNode(key,
|
|
97409
|
-
return visit_(key, ctrl, visitor,
|
|
97408
|
+
replaceNode(key, path44, ctrl);
|
|
97409
|
+
return visit_(key, ctrl, visitor, path44);
|
|
97410
97410
|
}
|
|
97411
97411
|
if (typeof ctrl !== "symbol") {
|
|
97412
97412
|
if (identity2.isCollection(node)) {
|
|
97413
|
-
|
|
97413
|
+
path44 = Object.freeze(path44.concat(node));
|
|
97414
97414
|
for (let i = 0; i < node.items.length; ++i) {
|
|
97415
|
-
const ci = visit_(i, node.items[i], visitor,
|
|
97415
|
+
const ci = visit_(i, node.items[i], visitor, path44);
|
|
97416
97416
|
if (typeof ci === "number")
|
|
97417
97417
|
i = ci - 1;
|
|
97418
97418
|
else if (ci === BREAK)
|
|
@@ -97423,13 +97423,13 @@ var require_visit = __commonJS({
|
|
|
97423
97423
|
}
|
|
97424
97424
|
}
|
|
97425
97425
|
} else if (identity2.isPair(node)) {
|
|
97426
|
-
|
|
97427
|
-
const ck = visit_("key", node.key, visitor,
|
|
97426
|
+
path44 = Object.freeze(path44.concat(node));
|
|
97427
|
+
const ck = visit_("key", node.key, visitor, path44);
|
|
97428
97428
|
if (ck === BREAK)
|
|
97429
97429
|
return BREAK;
|
|
97430
97430
|
else if (ck === REMOVE)
|
|
97431
97431
|
node.key = null;
|
|
97432
|
-
const cv = visit_("value", node.value, visitor,
|
|
97432
|
+
const cv = visit_("value", node.value, visitor, path44);
|
|
97433
97433
|
if (cv === BREAK)
|
|
97434
97434
|
return BREAK;
|
|
97435
97435
|
else if (cv === REMOVE)
|
|
@@ -97450,17 +97450,17 @@ var require_visit = __commonJS({
|
|
|
97450
97450
|
visitAsync.BREAK = BREAK;
|
|
97451
97451
|
visitAsync.SKIP = SKIP;
|
|
97452
97452
|
visitAsync.REMOVE = REMOVE;
|
|
97453
|
-
async function visitAsync_(key, node, visitor,
|
|
97454
|
-
const ctrl = await callVisitor(key, node, visitor,
|
|
97453
|
+
async function visitAsync_(key, node, visitor, path44) {
|
|
97454
|
+
const ctrl = await callVisitor(key, node, visitor, path44);
|
|
97455
97455
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
97456
|
-
replaceNode(key,
|
|
97457
|
-
return visitAsync_(key, ctrl, visitor,
|
|
97456
|
+
replaceNode(key, path44, ctrl);
|
|
97457
|
+
return visitAsync_(key, ctrl, visitor, path44);
|
|
97458
97458
|
}
|
|
97459
97459
|
if (typeof ctrl !== "symbol") {
|
|
97460
97460
|
if (identity2.isCollection(node)) {
|
|
97461
|
-
|
|
97461
|
+
path44 = Object.freeze(path44.concat(node));
|
|
97462
97462
|
for (let i = 0; i < node.items.length; ++i) {
|
|
97463
|
-
const ci = await visitAsync_(i, node.items[i], visitor,
|
|
97463
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path44);
|
|
97464
97464
|
if (typeof ci === "number")
|
|
97465
97465
|
i = ci - 1;
|
|
97466
97466
|
else if (ci === BREAK)
|
|
@@ -97471,13 +97471,13 @@ var require_visit = __commonJS({
|
|
|
97471
97471
|
}
|
|
97472
97472
|
}
|
|
97473
97473
|
} else if (identity2.isPair(node)) {
|
|
97474
|
-
|
|
97475
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
97474
|
+
path44 = Object.freeze(path44.concat(node));
|
|
97475
|
+
const ck = await visitAsync_("key", node.key, visitor, path44);
|
|
97476
97476
|
if (ck === BREAK)
|
|
97477
97477
|
return BREAK;
|
|
97478
97478
|
else if (ck === REMOVE)
|
|
97479
97479
|
node.key = null;
|
|
97480
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
97480
|
+
const cv = await visitAsync_("value", node.value, visitor, path44);
|
|
97481
97481
|
if (cv === BREAK)
|
|
97482
97482
|
return BREAK;
|
|
97483
97483
|
else if (cv === REMOVE)
|
|
@@ -97504,23 +97504,23 @@ var require_visit = __commonJS({
|
|
|
97504
97504
|
}
|
|
97505
97505
|
return visitor;
|
|
97506
97506
|
}
|
|
97507
|
-
function callVisitor(key, node, visitor,
|
|
97507
|
+
function callVisitor(key, node, visitor, path44) {
|
|
97508
97508
|
if (typeof visitor === "function")
|
|
97509
|
-
return visitor(key, node,
|
|
97509
|
+
return visitor(key, node, path44);
|
|
97510
97510
|
if (identity2.isMap(node))
|
|
97511
|
-
return visitor.Map?.(key, node,
|
|
97511
|
+
return visitor.Map?.(key, node, path44);
|
|
97512
97512
|
if (identity2.isSeq(node))
|
|
97513
|
-
return visitor.Seq?.(key, node,
|
|
97513
|
+
return visitor.Seq?.(key, node, path44);
|
|
97514
97514
|
if (identity2.isPair(node))
|
|
97515
|
-
return visitor.Pair?.(key, node,
|
|
97515
|
+
return visitor.Pair?.(key, node, path44);
|
|
97516
97516
|
if (identity2.isScalar(node))
|
|
97517
|
-
return visitor.Scalar?.(key, node,
|
|
97517
|
+
return visitor.Scalar?.(key, node, path44);
|
|
97518
97518
|
if (identity2.isAlias(node))
|
|
97519
|
-
return visitor.Alias?.(key, node,
|
|
97519
|
+
return visitor.Alias?.(key, node, path44);
|
|
97520
97520
|
return void 0;
|
|
97521
97521
|
}
|
|
97522
|
-
function replaceNode(key,
|
|
97523
|
-
const parent =
|
|
97522
|
+
function replaceNode(key, path44, node) {
|
|
97523
|
+
const parent = path44[path44.length - 1];
|
|
97524
97524
|
if (identity2.isCollection(parent)) {
|
|
97525
97525
|
parent.items[key] = node;
|
|
97526
97526
|
} else if (identity2.isPair(parent)) {
|
|
@@ -98139,10 +98139,10 @@ var require_Collection = __commonJS({
|
|
|
98139
98139
|
var createNode = require_createNode();
|
|
98140
98140
|
var identity2 = require_identity();
|
|
98141
98141
|
var Node = require_Node();
|
|
98142
|
-
function collectionFromPath(schema,
|
|
98142
|
+
function collectionFromPath(schema, path44, value) {
|
|
98143
98143
|
let v = value;
|
|
98144
|
-
for (let i =
|
|
98145
|
-
const k =
|
|
98144
|
+
for (let i = path44.length - 1; i >= 0; --i) {
|
|
98145
|
+
const k = path44[i];
|
|
98146
98146
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
98147
98147
|
const a = [];
|
|
98148
98148
|
a[k] = v;
|
|
@@ -98161,7 +98161,7 @@ var require_Collection = __commonJS({
|
|
|
98161
98161
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
98162
98162
|
});
|
|
98163
98163
|
}
|
|
98164
|
-
var isEmptyPath = (
|
|
98164
|
+
var isEmptyPath = (path44) => path44 == null || typeof path44 === "object" && !!path44[Symbol.iterator]().next().done;
|
|
98165
98165
|
var Collection = class extends Node.NodeBase {
|
|
98166
98166
|
constructor(type, schema) {
|
|
98167
98167
|
super(type);
|
|
@@ -98191,11 +98191,11 @@ var require_Collection = __commonJS({
|
|
|
98191
98191
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
98192
98192
|
* that already exists in the map.
|
|
98193
98193
|
*/
|
|
98194
|
-
addIn(
|
|
98195
|
-
if (isEmptyPath(
|
|
98194
|
+
addIn(path44, value) {
|
|
98195
|
+
if (isEmptyPath(path44))
|
|
98196
98196
|
this.add(value);
|
|
98197
98197
|
else {
|
|
98198
|
-
const [key, ...rest] =
|
|
98198
|
+
const [key, ...rest] = path44;
|
|
98199
98199
|
const node = this.get(key, true);
|
|
98200
98200
|
if (identity2.isCollection(node))
|
|
98201
98201
|
node.addIn(rest, value);
|
|
@@ -98209,8 +98209,8 @@ var require_Collection = __commonJS({
|
|
|
98209
98209
|
* Removes a value from the collection.
|
|
98210
98210
|
* @returns `true` if the item was found and removed.
|
|
98211
98211
|
*/
|
|
98212
|
-
deleteIn(
|
|
98213
|
-
const [key, ...rest] =
|
|
98212
|
+
deleteIn(path44) {
|
|
98213
|
+
const [key, ...rest] = path44;
|
|
98214
98214
|
if (rest.length === 0)
|
|
98215
98215
|
return this.delete(key);
|
|
98216
98216
|
const node = this.get(key, true);
|
|
@@ -98224,8 +98224,8 @@ var require_Collection = __commonJS({
|
|
|
98224
98224
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
98225
98225
|
* `true` (collections are always returned intact).
|
|
98226
98226
|
*/
|
|
98227
|
-
getIn(
|
|
98228
|
-
const [key, ...rest] =
|
|
98227
|
+
getIn(path44, keepScalar) {
|
|
98228
|
+
const [key, ...rest] = path44;
|
|
98229
98229
|
const node = this.get(key, true);
|
|
98230
98230
|
if (rest.length === 0)
|
|
98231
98231
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
|
@@ -98243,8 +98243,8 @@ var require_Collection = __commonJS({
|
|
|
98243
98243
|
/**
|
|
98244
98244
|
* Checks if the collection includes a value with the key `key`.
|
|
98245
98245
|
*/
|
|
98246
|
-
hasIn(
|
|
98247
|
-
const [key, ...rest] =
|
|
98246
|
+
hasIn(path44) {
|
|
98247
|
+
const [key, ...rest] = path44;
|
|
98248
98248
|
if (rest.length === 0)
|
|
98249
98249
|
return this.has(key);
|
|
98250
98250
|
const node = this.get(key, true);
|
|
@@ -98254,8 +98254,8 @@ var require_Collection = __commonJS({
|
|
|
98254
98254
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
98255
98255
|
* boolean to add/remove the item from the set.
|
|
98256
98256
|
*/
|
|
98257
|
-
setIn(
|
|
98258
|
-
const [key, ...rest] =
|
|
98257
|
+
setIn(path44, value) {
|
|
98258
|
+
const [key, ...rest] = path44;
|
|
98259
98259
|
if (rest.length === 0) {
|
|
98260
98260
|
this.set(key, value);
|
|
98261
98261
|
} else {
|
|
@@ -100805,9 +100805,9 @@ var require_Document = __commonJS({
|
|
|
100805
100805
|
this.contents.add(value);
|
|
100806
100806
|
}
|
|
100807
100807
|
/** Adds a value to the document. */
|
|
100808
|
-
addIn(
|
|
100808
|
+
addIn(path44, value) {
|
|
100809
100809
|
if (assertCollection(this.contents))
|
|
100810
|
-
this.contents.addIn(
|
|
100810
|
+
this.contents.addIn(path44, value);
|
|
100811
100811
|
}
|
|
100812
100812
|
/**
|
|
100813
100813
|
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
|
|
@@ -100882,14 +100882,14 @@ var require_Document = __commonJS({
|
|
|
100882
100882
|
* Removes a value from the document.
|
|
100883
100883
|
* @returns `true` if the item was found and removed.
|
|
100884
100884
|
*/
|
|
100885
|
-
deleteIn(
|
|
100886
|
-
if (Collection.isEmptyPath(
|
|
100885
|
+
deleteIn(path44) {
|
|
100886
|
+
if (Collection.isEmptyPath(path44)) {
|
|
100887
100887
|
if (this.contents == null)
|
|
100888
100888
|
return false;
|
|
100889
100889
|
this.contents = null;
|
|
100890
100890
|
return true;
|
|
100891
100891
|
}
|
|
100892
|
-
return assertCollection(this.contents) ? this.contents.deleteIn(
|
|
100892
|
+
return assertCollection(this.contents) ? this.contents.deleteIn(path44) : false;
|
|
100893
100893
|
}
|
|
100894
100894
|
/**
|
|
100895
100895
|
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
@@ -100904,10 +100904,10 @@ var require_Document = __commonJS({
|
|
|
100904
100904
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
100905
100905
|
* `true` (collections are always returned intact).
|
|
100906
100906
|
*/
|
|
100907
|
-
getIn(
|
|
100908
|
-
if (Collection.isEmptyPath(
|
|
100907
|
+
getIn(path44, keepScalar) {
|
|
100908
|
+
if (Collection.isEmptyPath(path44))
|
|
100909
100909
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
100910
|
-
return identity2.isCollection(this.contents) ? this.contents.getIn(
|
|
100910
|
+
return identity2.isCollection(this.contents) ? this.contents.getIn(path44, keepScalar) : void 0;
|
|
100911
100911
|
}
|
|
100912
100912
|
/**
|
|
100913
100913
|
* Checks if the document includes a value with the key `key`.
|
|
@@ -100918,10 +100918,10 @@ var require_Document = __commonJS({
|
|
|
100918
100918
|
/**
|
|
100919
100919
|
* Checks if the document includes a value at `path`.
|
|
100920
100920
|
*/
|
|
100921
|
-
hasIn(
|
|
100922
|
-
if (Collection.isEmptyPath(
|
|
100921
|
+
hasIn(path44) {
|
|
100922
|
+
if (Collection.isEmptyPath(path44))
|
|
100923
100923
|
return this.contents !== void 0;
|
|
100924
|
-
return identity2.isCollection(this.contents) ? this.contents.hasIn(
|
|
100924
|
+
return identity2.isCollection(this.contents) ? this.contents.hasIn(path44) : false;
|
|
100925
100925
|
}
|
|
100926
100926
|
/**
|
|
100927
100927
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
@@ -100938,13 +100938,13 @@ var require_Document = __commonJS({
|
|
|
100938
100938
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
100939
100939
|
* boolean to add/remove the item from the set.
|
|
100940
100940
|
*/
|
|
100941
|
-
setIn(
|
|
100942
|
-
if (Collection.isEmptyPath(
|
|
100941
|
+
setIn(path44, value) {
|
|
100942
|
+
if (Collection.isEmptyPath(path44)) {
|
|
100943
100943
|
this.contents = value;
|
|
100944
100944
|
} else if (this.contents == null) {
|
|
100945
|
-
this.contents = Collection.collectionFromPath(this.schema, Array.from(
|
|
100945
|
+
this.contents = Collection.collectionFromPath(this.schema, Array.from(path44), value);
|
|
100946
100946
|
} else if (assertCollection(this.contents)) {
|
|
100947
|
-
this.contents.setIn(
|
|
100947
|
+
this.contents.setIn(path44, value);
|
|
100948
100948
|
}
|
|
100949
100949
|
}
|
|
100950
100950
|
/**
|
|
@@ -102924,9 +102924,9 @@ var require_cst_visit = __commonJS({
|
|
|
102924
102924
|
visit.BREAK = BREAK;
|
|
102925
102925
|
visit.SKIP = SKIP;
|
|
102926
102926
|
visit.REMOVE = REMOVE;
|
|
102927
|
-
visit.itemAtPath = (cst,
|
|
102927
|
+
visit.itemAtPath = (cst, path44) => {
|
|
102928
102928
|
let item = cst;
|
|
102929
|
-
for (const [field, index] of
|
|
102929
|
+
for (const [field, index] of path44) {
|
|
102930
102930
|
const tok = item?.[field];
|
|
102931
102931
|
if (tok && "items" in tok) {
|
|
102932
102932
|
item = tok.items[index];
|
|
@@ -102935,23 +102935,23 @@ var require_cst_visit = __commonJS({
|
|
|
102935
102935
|
}
|
|
102936
102936
|
return item;
|
|
102937
102937
|
};
|
|
102938
|
-
visit.parentCollection = (cst,
|
|
102939
|
-
const parent = visit.itemAtPath(cst,
|
|
102940
|
-
const field =
|
|
102938
|
+
visit.parentCollection = (cst, path44) => {
|
|
102939
|
+
const parent = visit.itemAtPath(cst, path44.slice(0, -1));
|
|
102940
|
+
const field = path44[path44.length - 1][0];
|
|
102941
102941
|
const coll = parent?.[field];
|
|
102942
102942
|
if (coll && "items" in coll)
|
|
102943
102943
|
return coll;
|
|
102944
102944
|
throw new Error("Parent collection not found");
|
|
102945
102945
|
};
|
|
102946
|
-
function _visit(
|
|
102947
|
-
let ctrl = visitor(item,
|
|
102946
|
+
function _visit(path44, item, visitor) {
|
|
102947
|
+
let ctrl = visitor(item, path44);
|
|
102948
102948
|
if (typeof ctrl === "symbol")
|
|
102949
102949
|
return ctrl;
|
|
102950
102950
|
for (const field of ["key", "value"]) {
|
|
102951
102951
|
const token = item[field];
|
|
102952
102952
|
if (token && "items" in token) {
|
|
102953
102953
|
for (let i = 0; i < token.items.length; ++i) {
|
|
102954
|
-
const ci = _visit(Object.freeze(
|
|
102954
|
+
const ci = _visit(Object.freeze(path44.concat([[field, i]])), token.items[i], visitor);
|
|
102955
102955
|
if (typeof ci === "number")
|
|
102956
102956
|
i = ci - 1;
|
|
102957
102957
|
else if (ci === BREAK)
|
|
@@ -102962,10 +102962,10 @@ var require_cst_visit = __commonJS({
|
|
|
102962
102962
|
}
|
|
102963
102963
|
}
|
|
102964
102964
|
if (typeof ctrl === "function" && field === "key")
|
|
102965
|
-
ctrl = ctrl(item,
|
|
102965
|
+
ctrl = ctrl(item, path44);
|
|
102966
102966
|
}
|
|
102967
102967
|
}
|
|
102968
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
102968
|
+
return typeof ctrl === "function" ? ctrl(item, path44) : ctrl;
|
|
102969
102969
|
}
|
|
102970
102970
|
exports2.visit = visit;
|
|
102971
102971
|
}
|
|
@@ -104271,14 +104271,14 @@ var require_parser = __commonJS({
|
|
|
104271
104271
|
case "scalar":
|
|
104272
104272
|
case "single-quoted-scalar":
|
|
104273
104273
|
case "double-quoted-scalar": {
|
|
104274
|
-
const
|
|
104274
|
+
const fs41 = this.flowScalar(this.type);
|
|
104275
104275
|
if (atNextItem || it.value) {
|
|
104276
|
-
map.items.push({ start, key:
|
|
104276
|
+
map.items.push({ start, key: fs41, sep: [] });
|
|
104277
104277
|
this.onKeyLine = true;
|
|
104278
104278
|
} else if (it.sep) {
|
|
104279
|
-
this.stack.push(
|
|
104279
|
+
this.stack.push(fs41);
|
|
104280
104280
|
} else {
|
|
104281
|
-
Object.assign(it, { key:
|
|
104281
|
+
Object.assign(it, { key: fs41, sep: [] });
|
|
104282
104282
|
this.onKeyLine = true;
|
|
104283
104283
|
}
|
|
104284
104284
|
return;
|
|
@@ -104406,13 +104406,13 @@ var require_parser = __commonJS({
|
|
|
104406
104406
|
case "scalar":
|
|
104407
104407
|
case "single-quoted-scalar":
|
|
104408
104408
|
case "double-quoted-scalar": {
|
|
104409
|
-
const
|
|
104409
|
+
const fs41 = this.flowScalar(this.type);
|
|
104410
104410
|
if (!it || it.value)
|
|
104411
|
-
fc.items.push({ start: [], key:
|
|
104411
|
+
fc.items.push({ start: [], key: fs41, sep: [] });
|
|
104412
104412
|
else if (it.sep)
|
|
104413
|
-
this.stack.push(
|
|
104413
|
+
this.stack.push(fs41);
|
|
104414
104414
|
else
|
|
104415
|
-
Object.assign(it, { key:
|
|
104415
|
+
Object.assign(it, { key: fs41, sep: [] });
|
|
104416
104416
|
return;
|
|
104417
104417
|
}
|
|
104418
104418
|
case "flow-map-end":
|
|
@@ -113119,7 +113119,7 @@ var require_FileConfigFactory = __commonJS({
|
|
|
113119
113119
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
113120
113120
|
exports2.parseConfigFile = exports2.FileConfigFactory = void 0;
|
|
113121
113121
|
var core_1 = (init_esm11(), __toCommonJS(esm_exports4));
|
|
113122
|
-
var
|
|
113122
|
+
var fs41 = require("fs");
|
|
113123
113123
|
var yaml = require_dist5();
|
|
113124
113124
|
var utils_1 = require_utils5();
|
|
113125
113125
|
var validateConfig = require_validator();
|
|
@@ -113136,7 +113136,7 @@ var require_FileConfigFactory = __commonJS({
|
|
|
113136
113136
|
function parseConfigFile() {
|
|
113137
113137
|
const supportedFileVersionPattern = /^1\.0$/;
|
|
113138
113138
|
const configFile = (0, core_1.getStringFromEnv)("OTEL_CONFIG_FILE") || "";
|
|
113139
|
-
const file =
|
|
113139
|
+
const file = fs41.readFileSync(configFile, "utf8");
|
|
113140
113140
|
const rawParsed = yaml.parse(file);
|
|
113141
113141
|
const processed = substituteEnvVars(rawParsed);
|
|
113142
113142
|
const fileFormat = processed?.file_format;
|
|
@@ -114752,8 +114752,8 @@ var init_promise3 = __esm({
|
|
|
114752
114752
|
_resolve;
|
|
114753
114753
|
_reject;
|
|
114754
114754
|
constructor() {
|
|
114755
|
-
this._promise = new Promise((
|
|
114756
|
-
this._resolve =
|
|
114755
|
+
this._promise = new Promise((resolve24, reject) => {
|
|
114756
|
+
this._resolve = resolve24;
|
|
114757
114757
|
this._reject = reject;
|
|
114758
114758
|
});
|
|
114759
114759
|
}
|
|
@@ -114839,9 +114839,9 @@ var init_configuration2 = __esm({
|
|
|
114839
114839
|
|
|
114840
114840
|
// ../../node_modules/.pnpm/@opentelemetry+core@2.8.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/core/build/esm/internal/exporter.js
|
|
114841
114841
|
function _export2(exporter, arg) {
|
|
114842
|
-
return new Promise((
|
|
114842
|
+
return new Promise((resolve24) => {
|
|
114843
114843
|
context3.with(suppressTracing2(context3.active()), () => {
|
|
114844
|
-
exporter.export(arg,
|
|
114844
|
+
exporter.export(arg, resolve24);
|
|
114845
114845
|
});
|
|
114846
114846
|
});
|
|
114847
114847
|
}
|
|
@@ -115305,9 +115305,9 @@ __export(getMachineId_linux_exports2, {
|
|
|
115305
115305
|
});
|
|
115306
115306
|
async function getMachineId8() {
|
|
115307
115307
|
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
115308
|
-
for (const
|
|
115308
|
+
for (const path44 of paths) {
|
|
115309
115309
|
try {
|
|
115310
|
-
const result = await import_fs4.promises.readFile(
|
|
115310
|
+
const result = await import_fs4.promises.readFile(path44, { encoding: "utf8" });
|
|
115311
115311
|
return result.trim();
|
|
115312
115312
|
} catch (e) {
|
|
115313
115313
|
diag2.debug(`error reading machine id: ${e}`);
|
|
@@ -116053,14 +116053,14 @@ var init_fileAccessControl = __esm({
|
|
|
116053
116053
|
}
|
|
116054
116054
|
}
|
|
116055
116055
|
static _runICACLS(args) {
|
|
116056
|
-
return new Promise((
|
|
116056
|
+
return new Promise((resolve24, reject) => {
|
|
116057
116057
|
const aclProc = (0, import_node_child_process15.spawn)(_FileAccessControl.ICACLS_PATH, args, {
|
|
116058
116058
|
windowsHide: true
|
|
116059
116059
|
});
|
|
116060
116060
|
aclProc.on("error", (e) => reject(e));
|
|
116061
116061
|
aclProc.on("close", (code) => {
|
|
116062
116062
|
if (code === 0) {
|
|
116063
|
-
|
|
116063
|
+
resolve24();
|
|
116064
116064
|
} else {
|
|
116065
116065
|
reject(new Error(`Setting ACL restrictions did not succeed (ICACLS returned code ${code})`));
|
|
116066
116066
|
}
|
|
@@ -116082,9 +116082,9 @@ var init_fileAccessControl = __esm({
|
|
|
116082
116082
|
}
|
|
116083
116083
|
}
|
|
116084
116084
|
static _getACLIdentity() {
|
|
116085
|
-
return new Promise((
|
|
116085
|
+
return new Promise((resolve24, reject) => {
|
|
116086
116086
|
if (_FileAccessControl.ACL_IDENTITY) {
|
|
116087
|
-
|
|
116087
|
+
resolve24(_FileAccessControl.ACL_IDENTITY);
|
|
116088
116088
|
}
|
|
116089
116089
|
const psProc = (0, import_node_child_process15.spawn)(_FileAccessControl.POWERSHELL_PATH, ["-Command", "[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"], {
|
|
116090
116090
|
windowsHide: true,
|
|
@@ -116097,7 +116097,7 @@ var init_fileAccessControl = __esm({
|
|
|
116097
116097
|
psProc.on("close", (code) => {
|
|
116098
116098
|
_FileAccessControl.ACL_IDENTITY = data && data.trim();
|
|
116099
116099
|
if (code === 0) {
|
|
116100
|
-
|
|
116100
|
+
resolve24(_FileAccessControl.ACL_IDENTITY);
|
|
116101
116101
|
} else {
|
|
116102
116102
|
reject(new Error(`Getting ACL identity did not succeed (PS returned code ${code})`));
|
|
116103
116103
|
}
|
|
@@ -116457,12 +116457,12 @@ var init_fileSystemPersist = __esm({
|
|
|
116457
116457
|
return this._storeToDisk(JSON.stringify(value), value);
|
|
116458
116458
|
}
|
|
116459
116459
|
if (!this._options?.disableOfflineStorage) {
|
|
116460
|
-
return new Promise((
|
|
116461
|
-
|
|
116460
|
+
return new Promise((resolve24) => {
|
|
116461
|
+
resolve24(false);
|
|
116462
116462
|
});
|
|
116463
116463
|
}
|
|
116464
|
-
return new Promise((
|
|
116465
|
-
|
|
116464
|
+
return new Promise((resolve24) => {
|
|
116465
|
+
resolve24(true);
|
|
116466
116466
|
});
|
|
116467
116467
|
}
|
|
116468
116468
|
async shift() {
|
|
@@ -116478,8 +116478,8 @@ var init_fileSystemPersist = __esm({
|
|
|
116478
116478
|
}
|
|
116479
116479
|
return null;
|
|
116480
116480
|
}
|
|
116481
|
-
return new Promise((
|
|
116482
|
-
|
|
116481
|
+
return new Promise((resolve24) => {
|
|
116482
|
+
resolve24(null);
|
|
116483
116483
|
});
|
|
116484
116484
|
}
|
|
116485
116485
|
/**
|
|
@@ -120476,31 +120476,31 @@ function getClient2(endpoint, credentialsOrPipelineOptions, clientOptions = {})
|
|
|
120476
120476
|
...clientOptions,
|
|
120477
120477
|
pipeline: pipeline3
|
|
120478
120478
|
});
|
|
120479
|
-
const client = (
|
|
120479
|
+
const client = (path44, ...args) => {
|
|
120480
120480
|
return {
|
|
120481
120481
|
get: (requestOptions = {}) => {
|
|
120482
|
-
return tspClient.path(
|
|
120482
|
+
return tspClient.path(path44, ...args).get(wrapRequestParameters(requestOptions));
|
|
120483
120483
|
},
|
|
120484
120484
|
post: (requestOptions = {}) => {
|
|
120485
|
-
return tspClient.path(
|
|
120485
|
+
return tspClient.path(path44, ...args).post(wrapRequestParameters(requestOptions));
|
|
120486
120486
|
},
|
|
120487
120487
|
put: (requestOptions = {}) => {
|
|
120488
|
-
return tspClient.path(
|
|
120488
|
+
return tspClient.path(path44, ...args).put(wrapRequestParameters(requestOptions));
|
|
120489
120489
|
},
|
|
120490
120490
|
patch: (requestOptions = {}) => {
|
|
120491
|
-
return tspClient.path(
|
|
120491
|
+
return tspClient.path(path44, ...args).patch(wrapRequestParameters(requestOptions));
|
|
120492
120492
|
},
|
|
120493
120493
|
delete: (requestOptions = {}) => {
|
|
120494
|
-
return tspClient.path(
|
|
120494
|
+
return tspClient.path(path44, ...args).delete(wrapRequestParameters(requestOptions));
|
|
120495
120495
|
},
|
|
120496
120496
|
head: (requestOptions = {}) => {
|
|
120497
|
-
return tspClient.path(
|
|
120497
|
+
return tspClient.path(path44, ...args).head(wrapRequestParameters(requestOptions));
|
|
120498
120498
|
},
|
|
120499
120499
|
options: (requestOptions = {}) => {
|
|
120500
|
-
return tspClient.path(
|
|
120500
|
+
return tspClient.path(path44, ...args).options(wrapRequestParameters(requestOptions));
|
|
120501
120501
|
},
|
|
120502
120502
|
trace: (requestOptions = {}) => {
|
|
120503
|
-
return tspClient.path(
|
|
120503
|
+
return tspClient.path(path44, ...args).trace(wrapRequestParameters(requestOptions));
|
|
120504
120504
|
}
|
|
120505
120505
|
};
|
|
120506
120506
|
};
|
|
@@ -123439,7 +123439,7 @@ var require_import_in_the_middle2 = __commonJS({
|
|
|
123439
123439
|
"../../node_modules/.pnpm/import-in-the-middle@2.0.6/node_modules/import-in-the-middle/index.js"(exports2, module2) {
|
|
123440
123440
|
"use strict";
|
|
123441
123441
|
init_cjs_shims();
|
|
123442
|
-
var
|
|
123442
|
+
var path44 = require("path");
|
|
123443
123443
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
123444
123444
|
var { fileURLToPath: fileURLToPath2 } = require("url");
|
|
123445
123445
|
var { MessageChannel } = require("worker_threads");
|
|
@@ -123488,8 +123488,8 @@ var require_import_in_the_middle2 = __commonJS({
|
|
|
123488
123488
|
function waitForAllMessagesAcknowledged() {
|
|
123489
123489
|
const timer = setInterval(() => {
|
|
123490
123490
|
}, 1e3);
|
|
123491
|
-
const promise = new Promise((
|
|
123492
|
-
resolveFn =
|
|
123491
|
+
const promise = new Promise((resolve24) => {
|
|
123492
|
+
resolveFn = resolve24;
|
|
123493
123493
|
}).then(() => {
|
|
123494
123494
|
clearInterval(timer);
|
|
123495
123495
|
});
|
|
@@ -123552,7 +123552,7 @@ var require_import_in_the_middle2 = __commonJS({
|
|
|
123552
123552
|
} else if (baseDir.endsWith(specifiers.get(loadUrl))) {
|
|
123553
123553
|
callHookFn(hookFn, namespace, name2, baseDir);
|
|
123554
123554
|
} else if (internals) {
|
|
123555
|
-
const internalPath = name2 +
|
|
123555
|
+
const internalPath = name2 + path44.sep + path44.relative(baseDir, filePath);
|
|
123556
123556
|
callHookFn(hookFn, namespace, internalPath, baseDir);
|
|
123557
123557
|
}
|
|
123558
123558
|
} else if (matchArg === specifier) {
|
|
@@ -123836,26 +123836,26 @@ var require_utils6 = __commonJS({
|
|
|
123836
123836
|
const reqUrlObject = requestUrl || {};
|
|
123837
123837
|
const protocol = reqUrlObject.protocol || fallbackProtocol;
|
|
123838
123838
|
const port = (reqUrlObject.port || "").toString();
|
|
123839
|
-
let
|
|
123839
|
+
let path44 = reqUrlObject.path || "/";
|
|
123840
123840
|
let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
|
|
123841
123841
|
if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
|
|
123842
123842
|
host += `:${port}`;
|
|
123843
123843
|
}
|
|
123844
|
-
if (
|
|
123844
|
+
if (path44.includes("?")) {
|
|
123845
123845
|
try {
|
|
123846
|
-
const parsedUrl = new URL(
|
|
123846
|
+
const parsedUrl = new URL(path44, "http://localhost");
|
|
123847
123847
|
const sensitiveParamsToRedact = redactedQueryParams || [];
|
|
123848
123848
|
for (const sensitiveParam of sensitiveParamsToRedact) {
|
|
123849
123849
|
if (parsedUrl.searchParams.get(sensitiveParam)) {
|
|
123850
123850
|
parsedUrl.searchParams.set(sensitiveParam, internal_types_2.STR_REDACTED);
|
|
123851
123851
|
}
|
|
123852
123852
|
}
|
|
123853
|
-
|
|
123853
|
+
path44 = `${parsedUrl.pathname}${parsedUrl.search}`;
|
|
123854
123854
|
} catch {
|
|
123855
123855
|
}
|
|
123856
123856
|
}
|
|
123857
123857
|
const authPart = reqUrlObject.auth ? `${internal_types_2.STR_REDACTED}:${internal_types_2.STR_REDACTED}@` : "";
|
|
123858
|
-
return `${protocol}//${authPart}${host}${
|
|
123858
|
+
return `${protocol}//${authPart}${host}${path44}`;
|
|
123859
123859
|
};
|
|
123860
123860
|
exports2.getAbsoluteUrl = getAbsoluteUrl;
|
|
123861
123861
|
var parseResponseStatus = (kind, statusCode) => {
|
|
@@ -126008,15 +126008,15 @@ var init_ModuleNameTrie2 = __esm({
|
|
|
126008
126008
|
|
|
126009
126009
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
|
|
126010
126010
|
function normalizePathSeparators3(moduleNameOrPath) {
|
|
126011
|
-
return
|
|
126011
|
+
return path42.sep !== ModuleNameSeparator3 ? moduleNameOrPath.split(path42.sep).join(ModuleNameSeparator3) : moduleNameOrPath;
|
|
126012
126012
|
}
|
|
126013
|
-
var import_require_in_the_middle5,
|
|
126013
|
+
var import_require_in_the_middle5, path42, isMocha3, RequireInTheMiddleSingleton3;
|
|
126014
126014
|
var init_RequireInTheMiddleSingleton2 = __esm({
|
|
126015
126015
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js"() {
|
|
126016
126016
|
"use strict";
|
|
126017
126017
|
init_cjs_shims();
|
|
126018
126018
|
import_require_in_the_middle5 = __toESM(require_require_in_the_middle());
|
|
126019
|
-
|
|
126019
|
+
path42 = __toESM(require("path"));
|
|
126020
126020
|
init_ModuleNameTrie2();
|
|
126021
126021
|
isMocha3 = [
|
|
126022
126022
|
"afterEach",
|
|
@@ -126131,12 +126131,12 @@ function isSupported3(supportedVersions, version3, includePrerelease) {
|
|
|
126131
126131
|
return satisfies3(version3, supportedVersion, { includePrerelease });
|
|
126132
126132
|
});
|
|
126133
126133
|
}
|
|
126134
|
-
var
|
|
126134
|
+
var path43, import_util16, import_import_in_the_middle3, import_require_in_the_middle6, import_fs7, InstrumentationBase3;
|
|
126135
126135
|
var init_instrumentation4 = __esm({
|
|
126136
126136
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js"() {
|
|
126137
126137
|
"use strict";
|
|
126138
126138
|
init_cjs_shims();
|
|
126139
|
-
|
|
126139
|
+
path43 = __toESM(require("path"));
|
|
126140
126140
|
import_util16 = require("util");
|
|
126141
126141
|
init_semver3();
|
|
126142
126142
|
init_shimmer2();
|
|
@@ -126237,7 +126237,7 @@ var init_instrumentation4 = __esm({
|
|
|
126237
126237
|
}
|
|
126238
126238
|
_extractPackageVersion(baseDir) {
|
|
126239
126239
|
try {
|
|
126240
|
-
const json = (0, import_fs7.readFileSync)(
|
|
126240
|
+
const json = (0, import_fs7.readFileSync)(path43.join(baseDir, "package.json"), {
|
|
126241
126241
|
encoding: "utf8"
|
|
126242
126242
|
});
|
|
126243
126243
|
const version3 = JSON.parse(json).version;
|
|
@@ -126279,7 +126279,7 @@ var init_instrumentation4 = __esm({
|
|
|
126279
126279
|
return exports2;
|
|
126280
126280
|
}
|
|
126281
126281
|
const files = module2.files ?? [];
|
|
126282
|
-
const normalizedName =
|
|
126282
|
+
const normalizedName = path43.normalize(name2);
|
|
126283
126283
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported3(f.supportedVersions, version3, module2.includePrerelease));
|
|
126284
126284
|
return supportedFileInstrumentations.reduce((patchedExports, file) => {
|
|
126285
126285
|
file.moduleExports = patchedExports;
|
|
@@ -126325,8 +126325,8 @@ var init_instrumentation4 = __esm({
|
|
|
126325
126325
|
this._warnOnPreloadedModules();
|
|
126326
126326
|
for (const module2 of this._modules) {
|
|
126327
126327
|
const hookFn = (exports2, name2, baseDir) => {
|
|
126328
|
-
if (!baseDir &&
|
|
126329
|
-
const parsedPath =
|
|
126328
|
+
if (!baseDir && path43.isAbsolute(name2)) {
|
|
126329
|
+
const parsedPath = path43.parse(name2);
|
|
126330
126330
|
name2 = parsedPath.name;
|
|
126331
126331
|
baseDir = parsedPath.dir;
|
|
126332
126332
|
}
|
|
@@ -126335,7 +126335,7 @@ var init_instrumentation4 = __esm({
|
|
|
126335
126335
|
const onRequire = (exports2, name2, baseDir) => {
|
|
126336
126336
|
return this._onRequire(module2, exports2, name2, baseDir);
|
|
126337
126337
|
};
|
|
126338
|
-
const hook =
|
|
126338
|
+
const hook = path43.isAbsolute(module2.name) ? new import_require_in_the_middle6.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
|
|
126339
126339
|
this._hooks.push(hook);
|
|
126340
126340
|
const esmHook = new import_import_in_the_middle3.Hook([module2.name], { internals: true }, hookFn);
|
|
126341
126341
|
this._hooks.push(esmHook);
|
|
@@ -128347,11 +128347,11 @@ var require_instrumentation3 = __commonJS({
|
|
|
128347
128347
|
}
|
|
128348
128348
|
if (result instanceof Promise) {
|
|
128349
128349
|
return result.then((result2) => {
|
|
128350
|
-
return new Promise((
|
|
128350
|
+
return new Promise((resolve24) => {
|
|
128351
128351
|
utils.handleExecutionResult(plugin.getConfig(), span, result2);
|
|
128352
128352
|
recordDuration();
|
|
128353
128353
|
span.end();
|
|
128354
|
-
|
|
128354
|
+
resolve24(result2);
|
|
128355
128355
|
});
|
|
128356
128356
|
}).catch((error2) => {
|
|
128357
128357
|
return new Promise((_, reject) => {
|
|
@@ -129856,7 +129856,7 @@ var require_buffer_list = __commonJS({
|
|
|
129856
129856
|
}
|
|
129857
129857
|
}, {
|
|
129858
129858
|
key: "join",
|
|
129859
|
-
value: function
|
|
129859
|
+
value: function join29(s) {
|
|
129860
129860
|
if (this.length === 0) return "";
|
|
129861
129861
|
var p = this.head;
|
|
129862
129862
|
var ret = "" + p.data;
|
|
@@ -130347,14 +130347,14 @@ var require_async_iterator = __commonJS({
|
|
|
130347
130347
|
};
|
|
130348
130348
|
}
|
|
130349
130349
|
function readAndResolve(iter) {
|
|
130350
|
-
var
|
|
130351
|
-
if (
|
|
130350
|
+
var resolve24 = iter[kLastResolve];
|
|
130351
|
+
if (resolve24 !== null) {
|
|
130352
130352
|
var data = iter[kStream].read();
|
|
130353
130353
|
if (data !== null) {
|
|
130354
130354
|
iter[kLastPromise] = null;
|
|
130355
130355
|
iter[kLastResolve] = null;
|
|
130356
130356
|
iter[kLastReject] = null;
|
|
130357
|
-
|
|
130357
|
+
resolve24(createIterResult(data, false));
|
|
130358
130358
|
}
|
|
130359
130359
|
}
|
|
130360
130360
|
}
|
|
@@ -130362,13 +130362,13 @@ var require_async_iterator = __commonJS({
|
|
|
130362
130362
|
process.nextTick(readAndResolve, iter);
|
|
130363
130363
|
}
|
|
130364
130364
|
function wrapForNext(lastPromise, iter) {
|
|
130365
|
-
return function(
|
|
130365
|
+
return function(resolve24, reject) {
|
|
130366
130366
|
lastPromise.then(function() {
|
|
130367
130367
|
if (iter[kEnded]) {
|
|
130368
|
-
|
|
130368
|
+
resolve24(createIterResult(void 0, true));
|
|
130369
130369
|
return;
|
|
130370
130370
|
}
|
|
130371
|
-
iter[kHandlePromise](
|
|
130371
|
+
iter[kHandlePromise](resolve24, reject);
|
|
130372
130372
|
}, reject);
|
|
130373
130373
|
};
|
|
130374
130374
|
}
|
|
@@ -130388,12 +130388,12 @@ var require_async_iterator = __commonJS({
|
|
|
130388
130388
|
return Promise.resolve(createIterResult(void 0, true));
|
|
130389
130389
|
}
|
|
130390
130390
|
if (this[kStream].destroyed) {
|
|
130391
|
-
return new Promise(function(
|
|
130391
|
+
return new Promise(function(resolve24, reject) {
|
|
130392
130392
|
process.nextTick(function() {
|
|
130393
130393
|
if (_this[kError]) {
|
|
130394
130394
|
reject(_this[kError]);
|
|
130395
130395
|
} else {
|
|
130396
|
-
|
|
130396
|
+
resolve24(createIterResult(void 0, true));
|
|
130397
130397
|
}
|
|
130398
130398
|
});
|
|
130399
130399
|
});
|
|
@@ -130416,13 +130416,13 @@ var require_async_iterator = __commonJS({
|
|
|
130416
130416
|
return this;
|
|
130417
130417
|
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
130418
130418
|
var _this2 = this;
|
|
130419
|
-
return new Promise(function(
|
|
130419
|
+
return new Promise(function(resolve24, reject) {
|
|
130420
130420
|
_this2[kStream].destroy(null, function(err) {
|
|
130421
130421
|
if (err) {
|
|
130422
130422
|
reject(err);
|
|
130423
130423
|
return;
|
|
130424
130424
|
}
|
|
130425
|
-
|
|
130425
|
+
resolve24(createIterResult(void 0, true));
|
|
130426
130426
|
});
|
|
130427
130427
|
});
|
|
130428
130428
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
@@ -130444,15 +130444,15 @@ var require_async_iterator = __commonJS({
|
|
|
130444
130444
|
value: stream._readableState.endEmitted,
|
|
130445
130445
|
writable: true
|
|
130446
130446
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
130447
|
-
value: function value(
|
|
130447
|
+
value: function value(resolve24, reject) {
|
|
130448
130448
|
var data = iterator[kStream].read();
|
|
130449
130449
|
if (data) {
|
|
130450
130450
|
iterator[kLastPromise] = null;
|
|
130451
130451
|
iterator[kLastResolve] = null;
|
|
130452
130452
|
iterator[kLastReject] = null;
|
|
130453
|
-
|
|
130453
|
+
resolve24(createIterResult(data, false));
|
|
130454
130454
|
} else {
|
|
130455
|
-
iterator[kLastResolve] =
|
|
130455
|
+
iterator[kLastResolve] = resolve24;
|
|
130456
130456
|
iterator[kLastReject] = reject;
|
|
130457
130457
|
}
|
|
130458
130458
|
},
|
|
@@ -130471,12 +130471,12 @@ var require_async_iterator = __commonJS({
|
|
|
130471
130471
|
iterator[kError] = err;
|
|
130472
130472
|
return;
|
|
130473
130473
|
}
|
|
130474
|
-
var
|
|
130475
|
-
if (
|
|
130474
|
+
var resolve24 = iterator[kLastResolve];
|
|
130475
|
+
if (resolve24 !== null) {
|
|
130476
130476
|
iterator[kLastPromise] = null;
|
|
130477
130477
|
iterator[kLastResolve] = null;
|
|
130478
130478
|
iterator[kLastReject] = null;
|
|
130479
|
-
|
|
130479
|
+
resolve24(createIterResult(void 0, true));
|
|
130480
130480
|
}
|
|
130481
130481
|
iterator[kEnded] = true;
|
|
130482
130482
|
});
|
|
@@ -130492,7 +130492,7 @@ var require_from = __commonJS({
|
|
|
130492
130492
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
130493
130493
|
"use strict";
|
|
130494
130494
|
init_cjs_shims();
|
|
130495
|
-
function asyncGeneratorStep(gen,
|
|
130495
|
+
function asyncGeneratorStep(gen, resolve24, reject, _next, _throw, key, arg) {
|
|
130496
130496
|
try {
|
|
130497
130497
|
var info = gen[key](arg);
|
|
130498
130498
|
var value = info.value;
|
|
@@ -130501,7 +130501,7 @@ var require_from = __commonJS({
|
|
|
130501
130501
|
return;
|
|
130502
130502
|
}
|
|
130503
130503
|
if (info.done) {
|
|
130504
|
-
|
|
130504
|
+
resolve24(value);
|
|
130505
130505
|
} else {
|
|
130506
130506
|
Promise.resolve(value).then(_next, _throw);
|
|
130507
130507
|
}
|
|
@@ -130509,13 +130509,13 @@ var require_from = __commonJS({
|
|
|
130509
130509
|
function _asyncToGenerator(fn) {
|
|
130510
130510
|
return function() {
|
|
130511
130511
|
var self2 = this, args = arguments;
|
|
130512
|
-
return new Promise(function(
|
|
130512
|
+
return new Promise(function(resolve24, reject) {
|
|
130513
130513
|
var gen = fn.apply(self2, args);
|
|
130514
130514
|
function _next(value) {
|
|
130515
|
-
asyncGeneratorStep(gen,
|
|
130515
|
+
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "next", value);
|
|
130516
130516
|
}
|
|
130517
130517
|
function _throw(err) {
|
|
130518
|
-
asyncGeneratorStep(gen,
|
|
130518
|
+
asyncGeneratorStep(gen, resolve24, reject, _next, _throw, "throw", err);
|
|
130519
130519
|
}
|
|
130520
130520
|
_next(void 0);
|
|
130521
130521
|
});
|
|
@@ -133435,7 +133435,7 @@ async function closeHttpServer(server, options = {}) {
|
|
|
133435
133435
|
return;
|
|
133436
133436
|
}
|
|
133437
133437
|
const forceAfterMs = options.forceAfterMs ?? 1e3;
|
|
133438
|
-
await new Promise((
|
|
133438
|
+
await new Promise((resolve24, reject) => {
|
|
133439
133439
|
const forceTimer = setTimeout(() => {
|
|
133440
133440
|
server.closeAllConnections?.();
|
|
133441
133441
|
server.closeIdleConnections?.();
|
|
@@ -133447,7 +133447,7 @@ async function closeHttpServer(server, options = {}) {
|
|
|
133447
133447
|
reject(err);
|
|
133448
133448
|
return;
|
|
133449
133449
|
}
|
|
133450
|
-
|
|
133450
|
+
resolve24();
|
|
133451
133451
|
});
|
|
133452
133452
|
server.closeIdleConnections?.();
|
|
133453
133453
|
});
|
|
@@ -135362,7 +135362,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
135362
135362
|
return cachedAtSec > nowSeconds();
|
|
135363
135363
|
}
|
|
135364
135364
|
function delay(t, value) {
|
|
135365
|
-
return new Promise((
|
|
135365
|
+
return new Promise((resolve24) => setTimeout(() => resolve24(value), t));
|
|
135366
135366
|
}
|
|
135367
135367
|
|
|
135368
135368
|
// ../../node_modules/.pnpm/@azure+msal-common@16.5.0/node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs
|
|
@@ -136866,7 +136866,7 @@ var developerCliCredentialInternals = {
|
|
|
136866
136866
|
const encodedClaims = btoa(claims);
|
|
136867
136867
|
claimsSections = ["--claims", encodedClaims];
|
|
136868
136868
|
}
|
|
136869
|
-
return new Promise((
|
|
136869
|
+
return new Promise((resolve24, reject) => {
|
|
136870
136870
|
try {
|
|
136871
136871
|
const args = [
|
|
136872
136872
|
"auth",
|
|
@@ -136883,7 +136883,7 @@ var developerCliCredentialInternals = {
|
|
|
136883
136883
|
cwd: developerCliCredentialInternals.getSafeWorkingDir(),
|
|
136884
136884
|
timeout
|
|
136885
136885
|
}, (error2, stdout, stderr) => {
|
|
136886
|
-
|
|
136886
|
+
resolve24({ stdout, stderr, error: error2 });
|
|
136887
136887
|
});
|
|
136888
136888
|
} catch (err) {
|
|
136889
136889
|
reject(err);
|
|
@@ -137033,7 +137033,7 @@ var cliCredentialInternals = {
|
|
|
137033
137033
|
if (subscription) {
|
|
137034
137034
|
subscriptionSection = ["--subscription", `"${subscription}"`];
|
|
137035
137035
|
}
|
|
137036
|
-
return new Promise((
|
|
137036
|
+
return new Promise((resolve24, reject) => {
|
|
137037
137037
|
try {
|
|
137038
137038
|
const args = [
|
|
137039
137039
|
"account",
|
|
@@ -137047,7 +137047,7 @@ var cliCredentialInternals = {
|
|
|
137047
137047
|
];
|
|
137048
137048
|
const command = ["az", ...args].join(" ");
|
|
137049
137049
|
import_child_process2.default.exec(command, { cwd: cliCredentialInternals.getSafeWorkingDir(), timeout }, (error2, stdout, stderr) => {
|
|
137050
|
-
|
|
137050
|
+
resolve24({ stdout, stderr, error: error2 });
|
|
137051
137051
|
});
|
|
137052
137052
|
} catch (err) {
|
|
137053
137053
|
reject(err);
|
|
@@ -137192,7 +137192,7 @@ var processUtils = {
|
|
|
137192
137192
|
* @internal
|
|
137193
137193
|
*/
|
|
137194
137194
|
execFile(file, params, options) {
|
|
137195
|
-
return new Promise((
|
|
137195
|
+
return new Promise((resolve24, reject) => {
|
|
137196
137196
|
import_node_child_process.default.execFile(file, params, options, (error2, stdout, stderr) => {
|
|
137197
137197
|
if (Buffer.isBuffer(stdout)) {
|
|
137198
137198
|
stdout = stdout.toString("utf8");
|
|
@@ -137203,7 +137203,7 @@ var processUtils = {
|
|
|
137203
137203
|
if (stderr || error2) {
|
|
137204
137204
|
reject(stderr ? new Error(stderr) : error2);
|
|
137205
137205
|
} else {
|
|
137206
|
-
|
|
137206
|
+
resolve24(stdout);
|
|
137207
137207
|
}
|
|
137208
137208
|
});
|
|
137209
137209
|
});
|
|
@@ -137650,11 +137650,11 @@ function persistNodeStartupTransport(storagePath, transport) {
|
|
|
137650
137650
|
transport
|
|
137651
137651
|
});
|
|
137652
137652
|
}
|
|
137653
|
-
function persistNodeStartupJoin(storagePath,
|
|
137653
|
+
function persistNodeStartupJoin(storagePath, join29) {
|
|
137654
137654
|
const startup = resolveNodeStartupMetadata(storagePath);
|
|
137655
137655
|
persistNodeStartupMetadata(storagePath, {
|
|
137656
137656
|
...startup,
|
|
137657
|
-
join:
|
|
137657
|
+
join: join29
|
|
137658
137658
|
});
|
|
137659
137659
|
}
|
|
137660
137660
|
function resolvePersistedDevTunnelId(storagePath, kind) {
|
|
@@ -138682,19 +138682,19 @@ async function fetchWithTimeout(url3, init, timeoutMs = DEFAULT_NODE_REQUEST_TIM
|
|
|
138682
138682
|
cleanup();
|
|
138683
138683
|
}
|
|
138684
138684
|
}
|
|
138685
|
-
async function fetchNodeWithFallback(node,
|
|
138685
|
+
async function fetchNodeWithFallback(node, path44, init, timeoutMs = DEFAULT_NODE_REQUEST_TIMEOUT_MS, trace2, options) {
|
|
138686
138686
|
let lastError;
|
|
138687
138687
|
const endpoints = getNodeRequestEndpoints(node, options);
|
|
138688
138688
|
for (const [index, endpoint] of endpoints.entries()) {
|
|
138689
138689
|
const attempt = index + 1;
|
|
138690
|
-
trace2?.onAttempt?.({ attempt, endpoint, path:
|
|
138690
|
+
trace2?.onAttempt?.({ attempt, endpoint, path: path44, timeoutMs, totalEndpoints: endpoints.length });
|
|
138691
138691
|
try {
|
|
138692
|
-
const response = await fetchWithTimeout(`${endpoint}${
|
|
138693
|
-
trace2?.onResponse?.({ attempt, endpoint, path:
|
|
138692
|
+
const response = await fetchWithTimeout(`${endpoint}${path44}`, init, timeoutMs);
|
|
138693
|
+
trace2?.onResponse?.({ attempt, endpoint, path: path44, response, timeoutMs, totalEndpoints: endpoints.length });
|
|
138694
138694
|
return { endpoint, response };
|
|
138695
138695
|
} catch (error2) {
|
|
138696
138696
|
lastError = error2;
|
|
138697
|
-
trace2?.onError?.({ attempt, endpoint, error: error2, path:
|
|
138697
|
+
trace2?.onError?.({ attempt, endpoint, error: error2, path: path44, timeoutMs, totalEndpoints: endpoints.length });
|
|
138698
138698
|
}
|
|
138699
138699
|
}
|
|
138700
138700
|
throw lastError instanceof Error ? lastError : new Error("No reachable node endpoint");
|
|
@@ -140027,7 +140027,7 @@ var KeepaliveNodeMessageQueue = class {
|
|
|
140027
140027
|
queued.push(requestMessage);
|
|
140028
140028
|
this.queuedMessages.set(nodeId, queued);
|
|
140029
140029
|
this.log.info("queued keepalive node message request", { nodeId, ...describeNodeMessage(requestMessage) });
|
|
140030
|
-
return new Promise((
|
|
140030
|
+
return new Promise((resolve24, reject) => {
|
|
140031
140031
|
const timeoutId = setTimeout(() => {
|
|
140032
140032
|
this.pendingResponses.delete(requestMessage.id);
|
|
140033
140033
|
reject(new Error(`Timed out waiting for ${requestMessage.kind} response from ${nodeId}`));
|
|
@@ -140035,7 +140035,7 @@ var KeepaliveNodeMessageQueue = class {
|
|
|
140035
140035
|
this.pendingResponses.set(requestMessage.id, {
|
|
140036
140036
|
nodeId,
|
|
140037
140037
|
kind: requestMessage.kind,
|
|
140038
|
-
resolve:
|
|
140038
|
+
resolve: resolve24,
|
|
140039
140039
|
reject,
|
|
140040
140040
|
timeoutId
|
|
140041
140041
|
});
|
|
@@ -140938,9 +140938,9 @@ var DataRouter = class {
|
|
|
140938
140938
|
/**
|
|
140939
140939
|
* Returns true if the request should be proxied to the leader.
|
|
140940
140940
|
*/
|
|
140941
|
-
shouldProxy(method,
|
|
140941
|
+
shouldProxy(method, path44) {
|
|
140942
140942
|
if (this.election.isLeader()) return false;
|
|
140943
|
-
if (this.isExcludedPath(
|
|
140943
|
+
if (this.isExcludedPath(path44)) return false;
|
|
140944
140944
|
if (method.toUpperCase() === "GET") return false;
|
|
140945
140945
|
return WRITE_METHODS.has(method.toUpperCase());
|
|
140946
140946
|
}
|
|
@@ -141044,8 +141044,8 @@ var DataRouter = class {
|
|
|
141044
141044
|
};
|
|
141045
141045
|
}
|
|
141046
141046
|
// ── Helpers ───────────────────────────────────────────────────────────
|
|
141047
|
-
isExcludedPath(
|
|
141048
|
-
return EXCLUDED_PATH_PREFIXES.some((prefix) =>
|
|
141047
|
+
isExcludedPath(path44) {
|
|
141048
|
+
return EXCLUDED_PATH_PREFIXES.some((prefix) => path44.startsWith(prefix)) || EXCLUDED_PATH_SUFFIXES.some((suffix) => path44.endsWith(suffix));
|
|
141049
141049
|
}
|
|
141050
141050
|
};
|
|
141051
141051
|
|
|
@@ -142489,7 +142489,7 @@ var LiteAgentRunner = class {
|
|
|
142489
142489
|
}
|
|
142490
142490
|
};
|
|
142491
142491
|
function runProcessForOutput(command, args, prompt, cwd, extractOutput) {
|
|
142492
|
-
return new Promise((
|
|
142492
|
+
return new Promise((resolve24, reject) => {
|
|
142493
142493
|
const proc = (0, import_node_child_process3.spawn)(command, args, {
|
|
142494
142494
|
cwd: cwd ?? process.cwd(),
|
|
142495
142495
|
stdio: ["pipe", "pipe", "pipe"]
|
|
@@ -142509,7 +142509,7 @@ function runProcessForOutput(command, args, prompt, cwd, extractOutput) {
|
|
|
142509
142509
|
return;
|
|
142510
142510
|
}
|
|
142511
142511
|
try {
|
|
142512
|
-
|
|
142512
|
+
resolve24(extractOutput ? extractOutput(stdout) : stdout.trim());
|
|
142513
142513
|
} catch (error2) {
|
|
142514
142514
|
reject(error2);
|
|
142515
142515
|
}
|
|
@@ -146636,8 +146636,8 @@ function decodePathSegment(value) {
|
|
|
146636
146636
|
return value;
|
|
146637
146637
|
}
|
|
146638
146638
|
}
|
|
146639
|
-
function getSingleTaskDeleteId(
|
|
146640
|
-
const match = /^\/api\/tasks\/([^/]+)$/.exec(
|
|
146639
|
+
function getSingleTaskDeleteId(path44) {
|
|
146640
|
+
const match = /^\/api\/tasks\/([^/]+)$/.exec(path44);
|
|
146641
146641
|
return match ? decodePathSegment(match[1]) : null;
|
|
146642
146642
|
}
|
|
146643
146643
|
function getSuccessfulBatchDeleteIds(body) {
|
|
@@ -146813,14 +146813,14 @@ function createRequestLoggingMiddleware(rootLogger, options = {}) {
|
|
|
146813
146813
|
return;
|
|
146814
146814
|
}
|
|
146815
146815
|
const startedAt = process.hrtime.bigint();
|
|
146816
|
-
const
|
|
146816
|
+
const path44 = req.path;
|
|
146817
146817
|
let logged = false;
|
|
146818
146818
|
const logCompletion = (closed) => {
|
|
146819
146819
|
if (logged) return;
|
|
146820
146820
|
logged = true;
|
|
146821
146821
|
log2.info("request completed", {
|
|
146822
146822
|
method: req.method,
|
|
146823
|
-
path:
|
|
146823
|
+
path: path44,
|
|
146824
146824
|
statusCode: res.statusCode,
|
|
146825
146825
|
durationMs: durationMs(startedAt),
|
|
146826
146826
|
closed,
|
|
@@ -146898,14 +146898,14 @@ function createRequestTelemetryMiddleware(telemetry, options = {}) {
|
|
|
146898
146898
|
return;
|
|
146899
146899
|
}
|
|
146900
146900
|
const startedAt = process.hrtime.bigint();
|
|
146901
|
-
const
|
|
146901
|
+
const path44 = req.path;
|
|
146902
146902
|
let tracked = false;
|
|
146903
146903
|
const trackCompletion = (closed) => {
|
|
146904
146904
|
if (tracked) return;
|
|
146905
146905
|
tracked = true;
|
|
146906
146906
|
try {
|
|
146907
146907
|
const duration3 = durationMs2(startedAt);
|
|
146908
|
-
const route = resolveTelemetryRoute(
|
|
146908
|
+
const route = resolveTelemetryRoute(path44);
|
|
146909
146909
|
const dimensions = {
|
|
146910
146910
|
method: req.method,
|
|
146911
146911
|
routeGroup: route.routeGroup,
|
|
@@ -147034,8 +147034,8 @@ function normalizeDevBoxStatus(status) {
|
|
|
147034
147034
|
return status?.trim().toLowerCase().replace(/[\s_-]+/gu, "");
|
|
147035
147035
|
}
|
|
147036
147036
|
function sleep(ms) {
|
|
147037
|
-
return new Promise((
|
|
147038
|
-
const timer = setTimeout(
|
|
147037
|
+
return new Promise((resolve24) => {
|
|
147038
|
+
const timer = setTimeout(resolve24, ms);
|
|
147039
147039
|
if (typeof timer === "object" && timer !== null && "unref" in timer && typeof timer.unref === "function") {
|
|
147040
147040
|
timer.unref();
|
|
147041
147041
|
}
|
|
@@ -154888,12 +154888,12 @@ function detectLocalIp() {
|
|
|
154888
154888
|
return "127.0.0.1";
|
|
154889
154889
|
}
|
|
154890
154890
|
function detectAvailablePort() {
|
|
154891
|
-
return new Promise((
|
|
154891
|
+
return new Promise((resolve24, reject) => {
|
|
154892
154892
|
const srv = (0, import_node_http2.createServer)();
|
|
154893
154893
|
srv.listen(0, () => {
|
|
154894
154894
|
const addr = srv.address();
|
|
154895
154895
|
const port = addr && typeof addr !== "string" ? addr.port : 0;
|
|
154896
|
-
srv.close((err) => err ? reject(err) :
|
|
154896
|
+
srv.close((err) => err ? reject(err) : resolve24(port));
|
|
154897
154897
|
});
|
|
154898
154898
|
srv.on("error", reject);
|
|
154899
154899
|
});
|
|
@@ -154940,20 +154940,94 @@ var DirectTransport = class {
|
|
|
154940
154940
|
// ../../packages/transport/src/devtunnel.ts
|
|
154941
154941
|
init_cjs_shims();
|
|
154942
154942
|
var import_node_child_process11 = require("child_process");
|
|
154943
|
+
var fs27 = __toESM(require("fs"), 1);
|
|
154944
|
+
var path31 = __toESM(require("path"), 1);
|
|
154943
154945
|
function hiddenPipeOptions() {
|
|
154944
154946
|
return { stdio: "pipe", windowsHide: true };
|
|
154945
154947
|
}
|
|
154946
154948
|
function hiddenSpawnOptions() {
|
|
154947
154949
|
return { stdio: ["pipe", "pipe", "pipe"], windowsHide: true };
|
|
154948
154950
|
}
|
|
154951
|
+
function hiddenTextOptions() {
|
|
154952
|
+
return { encoding: "utf-8", stdio: "pipe", windowsHide: true };
|
|
154953
|
+
}
|
|
154954
|
+
var DEV_TUNNEL_COMMAND_ENV = "MESHY_DEVTUNNEL_PATH";
|
|
154949
154955
|
function isInstalled(cmd) {
|
|
154956
|
+
if (path31.isAbsolute(cmd)) {
|
|
154957
|
+
return fs27.existsSync(cmd);
|
|
154958
|
+
}
|
|
154950
154959
|
try {
|
|
154951
|
-
(0, import_node_child_process11.
|
|
154960
|
+
(0, import_node_child_process11.execFileSync)(process.platform === "win32" ? "where.exe" : "which", [cmd], hiddenPipeOptions());
|
|
154952
154961
|
return true;
|
|
154953
154962
|
} catch {
|
|
154954
154963
|
return false;
|
|
154955
154964
|
}
|
|
154956
154965
|
}
|
|
154966
|
+
function normalizeConfiguredCommand(value) {
|
|
154967
|
+
const trimmed = value?.trim();
|
|
154968
|
+
if (!trimmed) {
|
|
154969
|
+
return void 0;
|
|
154970
|
+
}
|
|
154971
|
+
return trimmed.replace(/^"(.+)"$/, "$1");
|
|
154972
|
+
}
|
|
154973
|
+
function windowsLocalAppDataRoots() {
|
|
154974
|
+
const roots = [
|
|
154975
|
+
process.env.LOCALAPPDATA,
|
|
154976
|
+
process.env.USERPROFILE ? path31.join(process.env.USERPROFILE, "AppData", "Local") : void 0
|
|
154977
|
+
].filter((value) => Boolean(value));
|
|
154978
|
+
return [...new Set(roots.map((root) => path31.resolve(root)))];
|
|
154979
|
+
}
|
|
154980
|
+
function findWindowsDevTunnelPackageExecutable() {
|
|
154981
|
+
const candidates = [];
|
|
154982
|
+
for (const localAppData of windowsLocalAppDataRoots()) {
|
|
154983
|
+
const packageRoot = path31.join(localAppData, "Microsoft", "WinGet", "Packages");
|
|
154984
|
+
let entries;
|
|
154985
|
+
try {
|
|
154986
|
+
entries = fs27.readdirSync(packageRoot, { withFileTypes: true });
|
|
154987
|
+
} catch {
|
|
154988
|
+
continue;
|
|
154989
|
+
}
|
|
154990
|
+
for (const entry of entries) {
|
|
154991
|
+
if (!entry.isDirectory() || !entry.name.toLowerCase().startsWith("microsoft.devtunnel_")) {
|
|
154992
|
+
continue;
|
|
154993
|
+
}
|
|
154994
|
+
const executable = path31.join(packageRoot, entry.name, "devtunnel.exe");
|
|
154995
|
+
if (fs27.existsSync(executable)) {
|
|
154996
|
+
candidates.push(executable);
|
|
154997
|
+
}
|
|
154998
|
+
}
|
|
154999
|
+
}
|
|
155000
|
+
candidates.sort();
|
|
155001
|
+
return candidates.at(-1);
|
|
155002
|
+
}
|
|
155003
|
+
function resolveDevTunnelCommand() {
|
|
155004
|
+
const configured = normalizeConfiguredCommand(process.env[DEV_TUNNEL_COMMAND_ENV]);
|
|
155005
|
+
if (configured) {
|
|
155006
|
+
return configured;
|
|
155007
|
+
}
|
|
155008
|
+
if (process.platform === "win32") {
|
|
155009
|
+
return findWindowsDevTunnelPackageExecutable() ?? "devtunnel";
|
|
155010
|
+
}
|
|
155011
|
+
return "devtunnel";
|
|
155012
|
+
}
|
|
155013
|
+
function runDevTunnel(command, args) {
|
|
155014
|
+
return (0, import_node_child_process11.execFileSync)(command, args, hiddenPipeOptions());
|
|
155015
|
+
}
|
|
155016
|
+
function runDevTunnelText(command, args) {
|
|
155017
|
+
const result = (0, import_node_child_process11.spawnSync)(command, args, hiddenTextOptions());
|
|
155018
|
+
if (result.error) {
|
|
155019
|
+
throw result.error;
|
|
155020
|
+
}
|
|
155021
|
+
const output = String(result.stdout ?? "") + "\n" + String(result.stderr ?? "");
|
|
155022
|
+
const trimmed = output.trim();
|
|
155023
|
+
if (result.status !== 0) {
|
|
155024
|
+
throw new Error(trimmed || "devtunnel exited with status " + (result.status ?? "unknown"));
|
|
155025
|
+
}
|
|
155026
|
+
return trimmed;
|
|
155027
|
+
}
|
|
155028
|
+
function isNotLoggedInOutput(output) {
|
|
155029
|
+
return output.toLowerCase().includes("not logged in");
|
|
155030
|
+
}
|
|
154957
155031
|
var DevTunnelTransport = class {
|
|
154958
155032
|
process = null;
|
|
154959
155033
|
publicUrl = null;
|
|
@@ -154965,22 +155039,26 @@ var DevTunnelTransport = class {
|
|
|
154965
155039
|
if (this.process) {
|
|
154966
155040
|
throw new Error("Transport already started");
|
|
154967
155041
|
}
|
|
154968
|
-
|
|
155042
|
+
const devTunnelCommand = resolveDevTunnelCommand();
|
|
155043
|
+
if (!isInstalled(devTunnelCommand)) {
|
|
154969
155044
|
throw new Error(
|
|
154970
155045
|
"devtunnel CLI is not installed. Install it:\n Windows: winget install Microsoft.devtunnel\n macOS: brew install --cask devtunnel\n Linux: curl -fsSL https://aka.ms/DevTunnelCliLinux-x64 -o /usr/local/bin/devtunnel && chmod +x /usr/local/bin/devtunnel"
|
|
154971
155046
|
);
|
|
154972
155047
|
}
|
|
154973
155048
|
try {
|
|
154974
|
-
(
|
|
155049
|
+
const output = runDevTunnelText(devTunnelCommand, ["user", "show"]);
|
|
155050
|
+
if (isNotLoggedInOutput(output)) {
|
|
155051
|
+
throw new Error("Dev Tunnel CLI reported that no user is logged in");
|
|
155052
|
+
}
|
|
154975
155053
|
} catch {
|
|
154976
155054
|
throw new Error(
|
|
154977
155055
|
"Not logged in to devtunnel. Run: devtunnel user login"
|
|
154978
155056
|
);
|
|
154979
155057
|
}
|
|
154980
|
-
const hostArgs = this.buildHostArgs(localPort);
|
|
154981
|
-
const child = (0, import_node_child_process11.spawn)(
|
|
155058
|
+
const hostArgs = this.buildHostArgs(localPort, devTunnelCommand);
|
|
155059
|
+
const child = (0, import_node_child_process11.spawn)(devTunnelCommand, hostArgs, hiddenSpawnOptions());
|
|
154982
155060
|
this.process = child;
|
|
154983
|
-
this.publicUrl = await new Promise((
|
|
155061
|
+
this.publicUrl = await new Promise((resolve24, reject) => {
|
|
154984
155062
|
const timeout = setTimeout(() => {
|
|
154985
155063
|
child.kill();
|
|
154986
155064
|
this.process = null;
|
|
@@ -155003,7 +155081,7 @@ var DevTunnelTransport = class {
|
|
|
155003
155081
|
clearTimeout(timeout);
|
|
155004
155082
|
child.stdout?.removeListener("data", onData);
|
|
155005
155083
|
child.stderr?.removeListener("data", onErrData);
|
|
155006
|
-
|
|
155084
|
+
resolve24(url3.replace(/\/+$/, ""));
|
|
155007
155085
|
};
|
|
155008
155086
|
child.stdout?.on("data", onData);
|
|
155009
155087
|
child.stderr?.on("data", onErrData);
|
|
@@ -155035,14 +155113,14 @@ ${lines.join("")}`
|
|
|
155035
155113
|
this.publicUrl = null;
|
|
155036
155114
|
if (child.exitCode === null) {
|
|
155037
155115
|
child.kill("SIGTERM");
|
|
155038
|
-
await new Promise((
|
|
155116
|
+
await new Promise((resolve24) => {
|
|
155039
155117
|
const killTimer = setTimeout(() => {
|
|
155040
155118
|
child.kill("SIGKILL");
|
|
155041
|
-
|
|
155119
|
+
resolve24();
|
|
155042
155120
|
}, 5e3);
|
|
155043
155121
|
child.on("close", () => {
|
|
155044
155122
|
clearTimeout(killTimer);
|
|
155045
|
-
|
|
155123
|
+
resolve24();
|
|
155046
155124
|
});
|
|
155047
155125
|
});
|
|
155048
155126
|
}
|
|
@@ -155059,7 +155137,7 @@ ${lines.join("")}`
|
|
|
155059
155137
|
return void 0;
|
|
155060
155138
|
}
|
|
155061
155139
|
try {
|
|
155062
|
-
const output = (
|
|
155140
|
+
const output = runDevTunnel(resolveDevTunnelCommand(), ["token", tunnelId, "--scopes", "connect"]);
|
|
155063
155141
|
const token = parseTunnelToken(output.toString());
|
|
155064
155142
|
return token ? `tunnel ${token}` : void 0;
|
|
155065
155143
|
} catch (err) {
|
|
@@ -155078,8 +155156,8 @@ ${lines.join("")}`
|
|
|
155078
155156
|
persistent: this.config.id.trim().length > 0
|
|
155079
155157
|
};
|
|
155080
155158
|
}
|
|
155081
|
-
buildHostArgs(localPort) {
|
|
155082
|
-
const tunnelId = this.ensureTunnelExists();
|
|
155159
|
+
buildHostArgs(localPort, devTunnelCommand) {
|
|
155160
|
+
const tunnelId = this.ensureTunnelExists(devTunnelCommand);
|
|
155083
155161
|
if (!tunnelId) {
|
|
155084
155162
|
const args = ["host", "-p", String(localPort)];
|
|
155085
155163
|
if (this.config.allowAnonymous !== false) {
|
|
@@ -155087,16 +155165,16 @@ ${lines.join("")}`
|
|
|
155087
155165
|
}
|
|
155088
155166
|
return args;
|
|
155089
155167
|
}
|
|
155090
|
-
this.ensureTunnelPort(tunnelId, localPort);
|
|
155091
|
-
this.ensureTunnelAccess(tunnelId);
|
|
155168
|
+
this.ensureTunnelPort(tunnelId, localPort, devTunnelCommand);
|
|
155169
|
+
this.ensureTunnelAccess(tunnelId, devTunnelCommand);
|
|
155092
155170
|
return ["host", tunnelId];
|
|
155093
155171
|
}
|
|
155094
|
-
ensureTunnelAccess(tunnelId) {
|
|
155172
|
+
ensureTunnelAccess(tunnelId, devTunnelCommand) {
|
|
155095
155173
|
if (this.config.access !== "tenant") {
|
|
155096
155174
|
return;
|
|
155097
155175
|
}
|
|
155098
155176
|
try {
|
|
155099
|
-
(
|
|
155177
|
+
runDevTunnel(devTunnelCommand, ["access", "create", tunnelId, "--tenant"]);
|
|
155100
155178
|
} catch (err) {
|
|
155101
155179
|
if (isExistingTenantAccessError(err)) {
|
|
155102
155180
|
return;
|
|
@@ -155106,13 +155184,13 @@ ${lines.join("")}`
|
|
|
155106
155184
|
);
|
|
155107
155185
|
}
|
|
155108
155186
|
}
|
|
155109
|
-
ensureTunnelExists() {
|
|
155187
|
+
ensureTunnelExists(devTunnelCommand) {
|
|
155110
155188
|
const tunnelId = this.config.id.trim();
|
|
155111
155189
|
if (!tunnelId) {
|
|
155112
155190
|
return void 0;
|
|
155113
155191
|
}
|
|
155114
155192
|
try {
|
|
155115
|
-
(
|
|
155193
|
+
runDevTunnel(devTunnelCommand, ["show", tunnelId]);
|
|
155116
155194
|
return tunnelId;
|
|
155117
155195
|
} catch {
|
|
155118
155196
|
const createArgs = ["create", tunnelId];
|
|
@@ -155120,7 +155198,7 @@ ${lines.join("")}`
|
|
|
155120
155198
|
createArgs.push("-a");
|
|
155121
155199
|
}
|
|
155122
155200
|
try {
|
|
155123
|
-
(
|
|
155201
|
+
runDevTunnel(devTunnelCommand, createArgs);
|
|
155124
155202
|
return tunnelId;
|
|
155125
155203
|
} catch (err) {
|
|
155126
155204
|
throw new Error(
|
|
@@ -155129,22 +155207,18 @@ ${lines.join("")}`
|
|
|
155129
155207
|
}
|
|
155130
155208
|
}
|
|
155131
155209
|
}
|
|
155132
|
-
ensureTunnelPort(tunnelId, localPort) {
|
|
155133
|
-
const ports = this.listTunnelPorts(tunnelId);
|
|
155210
|
+
ensureTunnelPort(tunnelId, localPort, devTunnelCommand) {
|
|
155211
|
+
const ports = this.listTunnelPorts(tunnelId, devTunnelCommand);
|
|
155134
155212
|
for (const stalePort of ports.filter((p) => p !== localPort)) {
|
|
155135
|
-
(
|
|
155213
|
+
runDevTunnel(devTunnelCommand, ["port", "delete", tunnelId, "-p", String(stalePort)]);
|
|
155136
155214
|
}
|
|
155137
155215
|
if (ports.includes(localPort)) {
|
|
155138
155216
|
return;
|
|
155139
155217
|
}
|
|
155140
155218
|
try {
|
|
155141
|
-
(
|
|
155142
|
-
"devtunnel",
|
|
155143
|
-
["port", "create", tunnelId, "-p", String(localPort), "--protocol", "http"],
|
|
155144
|
-
hiddenPipeOptions()
|
|
155145
|
-
);
|
|
155219
|
+
runDevTunnel(devTunnelCommand, ["port", "create", tunnelId, "-p", String(localPort), "--protocol", "http"]);
|
|
155146
155220
|
} catch (err) {
|
|
155147
|
-
if (this.isExistingPortConflict(err) && this.hasTunnelPort(tunnelId, localPort)) {
|
|
155221
|
+
if (this.isExistingPortConflict(err) && this.hasTunnelPort(tunnelId, localPort, devTunnelCommand)) {
|
|
155148
155222
|
return;
|
|
155149
155223
|
}
|
|
155150
155224
|
throw new Error(
|
|
@@ -155152,9 +155226,9 @@ ${lines.join("")}`
|
|
|
155152
155226
|
);
|
|
155153
155227
|
}
|
|
155154
155228
|
}
|
|
155155
|
-
listTunnelPorts(tunnelId) {
|
|
155229
|
+
listTunnelPorts(tunnelId, devTunnelCommand) {
|
|
155156
155230
|
try {
|
|
155157
|
-
const output = (
|
|
155231
|
+
const output = runDevTunnel(devTunnelCommand, ["port", "list", tunnelId, "-j"]);
|
|
155158
155232
|
const parsed = JSON.parse(output.toString());
|
|
155159
155233
|
const items = Array.isArray(parsed) ? parsed : parsed && typeof parsed === "object" && Array.isArray(parsed.ports) ? parsed.ports : parsed && typeof parsed === "object" && Array.isArray(parsed.value) ? parsed.value : [];
|
|
155160
155234
|
return items.map((item) => getPortNumber(item)).filter((value) => value !== void 0);
|
|
@@ -155164,13 +155238,9 @@ ${lines.join("")}`
|
|
|
155164
155238
|
);
|
|
155165
155239
|
}
|
|
155166
155240
|
}
|
|
155167
|
-
hasTunnelPort(tunnelId, localPort) {
|
|
155241
|
+
hasTunnelPort(tunnelId, localPort, devTunnelCommand) {
|
|
155168
155242
|
try {
|
|
155169
|
-
(
|
|
155170
|
-
"devtunnel",
|
|
155171
|
-
["port", "show", tunnelId, "-p", String(localPort), "-j"],
|
|
155172
|
-
hiddenPipeOptions()
|
|
155173
|
-
);
|
|
155243
|
+
runDevTunnel(devTunnelCommand, ["port", "show", tunnelId, "-p", String(localPort), "-j"]);
|
|
155174
155244
|
return true;
|
|
155175
155245
|
} catch {
|
|
155176
155246
|
return false;
|
|
@@ -155304,13 +155374,13 @@ var terminalWriter = {
|
|
|
155304
155374
|
};
|
|
155305
155375
|
|
|
155306
155376
|
// src/startup.ts
|
|
155307
|
-
var
|
|
155377
|
+
var fs29 = __toESM(require("fs"), 1);
|
|
155308
155378
|
var readline2 = __toESM(require("readline/promises"), 1);
|
|
155309
155379
|
|
|
155310
155380
|
// src/startup-tools/index.ts
|
|
155311
155381
|
init_cjs_shims();
|
|
155312
|
-
var
|
|
155313
|
-
var
|
|
155382
|
+
var fs28 = __toESM(require("fs"), 1);
|
|
155383
|
+
var path32 = __toESM(require("path"), 1);
|
|
155314
155384
|
var readline = __toESM(require("readline/promises"), 1);
|
|
155315
155385
|
var import_node_child_process12 = require("child_process");
|
|
155316
155386
|
var STARTUP_REQUIREMENTS = ["az", "devtunnel", "claude", "codex", "copilot"];
|
|
@@ -155358,19 +155428,19 @@ function createDefaultCommandRunner(platform6) {
|
|
|
155358
155428
|
};
|
|
155359
155429
|
}
|
|
155360
155430
|
function getNodeMetadataPath2(storagePath) {
|
|
155361
|
-
return
|
|
155431
|
+
return path32.join(storagePath, "metadata.json");
|
|
155362
155432
|
}
|
|
155363
155433
|
function readStartupMetadataFile(storagePath) {
|
|
155364
155434
|
try {
|
|
155365
|
-
const raw = JSON.parse(
|
|
155435
|
+
const raw = JSON.parse(fs28.readFileSync(getNodeMetadataPath2(storagePath), "utf-8"));
|
|
155366
155436
|
return typeof raw === "object" && raw !== null ? raw : {};
|
|
155367
155437
|
} catch {
|
|
155368
155438
|
return {};
|
|
155369
155439
|
}
|
|
155370
155440
|
}
|
|
155371
155441
|
function writeStartupMetadataFile(storagePath, metadata) {
|
|
155372
|
-
|
|
155373
|
-
|
|
155442
|
+
fs28.mkdirSync(storagePath, { recursive: true });
|
|
155443
|
+
fs28.writeFileSync(getNodeMetadataPath2(storagePath), JSON.stringify(metadata, null, 2) + "\n", "utf-8");
|
|
155374
155444
|
}
|
|
155375
155445
|
function formatLocalDate2(now) {
|
|
155376
155446
|
const year = now.getFullYear();
|
|
@@ -155454,7 +155524,7 @@ function isRequirementSatisfied(requirement, status) {
|
|
|
155454
155524
|
return true;
|
|
155455
155525
|
}
|
|
155456
155526
|
function sleep2(ms) {
|
|
155457
|
-
return new Promise((
|
|
155527
|
+
return new Promise((resolve24) => setTimeout(resolve24, ms));
|
|
155458
155528
|
}
|
|
155459
155529
|
function areCachedAuthRequirementsCurrent(commandRunner) {
|
|
155460
155530
|
return isAuthenticated("az", commandRunner) && isAuthenticated("devtunnel", commandRunner);
|
|
@@ -155643,9 +155713,9 @@ function createRuntimeDefaultConfig(fileConfig, options = {}) {
|
|
|
155643
155713
|
else if (isDevBoxEnvironment()) config2.node.devbox = { enabled: true };
|
|
155644
155714
|
return config2;
|
|
155645
155715
|
}
|
|
155646
|
-
function loadConfigFile(
|
|
155716
|
+
function loadConfigFile(path44) {
|
|
155647
155717
|
try {
|
|
155648
|
-
const raw =
|
|
155718
|
+
const raw = fs29.readFileSync(path44, "utf-8");
|
|
155649
155719
|
return JSON.parse(raw);
|
|
155650
155720
|
} catch {
|
|
155651
155721
|
return {};
|
|
@@ -155825,26 +155895,26 @@ function formatLoadedStartMetadata(info, authEnabled) {
|
|
|
155825
155895
|
|
|
155826
155896
|
// src/runtime-metadata.ts
|
|
155827
155897
|
init_cjs_shims();
|
|
155828
|
-
var
|
|
155829
|
-
var
|
|
155898
|
+
var fs30 = __toESM(require("fs"), 1);
|
|
155899
|
+
var path33 = __toESM(require("path"), 1);
|
|
155830
155900
|
var import_node_child_process13 = require("child_process");
|
|
155831
155901
|
var runtimeDir = resolveRuntimeDir();
|
|
155832
155902
|
var appRoot = resolveAppRoot(runtimeDir);
|
|
155833
|
-
var repoRoot =
|
|
155903
|
+
var repoRoot = path33.resolve(appRoot, "../..");
|
|
155834
155904
|
function resolveRuntimeDir() {
|
|
155835
155905
|
const entryPath = process.argv[1];
|
|
155836
155906
|
if (typeof entryPath === "string" && entryPath.length > 0) {
|
|
155837
155907
|
try {
|
|
155838
|
-
return
|
|
155908
|
+
return path33.dirname(fs30.realpathSync(path33.resolve(entryPath)));
|
|
155839
155909
|
} catch {
|
|
155840
|
-
return
|
|
155910
|
+
return path33.dirname(path33.resolve(entryPath));
|
|
155841
155911
|
}
|
|
155842
155912
|
}
|
|
155843
155913
|
return process.cwd();
|
|
155844
155914
|
}
|
|
155845
155915
|
function readJsonFile(filePath) {
|
|
155846
155916
|
try {
|
|
155847
|
-
return JSON.parse(
|
|
155917
|
+
return JSON.parse(fs30.readFileSync(filePath, "utf-8"));
|
|
155848
155918
|
} catch {
|
|
155849
155919
|
return null;
|
|
155850
155920
|
}
|
|
@@ -155854,9 +155924,9 @@ function readPackageManifest(filePath) {
|
|
|
155854
155924
|
}
|
|
155855
155925
|
function readEmbeddedRuntimeMetadata() {
|
|
155856
155926
|
const candidates = [
|
|
155857
|
-
|
|
155858
|
-
|
|
155859
|
-
|
|
155927
|
+
path33.join(appRoot, "runtime-metadata.json"),
|
|
155928
|
+
path33.join(runtimeDir, "runtime-metadata.json"),
|
|
155929
|
+
path33.resolve(process.cwd(), "apps/node/dist/runtime-metadata.json")
|
|
155860
155930
|
];
|
|
155861
155931
|
for (const candidate of candidates) {
|
|
155862
155932
|
const metadata = readJsonFile(candidate);
|
|
@@ -155869,23 +155939,23 @@ function readEmbeddedRuntimeMetadata() {
|
|
|
155869
155939
|
function resolveAppRoot(baseDir) {
|
|
155870
155940
|
const candidates = [
|
|
155871
155941
|
baseDir,
|
|
155872
|
-
|
|
155873
|
-
|
|
155874
|
-
|
|
155942
|
+
path33.resolve(baseDir, ".."),
|
|
155943
|
+
path33.resolve(process.cwd(), "apps/node/dist"),
|
|
155944
|
+
path33.resolve(process.cwd(), "apps/node"),
|
|
155875
155945
|
process.cwd()
|
|
155876
155946
|
];
|
|
155877
155947
|
for (const candidate of candidates) {
|
|
155878
|
-
const manifest = readPackageManifest(
|
|
155948
|
+
const manifest = readPackageManifest(path33.join(candidate, "package.json"));
|
|
155879
155949
|
if (manifest?.name === "@meshy/node" || manifest?.name === "meshy-node") {
|
|
155880
155950
|
return candidate;
|
|
155881
155951
|
}
|
|
155882
155952
|
}
|
|
155883
155953
|
for (const candidate of candidates) {
|
|
155884
|
-
if (
|
|
155954
|
+
if (fs30.existsSync(path33.join(candidate, "package.json"))) {
|
|
155885
155955
|
return candidate;
|
|
155886
155956
|
}
|
|
155887
155957
|
}
|
|
155888
|
-
return
|
|
155958
|
+
return path33.resolve(baseDir, "..");
|
|
155889
155959
|
}
|
|
155890
155960
|
function toPackageInfo(filePath) {
|
|
155891
155961
|
const manifest = readPackageManifest(filePath);
|
|
@@ -155945,8 +156015,8 @@ function buildRuntimeMetadata(storagePath) {
|
|
|
155945
156015
|
components: startupRequirements.components
|
|
155946
156016
|
};
|
|
155947
156017
|
}
|
|
155948
|
-
const appPackage = toPackageInfo(
|
|
155949
|
-
const workspaceManifest = readPackageManifest(
|
|
156018
|
+
const appPackage = toPackageInfo(path33.join(appRoot, "package.json"));
|
|
156019
|
+
const workspaceManifest = readPackageManifest(path33.join(repoRoot, "package.json"));
|
|
155950
156020
|
return {
|
|
155951
156021
|
packageName: appPackage?.name ?? "meshy",
|
|
155952
156022
|
packageVersion: appPackage?.version ?? "0.1.0",
|
|
@@ -155954,11 +156024,11 @@ function buildRuntimeMetadata(storagePath) {
|
|
|
155954
156024
|
startupRequirementsLastCheckedOn: startupRequirements.lastCheckedOn,
|
|
155955
156025
|
components: startupRequirements.components,
|
|
155956
156026
|
packages: {
|
|
155957
|
-
workspace: toPackageInfo(
|
|
156027
|
+
workspace: toPackageInfo(path33.join(repoRoot, "package.json")),
|
|
155958
156028
|
node: appPackage,
|
|
155959
|
-
core: toPackageInfo(
|
|
155960
|
-
dashboard: toPackageInfo(
|
|
155961
|
-
api: toPackageInfo(
|
|
156029
|
+
core: toPackageInfo(path33.join(repoRoot, "packages/core/package.json")),
|
|
156030
|
+
dashboard: toPackageInfo(path33.join(repoRoot, "packages/dashboard/package.json")),
|
|
156031
|
+
api: toPackageInfo(path33.join(repoRoot, "packages/api/package.json"))
|
|
155962
156032
|
},
|
|
155963
156033
|
repository: {
|
|
155964
156034
|
url: normalizeRepositoryUrl(readGitValue(["config", "--get", "remote.upstream.url"])) ?? normalizeRepositoryUrl(readGitValue(["config", "--get", "remote.origin.url"])) ?? readRepositoryUrlFromManifest(workspaceManifest),
|
|
@@ -156033,7 +156103,7 @@ function isDevTunnelOrigin(value) {
|
|
|
156033
156103
|
|
|
156034
156104
|
// src/bootstrap/runtime-restart.ts
|
|
156035
156105
|
init_cjs_shims();
|
|
156036
|
-
var
|
|
156106
|
+
var fs31 = __toESM(require("fs"), 1);
|
|
156037
156107
|
var nodePath2 = __toESM(require("path"), 1);
|
|
156038
156108
|
var import_node_child_process14 = require("child_process");
|
|
156039
156109
|
var RUNTIME_UPDATE_CHECK_INTERVAL_MS = 6 * 60 * 60 * 1e3;
|
|
@@ -156275,8 +156345,8 @@ function createRuntimeRestartLaunchPlan(options) {
|
|
|
156275
156345
|
};
|
|
156276
156346
|
}
|
|
156277
156347
|
function scheduleRuntimeRestart(plan, options = {}) {
|
|
156278
|
-
|
|
156279
|
-
const logFd =
|
|
156348
|
+
fs31.mkdirSync(nodePath2.dirname(plan.logPath), { recursive: true });
|
|
156349
|
+
const logFd = fs31.openSync(plan.logPath, "a");
|
|
156280
156350
|
const spawnImpl = options.spawnImpl ?? import_node_child_process14.spawn;
|
|
156281
156351
|
const env3 = {
|
|
156282
156352
|
...process.env,
|
|
@@ -156593,14 +156663,14 @@ var BatchSpanProcessorBase2 = class {
|
|
|
156593
156663
|
* for all other cases _flush should be used
|
|
156594
156664
|
* */
|
|
156595
156665
|
_flushAll() {
|
|
156596
|
-
return new Promise((
|
|
156666
|
+
return new Promise((resolve24, reject) => {
|
|
156597
156667
|
const promises2 = [];
|
|
156598
156668
|
const count = Math.ceil(this._finishedSpans.length / this._maxExportBatchSize);
|
|
156599
156669
|
for (let i = 0, j = count; i < j; i++) {
|
|
156600
156670
|
promises2.push(this._flushOneBatch());
|
|
156601
156671
|
}
|
|
156602
156672
|
Promise.all(promises2).then(() => {
|
|
156603
|
-
|
|
156673
|
+
resolve24();
|
|
156604
156674
|
}).catch(reject);
|
|
156605
156675
|
});
|
|
156606
156676
|
}
|
|
@@ -156609,7 +156679,7 @@ var BatchSpanProcessorBase2 = class {
|
|
|
156609
156679
|
if (this._finishedSpans.length === 0) {
|
|
156610
156680
|
return Promise.resolve();
|
|
156611
156681
|
}
|
|
156612
|
-
return new Promise((
|
|
156682
|
+
return new Promise((resolve24, reject) => {
|
|
156613
156683
|
const timer = setTimeout(() => {
|
|
156614
156684
|
reject(new Error("Timeout"));
|
|
156615
156685
|
}, this._exportTimeoutMillis);
|
|
@@ -156624,7 +156694,7 @@ var BatchSpanProcessorBase2 = class {
|
|
|
156624
156694
|
const doExport = () => this._exporter.export(spans, (result) => {
|
|
156625
156695
|
clearTimeout(timer);
|
|
156626
156696
|
if (result.code === ExportResultCode2.SUCCESS) {
|
|
156627
|
-
|
|
156697
|
+
resolve24();
|
|
156628
156698
|
} else {
|
|
156629
156699
|
reject(result.error ?? new Error("BatchSpanProcessor: span export failed"));
|
|
156630
156700
|
}
|
|
@@ -156791,7 +156861,7 @@ init_cjs_shims();
|
|
|
156791
156861
|
|
|
156792
156862
|
// ../../node_modules/.pnpm/@opentelemetry+resource-detector-azure@0.25.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resource-detector-azure/build/esm/detectors/AzureAksDetector.js
|
|
156793
156863
|
init_cjs_shims();
|
|
156794
|
-
var
|
|
156864
|
+
var fs38 = __toESM(require("fs"));
|
|
156795
156865
|
init_esm8();
|
|
156796
156866
|
|
|
156797
156867
|
// ../../node_modules/.pnpm/@opentelemetry+resource-detector-azure@0.25.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resource-detector-azure/build/esm/semconv.js
|
|
@@ -156891,10 +156961,10 @@ var AzureAksDetector = class {
|
|
|
156891
156961
|
}
|
|
156892
156962
|
getAksMetadataFromFile() {
|
|
156893
156963
|
try {
|
|
156894
|
-
if (!
|
|
156964
|
+
if (!fs38.existsSync(AKS_METADATA_FILE_PATH)) {
|
|
156895
156965
|
return void 0;
|
|
156896
156966
|
}
|
|
156897
|
-
const content =
|
|
156967
|
+
const content = fs38.readFileSync(AKS_METADATA_FILE_PATH, "utf8");
|
|
156898
156968
|
const metadata = {};
|
|
156899
156969
|
const lines = content.split("\n");
|
|
156900
156970
|
for (const line of lines) {
|
|
@@ -157084,7 +157154,7 @@ var AzureVmResourceDetector = class {
|
|
|
157084
157154
|
Metadata: "True"
|
|
157085
157155
|
}
|
|
157086
157156
|
};
|
|
157087
|
-
const metadata = await new Promise((
|
|
157157
|
+
const metadata = await new Promise((resolve24, reject) => {
|
|
157088
157158
|
const timeoutId = setTimeout(() => {
|
|
157089
157159
|
req.destroy();
|
|
157090
157160
|
reject(new Error("Azure metadata service request timed out."));
|
|
@@ -157098,7 +157168,7 @@ var AzureVmResourceDetector = class {
|
|
|
157098
157168
|
res.on("end", () => {
|
|
157099
157169
|
if (statusCode && statusCode >= 200 && statusCode < 300) {
|
|
157100
157170
|
try {
|
|
157101
|
-
|
|
157171
|
+
resolve24(JSON.parse(rawData));
|
|
157102
157172
|
} catch (error2) {
|
|
157103
157173
|
reject(error2);
|
|
157104
157174
|
}
|
|
@@ -160020,13 +160090,13 @@ function normalizeUnreserved(uri) {
|
|
|
160020
160090
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/generated/api/operations.js
|
|
160021
160091
|
init_esm33();
|
|
160022
160092
|
function _publishSend(context4, ikey, options = { requestOptions: {} }) {
|
|
160023
|
-
const
|
|
160093
|
+
const path44 = expandUrlTemplate("/QuickPulseService.svc/post{?api%2Dversion,ikey}", {
|
|
160024
160094
|
"api%2Dversion": context4.apiVersion ?? "2024-04-01-preview",
|
|
160025
160095
|
ikey
|
|
160026
160096
|
}, {
|
|
160027
160097
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
160028
160098
|
});
|
|
160029
|
-
return context4.path(
|
|
160099
|
+
return context4.path(path44).post({
|
|
160030
160100
|
...operationOptionsToRequestParameters2(options),
|
|
160031
160101
|
contentType: "application/json",
|
|
160032
160102
|
headers: {
|
|
@@ -160052,13 +160122,13 @@ async function publish(context4, ikey, options = { requestOptions: {} }) {
|
|
|
160052
160122
|
return _publishDeserialize(result);
|
|
160053
160123
|
}
|
|
160054
160124
|
function _isSubscribedSend(context4, ikey, options = { requestOptions: {} }) {
|
|
160055
|
-
const
|
|
160125
|
+
const path44 = expandUrlTemplate("/QuickPulseService.svc/ping{?api%2Dversion,ikey}", {
|
|
160056
160126
|
"api%2Dversion": context4.apiVersion ?? "2024-04-01-preview",
|
|
160057
160127
|
ikey
|
|
160058
160128
|
}, {
|
|
160059
160129
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
160060
160130
|
});
|
|
160061
|
-
return context4.path(
|
|
160131
|
+
return context4.path(path44).post({
|
|
160062
160132
|
...operationOptionsToRequestParameters2(options),
|
|
160063
160133
|
contentType: "application/json",
|
|
160064
160134
|
headers: {
|
|
@@ -162129,7 +162199,7 @@ init_cjs_shims();
|
|
|
162129
162199
|
|
|
162130
162200
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js
|
|
162131
162201
|
init_cjs_shims();
|
|
162132
|
-
var
|
|
162202
|
+
var path41 = __toESM(require("path"));
|
|
162133
162203
|
var import_util15 = require("util");
|
|
162134
162204
|
|
|
162135
162205
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/semver.js
|
|
@@ -162719,7 +162789,7 @@ var InstrumentationAbstract2 = class {
|
|
|
162719
162789
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
|
|
162720
162790
|
init_cjs_shims();
|
|
162721
162791
|
var import_require_in_the_middle3 = __toESM(require_require_in_the_middle());
|
|
162722
|
-
var
|
|
162792
|
+
var path40 = __toESM(require("path"));
|
|
162723
162793
|
|
|
162724
162794
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/ModuleNameTrie.js
|
|
162725
162795
|
init_cjs_shims();
|
|
@@ -162849,7 +162919,7 @@ var RequireInTheMiddleSingleton2 = class _RequireInTheMiddleSingleton {
|
|
|
162849
162919
|
}
|
|
162850
162920
|
};
|
|
162851
162921
|
function normalizePathSeparators2(moduleNameOrPath) {
|
|
162852
|
-
return
|
|
162922
|
+
return path40.sep !== ModuleNameSeparator2 ? moduleNameOrPath.split(path40.sep).join(ModuleNameSeparator2) : moduleNameOrPath;
|
|
162853
162923
|
}
|
|
162854
162924
|
|
|
162855
162925
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js
|
|
@@ -162952,7 +163022,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
162952
163022
|
}
|
|
162953
163023
|
_extractPackageVersion(baseDir) {
|
|
162954
163024
|
try {
|
|
162955
|
-
const json = (0, import_fs6.readFileSync)(
|
|
163025
|
+
const json = (0, import_fs6.readFileSync)(path41.join(baseDir, "package.json"), {
|
|
162956
163026
|
encoding: "utf8"
|
|
162957
163027
|
});
|
|
162958
163028
|
const version3 = JSON.parse(json).version;
|
|
@@ -162994,7 +163064,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
162994
163064
|
return exports2;
|
|
162995
163065
|
}
|
|
162996
163066
|
const files = module2.files ?? [];
|
|
162997
|
-
const normalizedName =
|
|
163067
|
+
const normalizedName = path41.normalize(name2);
|
|
162998
163068
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported2(f.supportedVersions, version3, module2.includePrerelease));
|
|
162999
163069
|
return supportedFileInstrumentations.reduce((patchedExports, file) => {
|
|
163000
163070
|
file.moduleExports = patchedExports;
|
|
@@ -163040,8 +163110,8 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
163040
163110
|
this._warnOnPreloadedModules();
|
|
163041
163111
|
for (const module2 of this._modules) {
|
|
163042
163112
|
const hookFn = (exports2, name2, baseDir) => {
|
|
163043
|
-
if (!baseDir &&
|
|
163044
|
-
const parsedPath =
|
|
163113
|
+
if (!baseDir && path41.isAbsolute(name2)) {
|
|
163114
|
+
const parsedPath = path41.parse(name2);
|
|
163045
163115
|
name2 = parsedPath.name;
|
|
163046
163116
|
baseDir = parsedPath.dir;
|
|
163047
163117
|
}
|
|
@@ -163050,7 +163120,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
163050
163120
|
const onRequire = (exports2, name2, baseDir) => {
|
|
163051
163121
|
return this._onRequire(module2, exports2, name2, baseDir);
|
|
163052
163122
|
};
|
|
163053
|
-
const hook =
|
|
163123
|
+
const hook = path41.isAbsolute(module2.name) ? new import_require_in_the_middle4.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
|
|
163054
163124
|
this._hooks.push(hook);
|
|
163055
163125
|
const esmHook = new import_import_in_the_middle2.Hook([module2.name], { internals: false }, hookFn);
|
|
163056
163126
|
this._hooks.push(esmHook);
|
|
@@ -164315,11 +164385,11 @@ function bounded(promise, timeoutMs) {
|
|
|
164315
164385
|
if (!timeoutMs || timeoutMs <= 0) {
|
|
164316
164386
|
return promise.then(() => void 0);
|
|
164317
164387
|
}
|
|
164318
|
-
return new Promise((
|
|
164319
|
-
const timer = setTimeout(
|
|
164388
|
+
return new Promise((resolve24) => {
|
|
164389
|
+
const timer = setTimeout(resolve24, timeoutMs);
|
|
164320
164390
|
promise.catch(() => void 0).finally(() => {
|
|
164321
164391
|
clearTimeout(timer);
|
|
164322
|
-
|
|
164392
|
+
resolve24();
|
|
164323
164393
|
});
|
|
164324
164394
|
});
|
|
164325
164395
|
}
|