hunter-mate 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/extension/build-info.json +1 -1
- package/dist/assets/extension/manifest.json +3 -3
- package/dist/assets/server/main.mjs +919 -859
- package/dist/index.js +15 -3
- package/dist/web/dist/404.html +1 -1
- package/dist/web/dist/_next/static/chunks/{main-app-b6db448fc4a461ce.js → main-app-5e9b0602f99fef72.js} +1 -1
- package/dist/web/dist/_next/static/chunks/pages/{_app-e47eadf8db6101cf.js → _app-3fdd92eb97cdde60.js} +3 -3
- package/dist/web/dist/admin/data.html +1 -1
- package/dist/web/dist/admin/data.txt +1 -1
- package/dist/web/dist/auth/verify.html +1 -1
- package/dist/web/dist/auth/verify.txt +1 -1
- package/dist/web/dist/companies.html +1 -1
- package/dist/web/dist/companies.txt +1 -1
- package/dist/web/dist/company/admin.html +1 -1
- package/dist/web/dist/company/admin.txt +1 -1
- package/dist/web/dist/entity.html +1 -1
- package/dist/web/dist/entity.txt +1 -1
- package/dist/web/dist/index.html +1 -1
- package/dist/web/dist/index.txt +1 -1
- package/dist/web/dist/jobs.html +1 -1
- package/dist/web/dist/jobs.txt +1 -1
- package/dist/web/dist/logs.html +1 -1
- package/dist/web/dist/logs.txt +1 -1
- package/dist/web/dist/matching/jobs/placeholder/talents.html +1 -1
- package/dist/web/dist/matching/jobs/placeholder/talents.txt +1 -1
- package/dist/web/dist/matching/portraits/placeholder/jobs.html +1 -1
- package/dist/web/dist/matching/portraits/placeholder/jobs.txt +1 -1
- package/dist/web/dist/parselog.html +1 -1
- package/dist/web/dist/parselog.txt +1 -1
- package/dist/web/dist/recordings.html +1 -1
- package/dist/web/dist/recordings.txt +1 -1
- package/dist/web/dist/resource-usage.html +1 -1
- package/dist/web/dist/resource-usage.txt +1 -1
- package/dist/web/dist/shared/placeholder.html +1 -1
- package/dist/web/dist/shared/placeholder.txt +1 -1
- package/dist/web/dist/snapshots/placeholder/agent-prompt.html +1 -1
- package/dist/web/dist/snapshots/placeholder/agent-prompt.txt +1 -1
- package/dist/web/dist/talents.html +1 -1
- package/dist/web/dist/talents.txt +1 -1
- package/dist/web/dist/team/insights.html +1 -1
- package/dist/web/dist/team/insights.txt +1 -1
- package/package.json +1 -1
- /package/dist/assets/extension/background/{service-worker.20261024183014.js → service-worker.20261025015540.js} +0 -0
- /package/dist/web/dist/_next/static/{-DVDEKqCnUI6VNtYuEnWq → oL0Npvxb5lQa5gycVwoMf}/_buildManifest.js +0 -0
- /package/dist/web/dist/_next/static/{-DVDEKqCnUI6VNtYuEnWq → oL0Npvxb5lQa5gycVwoMf}/_ssgManifest.js +0 -0
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
var require_main = __commonJS({
|
|
38
38
|
"../../node_modules/.pnpm/dotenv@17.4.2/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
39
39
|
var fs14 = __require("fs");
|
|
40
|
-
var
|
|
40
|
+
var path15 = __require("path");
|
|
41
41
|
var os7 = __require("os");
|
|
42
42
|
var crypto7 = __require("crypto");
|
|
43
43
|
var TIPS = [
|
|
@@ -176,7 +176,7 @@ var require_main = __commonJS({
|
|
|
176
176
|
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
177
177
|
}
|
|
178
178
|
} else {
|
|
179
|
-
possibleVaultPath =
|
|
179
|
+
possibleVaultPath = path15.resolve(process.cwd(), ".env.vault");
|
|
180
180
|
}
|
|
181
181
|
if (fs14.existsSync(possibleVaultPath)) {
|
|
182
182
|
return possibleVaultPath;
|
|
@@ -184,7 +184,7 @@ var require_main = __commonJS({
|
|
|
184
184
|
return null;
|
|
185
185
|
}
|
|
186
186
|
function _resolveHome(envPath) {
|
|
187
|
-
return envPath[0] === "~" ?
|
|
187
|
+
return envPath[0] === "~" ? path15.join(os7.homedir(), envPath.slice(1)) : envPath;
|
|
188
188
|
}
|
|
189
189
|
function _configVault(options) {
|
|
190
190
|
const debug3 = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
@@ -201,7 +201,7 @@ var require_main = __commonJS({
|
|
|
201
201
|
return { parsed };
|
|
202
202
|
}
|
|
203
203
|
function configDotenv(options) {
|
|
204
|
-
const dotenvPath =
|
|
204
|
+
const dotenvPath = path15.resolve(process.cwd(), ".env");
|
|
205
205
|
let encoding = "utf8";
|
|
206
206
|
let processEnv = process.env;
|
|
207
207
|
if (options && options.processEnv != null) {
|
|
@@ -229,13 +229,13 @@ var require_main = __commonJS({
|
|
|
229
229
|
}
|
|
230
230
|
let lastError;
|
|
231
231
|
const parsedAll = {};
|
|
232
|
-
for (const
|
|
232
|
+
for (const path16 of optionPaths) {
|
|
233
233
|
try {
|
|
234
|
-
const parsed = DotenvModule.parse(fs14.readFileSync(
|
|
234
|
+
const parsed = DotenvModule.parse(fs14.readFileSync(path16, { encoding }));
|
|
235
235
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
236
236
|
} catch (e) {
|
|
237
237
|
if (debug3) {
|
|
238
|
-
_debug(`failed to load ${
|
|
238
|
+
_debug(`failed to load ${path16} ${e.message}`);
|
|
239
239
|
}
|
|
240
240
|
lastError = e;
|
|
241
241
|
}
|
|
@@ -248,7 +248,7 @@ var require_main = __commonJS({
|
|
|
248
248
|
const shortPaths = [];
|
|
249
249
|
for (const filePath of optionPaths) {
|
|
250
250
|
try {
|
|
251
|
-
const relative2 =
|
|
251
|
+
const relative2 = path15.relative(process.cwd(), filePath);
|
|
252
252
|
shortPaths.push(relative2);
|
|
253
253
|
} catch (e) {
|
|
254
254
|
if (debug3) {
|
|
@@ -827,13 +827,13 @@ function __disposeResources(env) {
|
|
|
827
827
|
}
|
|
828
828
|
return next();
|
|
829
829
|
}
|
|
830
|
-
function __rewriteRelativeImportExtension(
|
|
831
|
-
if (typeof
|
|
832
|
-
return
|
|
830
|
+
function __rewriteRelativeImportExtension(path15, preserveJsx) {
|
|
831
|
+
if (typeof path15 === "string" && /^\.\.?\//.test(path15)) {
|
|
832
|
+
return path15.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
833
833
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
834
834
|
});
|
|
835
835
|
}
|
|
836
|
-
return
|
|
836
|
+
return path15;
|
|
837
837
|
}
|
|
838
838
|
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
839
839
|
var init_tslib_es6 = __esm({
|
|
@@ -2323,11 +2323,11 @@ var require_shared_utils = __commonJS({
|
|
|
2323
2323
|
return typeof ctor === "function" && ctor instanceof ctor && Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object);
|
|
2324
2324
|
};
|
|
2325
2325
|
exports2.isPlainObject = isPlainObject3;
|
|
2326
|
-
var addLeadingSlash = (
|
|
2326
|
+
var addLeadingSlash = (path15) => path15 && typeof path15 === "string" ? path15.charAt(0) !== "/" ? "/" + path15 : path15 : "";
|
|
2327
2327
|
exports2.addLeadingSlash = addLeadingSlash;
|
|
2328
|
-
var normalizePath2 = (
|
|
2328
|
+
var normalizePath2 = (path15) => path15 ? path15.startsWith("/") ? ("/" + path15.replace(/\/+$/, "")).replace(/\/+/g, "/") : "/" + path15.replace(/\/+$/, "") : "/";
|
|
2329
2329
|
exports2.normalizePath = normalizePath2;
|
|
2330
|
-
var stripEndSlash = (
|
|
2330
|
+
var stripEndSlash = (path15) => path15[path15.length - 1] === "/" ? path15.slice(0, path15.length - 1) : path15;
|
|
2331
2331
|
exports2.stripEndSlash = stripEndSlash;
|
|
2332
2332
|
var isFunction3 = (val) => typeof val === "function";
|
|
2333
2333
|
exports2.isFunction = isFunction3;
|
|
@@ -2356,7 +2356,7 @@ var require_controller_decorator = __commonJS({
|
|
|
2356
2356
|
var shared_utils_1 = require_shared_utils();
|
|
2357
2357
|
function Controller44(prefixOrOptions) {
|
|
2358
2358
|
const defaultPath = "/";
|
|
2359
|
-
const [
|
|
2359
|
+
const [path15, host, scopeOptions, versionOptions] = (0, shared_utils_1.isUndefined)(prefixOrOptions) ? [defaultPath, void 0, void 0, void 0] : (0, shared_utils_1.isString)(prefixOrOptions) || Array.isArray(prefixOrOptions) ? [prefixOrOptions, void 0, void 0, void 0] : [
|
|
2360
2360
|
prefixOrOptions.path || defaultPath,
|
|
2361
2361
|
prefixOrOptions.host,
|
|
2362
2362
|
{ scope: prefixOrOptions.scope, durable: prefixOrOptions.durable },
|
|
@@ -2364,7 +2364,7 @@ var require_controller_decorator = __commonJS({
|
|
|
2364
2364
|
];
|
|
2365
2365
|
return (target) => {
|
|
2366
2366
|
Reflect.defineMetadata(constants_1.CONTROLLER_WATERMARK, true, target);
|
|
2367
|
-
Reflect.defineMetadata(constants_1.PATH_METADATA,
|
|
2367
|
+
Reflect.defineMetadata(constants_1.PATH_METADATA, path15, target);
|
|
2368
2368
|
Reflect.defineMetadata(constants_1.HOST_METADATA, host, target);
|
|
2369
2369
|
Reflect.defineMetadata(constants_1.SCOPE_OPTIONS_METADATA, scopeOptions, target);
|
|
2370
2370
|
Reflect.defineMetadata(constants_1.VERSION_METADATA, versionOptions, target);
|
|
@@ -2836,18 +2836,18 @@ var require_request_mapping_decorator = __commonJS({
|
|
|
2836
2836
|
};
|
|
2837
2837
|
var RequestMapping = (metadata = defaultMetadata) => {
|
|
2838
2838
|
const pathMetadata = metadata[constants_1.PATH_METADATA];
|
|
2839
|
-
const
|
|
2839
|
+
const path15 = pathMetadata && pathMetadata.length ? pathMetadata : "/";
|
|
2840
2840
|
const requestMethod = metadata[constants_1.METHOD_METADATA] || request_method_enum_1.RequestMethod.GET;
|
|
2841
2841
|
return (target, key, descriptor) => {
|
|
2842
|
-
Reflect.defineMetadata(constants_1.PATH_METADATA,
|
|
2842
|
+
Reflect.defineMetadata(constants_1.PATH_METADATA, path15, descriptor.value);
|
|
2843
2843
|
Reflect.defineMetadata(constants_1.METHOD_METADATA, requestMethod, descriptor.value);
|
|
2844
2844
|
return descriptor;
|
|
2845
2845
|
};
|
|
2846
2846
|
};
|
|
2847
2847
|
exports2.RequestMapping = RequestMapping;
|
|
2848
|
-
var createMappingDecorator = (method) => (
|
|
2848
|
+
var createMappingDecorator = (method) => (path15) => {
|
|
2849
2849
|
return (0, exports2.RequestMapping)({
|
|
2850
|
-
[constants_1.PATH_METADATA]:
|
|
2850
|
+
[constants_1.PATH_METADATA]: path15,
|
|
2851
2851
|
[constants_1.METHOD_METADATA]: method
|
|
2852
2852
|
});
|
|
2853
2853
|
};
|
|
@@ -3085,10 +3085,10 @@ var require_sse_decorator = __commonJS({
|
|
|
3085
3085
|
exports2.Sse = Sse;
|
|
3086
3086
|
var constants_1 = require_constants2();
|
|
3087
3087
|
var request_method_enum_1 = require_request_method_enum();
|
|
3088
|
-
function Sse(
|
|
3088
|
+
function Sse(path15) {
|
|
3089
3089
|
return (target, key, descriptor) => {
|
|
3090
|
-
|
|
3091
|
-
Reflect.defineMetadata(constants_1.PATH_METADATA,
|
|
3090
|
+
path15 = path15 && path15.length ? path15 : "/";
|
|
3091
|
+
Reflect.defineMetadata(constants_1.PATH_METADATA, path15, descriptor.value);
|
|
3092
3092
|
Reflect.defineMetadata(constants_1.METHOD_METADATA, request_method_enum_1.RequestMethod.GET, descriptor.value);
|
|
3093
3093
|
Reflect.defineMetadata(constants_1.SSE_METADATA, true, descriptor.value);
|
|
3094
3094
|
return descriptor;
|
|
@@ -40768,7 +40768,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
40768
40768
|
var tokens = [];
|
|
40769
40769
|
var key = 0;
|
|
40770
40770
|
var index = 0;
|
|
40771
|
-
var
|
|
40771
|
+
var path15 = "";
|
|
40772
40772
|
var defaultDelimiter = options && options.delimiter || DEFAULT_DELIMITER;
|
|
40773
40773
|
var whitelist = options && options.whitelist || void 0;
|
|
40774
40774
|
var pathEscaped = false;
|
|
@@ -40777,10 +40777,10 @@ var require_path_to_regexp = __commonJS({
|
|
|
40777
40777
|
var m = res[0];
|
|
40778
40778
|
var escaped = res[1];
|
|
40779
40779
|
var offset = res.index;
|
|
40780
|
-
|
|
40780
|
+
path15 += str.slice(index, offset);
|
|
40781
40781
|
index = offset + m.length;
|
|
40782
40782
|
if (escaped) {
|
|
40783
|
-
|
|
40783
|
+
path15 += escaped[1];
|
|
40784
40784
|
pathEscaped = true;
|
|
40785
40785
|
continue;
|
|
40786
40786
|
}
|
|
@@ -40789,18 +40789,18 @@ var require_path_to_regexp = __commonJS({
|
|
|
40789
40789
|
var capture = res[3];
|
|
40790
40790
|
var group = res[4];
|
|
40791
40791
|
var modifier = res[5];
|
|
40792
|
-
if (!pathEscaped &&
|
|
40793
|
-
var k2 =
|
|
40794
|
-
var c =
|
|
40792
|
+
if (!pathEscaped && path15.length) {
|
|
40793
|
+
var k2 = path15.length - 1;
|
|
40794
|
+
var c = path15[k2];
|
|
40795
40795
|
var matches = whitelist ? whitelist.indexOf(c) > -1 : true;
|
|
40796
40796
|
if (matches) {
|
|
40797
40797
|
prev = c;
|
|
40798
|
-
|
|
40798
|
+
path15 = path15.slice(0, k2);
|
|
40799
40799
|
}
|
|
40800
40800
|
}
|
|
40801
|
-
if (
|
|
40802
|
-
tokens.push(
|
|
40803
|
-
|
|
40801
|
+
if (path15) {
|
|
40802
|
+
tokens.push(path15);
|
|
40803
|
+
path15 = "";
|
|
40804
40804
|
pathEscaped = false;
|
|
40805
40805
|
}
|
|
40806
40806
|
var repeat = modifier === "+" || modifier === "*";
|
|
@@ -40817,8 +40817,8 @@ var require_path_to_regexp = __commonJS({
|
|
|
40817
40817
|
pattern: pattern ? escapeGroup(pattern) : restrictBacktrack(delimiter2, defaultDelimiter, prevText)
|
|
40818
40818
|
});
|
|
40819
40819
|
}
|
|
40820
|
-
if (
|
|
40821
|
-
tokens.push(
|
|
40820
|
+
if (path15 || index < str.length) {
|
|
40821
|
+
tokens.push(path15 + str.substr(index));
|
|
40822
40822
|
}
|
|
40823
40823
|
return tokens;
|
|
40824
40824
|
}
|
|
@@ -40841,7 +40841,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
40841
40841
|
return function(pathname, options) {
|
|
40842
40842
|
var m = re.exec(pathname);
|
|
40843
40843
|
if (!m) return false;
|
|
40844
|
-
var
|
|
40844
|
+
var path15 = m[0];
|
|
40845
40845
|
var index = m.index;
|
|
40846
40846
|
var params = {};
|
|
40847
40847
|
var decode4 = options && options.decode || decodeURIComponent;
|
|
@@ -40856,7 +40856,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
40856
40856
|
params[key.name] = decode4(m[i], key);
|
|
40857
40857
|
}
|
|
40858
40858
|
}
|
|
40859
|
-
return { path:
|
|
40859
|
+
return { path: path15, index, params };
|
|
40860
40860
|
};
|
|
40861
40861
|
}
|
|
40862
40862
|
function tokensToFunction(tokens, options) {
|
|
@@ -40867,13 +40867,13 @@ var require_path_to_regexp = __commonJS({
|
|
|
40867
40867
|
}
|
|
40868
40868
|
}
|
|
40869
40869
|
return function(data, options2) {
|
|
40870
|
-
var
|
|
40870
|
+
var path15 = "";
|
|
40871
40871
|
var encode3 = options2 && options2.encode || encodeURIComponent;
|
|
40872
40872
|
var validate2 = options2 ? options2.validate !== false : true;
|
|
40873
40873
|
for (var i2 = 0; i2 < tokens.length; i2++) {
|
|
40874
40874
|
var token = tokens[i2];
|
|
40875
40875
|
if (typeof token === "string") {
|
|
40876
|
-
|
|
40876
|
+
path15 += token;
|
|
40877
40877
|
continue;
|
|
40878
40878
|
}
|
|
40879
40879
|
var value = data ? data[token.name] : void 0;
|
|
@@ -40891,7 +40891,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
40891
40891
|
if (validate2 && !matches[i2].test(segment)) {
|
|
40892
40892
|
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '"');
|
|
40893
40893
|
}
|
|
40894
|
-
|
|
40894
|
+
path15 += (j === 0 ? token.prefix : token.delimiter) + segment;
|
|
40895
40895
|
}
|
|
40896
40896
|
continue;
|
|
40897
40897
|
}
|
|
@@ -40900,13 +40900,13 @@ var require_path_to_regexp = __commonJS({
|
|
|
40900
40900
|
if (validate2 && !matches[i2].test(segment)) {
|
|
40901
40901
|
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but got "' + segment + '"');
|
|
40902
40902
|
}
|
|
40903
|
-
|
|
40903
|
+
path15 += token.prefix + segment;
|
|
40904
40904
|
continue;
|
|
40905
40905
|
}
|
|
40906
40906
|
if (token.optional) continue;
|
|
40907
40907
|
throw new TypeError('Expected "' + token.name + '" to be ' + (token.repeat ? "an array" : "a string"));
|
|
40908
40908
|
}
|
|
40909
|
-
return
|
|
40909
|
+
return path15;
|
|
40910
40910
|
};
|
|
40911
40911
|
}
|
|
40912
40912
|
function escapeString(str) {
|
|
@@ -40918,9 +40918,9 @@ var require_path_to_regexp = __commonJS({
|
|
|
40918
40918
|
function flags(options) {
|
|
40919
40919
|
return options && options.sensitive ? "" : "i";
|
|
40920
40920
|
}
|
|
40921
|
-
function regexpToRegexp(
|
|
40922
|
-
if (!keys) return
|
|
40923
|
-
var groups =
|
|
40921
|
+
function regexpToRegexp(path15, keys) {
|
|
40922
|
+
if (!keys) return path15;
|
|
40923
|
+
var groups = path15.source.match(/\((?!\?)/g);
|
|
40924
40924
|
if (groups) {
|
|
40925
40925
|
for (var i = 0; i < groups.length; i++) {
|
|
40926
40926
|
keys.push({
|
|
@@ -40933,17 +40933,17 @@ var require_path_to_regexp = __commonJS({
|
|
|
40933
40933
|
});
|
|
40934
40934
|
}
|
|
40935
40935
|
}
|
|
40936
|
-
return
|
|
40936
|
+
return path15;
|
|
40937
40937
|
}
|
|
40938
|
-
function arrayToRegexp(
|
|
40938
|
+
function arrayToRegexp(path15, keys, options) {
|
|
40939
40939
|
var parts = [];
|
|
40940
|
-
for (var i = 0; i <
|
|
40941
|
-
parts.push(pathToRegexp(
|
|
40940
|
+
for (var i = 0; i < path15.length; i++) {
|
|
40941
|
+
parts.push(pathToRegexp(path15[i], keys, options).source);
|
|
40942
40942
|
}
|
|
40943
40943
|
return new RegExp("(?:" + parts.join("|") + ")", flags(options));
|
|
40944
40944
|
}
|
|
40945
|
-
function stringToRegexp(
|
|
40946
|
-
return tokensToRegExp(parse2(
|
|
40945
|
+
function stringToRegexp(path15, keys, options) {
|
|
40946
|
+
return tokensToRegExp(parse2(path15, options), keys, options);
|
|
40947
40947
|
}
|
|
40948
40948
|
function tokensToRegExp(tokens, keys, options) {
|
|
40949
40949
|
options = options || {};
|
|
@@ -40982,21 +40982,21 @@ var require_path_to_regexp = __commonJS({
|
|
|
40982
40982
|
}
|
|
40983
40983
|
return new RegExp(route, flags(options));
|
|
40984
40984
|
}
|
|
40985
|
-
function pathToRegexp(
|
|
40986
|
-
if (
|
|
40987
|
-
return regexpToRegexp(
|
|
40985
|
+
function pathToRegexp(path15, keys, options) {
|
|
40986
|
+
if (path15 instanceof RegExp) {
|
|
40987
|
+
return regexpToRegexp(path15, keys);
|
|
40988
40988
|
}
|
|
40989
|
-
if (Array.isArray(
|
|
40989
|
+
if (Array.isArray(path15)) {
|
|
40990
40990
|
return arrayToRegexp(
|
|
40991
40991
|
/** @type {!Array} */
|
|
40992
|
-
|
|
40992
|
+
path15,
|
|
40993
40993
|
keys,
|
|
40994
40994
|
options
|
|
40995
40995
|
);
|
|
40996
40996
|
}
|
|
40997
40997
|
return stringToRegexp(
|
|
40998
40998
|
/** @type {string} */
|
|
40999
|
-
|
|
40999
|
+
path15,
|
|
41000
41000
|
keys,
|
|
41001
41001
|
options
|
|
41002
41002
|
);
|
|
@@ -41017,10 +41017,10 @@ var require_exclude_route_util = __commonJS({
|
|
|
41017
41017
|
return common_1.RequestMethod.ALL === method || method === -1;
|
|
41018
41018
|
};
|
|
41019
41019
|
exports2.isRequestMethodAll = isRequestMethodAll;
|
|
41020
|
-
function isRouteExcluded(excludedRoutes,
|
|
41020
|
+
function isRouteExcluded(excludedRoutes, path15, requestMethod) {
|
|
41021
41021
|
return excludedRoutes.some((route) => {
|
|
41022
41022
|
if ((0, exports2.isRequestMethodAll)(route.requestMethod) || route.requestMethod === requestMethod) {
|
|
41023
|
-
return route.pathRegex.exec((0, shared_utils_1.addLeadingSlash)(
|
|
41023
|
+
return route.pathRegex.exec((0, shared_utils_1.addLeadingSlash)(path15));
|
|
41024
41024
|
}
|
|
41025
41025
|
return false;
|
|
41026
41026
|
});
|
|
@@ -41512,13 +41512,13 @@ var require_route_path_factory = __commonJS({
|
|
|
41512
41512
|
if (versionOrVersions && metadata.versioningOptions?.type === common_1.VersioningType.URI) {
|
|
41513
41513
|
const versionPrefix = this.getVersionPrefix(metadata.versioningOptions);
|
|
41514
41514
|
if (Array.isArray(versionOrVersions)) {
|
|
41515
|
-
paths = (0, common_1.flatten)(paths.map((
|
|
41515
|
+
paths = (0, common_1.flatten)(paths.map((path15) => versionOrVersions.map((version2) => (
|
|
41516
41516
|
// Version Neutral - Do not include version in URL
|
|
41517
|
-
version2 === common_1.VERSION_NEUTRAL ?
|
|
41517
|
+
version2 === common_1.VERSION_NEUTRAL ? path15 : `${path15}/${versionPrefix}${version2}`
|
|
41518
41518
|
))));
|
|
41519
41519
|
} else {
|
|
41520
41520
|
if (versionOrVersions !== common_1.VERSION_NEUTRAL) {
|
|
41521
|
-
paths = paths.map((
|
|
41521
|
+
paths = paths.map((path15) => `${path15}/${versionPrefix}${versionOrVersions}`);
|
|
41522
41522
|
}
|
|
41523
41523
|
}
|
|
41524
41524
|
}
|
|
@@ -41526,14 +41526,14 @@ var require_route_path_factory = __commonJS({
|
|
|
41526
41526
|
paths = this.appendToAllIfDefined(paths, metadata.ctrlPath);
|
|
41527
41527
|
paths = this.appendToAllIfDefined(paths, metadata.methodPath);
|
|
41528
41528
|
if (metadata.globalPrefix) {
|
|
41529
|
-
paths = paths.map((
|
|
41530
|
-
if (this.isExcludedFromGlobalPrefix(
|
|
41531
|
-
return
|
|
41529
|
+
paths = paths.map((path15) => {
|
|
41530
|
+
if (this.isExcludedFromGlobalPrefix(path15, requestMethod, versionOrVersions, metadata.versioningOptions)) {
|
|
41531
|
+
return path15;
|
|
41532
41532
|
}
|
|
41533
|
-
return (0, shared_utils_1.stripEndSlash)(metadata.globalPrefix || "") +
|
|
41533
|
+
return (0, shared_utils_1.stripEndSlash)(metadata.globalPrefix || "") + path15;
|
|
41534
41534
|
});
|
|
41535
41535
|
}
|
|
41536
|
-
return paths.map((
|
|
41536
|
+
return paths.map((path15) => (0, shared_utils_1.addLeadingSlash)(path15 || "/")).map((path15) => path15 !== "/" ? (0, shared_utils_1.stripEndSlash)(path15) : path15);
|
|
41537
41537
|
}
|
|
41538
41538
|
getVersion(metadata) {
|
|
41539
41539
|
return metadata.methodVersion || metadata.controllerVersion;
|
|
@@ -41555,33 +41555,33 @@ var require_route_path_factory = __commonJS({
|
|
|
41555
41555
|
}
|
|
41556
41556
|
const concatPaths = (a, b2) => (0, shared_utils_1.stripEndSlash)(a) + (0, shared_utils_1.addLeadingSlash)(b2);
|
|
41557
41557
|
if (Array.isArray(fragmentToAppend)) {
|
|
41558
|
-
const paths2dArray = paths.map((
|
|
41558
|
+
const paths2dArray = paths.map((path15) => fragmentToAppend.map((fragment) => concatPaths(path15, fragment)));
|
|
41559
41559
|
return (0, common_1.flatten)(paths2dArray);
|
|
41560
41560
|
}
|
|
41561
|
-
return paths.map((
|
|
41561
|
+
return paths.map((path15) => concatPaths(path15, fragmentToAppend));
|
|
41562
41562
|
}
|
|
41563
|
-
isExcludedFromGlobalPrefix(
|
|
41563
|
+
isExcludedFromGlobalPrefix(path15, requestMethod, versionOrVersions, versioningOptions) {
|
|
41564
41564
|
if ((0, shared_utils_1.isUndefined)(requestMethod)) {
|
|
41565
41565
|
return false;
|
|
41566
41566
|
}
|
|
41567
41567
|
const options = this.applicationConfig.getGlobalPrefixOptions();
|
|
41568
41568
|
const excludedRoutes = options.exclude;
|
|
41569
41569
|
if (versionOrVersions && versionOrVersions !== common_1.VERSION_NEUTRAL && versioningOptions?.type === common_1.VersioningType.URI) {
|
|
41570
|
-
|
|
41570
|
+
path15 = this.truncateVersionPrefixFromPath(path15, versionOrVersions, versioningOptions);
|
|
41571
41571
|
}
|
|
41572
|
-
return Array.isArray(excludedRoutes) && (0, utils_1.isRouteExcluded)(excludedRoutes,
|
|
41572
|
+
return Array.isArray(excludedRoutes) && (0, utils_1.isRouteExcluded)(excludedRoutes, path15, requestMethod);
|
|
41573
41573
|
}
|
|
41574
|
-
truncateVersionPrefixFromPath(
|
|
41574
|
+
truncateVersionPrefixFromPath(path15, versionValue, versioningOptions) {
|
|
41575
41575
|
if (typeof versionValue !== "string") {
|
|
41576
41576
|
versionValue.forEach((version2) => {
|
|
41577
41577
|
if (typeof version2 === "string") {
|
|
41578
|
-
|
|
41578
|
+
path15 = this.truncateVersionPrefixFromPath(path15, version2, versioningOptions);
|
|
41579
41579
|
}
|
|
41580
41580
|
});
|
|
41581
|
-
return
|
|
41581
|
+
return path15;
|
|
41582
41582
|
}
|
|
41583
41583
|
const prefix = `/${this.getVersionPrefix(versioningOptions)}${versionValue}`;
|
|
41584
|
-
return
|
|
41584
|
+
return path15.startsWith(prefix) ? path15.replace(prefix, "") : path15;
|
|
41585
41585
|
}
|
|
41586
41586
|
};
|
|
41587
41587
|
exports2.RoutePathFactory = RoutePathFactory;
|
|
@@ -41606,19 +41606,19 @@ var require_route_info_path_extractor = __commonJS({
|
|
|
41606
41606
|
this.excludedGlobalPrefixRoutes = this.applicationConfig.getGlobalPrefixOptions().exclude;
|
|
41607
41607
|
this.versioningConfig = this.applicationConfig.getVersioning();
|
|
41608
41608
|
}
|
|
41609
|
-
extractPathsFrom({ path:
|
|
41609
|
+
extractPathsFrom({ path: path15, method, version: version2 }) {
|
|
41610
41610
|
const versionPaths = this.extractVersionPathFrom(version2);
|
|
41611
|
-
if (this.isAWildcard(
|
|
41611
|
+
if (this.isAWildcard(path15)) {
|
|
41612
41612
|
const entries = versionPaths.length > 0 ? versionPaths.map((versionPath) => [
|
|
41613
41613
|
this.prefixPath + versionPath + "$",
|
|
41614
|
-
this.prefixPath + versionPath + (0, shared_utils_1.addLeadingSlash)(
|
|
41615
|
-
]).flat() : this.prefixPath ? [this.prefixPath + "$", this.prefixPath + (0, shared_utils_1.addLeadingSlash)(
|
|
41614
|
+
this.prefixPath + versionPath + (0, shared_utils_1.addLeadingSlash)(path15)
|
|
41615
|
+
]).flat() : this.prefixPath ? [this.prefixPath + "$", this.prefixPath + (0, shared_utils_1.addLeadingSlash)(path15)] : [(0, shared_utils_1.addLeadingSlash)(path15)];
|
|
41616
41616
|
return Array.isArray(this.excludedGlobalPrefixRoutes) ? [
|
|
41617
41617
|
...entries,
|
|
41618
41618
|
...this.excludedGlobalPrefixRoutes.map((route) => versionPaths + (0, shared_utils_1.addLeadingSlash)(route.path))
|
|
41619
41619
|
] : entries;
|
|
41620
41620
|
}
|
|
41621
|
-
return this.extractNonWildcardPathsFrom({ path:
|
|
41621
|
+
return this.extractNonWildcardPathsFrom({ path: path15, method, version: version2 });
|
|
41622
41622
|
}
|
|
41623
41623
|
extractPathFrom(route) {
|
|
41624
41624
|
if (this.isAWildcard(route.path) && !route.version) {
|
|
@@ -41626,21 +41626,21 @@ var require_route_info_path_extractor = __commonJS({
|
|
|
41626
41626
|
}
|
|
41627
41627
|
return this.extractNonWildcardPathsFrom(route);
|
|
41628
41628
|
}
|
|
41629
|
-
isAWildcard(
|
|
41630
|
-
return ["*", "/*", "/*/", "(.*)", "/(.*)"].includes(
|
|
41629
|
+
isAWildcard(path15) {
|
|
41630
|
+
return ["*", "/*", "/*/", "(.*)", "/(.*)"].includes(path15);
|
|
41631
41631
|
}
|
|
41632
|
-
extractNonWildcardPathsFrom({ path:
|
|
41632
|
+
extractNonWildcardPathsFrom({ path: path15, method, version: version2 }) {
|
|
41633
41633
|
const versionPaths = this.extractVersionPathFrom(version2);
|
|
41634
|
-
if (Array.isArray(this.excludedGlobalPrefixRoutes) && (0, utils_1.isRouteExcluded)(this.excludedGlobalPrefixRoutes,
|
|
41634
|
+
if (Array.isArray(this.excludedGlobalPrefixRoutes) && (0, utils_1.isRouteExcluded)(this.excludedGlobalPrefixRoutes, path15, method)) {
|
|
41635
41635
|
if (!versionPaths.length) {
|
|
41636
|
-
return [(0, shared_utils_1.addLeadingSlash)(
|
|
41636
|
+
return [(0, shared_utils_1.addLeadingSlash)(path15)];
|
|
41637
41637
|
}
|
|
41638
|
-
return versionPaths.map((versionPath) => versionPath + (0, shared_utils_1.addLeadingSlash)(
|
|
41638
|
+
return versionPaths.map((versionPath) => versionPath + (0, shared_utils_1.addLeadingSlash)(path15));
|
|
41639
41639
|
}
|
|
41640
41640
|
if (!versionPaths.length) {
|
|
41641
|
-
return [this.prefixPath + (0, shared_utils_1.addLeadingSlash)(
|
|
41641
|
+
return [this.prefixPath + (0, shared_utils_1.addLeadingSlash)(path15)];
|
|
41642
41642
|
}
|
|
41643
|
-
return versionPaths.map((versionPath) => this.prefixPath + versionPath + (0, shared_utils_1.addLeadingSlash)(
|
|
41643
|
+
return versionPaths.map((versionPath) => this.prefixPath + versionPath + (0, shared_utils_1.addLeadingSlash)(path15));
|
|
41644
41644
|
}
|
|
41645
41645
|
extractVersionPathFrom(versionValue) {
|
|
41646
41646
|
if (!versionValue || this.versioningConfig?.type !== common_1.VersioningType.URI)
|
|
@@ -41687,9 +41687,9 @@ var require_paths_explorer = __commonJS({
|
|
|
41687
41687
|
}
|
|
41688
41688
|
const requestMethod = Reflect.getMetadata(constants_1.METHOD_METADATA, prototypeCallback);
|
|
41689
41689
|
const version2 = Reflect.getMetadata(constants_1.VERSION_METADATA, prototypeCallback);
|
|
41690
|
-
const
|
|
41690
|
+
const path15 = (0, shared_utils_1.isString)(routePath) ? [(0, shared_utils_1.addLeadingSlash)(routePath)] : routePath.map((p) => (0, shared_utils_1.addLeadingSlash)(p));
|
|
41691
41691
|
return {
|
|
41692
|
-
path:
|
|
41692
|
+
path: path15,
|
|
41693
41693
|
requestMethod,
|
|
41694
41694
|
targetCallback: instanceCallback,
|
|
41695
41695
|
methodName,
|
|
@@ -41859,11 +41859,11 @@ var require_routes_mapper = __commonJS({
|
|
|
41859
41859
|
});
|
|
41860
41860
|
return [].concat(routePath).map((routePath2) => controllerPaths.map((item) => toRouteInfo(item, routePath2)).reduce(concatPaths, [])).reduce(concatPaths, []);
|
|
41861
41861
|
}
|
|
41862
|
-
isRouteInfo(
|
|
41863
|
-
return (0, shared_utils_1.isUndefined)(
|
|
41862
|
+
isRouteInfo(path15, objectOrClass) {
|
|
41863
|
+
return (0, shared_utils_1.isUndefined)(path15);
|
|
41864
41864
|
}
|
|
41865
|
-
normalizeGlobalPath(
|
|
41866
|
-
const prefix = (0, shared_utils_1.addLeadingSlash)(
|
|
41865
|
+
normalizeGlobalPath(path15) {
|
|
41866
|
+
const prefix = (0, shared_utils_1.addLeadingSlash)(path15);
|
|
41867
41867
|
return prefix === "/" ? "" : prefix;
|
|
41868
41868
|
}
|
|
41869
41869
|
getRoutePath(route) {
|
|
@@ -42066,8 +42066,8 @@ var require_middleware_module = __commonJS({
|
|
|
42066
42066
|
return next();
|
|
42067
42067
|
};
|
|
42068
42068
|
const pathsToApplyMiddleware = [];
|
|
42069
|
-
paths.some((
|
|
42070
|
-
pathsToApplyMiddleware.forEach((
|
|
42069
|
+
paths.some((path15) => path15.match(/^\/?$/)) ? pathsToApplyMiddleware.push("/") : pathsToApplyMiddleware.push(...paths);
|
|
42070
|
+
pathsToApplyMiddleware.forEach((path15) => router(path15, middlewareFunction));
|
|
42071
42071
|
}
|
|
42072
42072
|
getContextId(request2, isTreeDurable) {
|
|
42073
42073
|
const contextId = context_id_factory_1.ContextIdFactory.getByRequest(request2);
|
|
@@ -42598,20 +42598,20 @@ var require_messages2 = __commonJS({
|
|
|
42598
42598
|
var version_options_interface_1 = require_version_options_interface();
|
|
42599
42599
|
var MODULE_INIT_MESSAGE = (text, module3) => `${module3} dependencies initialized`;
|
|
42600
42600
|
exports2.MODULE_INIT_MESSAGE = MODULE_INIT_MESSAGE;
|
|
42601
|
-
var ROUTE_MAPPED_MESSAGE = (
|
|
42601
|
+
var ROUTE_MAPPED_MESSAGE = (path15, method) => `Mapped {${path15}, ${request_method_enum_1.RequestMethod[method]}} route`;
|
|
42602
42602
|
exports2.ROUTE_MAPPED_MESSAGE = ROUTE_MAPPED_MESSAGE;
|
|
42603
|
-
var VERSIONED_ROUTE_MAPPED_MESSAGE = (
|
|
42603
|
+
var VERSIONED_ROUTE_MAPPED_MESSAGE = (path15, method, version2) => {
|
|
42604
42604
|
const controllerVersions = Array.isArray(version2) ? version2 : [version2];
|
|
42605
42605
|
const versions = controllerVersions.map((version3) => version3 === version_options_interface_1.VERSION_NEUTRAL ? "Neutral" : version3).join(",");
|
|
42606
|
-
return `Mapped {${
|
|
42606
|
+
return `Mapped {${path15}, ${request_method_enum_1.RequestMethod[method]}} (version: ${versions}) route`;
|
|
42607
42607
|
};
|
|
42608
42608
|
exports2.VERSIONED_ROUTE_MAPPED_MESSAGE = VERSIONED_ROUTE_MAPPED_MESSAGE;
|
|
42609
|
-
var CONTROLLER_MAPPING_MESSAGE = (name,
|
|
42609
|
+
var CONTROLLER_MAPPING_MESSAGE = (name, path15) => `${name} {${path15}}:`;
|
|
42610
42610
|
exports2.CONTROLLER_MAPPING_MESSAGE = CONTROLLER_MAPPING_MESSAGE;
|
|
42611
|
-
var VERSIONED_CONTROLLER_MAPPING_MESSAGE = (name,
|
|
42611
|
+
var VERSIONED_CONTROLLER_MAPPING_MESSAGE = (name, path15, version2) => {
|
|
42612
42612
|
const controllerVersions = Array.isArray(version2) ? version2 : [version2];
|
|
42613
42613
|
const versions = controllerVersions.map((version3) => version3 === version_options_interface_1.VERSION_NEUTRAL ? "Neutral" : version3).join(",");
|
|
42614
|
-
return `${name} {${
|
|
42614
|
+
return `${name} {${path15}} (version: ${versions}):`;
|
|
42615
42615
|
};
|
|
42616
42616
|
exports2.VERSIONED_CONTROLLER_MAPPING_MESSAGE = VERSIONED_CONTROLLER_MAPPING_MESSAGE;
|
|
42617
42617
|
var INVALID_EXECUTION_CONTEXT = (methodName, currentContext) => `Calling ${methodName} is not allowed in this context. Your current execution context is "${currentContext}".`;
|
|
@@ -43114,14 +43114,14 @@ var require_router_explorer = __commonJS({
|
|
|
43114
43114
|
this.applyPathsToRouterProxy(applicationRef, routerPaths, instanceWrapper, moduleKey, routePathMetadata, host);
|
|
43115
43115
|
}
|
|
43116
43116
|
extractRouterPath(metatype) {
|
|
43117
|
-
const
|
|
43118
|
-
if ((0, shared_utils_1.isUndefined)(
|
|
43117
|
+
const path15 = Reflect.getMetadata(constants_1.PATH_METADATA, metatype);
|
|
43118
|
+
if ((0, shared_utils_1.isUndefined)(path15)) {
|
|
43119
43119
|
throw new unknown_request_mapping_exception_1.UnknownRequestMappingException(metatype);
|
|
43120
43120
|
}
|
|
43121
|
-
if (Array.isArray(
|
|
43122
|
-
return
|
|
43121
|
+
if (Array.isArray(path15)) {
|
|
43122
|
+
return path15.map((p) => (0, shared_utils_1.addLeadingSlash)(p));
|
|
43123
43123
|
}
|
|
43124
|
-
return [(0, shared_utils_1.addLeadingSlash)(
|
|
43124
|
+
return [(0, shared_utils_1.addLeadingSlash)(path15)];
|
|
43125
43125
|
}
|
|
43126
43126
|
applyPathsToRouterProxy(router, routeDefinitions, instanceWrapper, moduleKey, routePathMetadata, host) {
|
|
43127
43127
|
(routeDefinitions || []).forEach((routeDefinition) => {
|
|
@@ -43138,40 +43138,40 @@ var require_router_explorer = __commonJS({
|
|
|
43138
43138
|
const proxy = isRequestScoped ? this.createRequestScopedHandler(instanceWrapper, requestMethod, this.container.getModuleByKey(moduleKey), moduleKey, methodName) : this.createCallbackProxy(instance, targetCallback, methodName, moduleKey, requestMethod);
|
|
43139
43139
|
const isVersioned = (routePathMetadata.methodVersion || routePathMetadata.controllerVersion) && routePathMetadata.versioningOptions;
|
|
43140
43140
|
let routeHandler = this.applyHostFilter(host, proxy);
|
|
43141
|
-
paths.forEach((
|
|
43141
|
+
paths.forEach((path15) => {
|
|
43142
43142
|
if (isVersioned && routePathMetadata.versioningOptions.type !== enums_1.VersioningType.URI) {
|
|
43143
43143
|
routeHandler = this.applyVersionFilter(router, routePathMetadata, routeHandler);
|
|
43144
43144
|
}
|
|
43145
|
-
routePathMetadata.methodPath =
|
|
43145
|
+
routePathMetadata.methodPath = path15;
|
|
43146
43146
|
const pathsToRegister = this.routePathFactory.create(routePathMetadata, requestMethod);
|
|
43147
|
-
pathsToRegister.forEach((
|
|
43147
|
+
pathsToRegister.forEach((path16) => {
|
|
43148
43148
|
const entrypointDefinition = {
|
|
43149
43149
|
type: "http-endpoint",
|
|
43150
43150
|
methodName,
|
|
43151
43151
|
className: instanceWrapper.name,
|
|
43152
43152
|
classNodeId: instanceWrapper.id,
|
|
43153
43153
|
metadata: {
|
|
43154
|
-
key:
|
|
43155
|
-
path:
|
|
43154
|
+
key: path16,
|
|
43155
|
+
path: path16,
|
|
43156
43156
|
requestMethod: enums_1.RequestMethod[requestMethod],
|
|
43157
43157
|
methodVersion: routePathMetadata.methodVersion,
|
|
43158
43158
|
controllerVersion: routePathMetadata.controllerVersion
|
|
43159
43159
|
}
|
|
43160
43160
|
};
|
|
43161
43161
|
this.copyMetadataToCallback(targetCallback, routeHandler);
|
|
43162
|
-
routerMethodRef(
|
|
43162
|
+
routerMethodRef(path16, routeHandler);
|
|
43163
43163
|
this.graphInspector.insertEntrypointDefinition(entrypointDefinition, instanceWrapper.id);
|
|
43164
43164
|
});
|
|
43165
43165
|
const pathsToLog = this.routePathFactory.create({
|
|
43166
43166
|
...routePathMetadata,
|
|
43167
43167
|
versioningOptions: void 0
|
|
43168
43168
|
}, requestMethod);
|
|
43169
|
-
pathsToLog.forEach((
|
|
43169
|
+
pathsToLog.forEach((path16) => {
|
|
43170
43170
|
if (isVersioned) {
|
|
43171
43171
|
const version2 = this.routePathFactory.getVersion(routePathMetadata);
|
|
43172
|
-
this.logger.log((0, messages_1.VERSIONED_ROUTE_MAPPED_MESSAGE)(
|
|
43172
|
+
this.logger.log((0, messages_1.VERSIONED_ROUTE_MAPPED_MESSAGE)(path16, requestMethod, version2));
|
|
43173
43173
|
} else {
|
|
43174
|
-
this.logger.log((0, messages_1.ROUTE_MAPPED_MESSAGE)(
|
|
43174
|
+
this.logger.log((0, messages_1.ROUTE_MAPPED_MESSAGE)(path16, requestMethod));
|
|
43175
43175
|
}
|
|
43176
43176
|
});
|
|
43177
43177
|
});
|
|
@@ -43307,26 +43307,26 @@ var require_routes_resolver = __commonJS({
|
|
|
43307
43307
|
const routerPaths = this.routerExplorer.extractRouterPath(metatype);
|
|
43308
43308
|
const controllerVersion = this.getVersionMetadata(metatype);
|
|
43309
43309
|
const controllerName = metatype.name;
|
|
43310
|
-
routerPaths.forEach((
|
|
43310
|
+
routerPaths.forEach((path15) => {
|
|
43311
43311
|
const pathsToLog = this.routePathFactory.create({
|
|
43312
|
-
ctrlPath:
|
|
43312
|
+
ctrlPath: path15,
|
|
43313
43313
|
modulePath,
|
|
43314
43314
|
globalPrefix
|
|
43315
43315
|
});
|
|
43316
43316
|
if (!controllerVersion) {
|
|
43317
|
-
pathsToLog.forEach((
|
|
43318
|
-
const logMessage = (0, messages_1.CONTROLLER_MAPPING_MESSAGE)(controllerName,
|
|
43317
|
+
pathsToLog.forEach((path16) => {
|
|
43318
|
+
const logMessage = (0, messages_1.CONTROLLER_MAPPING_MESSAGE)(controllerName, path16);
|
|
43319
43319
|
this.logger.log(logMessage);
|
|
43320
43320
|
});
|
|
43321
43321
|
} else {
|
|
43322
|
-
pathsToLog.forEach((
|
|
43323
|
-
const logMessage = (0, messages_1.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(controllerName,
|
|
43322
|
+
pathsToLog.forEach((path16) => {
|
|
43323
|
+
const logMessage = (0, messages_1.VERSIONED_CONTROLLER_MAPPING_MESSAGE)(controllerName, path16, controllerVersion);
|
|
43324
43324
|
this.logger.log(logMessage);
|
|
43325
43325
|
});
|
|
43326
43326
|
}
|
|
43327
43327
|
const versioningOptions = this.applicationConfig.getVersioning();
|
|
43328
43328
|
const routePathMetadata = {
|
|
43329
|
-
ctrlPath:
|
|
43329
|
+
ctrlPath: path15,
|
|
43330
43330
|
modulePath,
|
|
43331
43331
|
globalPrefix,
|
|
43332
43332
|
controllerVersion,
|
|
@@ -53867,11 +53867,11 @@ var require_mime_types = __commonJS({
|
|
|
53867
53867
|
}
|
|
53868
53868
|
return exts[0];
|
|
53869
53869
|
}
|
|
53870
|
-
function lookup(
|
|
53871
|
-
if (!
|
|
53870
|
+
function lookup(path15) {
|
|
53871
|
+
if (!path15 || typeof path15 !== "string") {
|
|
53872
53872
|
return false;
|
|
53873
53873
|
}
|
|
53874
|
-
var extension2 = extname("x." +
|
|
53874
|
+
var extension2 = extname("x." + path15).toLowerCase().substr(1);
|
|
53875
53875
|
if (!extension2) {
|
|
53876
53876
|
return false;
|
|
53877
53877
|
}
|
|
@@ -60924,11 +60924,11 @@ var require_server = __commonJS({
|
|
|
60924
60924
|
* @protected
|
|
60925
60925
|
*/
|
|
60926
60926
|
_computePath(options) {
|
|
60927
|
-
let
|
|
60927
|
+
let path15 = (options.path || "/engine.io").replace(/\/$/, "");
|
|
60928
60928
|
if (options.addTrailingSlash !== false) {
|
|
60929
|
-
|
|
60929
|
+
path15 += "/";
|
|
60930
60930
|
}
|
|
60931
|
-
return
|
|
60931
|
+
return path15;
|
|
60932
60932
|
}
|
|
60933
60933
|
/**
|
|
60934
60934
|
* Returns a list of available transports for upgrade given a certain transport.
|
|
@@ -61444,10 +61444,10 @@ var require_server = __commonJS({
|
|
|
61444
61444
|
* @param {Object} options
|
|
61445
61445
|
*/
|
|
61446
61446
|
attach(server, options = {}) {
|
|
61447
|
-
const
|
|
61447
|
+
const path15 = this._computePath(options);
|
|
61448
61448
|
const destroyUpgradeTimeout = options.destroyUpgradeTimeout || 1e3;
|
|
61449
61449
|
function check(req) {
|
|
61450
|
-
return
|
|
61450
|
+
return path15 === req.url.slice(0, path15.length);
|
|
61451
61451
|
}
|
|
61452
61452
|
const listeners = server.listeners("request").slice(0);
|
|
61453
61453
|
server.removeAllListeners("request");
|
|
@@ -61455,7 +61455,7 @@ var require_server = __commonJS({
|
|
|
61455
61455
|
server.on("listening", this.init.bind(this));
|
|
61456
61456
|
server.on("request", (req, res) => {
|
|
61457
61457
|
if (check(req)) {
|
|
61458
|
-
debug3('intercepting request for path "%s"',
|
|
61458
|
+
debug3('intercepting request for path "%s"', path15);
|
|
61459
61459
|
this.handleRequest(req, res);
|
|
61460
61460
|
} else {
|
|
61461
61461
|
let i = 0;
|
|
@@ -62295,8 +62295,8 @@ var require_userver = __commonJS({
|
|
|
62295
62295
|
* @param options
|
|
62296
62296
|
*/
|
|
62297
62297
|
attach(app, options = {}) {
|
|
62298
|
-
const
|
|
62299
|
-
app.any(
|
|
62298
|
+
const path15 = this._computePath(options);
|
|
62299
|
+
app.any(path15, this.handleRequest.bind(this)).ws(path15, {
|
|
62300
62300
|
compression: options.compression,
|
|
62301
62301
|
idleTimeout: options.idleTimeout,
|
|
62302
62302
|
maxBackpressure: options.maxBackpressure,
|
|
@@ -67230,7 +67230,7 @@ var require_dist3 = __commonJS({
|
|
|
67230
67230
|
var zlib_1 = __require("zlib");
|
|
67231
67231
|
var accepts = require_accepts();
|
|
67232
67232
|
var stream_1 = __require("stream");
|
|
67233
|
-
var
|
|
67233
|
+
var path15 = __require("path");
|
|
67234
67234
|
var engine_io_1 = require_engine_io();
|
|
67235
67235
|
var client_1 = require_client();
|
|
67236
67236
|
var events_1 = __require("events");
|
|
@@ -67420,7 +67420,7 @@ var require_dist3 = __commonJS({
|
|
|
67420
67420
|
res.writeHeader("cache-control", "public, max-age=0");
|
|
67421
67421
|
res.writeHeader("content-type", "application/" + (isMap ? "json" : "javascript") + "; charset=utf-8");
|
|
67422
67422
|
res.writeHeader("etag", expectedEtag);
|
|
67423
|
-
const filepath =
|
|
67423
|
+
const filepath = path15.join(__dirname, "../client-dist/", filename);
|
|
67424
67424
|
(0, uws_1.serveFile)(res, filepath);
|
|
67425
67425
|
});
|
|
67426
67426
|
}
|
|
@@ -67502,7 +67502,7 @@ var require_dist3 = __commonJS({
|
|
|
67502
67502
|
* @private
|
|
67503
67503
|
*/
|
|
67504
67504
|
static sendFile(filename, req, res) {
|
|
67505
|
-
const readStream2 = (0, fs_1.createReadStream)(
|
|
67505
|
+
const readStream2 = (0, fs_1.createReadStream)(path15.join(__dirname, "../client-dist/", filename));
|
|
67506
67506
|
const encoding = accepts(req).encodings(["br", "gzip", "deflate"]);
|
|
67507
67507
|
const onError2 = (err) => {
|
|
67508
67508
|
if (err) {
|
|
@@ -68382,8 +68382,8 @@ var require_nest_application = __commonJS({
|
|
|
68382
68382
|
this.httpAdapter.useStaticAssets && this.httpAdapter.useStaticAssets(pathOrOptions, options);
|
|
68383
68383
|
return this;
|
|
68384
68384
|
}
|
|
68385
|
-
setBaseViewsDir(
|
|
68386
|
-
this.httpAdapter.setBaseViewsDir && this.httpAdapter.setBaseViewsDir(
|
|
68385
|
+
setBaseViewsDir(path15) {
|
|
68386
|
+
this.httpAdapter.setBaseViewsDir && this.httpAdapter.setBaseViewsDir(path15);
|
|
68387
68387
|
return this;
|
|
68388
68388
|
}
|
|
68389
68389
|
setViewEngine(engineOrOptions) {
|
|
@@ -78029,7 +78029,7 @@ var require_path_to_regexp2 = __commonJS({
|
|
|
78029
78029
|
"../../node_modules/.pnpm/path-to-regexp@0.1.13/node_modules/path-to-regexp/index.js"(exports2, module2) {
|
|
78030
78030
|
module2.exports = pathToRegexp;
|
|
78031
78031
|
var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g;
|
|
78032
|
-
function pathToRegexp(
|
|
78032
|
+
function pathToRegexp(path15, keys, options) {
|
|
78033
78033
|
options = options || {};
|
|
78034
78034
|
keys = keys || [];
|
|
78035
78035
|
var strict = options.strict;
|
|
@@ -78043,8 +78043,8 @@ var require_path_to_regexp2 = __commonJS({
|
|
|
78043
78043
|
var pos = 0;
|
|
78044
78044
|
var backtrack = "";
|
|
78045
78045
|
var m;
|
|
78046
|
-
if (
|
|
78047
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
78046
|
+
if (path15 instanceof RegExp) {
|
|
78047
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path15.source)) {
|
|
78048
78048
|
if (m[0][0] === "\\") continue;
|
|
78049
78049
|
keys.push({
|
|
78050
78050
|
name: m[1] || name++,
|
|
@@ -78052,18 +78052,18 @@ var require_path_to_regexp2 = __commonJS({
|
|
|
78052
78052
|
offset: m.index
|
|
78053
78053
|
});
|
|
78054
78054
|
}
|
|
78055
|
-
return
|
|
78055
|
+
return path15;
|
|
78056
78056
|
}
|
|
78057
|
-
if (Array.isArray(
|
|
78058
|
-
|
|
78057
|
+
if (Array.isArray(path15)) {
|
|
78058
|
+
path15 = path15.map(function(value) {
|
|
78059
78059
|
return pathToRegexp(value, keys, options).source;
|
|
78060
78060
|
});
|
|
78061
|
-
return new RegExp(
|
|
78061
|
+
return new RegExp(path15.join("|"), flags);
|
|
78062
78062
|
}
|
|
78063
|
-
if (typeof
|
|
78063
|
+
if (typeof path15 !== "string") {
|
|
78064
78064
|
throw new TypeError("path must be a string, array of strings, or regular expression");
|
|
78065
78065
|
}
|
|
78066
|
-
|
|
78066
|
+
path15 = path15.replace(
|
|
78067
78067
|
/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
|
|
78068
78068
|
function(match, slash, format2, key, capture, star, optional, offset) {
|
|
78069
78069
|
if (match[0] === "\\") {
|
|
@@ -78080,7 +78080,7 @@ var require_path_to_regexp2 = __commonJS({
|
|
|
78080
78080
|
if (slash || format2) {
|
|
78081
78081
|
backtrack = "";
|
|
78082
78082
|
} else {
|
|
78083
|
-
backtrack +=
|
|
78083
|
+
backtrack += path15.slice(pos, offset);
|
|
78084
78084
|
}
|
|
78085
78085
|
pos = offset + match.length;
|
|
78086
78086
|
if (match === "*") {
|
|
@@ -78110,7 +78110,7 @@ var require_path_to_regexp2 = __commonJS({
|
|
|
78110
78110
|
return result;
|
|
78111
78111
|
}
|
|
78112
78112
|
);
|
|
78113
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
78113
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path15)) {
|
|
78114
78114
|
if (m[0][0] === "\\") continue;
|
|
78115
78115
|
if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {
|
|
78116
78116
|
keys.splice(keysOffset + i, 0, {
|
|
@@ -78122,13 +78122,13 @@ var require_path_to_regexp2 = __commonJS({
|
|
|
78122
78122
|
}
|
|
78123
78123
|
i++;
|
|
78124
78124
|
}
|
|
78125
|
-
|
|
78125
|
+
path15 += strict ? "" : path15[path15.length - 1] === "/" ? "?" : "/?";
|
|
78126
78126
|
if (end) {
|
|
78127
|
-
|
|
78128
|
-
} else if (
|
|
78129
|
-
|
|
78127
|
+
path15 += "$";
|
|
78128
|
+
} else if (path15[path15.length - 1] !== "/") {
|
|
78129
|
+
path15 += lookahead ? "(?=/|$)" : "(?:/|$)";
|
|
78130
78130
|
}
|
|
78131
|
-
return new RegExp("^" +
|
|
78131
|
+
return new RegExp("^" + path15, flags);
|
|
78132
78132
|
}
|
|
78133
78133
|
}
|
|
78134
78134
|
});
|
|
@@ -78141,19 +78141,19 @@ var require_layer = __commonJS({
|
|
|
78141
78141
|
var debug3 = require_src3()("express:router:layer");
|
|
78142
78142
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
78143
78143
|
module2.exports = Layer;
|
|
78144
|
-
function Layer(
|
|
78144
|
+
function Layer(path15, options, fn) {
|
|
78145
78145
|
if (!(this instanceof Layer)) {
|
|
78146
|
-
return new Layer(
|
|
78146
|
+
return new Layer(path15, options, fn);
|
|
78147
78147
|
}
|
|
78148
|
-
debug3("new %o",
|
|
78148
|
+
debug3("new %o", path15);
|
|
78149
78149
|
var opts = options || {};
|
|
78150
78150
|
this.handle = fn;
|
|
78151
78151
|
this.name = fn.name || "<anonymous>";
|
|
78152
78152
|
this.params = void 0;
|
|
78153
78153
|
this.path = void 0;
|
|
78154
|
-
this.regexp = pathRegexp(
|
|
78155
|
-
this.regexp.fast_star =
|
|
78156
|
-
this.regexp.fast_slash =
|
|
78154
|
+
this.regexp = pathRegexp(path15, this.keys = [], opts);
|
|
78155
|
+
this.regexp.fast_star = path15 === "*";
|
|
78156
|
+
this.regexp.fast_slash = path15 === "/" && opts.end === false;
|
|
78157
78157
|
}
|
|
78158
78158
|
Layer.prototype.handle_error = function handle_error(error3, req, res, next) {
|
|
78159
78159
|
var fn = this.handle;
|
|
@@ -78177,20 +78177,20 @@ var require_layer = __commonJS({
|
|
|
78177
78177
|
next(err);
|
|
78178
78178
|
}
|
|
78179
78179
|
};
|
|
78180
|
-
Layer.prototype.match = function match(
|
|
78180
|
+
Layer.prototype.match = function match(path15) {
|
|
78181
78181
|
var match2;
|
|
78182
|
-
if (
|
|
78182
|
+
if (path15 != null) {
|
|
78183
78183
|
if (this.regexp.fast_slash) {
|
|
78184
78184
|
this.params = {};
|
|
78185
78185
|
this.path = "";
|
|
78186
78186
|
return true;
|
|
78187
78187
|
}
|
|
78188
78188
|
if (this.regexp.fast_star) {
|
|
78189
|
-
this.params = { "0": decode_param(
|
|
78190
|
-
this.path =
|
|
78189
|
+
this.params = { "0": decode_param(path15) };
|
|
78190
|
+
this.path = path15;
|
|
78191
78191
|
return true;
|
|
78192
78192
|
}
|
|
78193
|
-
match2 = this.regexp.exec(
|
|
78193
|
+
match2 = this.regexp.exec(path15);
|
|
78194
78194
|
}
|
|
78195
78195
|
if (!match2) {
|
|
78196
78196
|
this.params = void 0;
|
|
@@ -78283,10 +78283,10 @@ var require_route = __commonJS({
|
|
|
78283
78283
|
var slice = Array.prototype.slice;
|
|
78284
78284
|
var toString4 = Object.prototype.toString;
|
|
78285
78285
|
module2.exports = Route;
|
|
78286
|
-
function Route(
|
|
78287
|
-
this.path =
|
|
78286
|
+
function Route(path15) {
|
|
78287
|
+
this.path = path15;
|
|
78288
78288
|
this.stack = [];
|
|
78289
|
-
debug3("new %o",
|
|
78289
|
+
debug3("new %o", path15);
|
|
78290
78290
|
this.methods = {};
|
|
78291
78291
|
}
|
|
78292
78292
|
Route.prototype._handles_method = function _handles_method(method) {
|
|
@@ -78498,8 +78498,8 @@ var require_router = __commonJS({
|
|
|
78498
78498
|
if (++sync > 100) {
|
|
78499
78499
|
return setImmediate(next, err);
|
|
78500
78500
|
}
|
|
78501
|
-
var
|
|
78502
|
-
if (
|
|
78501
|
+
var path15 = getPathname(req);
|
|
78502
|
+
if (path15 == null) {
|
|
78503
78503
|
return done(layerError);
|
|
78504
78504
|
}
|
|
78505
78505
|
var layer;
|
|
@@ -78507,7 +78507,7 @@ var require_router = __commonJS({
|
|
|
78507
78507
|
var route;
|
|
78508
78508
|
while (match !== true && idx < stack.length) {
|
|
78509
78509
|
layer = stack[idx++];
|
|
78510
|
-
match = matchLayer(layer,
|
|
78510
|
+
match = matchLayer(layer, path15);
|
|
78511
78511
|
route = layer.route;
|
|
78512
78512
|
if (typeof match !== "boolean") {
|
|
78513
78513
|
layerError = layerError || match;
|
|
@@ -78545,18 +78545,18 @@ var require_router = __commonJS({
|
|
|
78545
78545
|
} else if (route) {
|
|
78546
78546
|
layer.handle_request(req, res, next);
|
|
78547
78547
|
} else {
|
|
78548
|
-
trim_prefix(layer, layerError, layerPath,
|
|
78548
|
+
trim_prefix(layer, layerError, layerPath, path15);
|
|
78549
78549
|
}
|
|
78550
78550
|
sync = 0;
|
|
78551
78551
|
});
|
|
78552
78552
|
}
|
|
78553
|
-
function trim_prefix(layer, layerError, layerPath,
|
|
78553
|
+
function trim_prefix(layer, layerError, layerPath, path15) {
|
|
78554
78554
|
if (layerPath.length !== 0) {
|
|
78555
|
-
if (layerPath !==
|
|
78555
|
+
if (layerPath !== path15.slice(0, layerPath.length)) {
|
|
78556
78556
|
next(layerError);
|
|
78557
78557
|
return;
|
|
78558
78558
|
}
|
|
78559
|
-
var c =
|
|
78559
|
+
var c = path15[layerPath.length];
|
|
78560
78560
|
if (c && c !== "/" && c !== ".") return next(layerError);
|
|
78561
78561
|
debug3("trim prefix (%s) from url %s", layerPath, req.url);
|
|
78562
78562
|
removed = layerPath;
|
|
@@ -78634,7 +78634,7 @@ var require_router = __commonJS({
|
|
|
78634
78634
|
};
|
|
78635
78635
|
proto.use = function use(fn) {
|
|
78636
78636
|
var offset = 0;
|
|
78637
|
-
var
|
|
78637
|
+
var path15 = "/";
|
|
78638
78638
|
if (typeof fn !== "function") {
|
|
78639
78639
|
var arg = fn;
|
|
78640
78640
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -78642,7 +78642,7 @@ var require_router = __commonJS({
|
|
|
78642
78642
|
}
|
|
78643
78643
|
if (typeof arg !== "function") {
|
|
78644
78644
|
offset = 1;
|
|
78645
|
-
|
|
78645
|
+
path15 = fn;
|
|
78646
78646
|
}
|
|
78647
78647
|
}
|
|
78648
78648
|
var callbacks = flatten2(slice.call(arguments, offset));
|
|
@@ -78654,8 +78654,8 @@ var require_router = __commonJS({
|
|
|
78654
78654
|
if (typeof fn !== "function") {
|
|
78655
78655
|
throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
|
|
78656
78656
|
}
|
|
78657
|
-
debug3("use %o %s",
|
|
78658
|
-
var layer = new Layer(
|
|
78657
|
+
debug3("use %o %s", path15, fn.name || "<anonymous>");
|
|
78658
|
+
var layer = new Layer(path15, {
|
|
78659
78659
|
sensitive: this.caseSensitive,
|
|
78660
78660
|
strict: false,
|
|
78661
78661
|
end: false
|
|
@@ -78665,9 +78665,9 @@ var require_router = __commonJS({
|
|
|
78665
78665
|
}
|
|
78666
78666
|
return this;
|
|
78667
78667
|
};
|
|
78668
|
-
proto.route = function route(
|
|
78669
|
-
var route2 = new Route(
|
|
78670
|
-
var layer = new Layer(
|
|
78668
|
+
proto.route = function route(path15) {
|
|
78669
|
+
var route2 = new Route(path15);
|
|
78670
|
+
var layer = new Layer(path15, {
|
|
78671
78671
|
sensitive: this.caseSensitive,
|
|
78672
78672
|
strict: this.strict,
|
|
78673
78673
|
end: true
|
|
@@ -78677,8 +78677,8 @@ var require_router = __commonJS({
|
|
|
78677
78677
|
return route2;
|
|
78678
78678
|
};
|
|
78679
78679
|
methods.concat("all").forEach(function(method) {
|
|
78680
|
-
proto[method] = function(
|
|
78681
|
-
var route = this.route(
|
|
78680
|
+
proto[method] = function(path15) {
|
|
78681
|
+
var route = this.route(path15);
|
|
78682
78682
|
route[method].apply(route, slice.call(arguments, 1));
|
|
78683
78683
|
return this;
|
|
78684
78684
|
};
|
|
@@ -78714,9 +78714,9 @@ var require_router = __commonJS({
|
|
|
78714
78714
|
}
|
|
78715
78715
|
return toString4.call(obj).replace(objectRegExp, "$1");
|
|
78716
78716
|
}
|
|
78717
|
-
function matchLayer(layer,
|
|
78717
|
+
function matchLayer(layer, path15) {
|
|
78718
78718
|
try {
|
|
78719
|
-
return layer.match(
|
|
78719
|
+
return layer.match(path15);
|
|
78720
78720
|
} catch (err) {
|
|
78721
78721
|
return err;
|
|
78722
78722
|
}
|
|
@@ -78834,13 +78834,13 @@ var require_view = __commonJS({
|
|
|
78834
78834
|
"../../node_modules/.pnpm/express@4.22.1/node_modules/express/lib/view.js"(exports2, module2) {
|
|
78835
78835
|
"use strict";
|
|
78836
78836
|
var debug3 = require_src3()("express:view");
|
|
78837
|
-
var
|
|
78837
|
+
var path15 = __require("path");
|
|
78838
78838
|
var fs14 = __require("fs");
|
|
78839
|
-
var dirname7 =
|
|
78840
|
-
var basename4 =
|
|
78841
|
-
var extname =
|
|
78842
|
-
var
|
|
78843
|
-
var resolve7 =
|
|
78839
|
+
var dirname7 = path15.dirname;
|
|
78840
|
+
var basename4 = path15.basename;
|
|
78841
|
+
var extname = path15.extname;
|
|
78842
|
+
var join18 = path15.join;
|
|
78843
|
+
var resolve7 = path15.resolve;
|
|
78844
78844
|
module2.exports = View2;
|
|
78845
78845
|
function View2(name, options) {
|
|
78846
78846
|
var opts = options || {};
|
|
@@ -78869,17 +78869,17 @@ var require_view = __commonJS({
|
|
|
78869
78869
|
this.path = this.lookup(fileName);
|
|
78870
78870
|
}
|
|
78871
78871
|
View2.prototype.lookup = function lookup(name) {
|
|
78872
|
-
var
|
|
78872
|
+
var path16;
|
|
78873
78873
|
var roots = [].concat(this.root);
|
|
78874
78874
|
debug3('lookup "%s"', name);
|
|
78875
|
-
for (var i = 0; i < roots.length && !
|
|
78875
|
+
for (var i = 0; i < roots.length && !path16; i++) {
|
|
78876
78876
|
var root = roots[i];
|
|
78877
78877
|
var loc = resolve7(root, name);
|
|
78878
78878
|
var dir = dirname7(loc);
|
|
78879
78879
|
var file2 = basename4(loc);
|
|
78880
|
-
|
|
78880
|
+
path16 = this.resolve(dir, file2);
|
|
78881
78881
|
}
|
|
78882
|
-
return
|
|
78882
|
+
return path16;
|
|
78883
78883
|
};
|
|
78884
78884
|
View2.prototype.render = function render(options, callback) {
|
|
78885
78885
|
debug3('render "%s"', this.path);
|
|
@@ -78887,21 +78887,21 @@ var require_view = __commonJS({
|
|
|
78887
78887
|
};
|
|
78888
78888
|
View2.prototype.resolve = function resolve8(dir, file2) {
|
|
78889
78889
|
var ext = this.ext;
|
|
78890
|
-
var
|
|
78891
|
-
var stat = tryStat(
|
|
78890
|
+
var path16 = join18(dir, file2);
|
|
78891
|
+
var stat = tryStat(path16);
|
|
78892
78892
|
if (stat && stat.isFile()) {
|
|
78893
|
-
return
|
|
78893
|
+
return path16;
|
|
78894
78894
|
}
|
|
78895
|
-
|
|
78896
|
-
stat = tryStat(
|
|
78895
|
+
path16 = join18(dir, basename4(file2, ext), "index" + ext);
|
|
78896
|
+
stat = tryStat(path16);
|
|
78897
78897
|
if (stat && stat.isFile()) {
|
|
78898
|
-
return
|
|
78898
|
+
return path16;
|
|
78899
78899
|
}
|
|
78900
78900
|
};
|
|
78901
|
-
function tryStat(
|
|
78902
|
-
debug3('stat "%s"',
|
|
78901
|
+
function tryStat(path16) {
|
|
78902
|
+
debug3('stat "%s"', path16);
|
|
78903
78903
|
try {
|
|
78904
|
-
return fs14.statSync(
|
|
78904
|
+
return fs14.statSync(path16);
|
|
78905
78905
|
} catch (e) {
|
|
78906
78906
|
return void 0;
|
|
78907
78907
|
}
|
|
@@ -79255,7 +79255,7 @@ var require_types2 = __commonJS({
|
|
|
79255
79255
|
// ../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js
|
|
79256
79256
|
var require_mime = __commonJS({
|
|
79257
79257
|
"../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports2, module2) {
|
|
79258
|
-
var
|
|
79258
|
+
var path15 = __require("path");
|
|
79259
79259
|
var fs14 = __require("fs");
|
|
79260
79260
|
function Mime() {
|
|
79261
79261
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
@@ -79285,8 +79285,8 @@ var require_mime = __commonJS({
|
|
|
79285
79285
|
this.define(map2);
|
|
79286
79286
|
this._loading = null;
|
|
79287
79287
|
};
|
|
79288
|
-
Mime.prototype.lookup = function(
|
|
79289
|
-
var ext =
|
|
79288
|
+
Mime.prototype.lookup = function(path16, fallback) {
|
|
79289
|
+
var ext = path16.replace(/^.*[\.\/\\]/, "").toLowerCase();
|
|
79290
79290
|
return this.types[ext] || fallback || this.default_type;
|
|
79291
79291
|
};
|
|
79292
79292
|
Mime.prototype.extension = function(mimeType) {
|
|
@@ -79404,28 +79404,28 @@ var require_send = __commonJS({
|
|
|
79404
79404
|
var ms = require_ms();
|
|
79405
79405
|
var onFinished = require_on_finished();
|
|
79406
79406
|
var parseRange = require_range_parser();
|
|
79407
|
-
var
|
|
79407
|
+
var path15 = __require("path");
|
|
79408
79408
|
var statuses = require_statuses();
|
|
79409
79409
|
var Stream = __require("stream");
|
|
79410
79410
|
var util6 = __require("util");
|
|
79411
|
-
var extname =
|
|
79412
|
-
var
|
|
79413
|
-
var normalize3 =
|
|
79414
|
-
var resolve7 =
|
|
79415
|
-
var sep3 =
|
|
79411
|
+
var extname = path15.extname;
|
|
79412
|
+
var join18 = path15.join;
|
|
79413
|
+
var normalize3 = path15.normalize;
|
|
79414
|
+
var resolve7 = path15.resolve;
|
|
79415
|
+
var sep3 = path15.sep;
|
|
79416
79416
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
79417
79417
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
|
|
79418
79418
|
var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
79419
79419
|
module2.exports = send;
|
|
79420
79420
|
module2.exports.mime = mime;
|
|
79421
|
-
function send(req,
|
|
79422
|
-
return new SendStream(req,
|
|
79421
|
+
function send(req, path16, options) {
|
|
79422
|
+
return new SendStream(req, path16, options);
|
|
79423
79423
|
}
|
|
79424
|
-
function SendStream(req,
|
|
79424
|
+
function SendStream(req, path16, options) {
|
|
79425
79425
|
Stream.call(this);
|
|
79426
79426
|
var opts = options || {};
|
|
79427
79427
|
this.options = opts;
|
|
79428
|
-
this.path =
|
|
79428
|
+
this.path = path16;
|
|
79429
79429
|
this.req = req;
|
|
79430
79430
|
this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
|
|
79431
79431
|
this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
|
|
@@ -79471,8 +79471,8 @@ var require_send = __commonJS({
|
|
|
79471
79471
|
this._index = index2;
|
|
79472
79472
|
return this;
|
|
79473
79473
|
}, "send.index: pass index as option");
|
|
79474
|
-
SendStream.prototype.root = function root(
|
|
79475
|
-
this._root = resolve7(String(
|
|
79474
|
+
SendStream.prototype.root = function root(path16) {
|
|
79475
|
+
this._root = resolve7(String(path16));
|
|
79476
79476
|
debug3("root %s", this._root);
|
|
79477
79477
|
return this;
|
|
79478
79478
|
};
|
|
@@ -79585,10 +79585,10 @@ var require_send = __commonJS({
|
|
|
79585
79585
|
var lastModified = this.res.getHeader("Last-Modified");
|
|
79586
79586
|
return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
|
|
79587
79587
|
};
|
|
79588
|
-
SendStream.prototype.redirect = function redirect(
|
|
79588
|
+
SendStream.prototype.redirect = function redirect(path16) {
|
|
79589
79589
|
var res = this.res;
|
|
79590
79590
|
if (hasListeners(this, "directory")) {
|
|
79591
|
-
this.emit("directory", res,
|
|
79591
|
+
this.emit("directory", res, path16);
|
|
79592
79592
|
return;
|
|
79593
79593
|
}
|
|
79594
79594
|
if (this.hasTrailingSlash()) {
|
|
@@ -79608,42 +79608,42 @@ var require_send = __commonJS({
|
|
|
79608
79608
|
SendStream.prototype.pipe = function pipe(res) {
|
|
79609
79609
|
var root = this._root;
|
|
79610
79610
|
this.res = res;
|
|
79611
|
-
var
|
|
79612
|
-
if (
|
|
79611
|
+
var path16 = decode4(this.path);
|
|
79612
|
+
if (path16 === -1) {
|
|
79613
79613
|
this.error(400);
|
|
79614
79614
|
return res;
|
|
79615
79615
|
}
|
|
79616
|
-
if (~
|
|
79616
|
+
if (~path16.indexOf("\0")) {
|
|
79617
79617
|
this.error(400);
|
|
79618
79618
|
return res;
|
|
79619
79619
|
}
|
|
79620
79620
|
var parts;
|
|
79621
79621
|
if (root !== null) {
|
|
79622
|
-
if (
|
|
79623
|
-
|
|
79622
|
+
if (path16) {
|
|
79623
|
+
path16 = normalize3("." + sep3 + path16);
|
|
79624
79624
|
}
|
|
79625
|
-
if (UP_PATH_REGEXP.test(
|
|
79626
|
-
debug3('malicious path "%s"',
|
|
79625
|
+
if (UP_PATH_REGEXP.test(path16)) {
|
|
79626
|
+
debug3('malicious path "%s"', path16);
|
|
79627
79627
|
this.error(403);
|
|
79628
79628
|
return res;
|
|
79629
79629
|
}
|
|
79630
|
-
parts =
|
|
79631
|
-
|
|
79630
|
+
parts = path16.split(sep3);
|
|
79631
|
+
path16 = normalize3(join18(root, path16));
|
|
79632
79632
|
} else {
|
|
79633
|
-
if (UP_PATH_REGEXP.test(
|
|
79634
|
-
debug3('malicious path "%s"',
|
|
79633
|
+
if (UP_PATH_REGEXP.test(path16)) {
|
|
79634
|
+
debug3('malicious path "%s"', path16);
|
|
79635
79635
|
this.error(403);
|
|
79636
79636
|
return res;
|
|
79637
79637
|
}
|
|
79638
|
-
parts = normalize3(
|
|
79639
|
-
|
|
79638
|
+
parts = normalize3(path16).split(sep3);
|
|
79639
|
+
path16 = resolve7(path16);
|
|
79640
79640
|
}
|
|
79641
79641
|
if (containsDotFile(parts)) {
|
|
79642
79642
|
var access = this._dotfiles;
|
|
79643
79643
|
if (access === void 0) {
|
|
79644
79644
|
access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
|
|
79645
79645
|
}
|
|
79646
|
-
debug3('%s dotfile "%s"', access,
|
|
79646
|
+
debug3('%s dotfile "%s"', access, path16);
|
|
79647
79647
|
switch (access) {
|
|
79648
79648
|
case "allow":
|
|
79649
79649
|
break;
|
|
@@ -79657,13 +79657,13 @@ var require_send = __commonJS({
|
|
|
79657
79657
|
}
|
|
79658
79658
|
}
|
|
79659
79659
|
if (this._index.length && this.hasTrailingSlash()) {
|
|
79660
|
-
this.sendIndex(
|
|
79660
|
+
this.sendIndex(path16);
|
|
79661
79661
|
return res;
|
|
79662
79662
|
}
|
|
79663
|
-
this.sendFile(
|
|
79663
|
+
this.sendFile(path16);
|
|
79664
79664
|
return res;
|
|
79665
79665
|
};
|
|
79666
|
-
SendStream.prototype.send = function send2(
|
|
79666
|
+
SendStream.prototype.send = function send2(path16, stat) {
|
|
79667
79667
|
var len = stat.size;
|
|
79668
79668
|
var options = this.options;
|
|
79669
79669
|
var opts = {};
|
|
@@ -79675,9 +79675,9 @@ var require_send = __commonJS({
|
|
|
79675
79675
|
this.headersAlreadySent();
|
|
79676
79676
|
return;
|
|
79677
79677
|
}
|
|
79678
|
-
debug3('pipe "%s"',
|
|
79679
|
-
this.setHeader(
|
|
79680
|
-
this.type(
|
|
79678
|
+
debug3('pipe "%s"', path16);
|
|
79679
|
+
this.setHeader(path16, stat);
|
|
79680
|
+
this.type(path16);
|
|
79681
79681
|
if (this.isConditionalGET()) {
|
|
79682
79682
|
if (this.isPreconditionFailure()) {
|
|
79683
79683
|
this.error(412);
|
|
@@ -79726,26 +79726,26 @@ var require_send = __commonJS({
|
|
|
79726
79726
|
res.end();
|
|
79727
79727
|
return;
|
|
79728
79728
|
}
|
|
79729
|
-
this.stream(
|
|
79729
|
+
this.stream(path16, opts);
|
|
79730
79730
|
};
|
|
79731
|
-
SendStream.prototype.sendFile = function sendFile(
|
|
79731
|
+
SendStream.prototype.sendFile = function sendFile(path16) {
|
|
79732
79732
|
var i = 0;
|
|
79733
79733
|
var self2 = this;
|
|
79734
|
-
debug3('stat "%s"',
|
|
79735
|
-
fs14.stat(
|
|
79736
|
-
if (err && err.code === "ENOENT" && !extname(
|
|
79734
|
+
debug3('stat "%s"', path16);
|
|
79735
|
+
fs14.stat(path16, function onstat(err, stat) {
|
|
79736
|
+
if (err && err.code === "ENOENT" && !extname(path16) && path16[path16.length - 1] !== sep3) {
|
|
79737
79737
|
return next(err);
|
|
79738
79738
|
}
|
|
79739
79739
|
if (err) return self2.onStatError(err);
|
|
79740
|
-
if (stat.isDirectory()) return self2.redirect(
|
|
79741
|
-
self2.emit("file",
|
|
79742
|
-
self2.send(
|
|
79740
|
+
if (stat.isDirectory()) return self2.redirect(path16);
|
|
79741
|
+
self2.emit("file", path16, stat);
|
|
79742
|
+
self2.send(path16, stat);
|
|
79743
79743
|
});
|
|
79744
79744
|
function next(err) {
|
|
79745
79745
|
if (self2._extensions.length <= i) {
|
|
79746
79746
|
return err ? self2.onStatError(err) : self2.error(404);
|
|
79747
79747
|
}
|
|
79748
|
-
var p =
|
|
79748
|
+
var p = path16 + "." + self2._extensions[i++];
|
|
79749
79749
|
debug3('stat "%s"', p);
|
|
79750
79750
|
fs14.stat(p, function(err2, stat) {
|
|
79751
79751
|
if (err2) return next(err2);
|
|
@@ -79755,7 +79755,7 @@ var require_send = __commonJS({
|
|
|
79755
79755
|
});
|
|
79756
79756
|
}
|
|
79757
79757
|
};
|
|
79758
|
-
SendStream.prototype.sendIndex = function sendIndex(
|
|
79758
|
+
SendStream.prototype.sendIndex = function sendIndex(path16) {
|
|
79759
79759
|
var i = -1;
|
|
79760
79760
|
var self2 = this;
|
|
79761
79761
|
function next(err) {
|
|
@@ -79763,7 +79763,7 @@ var require_send = __commonJS({
|
|
|
79763
79763
|
if (err) return self2.onStatError(err);
|
|
79764
79764
|
return self2.error(404);
|
|
79765
79765
|
}
|
|
79766
|
-
var p =
|
|
79766
|
+
var p = join18(path16, self2._index[i]);
|
|
79767
79767
|
debug3('stat "%s"', p);
|
|
79768
79768
|
fs14.stat(p, function(err2, stat) {
|
|
79769
79769
|
if (err2) return next(err2);
|
|
@@ -79774,10 +79774,10 @@ var require_send = __commonJS({
|
|
|
79774
79774
|
}
|
|
79775
79775
|
next();
|
|
79776
79776
|
};
|
|
79777
|
-
SendStream.prototype.stream = function stream4(
|
|
79777
|
+
SendStream.prototype.stream = function stream4(path16, options) {
|
|
79778
79778
|
var self2 = this;
|
|
79779
79779
|
var res = this.res;
|
|
79780
|
-
var stream5 = fs14.createReadStream(
|
|
79780
|
+
var stream5 = fs14.createReadStream(path16, options);
|
|
79781
79781
|
this.emit("stream", stream5);
|
|
79782
79782
|
stream5.pipe(res);
|
|
79783
79783
|
function cleanup() {
|
|
@@ -79792,10 +79792,10 @@ var require_send = __commonJS({
|
|
|
79792
79792
|
self2.emit("end");
|
|
79793
79793
|
});
|
|
79794
79794
|
};
|
|
79795
|
-
SendStream.prototype.type = function type(
|
|
79795
|
+
SendStream.prototype.type = function type(path16) {
|
|
79796
79796
|
var res = this.res;
|
|
79797
79797
|
if (res.getHeader("Content-Type")) return;
|
|
79798
|
-
var type2 = mime.lookup(
|
|
79798
|
+
var type2 = mime.lookup(path16);
|
|
79799
79799
|
if (!type2) {
|
|
79800
79800
|
debug3("no content-type");
|
|
79801
79801
|
return;
|
|
@@ -79804,9 +79804,9 @@ var require_send = __commonJS({
|
|
|
79804
79804
|
debug3("content-type %s", type2);
|
|
79805
79805
|
res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
|
|
79806
79806
|
};
|
|
79807
|
-
SendStream.prototype.setHeader = function setHeader(
|
|
79807
|
+
SendStream.prototype.setHeader = function setHeader(path16, stat) {
|
|
79808
79808
|
var res = this.res;
|
|
79809
|
-
this.emit("headers", res,
|
|
79809
|
+
this.emit("headers", res, path16, stat);
|
|
79810
79810
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
79811
79811
|
debug3("accept ranges");
|
|
79812
79812
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -79865,9 +79865,9 @@ var require_send = __commonJS({
|
|
|
79865
79865
|
}
|
|
79866
79866
|
return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
|
|
79867
79867
|
}
|
|
79868
|
-
function decode4(
|
|
79868
|
+
function decode4(path16) {
|
|
79869
79869
|
try {
|
|
79870
|
-
return decodeURIComponent(
|
|
79870
|
+
return decodeURIComponent(path16);
|
|
79871
79871
|
} catch (err) {
|
|
79872
79872
|
return -1;
|
|
79873
79873
|
}
|
|
@@ -80776,10 +80776,10 @@ var require_utils10 = __commonJS({
|
|
|
80776
80776
|
var querystring = __require("querystring");
|
|
80777
80777
|
exports2.etag = createETagGenerator({ weak: false });
|
|
80778
80778
|
exports2.wetag = createETagGenerator({ weak: true });
|
|
80779
|
-
exports2.isAbsolute = function(
|
|
80780
|
-
if ("/" ===
|
|
80781
|
-
if (":" ===
|
|
80782
|
-
if ("\\\\" ===
|
|
80779
|
+
exports2.isAbsolute = function(path15) {
|
|
80780
|
+
if ("/" === path15[0]) return true;
|
|
80781
|
+
if (":" === path15[1] && ("\\" === path15[2] || "/" === path15[2])) return true;
|
|
80782
|
+
if ("\\\\" === path15.substring(0, 2)) return true;
|
|
80783
80783
|
};
|
|
80784
80784
|
exports2.flatten = deprecate.function(
|
|
80785
80785
|
flatten2,
|
|
@@ -80990,7 +80990,7 @@ var require_application = __commonJS({
|
|
|
80990
80990
|
};
|
|
80991
80991
|
app.use = function use(fn) {
|
|
80992
80992
|
var offset = 0;
|
|
80993
|
-
var
|
|
80993
|
+
var path15 = "/";
|
|
80994
80994
|
if (typeof fn !== "function") {
|
|
80995
80995
|
var arg = fn;
|
|
80996
80996
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -80998,7 +80998,7 @@ var require_application = __commonJS({
|
|
|
80998
80998
|
}
|
|
80999
80999
|
if (typeof arg !== "function") {
|
|
81000
81000
|
offset = 1;
|
|
81001
|
-
|
|
81001
|
+
path15 = fn;
|
|
81002
81002
|
}
|
|
81003
81003
|
}
|
|
81004
81004
|
var fns = flatten2(slice.call(arguments, offset));
|
|
@@ -81009,12 +81009,12 @@ var require_application = __commonJS({
|
|
|
81009
81009
|
var router = this._router;
|
|
81010
81010
|
fns.forEach(function(fn2) {
|
|
81011
81011
|
if (!fn2 || !fn2.handle || !fn2.set) {
|
|
81012
|
-
return router.use(
|
|
81012
|
+
return router.use(path15, fn2);
|
|
81013
81013
|
}
|
|
81014
|
-
debug3(".use app under %s",
|
|
81015
|
-
fn2.mountpath =
|
|
81014
|
+
debug3(".use app under %s", path15);
|
|
81015
|
+
fn2.mountpath = path15;
|
|
81016
81016
|
fn2.parent = this;
|
|
81017
|
-
router.use(
|
|
81017
|
+
router.use(path15, function mounted_app(req, res, next) {
|
|
81018
81018
|
var orig = req.app;
|
|
81019
81019
|
fn2.handle(req, res, function(err) {
|
|
81020
81020
|
setPrototypeOf(req, orig.request);
|
|
@@ -81026,9 +81026,9 @@ var require_application = __commonJS({
|
|
|
81026
81026
|
}, this);
|
|
81027
81027
|
return this;
|
|
81028
81028
|
};
|
|
81029
|
-
app.route = function route(
|
|
81029
|
+
app.route = function route(path15) {
|
|
81030
81030
|
this.lazyrouter();
|
|
81031
|
-
return this._router.route(
|
|
81031
|
+
return this._router.route(path15);
|
|
81032
81032
|
};
|
|
81033
81033
|
app.engine = function engine(ext, fn) {
|
|
81034
81034
|
if (typeof fn !== "function") {
|
|
@@ -81079,7 +81079,7 @@ var require_application = __commonJS({
|
|
|
81079
81079
|
}
|
|
81080
81080
|
return this;
|
|
81081
81081
|
};
|
|
81082
|
-
app.path = function
|
|
81082
|
+
app.path = function path15() {
|
|
81083
81083
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
81084
81084
|
};
|
|
81085
81085
|
app.enabled = function enabled(setting) {
|
|
@@ -81095,19 +81095,19 @@ var require_application = __commonJS({
|
|
|
81095
81095
|
return this.set(setting, false);
|
|
81096
81096
|
};
|
|
81097
81097
|
methods.forEach(function(method) {
|
|
81098
|
-
app[method] = function(
|
|
81098
|
+
app[method] = function(path15) {
|
|
81099
81099
|
if (method === "get" && arguments.length === 1) {
|
|
81100
|
-
return this.set(
|
|
81100
|
+
return this.set(path15);
|
|
81101
81101
|
}
|
|
81102
81102
|
this.lazyrouter();
|
|
81103
|
-
var route = this._router.route(
|
|
81103
|
+
var route = this._router.route(path15);
|
|
81104
81104
|
route[method].apply(route, slice.call(arguments, 1));
|
|
81105
81105
|
return this;
|
|
81106
81106
|
};
|
|
81107
81107
|
});
|
|
81108
|
-
app.all = function all3(
|
|
81108
|
+
app.all = function all3(path15) {
|
|
81109
81109
|
this.lazyrouter();
|
|
81110
|
-
var route = this._router.route(
|
|
81110
|
+
var route = this._router.route(path15);
|
|
81111
81111
|
var args = slice.call(arguments, 1);
|
|
81112
81112
|
for (var i = 0; i < methods.length; i++) {
|
|
81113
81113
|
route[methods[i]].apply(route, args);
|
|
@@ -81288,7 +81288,7 @@ var require_request = __commonJS({
|
|
|
81288
81288
|
var subdomains2 = !isIP3(hostname6) ? hostname6.split(".").reverse() : [hostname6];
|
|
81289
81289
|
return subdomains2.slice(offset);
|
|
81290
81290
|
});
|
|
81291
|
-
defineGetter(req, "path", function
|
|
81291
|
+
defineGetter(req, "path", function path15() {
|
|
81292
81292
|
return parse2(this).pathname;
|
|
81293
81293
|
});
|
|
81294
81294
|
defineGetter(req, "hostname", function hostname6() {
|
|
@@ -81371,7 +81371,7 @@ var require_response = __commonJS({
|
|
|
81371
81371
|
var http7 = __require("http");
|
|
81372
81372
|
var isAbsolute2 = require_utils10().isAbsolute;
|
|
81373
81373
|
var onFinished = require_on_finished();
|
|
81374
|
-
var
|
|
81374
|
+
var path15 = __require("path");
|
|
81375
81375
|
var statuses = require_statuses();
|
|
81376
81376
|
var merge3 = require_utils_merge();
|
|
81377
81377
|
var sign2 = require_cookie_signature().sign;
|
|
@@ -81380,9 +81380,9 @@ var require_response = __commonJS({
|
|
|
81380
81380
|
var setCharset = require_utils10().setCharset;
|
|
81381
81381
|
var cookie = require_cookie();
|
|
81382
81382
|
var send = require_send();
|
|
81383
|
-
var extname =
|
|
81383
|
+
var extname = path15.extname;
|
|
81384
81384
|
var mime = send.mime;
|
|
81385
|
-
var resolve7 =
|
|
81385
|
+
var resolve7 = path15.resolve;
|
|
81386
81386
|
var vary = require_vary();
|
|
81387
81387
|
var res = Object.create(http7.ServerResponse.prototype);
|
|
81388
81388
|
module2.exports = res;
|
|
@@ -81559,26 +81559,26 @@ var require_response = __commonJS({
|
|
|
81559
81559
|
this.type("txt");
|
|
81560
81560
|
return this.send(body);
|
|
81561
81561
|
};
|
|
81562
|
-
res.sendFile = function sendFile(
|
|
81562
|
+
res.sendFile = function sendFile(path16, options, callback) {
|
|
81563
81563
|
var done = callback;
|
|
81564
81564
|
var req = this.req;
|
|
81565
81565
|
var res2 = this;
|
|
81566
81566
|
var next = req.next;
|
|
81567
81567
|
var opts = options || {};
|
|
81568
|
-
if (!
|
|
81568
|
+
if (!path16) {
|
|
81569
81569
|
throw new TypeError("path argument is required to res.sendFile");
|
|
81570
81570
|
}
|
|
81571
|
-
if (typeof
|
|
81571
|
+
if (typeof path16 !== "string") {
|
|
81572
81572
|
throw new TypeError("path must be a string to res.sendFile");
|
|
81573
81573
|
}
|
|
81574
81574
|
if (typeof options === "function") {
|
|
81575
81575
|
done = options;
|
|
81576
81576
|
opts = {};
|
|
81577
81577
|
}
|
|
81578
|
-
if (!opts.root && !isAbsolute2(
|
|
81578
|
+
if (!opts.root && !isAbsolute2(path16)) {
|
|
81579
81579
|
throw new TypeError("path must be absolute or specify root to res.sendFile");
|
|
81580
81580
|
}
|
|
81581
|
-
var pathname = encodeURI(
|
|
81581
|
+
var pathname = encodeURI(path16);
|
|
81582
81582
|
var file2 = send(req, pathname, opts);
|
|
81583
81583
|
sendfile(res2, file2, opts, function(err) {
|
|
81584
81584
|
if (done) return done(err);
|
|
@@ -81588,7 +81588,7 @@ var require_response = __commonJS({
|
|
|
81588
81588
|
}
|
|
81589
81589
|
});
|
|
81590
81590
|
};
|
|
81591
|
-
res.sendfile = function(
|
|
81591
|
+
res.sendfile = function(path16, options, callback) {
|
|
81592
81592
|
var done = callback;
|
|
81593
81593
|
var req = this.req;
|
|
81594
81594
|
var res2 = this;
|
|
@@ -81598,7 +81598,7 @@ var require_response = __commonJS({
|
|
|
81598
81598
|
done = options;
|
|
81599
81599
|
opts = {};
|
|
81600
81600
|
}
|
|
81601
|
-
var file2 = send(req,
|
|
81601
|
+
var file2 = send(req, path16, opts);
|
|
81602
81602
|
sendfile(res2, file2, opts, function(err) {
|
|
81603
81603
|
if (done) return done(err);
|
|
81604
81604
|
if (err && err.code === "EISDIR") return next();
|
|
@@ -81611,7 +81611,7 @@ var require_response = __commonJS({
|
|
|
81611
81611
|
res.sendfile,
|
|
81612
81612
|
"res.sendfile: Use res.sendFile instead"
|
|
81613
81613
|
);
|
|
81614
|
-
res.download = function download(
|
|
81614
|
+
res.download = function download(path16, filename, options, callback) {
|
|
81615
81615
|
var done = callback;
|
|
81616
81616
|
var name = filename;
|
|
81617
81617
|
var opts = options || null;
|
|
@@ -81628,7 +81628,7 @@ var require_response = __commonJS({
|
|
|
81628
81628
|
opts = filename;
|
|
81629
81629
|
}
|
|
81630
81630
|
var headers = {
|
|
81631
|
-
"Content-Disposition": contentDisposition(name ||
|
|
81631
|
+
"Content-Disposition": contentDisposition(name || path16)
|
|
81632
81632
|
};
|
|
81633
81633
|
if (opts && opts.headers) {
|
|
81634
81634
|
var keys = Object.keys(opts.headers);
|
|
@@ -81641,7 +81641,7 @@ var require_response = __commonJS({
|
|
|
81641
81641
|
}
|
|
81642
81642
|
opts = Object.create(opts);
|
|
81643
81643
|
opts.headers = headers;
|
|
81644
|
-
var fullPath = !opts.root ? resolve7(
|
|
81644
|
+
var fullPath = !opts.root ? resolve7(path16) : path16;
|
|
81645
81645
|
return this.sendFile(fullPath, opts, done);
|
|
81646
81646
|
};
|
|
81647
81647
|
res.contentType = res.type = function contentType(type) {
|
|
@@ -81942,11 +81942,11 @@ var require_serve_static = __commonJS({
|
|
|
81942
81942
|
}
|
|
81943
81943
|
var forwardError = !fallthrough;
|
|
81944
81944
|
var originalUrl = parseUrl3.original(req);
|
|
81945
|
-
var
|
|
81946
|
-
if (
|
|
81947
|
-
|
|
81945
|
+
var path15 = parseUrl3(req).pathname;
|
|
81946
|
+
if (path15 === "/" && originalUrl.pathname.substr(-1) !== "/") {
|
|
81947
|
+
path15 = "";
|
|
81948
81948
|
}
|
|
81949
|
-
var stream4 = send(req,
|
|
81949
|
+
var stream4 = send(req, path15, opts);
|
|
81950
81950
|
stream4.on("directory", onDirectory);
|
|
81951
81951
|
if (setHeaders) {
|
|
81952
81952
|
stream4.on("headers", setHeaders);
|
|
@@ -82217,14 +82217,14 @@ var require_express_adapter = __commonJS({
|
|
|
82217
82217
|
engine(...args) {
|
|
82218
82218
|
return this.instance.engine(...args);
|
|
82219
82219
|
}
|
|
82220
|
-
useStaticAssets(
|
|
82220
|
+
useStaticAssets(path15, options) {
|
|
82221
82221
|
if (options && options.prefix) {
|
|
82222
|
-
return this.use(options.prefix, express.static(
|
|
82222
|
+
return this.use(options.prefix, express.static(path15, options));
|
|
82223
82223
|
}
|
|
82224
|
-
return this.use(express.static(
|
|
82224
|
+
return this.use(express.static(path15, options));
|
|
82225
82225
|
}
|
|
82226
|
-
setBaseViewsDir(
|
|
82227
|
-
return this.set("views",
|
|
82226
|
+
setBaseViewsDir(path15) {
|
|
82227
|
+
return this.set("views", path15);
|
|
82228
82228
|
}
|
|
82229
82229
|
setViewEngine(engine) {
|
|
82230
82230
|
return this.set("view engine", engine);
|
|
@@ -82796,19 +82796,19 @@ var require_utils11 = __commonJS({
|
|
|
82796
82796
|
if (decode4)
|
|
82797
82797
|
return decode4(data, hint);
|
|
82798
82798
|
}
|
|
82799
|
-
function basename4(
|
|
82800
|
-
if (typeof
|
|
82799
|
+
function basename4(path15) {
|
|
82800
|
+
if (typeof path15 !== "string")
|
|
82801
82801
|
return "";
|
|
82802
|
-
for (let i =
|
|
82803
|
-
switch (
|
|
82802
|
+
for (let i = path15.length - 1; i >= 0; --i) {
|
|
82803
|
+
switch (path15.charCodeAt(i)) {
|
|
82804
82804
|
case 47:
|
|
82805
82805
|
// '/'
|
|
82806
82806
|
case 92:
|
|
82807
|
-
|
|
82808
|
-
return
|
|
82807
|
+
path15 = path15.slice(i + 1);
|
|
82808
|
+
return path15 === ".." || path15 === "." ? "" : path15;
|
|
82809
82809
|
}
|
|
82810
82810
|
}
|
|
82811
|
-
return
|
|
82811
|
+
return path15 === ".." || path15 === "." ? "" : path15;
|
|
82812
82812
|
}
|
|
82813
82813
|
var TOKEN = [
|
|
82814
82814
|
0,
|
|
@@ -86626,7 +86626,7 @@ var require_make_middleware = __commonJS({
|
|
|
86626
86626
|
// ../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js
|
|
86627
86627
|
var require_mkdirp = __commonJS({
|
|
86628
86628
|
"../../node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js"(exports2, module2) {
|
|
86629
|
-
var
|
|
86629
|
+
var path15 = __require("path");
|
|
86630
86630
|
var fs14 = __require("fs");
|
|
86631
86631
|
var _0777 = parseInt("0777", 8);
|
|
86632
86632
|
module2.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
@@ -86646,7 +86646,7 @@ var require_mkdirp = __commonJS({
|
|
|
86646
86646
|
var cb = f || /* istanbul ignore next */
|
|
86647
86647
|
function() {
|
|
86648
86648
|
};
|
|
86649
|
-
p =
|
|
86649
|
+
p = path15.resolve(p);
|
|
86650
86650
|
xfs.mkdir(p, mode, function(er2) {
|
|
86651
86651
|
if (!er2) {
|
|
86652
86652
|
made = made || p;
|
|
@@ -86654,8 +86654,8 @@ var require_mkdirp = __commonJS({
|
|
|
86654
86654
|
}
|
|
86655
86655
|
switch (er2.code) {
|
|
86656
86656
|
case "ENOENT":
|
|
86657
|
-
if (
|
|
86658
|
-
mkdirP(
|
|
86657
|
+
if (path15.dirname(p) === p) return cb(er2);
|
|
86658
|
+
mkdirP(path15.dirname(p), opts, function(er3, made2) {
|
|
86659
86659
|
if (er3) cb(er3, made2);
|
|
86660
86660
|
else mkdirP(p, opts, cb, made2);
|
|
86661
86661
|
});
|
|
@@ -86682,14 +86682,14 @@ var require_mkdirp = __commonJS({
|
|
|
86682
86682
|
mode = _0777;
|
|
86683
86683
|
}
|
|
86684
86684
|
if (!made) made = null;
|
|
86685
|
-
p =
|
|
86685
|
+
p = path15.resolve(p);
|
|
86686
86686
|
try {
|
|
86687
86687
|
xfs.mkdirSync(p, mode);
|
|
86688
86688
|
made = made || p;
|
|
86689
86689
|
} catch (err0) {
|
|
86690
86690
|
switch (err0.code) {
|
|
86691
86691
|
case "ENOENT":
|
|
86692
|
-
made = sync(
|
|
86692
|
+
made = sync(path15.dirname(p), opts, made);
|
|
86693
86693
|
sync(p, opts, made);
|
|
86694
86694
|
break;
|
|
86695
86695
|
// In the case of any other error, just see if there's a dir
|
|
@@ -86716,7 +86716,7 @@ var require_disk = __commonJS({
|
|
|
86716
86716
|
"../../node_modules/.pnpm/multer@2.0.2/node_modules/multer/storage/disk.js"(exports2, module2) {
|
|
86717
86717
|
var fs14 = __require("fs");
|
|
86718
86718
|
var os7 = __require("os");
|
|
86719
|
-
var
|
|
86719
|
+
var path15 = __require("path");
|
|
86720
86720
|
var crypto7 = __require("crypto");
|
|
86721
86721
|
var mkdirp = require_mkdirp();
|
|
86722
86722
|
function getFilename(req, file2, cb) {
|
|
@@ -86744,7 +86744,7 @@ var require_disk = __commonJS({
|
|
|
86744
86744
|
if (err) return cb(err);
|
|
86745
86745
|
that.getFilename(req, file2, function(err2, filename) {
|
|
86746
86746
|
if (err2) return cb(err2);
|
|
86747
|
-
var finalPath =
|
|
86747
|
+
var finalPath = path15.join(destination, filename);
|
|
86748
86748
|
var outStream = fs14.createWriteStream(finalPath);
|
|
86749
86749
|
file2.stream.pipe(outStream);
|
|
86750
86750
|
outStream.on("error", cb);
|
|
@@ -86760,11 +86760,11 @@ var require_disk = __commonJS({
|
|
|
86760
86760
|
});
|
|
86761
86761
|
};
|
|
86762
86762
|
DiskStorage.prototype._removeFile = function _removeFile(req, file2, cb) {
|
|
86763
|
-
var
|
|
86763
|
+
var path16 = file2.path;
|
|
86764
86764
|
delete file2.destination;
|
|
86765
86765
|
delete file2.filename;
|
|
86766
86766
|
delete file2.path;
|
|
86767
|
-
fs14.unlink(
|
|
86767
|
+
fs14.unlink(path16, cb);
|
|
86768
86768
|
};
|
|
86769
86769
|
module2.exports = function(opts) {
|
|
86770
86770
|
return new DiskStorage(opts);
|
|
@@ -86903,7 +86903,7 @@ var require_buffer_list = __commonJS({
|
|
|
86903
86903
|
}
|
|
86904
86904
|
}, {
|
|
86905
86905
|
key: "join",
|
|
86906
|
-
value: function
|
|
86906
|
+
value: function join18(s) {
|
|
86907
86907
|
if (this.length === 0) return "";
|
|
86908
86908
|
var p = this.head;
|
|
86909
86909
|
var ret = "" + p.data;
|
|
@@ -91458,7 +91458,7 @@ var require_ws_adapter2 = __commonJS({
|
|
|
91458
91458
|
wsPackage = (0, load_package_util_1.loadPackage)("ws", "WsAdapter", () => require_ws());
|
|
91459
91459
|
}
|
|
91460
91460
|
create(port, options) {
|
|
91461
|
-
const { server, path:
|
|
91461
|
+
const { server, path: path15, ...wsOptions } = options;
|
|
91462
91462
|
if (wsOptions?.namespace) {
|
|
91463
91463
|
const error3 = new Error('"WsAdapter" does not support namespaces. If you need namespaces in your project, consider using the "@nestjs/platform-socket.io" package instead.');
|
|
91464
91464
|
this.logger.error(error3);
|
|
@@ -91470,25 +91470,25 @@ var require_ws_adapter2 = __commonJS({
|
|
|
91470
91470
|
noServer: true,
|
|
91471
91471
|
...wsOptions
|
|
91472
91472
|
}));
|
|
91473
|
-
this.addWsServerToRegistry(wsServer2, port,
|
|
91473
|
+
this.addWsServerToRegistry(wsServer2, port, path15);
|
|
91474
91474
|
return wsServer2;
|
|
91475
91475
|
}
|
|
91476
91476
|
if (server) {
|
|
91477
91477
|
return server;
|
|
91478
91478
|
}
|
|
91479
|
-
if (
|
|
91479
|
+
if (path15 && port !== UNDERLYING_HTTP_SERVER_PORT) {
|
|
91480
91480
|
const httpServer = this.ensureHttpServerExists(port);
|
|
91481
91481
|
httpServer?.listen(port);
|
|
91482
91482
|
const wsServer2 = this.bindErrorHandler(new wsPackage.Server({
|
|
91483
91483
|
noServer: true,
|
|
91484
91484
|
...wsOptions
|
|
91485
91485
|
}));
|
|
91486
|
-
this.addWsServerToRegistry(wsServer2, port,
|
|
91486
|
+
this.addWsServerToRegistry(wsServer2, port, path15);
|
|
91487
91487
|
return wsServer2;
|
|
91488
91488
|
}
|
|
91489
91489
|
const wsServer = this.bindErrorHandler(new wsPackage.Server({
|
|
91490
91490
|
port,
|
|
91491
|
-
path:
|
|
91491
|
+
path: path15,
|
|
91492
91492
|
...wsOptions
|
|
91493
91493
|
}));
|
|
91494
91494
|
return wsServer;
|
|
@@ -91566,10 +91566,10 @@ var require_ws_adapter2 = __commonJS({
|
|
|
91566
91566
|
});
|
|
91567
91567
|
return httpServer;
|
|
91568
91568
|
}
|
|
91569
|
-
addWsServerToRegistry(wsServer, port,
|
|
91569
|
+
addWsServerToRegistry(wsServer, port, path15) {
|
|
91570
91570
|
const entries = this.wsServersRegistry.get(port) ?? [];
|
|
91571
91571
|
entries.push(wsServer);
|
|
91572
|
-
wsServer.path = (0, shared_utils_1.normalizePath)(
|
|
91572
|
+
wsServer.path = (0, shared_utils_1.normalizePath)(path15);
|
|
91573
91573
|
this.wsServersRegistry.set(port, entries);
|
|
91574
91574
|
}
|
|
91575
91575
|
};
|
|
@@ -91672,7 +91672,7 @@ var require_package2 = __commonJS({
|
|
|
91672
91672
|
var require_main2 = __commonJS({
|
|
91673
91673
|
"../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
91674
91674
|
var fs14 = __require("fs");
|
|
91675
|
-
var
|
|
91675
|
+
var path15 = __require("path");
|
|
91676
91676
|
var os7 = __require("os");
|
|
91677
91677
|
var crypto7 = __require("crypto");
|
|
91678
91678
|
var packageJson = require_package2();
|
|
@@ -91786,7 +91786,7 @@ var require_main2 = __commonJS({
|
|
|
91786
91786
|
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
91787
91787
|
}
|
|
91788
91788
|
} else {
|
|
91789
|
-
possibleVaultPath =
|
|
91789
|
+
possibleVaultPath = path15.resolve(process.cwd(), ".env.vault");
|
|
91790
91790
|
}
|
|
91791
91791
|
if (fs14.existsSync(possibleVaultPath)) {
|
|
91792
91792
|
return possibleVaultPath;
|
|
@@ -91794,7 +91794,7 @@ var require_main2 = __commonJS({
|
|
|
91794
91794
|
return null;
|
|
91795
91795
|
}
|
|
91796
91796
|
function _resolveHome(envPath) {
|
|
91797
|
-
return envPath[0] === "~" ?
|
|
91797
|
+
return envPath[0] === "~" ? path15.join(os7.homedir(), envPath.slice(1)) : envPath;
|
|
91798
91798
|
}
|
|
91799
91799
|
function _configVault(options) {
|
|
91800
91800
|
_log("Loading env from encrypted .env.vault");
|
|
@@ -91807,7 +91807,7 @@ var require_main2 = __commonJS({
|
|
|
91807
91807
|
return { parsed };
|
|
91808
91808
|
}
|
|
91809
91809
|
function configDotenv(options) {
|
|
91810
|
-
const dotenvPath =
|
|
91810
|
+
const dotenvPath = path15.resolve(process.cwd(), ".env");
|
|
91811
91811
|
let encoding = "utf8";
|
|
91812
91812
|
const debug3 = Boolean(options && options.debug);
|
|
91813
91813
|
if (options && options.encoding) {
|
|
@@ -91830,13 +91830,13 @@ var require_main2 = __commonJS({
|
|
|
91830
91830
|
}
|
|
91831
91831
|
let lastError;
|
|
91832
91832
|
const parsedAll = {};
|
|
91833
|
-
for (const
|
|
91833
|
+
for (const path16 of optionPaths) {
|
|
91834
91834
|
try {
|
|
91835
|
-
const parsed = DotenvModule.parse(fs14.readFileSync(
|
|
91835
|
+
const parsed = DotenvModule.parse(fs14.readFileSync(path16, { encoding }));
|
|
91836
91836
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
91837
91837
|
} catch (e) {
|
|
91838
91838
|
if (debug3) {
|
|
91839
|
-
_debug(`Failed to load ${
|
|
91839
|
+
_debug(`Failed to load ${path16} ${e.message}`);
|
|
91840
91840
|
}
|
|
91841
91841
|
lastError = e;
|
|
91842
91842
|
}
|
|
@@ -92779,11 +92779,11 @@ var require_baseGet = __commonJS({
|
|
|
92779
92779
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports2, module2) {
|
|
92780
92780
|
var castPath = require_castPath();
|
|
92781
92781
|
var toKey = require_toKey();
|
|
92782
|
-
function baseGet(object,
|
|
92783
|
-
|
|
92784
|
-
var index = 0, length =
|
|
92782
|
+
function baseGet(object, path15) {
|
|
92783
|
+
path15 = castPath(path15, object);
|
|
92784
|
+
var index = 0, length = path15.length;
|
|
92785
92785
|
while (object != null && index < length) {
|
|
92786
|
-
object = object[toKey(
|
|
92786
|
+
object = object[toKey(path15[index++])];
|
|
92787
92787
|
}
|
|
92788
92788
|
return index && index == length ? object : void 0;
|
|
92789
92789
|
}
|
|
@@ -92795,8 +92795,8 @@ var require_baseGet = __commonJS({
|
|
|
92795
92795
|
var require_get2 = __commonJS({
|
|
92796
92796
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports2, module2) {
|
|
92797
92797
|
var baseGet = require_baseGet();
|
|
92798
|
-
function get2(object,
|
|
92799
|
-
var result = object == null ? void 0 : baseGet(object,
|
|
92798
|
+
function get2(object, path15, defaultValue) {
|
|
92799
|
+
var result = object == null ? void 0 : baseGet(object, path15);
|
|
92800
92800
|
return result === void 0 ? defaultValue : result;
|
|
92801
92801
|
}
|
|
92802
92802
|
module2.exports = get2;
|
|
@@ -92879,11 +92879,11 @@ var require_hasPath = __commonJS({
|
|
|
92879
92879
|
var isIndex = require_isIndex();
|
|
92880
92880
|
var isLength = require_isLength2();
|
|
92881
92881
|
var toKey = require_toKey();
|
|
92882
|
-
function hasPath(object,
|
|
92883
|
-
|
|
92884
|
-
var index = -1, length =
|
|
92882
|
+
function hasPath(object, path15, hasFunc) {
|
|
92883
|
+
path15 = castPath(path15, object);
|
|
92884
|
+
var index = -1, length = path15.length, result = false;
|
|
92885
92885
|
while (++index < length) {
|
|
92886
|
-
var key = toKey(
|
|
92886
|
+
var key = toKey(path15[index]);
|
|
92887
92887
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
92888
92888
|
break;
|
|
92889
92889
|
}
|
|
@@ -92904,8 +92904,8 @@ var require_has = __commonJS({
|
|
|
92904
92904
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/has.js"(exports2, module2) {
|
|
92905
92905
|
var baseHas = require_baseHas();
|
|
92906
92906
|
var hasPath = require_hasPath();
|
|
92907
|
-
function has(object,
|
|
92908
|
-
return object != null && hasPath(object,
|
|
92907
|
+
function has(object, path15) {
|
|
92908
|
+
return object != null && hasPath(object, path15, baseHas);
|
|
92909
92909
|
}
|
|
92910
92910
|
module2.exports = has;
|
|
92911
92911
|
}
|
|
@@ -92972,14 +92972,14 @@ var require_baseSet = __commonJS({
|
|
|
92972
92972
|
var isIndex = require_isIndex();
|
|
92973
92973
|
var isObject2 = require_isObject2();
|
|
92974
92974
|
var toKey = require_toKey();
|
|
92975
|
-
function baseSet(object,
|
|
92975
|
+
function baseSet(object, path15, value, customizer) {
|
|
92976
92976
|
if (!isObject2(object)) {
|
|
92977
92977
|
return object;
|
|
92978
92978
|
}
|
|
92979
|
-
|
|
92980
|
-
var index = -1, length =
|
|
92979
|
+
path15 = castPath(path15, object);
|
|
92980
|
+
var index = -1, length = path15.length, lastIndex = length - 1, nested = object;
|
|
92981
92981
|
while (nested != null && ++index < length) {
|
|
92982
|
-
var key = toKey(
|
|
92982
|
+
var key = toKey(path15[index]), newValue = value;
|
|
92983
92983
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
92984
92984
|
return object;
|
|
92985
92985
|
}
|
|
@@ -92987,7 +92987,7 @@ var require_baseSet = __commonJS({
|
|
|
92987
92987
|
var objValue = nested[key];
|
|
92988
92988
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
92989
92989
|
if (newValue === void 0) {
|
|
92990
|
-
newValue = isObject2(objValue) ? objValue : isIndex(
|
|
92990
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path15[index + 1]) ? [] : {};
|
|
92991
92991
|
}
|
|
92992
92992
|
}
|
|
92993
92993
|
assignValue(nested, key, newValue);
|
|
@@ -93003,8 +93003,8 @@ var require_baseSet = __commonJS({
|
|
|
93003
93003
|
var require_set = __commonJS({
|
|
93004
93004
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js"(exports2, module2) {
|
|
93005
93005
|
var baseSet = require_baseSet();
|
|
93006
|
-
function set(object,
|
|
93007
|
-
return object == null ? object : baseSet(object,
|
|
93006
|
+
function set(object, path15, value) {
|
|
93007
|
+
return object == null ? object : baseSet(object, path15, value);
|
|
93008
93008
|
}
|
|
93009
93009
|
module2.exports = set;
|
|
93010
93010
|
}
|
|
@@ -93867,7 +93867,7 @@ var require_path_to_regexp3 = __commonJS({
|
|
|
93867
93867
|
re.keys = keys;
|
|
93868
93868
|
return re;
|
|
93869
93869
|
};
|
|
93870
|
-
function pathtoRegexp(
|
|
93870
|
+
function pathtoRegexp(path15, keys, options) {
|
|
93871
93871
|
if (keys && !Array.isArray(keys)) {
|
|
93872
93872
|
options = keys;
|
|
93873
93873
|
keys = null;
|
|
@@ -93878,8 +93878,8 @@ var require_path_to_regexp3 = __commonJS({
|
|
|
93878
93878
|
var end = options.end !== false;
|
|
93879
93879
|
var flags = options.sensitive ? "" : "i";
|
|
93880
93880
|
var index = 0;
|
|
93881
|
-
if (
|
|
93882
|
-
var groups =
|
|
93881
|
+
if (path15 instanceof RegExp) {
|
|
93882
|
+
var groups = path15.source.match(/\((?!\?)/g) || [];
|
|
93883
93883
|
keys.push.apply(keys, groups.map(function(match, index2) {
|
|
93884
93884
|
return {
|
|
93885
93885
|
name: index2,
|
|
@@ -93888,15 +93888,15 @@ var require_path_to_regexp3 = __commonJS({
|
|
|
93888
93888
|
repeat: false
|
|
93889
93889
|
};
|
|
93890
93890
|
}));
|
|
93891
|
-
return attachKeys(
|
|
93891
|
+
return attachKeys(path15, keys);
|
|
93892
93892
|
}
|
|
93893
|
-
if (Array.isArray(
|
|
93894
|
-
|
|
93893
|
+
if (Array.isArray(path15)) {
|
|
93894
|
+
path15 = path15.map(function(value) {
|
|
93895
93895
|
return pathtoRegexp(value, keys, options).source;
|
|
93896
93896
|
});
|
|
93897
|
-
return attachKeys(new RegExp("(?:" +
|
|
93897
|
+
return attachKeys(new RegExp("(?:" + path15.join("|") + ")", flags), keys);
|
|
93898
93898
|
}
|
|
93899
|
-
|
|
93899
|
+
path15 = path15.replace(PATH_REGEXP, function(match, escaped, prefix, key, capture, group, suffix, escape2) {
|
|
93900
93900
|
if (escaped) {
|
|
93901
93901
|
return escaped;
|
|
93902
93902
|
}
|
|
@@ -93921,14 +93921,14 @@ var require_path_to_regexp3 = __commonJS({
|
|
|
93921
93921
|
}
|
|
93922
93922
|
return prefix + "(" + capture + ")";
|
|
93923
93923
|
});
|
|
93924
|
-
var endsWithSlash =
|
|
93924
|
+
var endsWithSlash = path15[path15.length - 1] === "/";
|
|
93925
93925
|
if (!strict) {
|
|
93926
|
-
|
|
93926
|
+
path15 = (endsWithSlash ? path15.slice(0, -2) : path15) + "(?:\\/(?=$))?";
|
|
93927
93927
|
}
|
|
93928
93928
|
if (!end) {
|
|
93929
|
-
|
|
93929
|
+
path15 += strict && endsWithSlash ? "" : "(?=\\/|$)";
|
|
93930
93930
|
}
|
|
93931
|
-
return attachKeys(new RegExp("^" +
|
|
93931
|
+
return attachKeys(new RegExp("^" + path15 + (end ? "$" : ""), flags), keys);
|
|
93932
93932
|
}
|
|
93933
93933
|
}
|
|
93934
93934
|
});
|
|
@@ -93941,8 +93941,8 @@ var require_is_route_excluded_util = __commonJS({
|
|
|
93941
93941
|
exports2.isRouteExcluded = void 0;
|
|
93942
93942
|
var pathToRegexp = require_path_to_regexp3();
|
|
93943
93943
|
var isRouteExcluded = (req, paths = []) => {
|
|
93944
|
-
return paths.some((
|
|
93945
|
-
const re = pathToRegexp(
|
|
93944
|
+
return paths.some((path15) => {
|
|
93945
|
+
const re = pathToRegexp(path15);
|
|
93946
93946
|
const queryParamsIndex = req.originalUrl.indexOf("?");
|
|
93947
93947
|
const pathname = queryParamsIndex >= 0 ? req.originalUrl.slice(0, queryParamsIndex) : req.originalUrl;
|
|
93948
93948
|
if (!re.exec(pathname + "/")) {
|
|
@@ -93961,7 +93961,7 @@ var require_validate_path_util = __commonJS({
|
|
|
93961
93961
|
"use strict";
|
|
93962
93962
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93963
93963
|
exports2.validatePath = void 0;
|
|
93964
|
-
var validatePath = (
|
|
93964
|
+
var validatePath = (path15) => path15 && path15.charAt(0) !== "/" ? `/${path15}` : path15;
|
|
93965
93965
|
exports2.validatePath = validatePath;
|
|
93966
93966
|
}
|
|
93967
93967
|
});
|
|
@@ -94671,7 +94671,7 @@ var require_package3 = __commonJS({
|
|
|
94671
94671
|
var require_main4 = __commonJS({
|
|
94672
94672
|
"../../node_modules/.pnpm/dotenv@16.6.1/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
94673
94673
|
var fs14 = __require("fs");
|
|
94674
|
-
var
|
|
94674
|
+
var path15 = __require("path");
|
|
94675
94675
|
var os7 = __require("os");
|
|
94676
94676
|
var crypto7 = __require("crypto");
|
|
94677
94677
|
var packageJson = require_package3();
|
|
@@ -94787,7 +94787,7 @@ var require_main4 = __commonJS({
|
|
|
94787
94787
|
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
94788
94788
|
}
|
|
94789
94789
|
} else {
|
|
94790
|
-
possibleVaultPath =
|
|
94790
|
+
possibleVaultPath = path15.resolve(process.cwd(), ".env.vault");
|
|
94791
94791
|
}
|
|
94792
94792
|
if (fs14.existsSync(possibleVaultPath)) {
|
|
94793
94793
|
return possibleVaultPath;
|
|
@@ -94795,7 +94795,7 @@ var require_main4 = __commonJS({
|
|
|
94795
94795
|
return null;
|
|
94796
94796
|
}
|
|
94797
94797
|
function _resolveHome(envPath) {
|
|
94798
|
-
return envPath[0] === "~" ?
|
|
94798
|
+
return envPath[0] === "~" ? path15.join(os7.homedir(), envPath.slice(1)) : envPath;
|
|
94799
94799
|
}
|
|
94800
94800
|
function _configVault(options) {
|
|
94801
94801
|
const debug3 = Boolean(options && options.debug);
|
|
@@ -94812,7 +94812,7 @@ var require_main4 = __commonJS({
|
|
|
94812
94812
|
return { parsed };
|
|
94813
94813
|
}
|
|
94814
94814
|
function configDotenv(options) {
|
|
94815
|
-
const dotenvPath =
|
|
94815
|
+
const dotenvPath = path15.resolve(process.cwd(), ".env");
|
|
94816
94816
|
let encoding = "utf8";
|
|
94817
94817
|
const debug3 = Boolean(options && options.debug);
|
|
94818
94818
|
const quiet = options && "quiet" in options ? options.quiet : true;
|
|
@@ -94836,13 +94836,13 @@ var require_main4 = __commonJS({
|
|
|
94836
94836
|
}
|
|
94837
94837
|
let lastError;
|
|
94838
94838
|
const parsedAll = {};
|
|
94839
|
-
for (const
|
|
94839
|
+
for (const path16 of optionPaths) {
|
|
94840
94840
|
try {
|
|
94841
|
-
const parsed = DotenvModule.parse(fs14.readFileSync(
|
|
94841
|
+
const parsed = DotenvModule.parse(fs14.readFileSync(path16, { encoding }));
|
|
94842
94842
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
94843
94843
|
} catch (e) {
|
|
94844
94844
|
if (debug3) {
|
|
94845
|
-
_debug(`Failed to load ${
|
|
94845
|
+
_debug(`Failed to load ${path16} ${e.message}`);
|
|
94846
94846
|
}
|
|
94847
94847
|
lastError = e;
|
|
94848
94848
|
}
|
|
@@ -94857,7 +94857,7 @@ var require_main4 = __commonJS({
|
|
|
94857
94857
|
const shortPaths = [];
|
|
94858
94858
|
for (const filePath of optionPaths) {
|
|
94859
94859
|
try {
|
|
94860
|
-
const relative2 =
|
|
94860
|
+
const relative2 = path15.relative(process.cwd(), filePath);
|
|
94861
94861
|
shortPaths.push(relative2);
|
|
94862
94862
|
} catch (e) {
|
|
94863
94863
|
if (debug3) {
|
|
@@ -113256,12 +113256,12 @@ var require_query3 = __commonJS({
|
|
|
113256
113256
|
this._fields.push([]);
|
|
113257
113257
|
return this.readField;
|
|
113258
113258
|
}
|
|
113259
|
-
_streamLocalInfile(connection,
|
|
113259
|
+
_streamLocalInfile(connection, path15) {
|
|
113260
113260
|
if (this._streamFactory) {
|
|
113261
|
-
this._localStream = this._streamFactory(
|
|
113261
|
+
this._localStream = this._streamFactory(path15);
|
|
113262
113262
|
} else {
|
|
113263
113263
|
this._localStreamError = new Error(
|
|
113264
|
-
`As a result of LOCAL INFILE command server wants to read ${
|
|
113264
|
+
`As a result of LOCAL INFILE command server wants to read ${path15} file, but as of v2.0 you must provide streamFactory option returning ReadStream.`
|
|
113265
113265
|
);
|
|
113266
113266
|
connection.writePacket(EmptyPacket);
|
|
113267
113267
|
return this.infileOk;
|
|
@@ -114718,7 +114718,7 @@ var require_named_placeholders = __commonJS({
|
|
|
114718
114718
|
}
|
|
114719
114719
|
return s;
|
|
114720
114720
|
}
|
|
114721
|
-
function
|
|
114721
|
+
function join18(tree) {
|
|
114722
114722
|
if (tree.length === 1) {
|
|
114723
114723
|
return tree;
|
|
114724
114724
|
}
|
|
@@ -114744,7 +114744,7 @@ var require_named_placeholders = __commonJS({
|
|
|
114744
114744
|
if (cache && (tree = cache.get(query))) {
|
|
114745
114745
|
return toArrayParams(tree, paramsObj);
|
|
114746
114746
|
}
|
|
114747
|
-
tree =
|
|
114747
|
+
tree = join18(parse2(query));
|
|
114748
114748
|
if (cache) {
|
|
114749
114749
|
cache.set(query, tree);
|
|
114750
114750
|
}
|
|
@@ -117497,8 +117497,8 @@ var require_PlatformTools = __commonJS({
|
|
|
117497
117497
|
static appendFileSync(filename, data) {
|
|
117498
117498
|
fs_1.default.appendFileSync(filename, data);
|
|
117499
117499
|
}
|
|
117500
|
-
static async writeFile(
|
|
117501
|
-
return fs_1.default.promises.writeFile(
|
|
117500
|
+
static async writeFile(path15, data) {
|
|
117501
|
+
return fs_1.default.promises.writeFile(path15, data);
|
|
117502
117502
|
}
|
|
117503
117503
|
/**
|
|
117504
117504
|
* Loads a dotenv file into the environment variables.
|
|
@@ -117584,16 +117584,16 @@ var require_PlatformTools = __commonJS({
|
|
|
117584
117584
|
var require_resolve = __commonJS({
|
|
117585
117585
|
"../../node_modules/.pnpm/app-root-path@3.1.0/node_modules/app-root-path/lib/resolve.js"(exports2, module2) {
|
|
117586
117586
|
"use strict";
|
|
117587
|
-
var
|
|
117587
|
+
var path15 = __require("path");
|
|
117588
117588
|
var globalPaths = __require("module").globalPaths;
|
|
117589
117589
|
var npmGlobalPrefix;
|
|
117590
117590
|
if ("win32" === process.platform) {
|
|
117591
|
-
npmGlobalPrefix =
|
|
117591
|
+
npmGlobalPrefix = path15.dirname(process.execPath);
|
|
117592
117592
|
} else {
|
|
117593
|
-
npmGlobalPrefix =
|
|
117593
|
+
npmGlobalPrefix = path15.dirname(path15.dirname(process.execPath));
|
|
117594
117594
|
}
|
|
117595
|
-
var npmGlobalModuleDir =
|
|
117596
|
-
var sep3 =
|
|
117595
|
+
var npmGlobalModuleDir = path15.resolve(npmGlobalPrefix, "lib", "node_modules");
|
|
117596
|
+
var sep3 = path15.sep;
|
|
117597
117597
|
var requireFunction = "function" === typeof __webpack_require__ || "function" === typeof __non_webpack_require__ ? __non_webpack_require__ : __require;
|
|
117598
117598
|
var isInstalledWithPNPM = function(resolved) {
|
|
117599
117599
|
const pnpmDir = sep3 + ".pnpm";
|
|
@@ -117616,7 +117616,7 @@ var require_resolve = __commonJS({
|
|
|
117616
117616
|
};
|
|
117617
117617
|
module2.exports = function resolve7(dirname7) {
|
|
117618
117618
|
if (process.env.APP_ROOT_PATH) {
|
|
117619
|
-
return
|
|
117619
|
+
return path15.resolve(process.env.APP_ROOT_PATH);
|
|
117620
117620
|
}
|
|
117621
117621
|
if (process.versions.pnp) {
|
|
117622
117622
|
try {
|
|
@@ -117635,7 +117635,7 @@ var require_resolve = __commonJS({
|
|
|
117635
117635
|
if (process.env.LAMBDA_TASK_ROOT && process.env.AWS_EXECUTION_ENV) {
|
|
117636
117636
|
return process.env.LAMBDA_TASK_ROOT;
|
|
117637
117637
|
}
|
|
117638
|
-
var resolved =
|
|
117638
|
+
var resolved = path15.resolve(dirname7);
|
|
117639
117639
|
var alternateMethod = false;
|
|
117640
117640
|
var appRootPath = null;
|
|
117641
117641
|
if (isInstalledWithPNPM(resolved)) {
|
|
@@ -117654,9 +117654,9 @@ var require_resolve = __commonJS({
|
|
|
117654
117654
|
}
|
|
117655
117655
|
if (alternateMethod || null == appRootPath) {
|
|
117656
117656
|
if (requireFunction.main) {
|
|
117657
|
-
appRootPath =
|
|
117657
|
+
appRootPath = path15.dirname(requireFunction.main.filename);
|
|
117658
117658
|
} else {
|
|
117659
|
-
appRootPath =
|
|
117659
|
+
appRootPath = path15.dirname(process.argv[1]);
|
|
117660
117660
|
}
|
|
117661
117661
|
}
|
|
117662
117662
|
if (alternateMethod && -1 !== appRootPath.indexOf(npmGlobalModuleDir) && appRootPath.length - 4 === appRootPath.indexOf(sep3 + "bin")) {
|
|
@@ -117672,12 +117672,12 @@ var require_app_root_path = __commonJS({
|
|
|
117672
117672
|
"../../node_modules/.pnpm/app-root-path@3.1.0/node_modules/app-root-path/lib/app-root-path.js"(exports2, module2) {
|
|
117673
117673
|
"use strict";
|
|
117674
117674
|
module2.exports = function(dirname7) {
|
|
117675
|
-
var
|
|
117675
|
+
var path15 = __require("path");
|
|
117676
117676
|
var resolve7 = require_resolve();
|
|
117677
117677
|
var appRootPath = resolve7(dirname7);
|
|
117678
117678
|
var publicInterface = {
|
|
117679
117679
|
resolve: function(pathToModule) {
|
|
117680
|
-
return
|
|
117680
|
+
return path15.join(appRootPath, pathToModule);
|
|
117681
117681
|
},
|
|
117682
117682
|
require: function(pathToModule) {
|
|
117683
117683
|
return __require(publicInterface.resolve(pathToModule));
|
|
@@ -117686,7 +117686,7 @@ var require_app_root_path = __commonJS({
|
|
|
117686
117686
|
return appRootPath;
|
|
117687
117687
|
},
|
|
117688
117688
|
setPath: function(explicitlySetPath) {
|
|
117689
|
-
appRootPath =
|
|
117689
|
+
appRootPath = path15.resolve(explicitlySetPath);
|
|
117690
117690
|
publicInterface.path = appRootPath;
|
|
117691
117691
|
},
|
|
117692
117692
|
path: appRootPath
|
|
@@ -118349,8 +118349,8 @@ var require_CircularRelationsError = __commonJS({
|
|
|
118349
118349
|
exports2.CircularRelationsError = void 0;
|
|
118350
118350
|
var TypeORMError_1 = require_TypeORMError();
|
|
118351
118351
|
var CircularRelationsError2 = class extends TypeORMError_1.TypeORMError {
|
|
118352
|
-
constructor(
|
|
118353
|
-
super(`Circular relations detected: ${
|
|
118352
|
+
constructor(path15) {
|
|
118353
|
+
super(`Circular relations detected: ${path15}. To resolve this issue you need to set nullable: true somewhere in this dependency structure.`);
|
|
118354
118354
|
}
|
|
118355
118355
|
};
|
|
118356
118356
|
exports2.CircularRelationsError = CircularRelationsError2;
|
|
@@ -119040,13 +119040,13 @@ var require_ImportUtils = __commonJS({
|
|
|
119040
119040
|
var packageJsonCache = /* @__PURE__ */ new Map();
|
|
119041
119041
|
var MAX_CACHE_SIZE = 1e3;
|
|
119042
119042
|
function setPackageJsonCache(paths, packageJson) {
|
|
119043
|
-
for (const
|
|
119044
|
-
if (packageJsonCache.size >= MAX_CACHE_SIZE && !packageJsonCache.has(
|
|
119043
|
+
for (const path15 of paths) {
|
|
119044
|
+
if (packageJsonCache.size >= MAX_CACHE_SIZE && !packageJsonCache.has(path15)) {
|
|
119045
119045
|
const firstKey = packageJsonCache.keys().next().value;
|
|
119046
119046
|
if (firstKey)
|
|
119047
119047
|
packageJsonCache.delete(firstKey);
|
|
119048
119048
|
}
|
|
119049
|
-
packageJsonCache.set(
|
|
119049
|
+
packageJsonCache.set(path15, packageJson);
|
|
119050
119050
|
}
|
|
119051
119051
|
}
|
|
119052
119052
|
async function getNearestPackageJson(filePath) {
|
|
@@ -120869,8 +120869,8 @@ var require_OrmUtils = __commonJS({
|
|
|
120869
120869
|
/**
|
|
120870
120870
|
* Gets deeper value of object.
|
|
120871
120871
|
*/
|
|
120872
|
-
static deepValue(obj,
|
|
120873
|
-
const segments =
|
|
120872
|
+
static deepValue(obj, path15) {
|
|
120873
|
+
const segments = path15.split(".");
|
|
120874
120874
|
for (let i = 0, len = segments.length; i < len; i++) {
|
|
120875
120875
|
obj = obj[segments[i]];
|
|
120876
120876
|
}
|
|
@@ -120889,8 +120889,8 @@ var require_OrmUtils = __commonJS({
|
|
|
120889
120889
|
}
|
|
120890
120890
|
static propertyPathsToTruthyObject(paths) {
|
|
120891
120891
|
const obj = {};
|
|
120892
|
-
for (const
|
|
120893
|
-
const props =
|
|
120892
|
+
for (const path15 of paths) {
|
|
120893
|
+
const props = path15.split(".");
|
|
120894
120894
|
if (!props.length)
|
|
120895
120895
|
continue;
|
|
120896
120896
|
if (!obj[props[0]] || obj[props[0]] === true) {
|
|
@@ -121164,11 +121164,11 @@ var require_OrmUtils = __commonJS({
|
|
|
121164
121164
|
* @param options
|
|
121165
121165
|
* @param path
|
|
121166
121166
|
*/
|
|
121167
|
-
static normalizeWhereCriteria(criteria, options,
|
|
121167
|
+
static normalizeWhereCriteria(criteria, options, path15) {
|
|
121168
121168
|
if (!options) {
|
|
121169
121169
|
return criteria;
|
|
121170
121170
|
}
|
|
121171
|
-
if (!
|
|
121171
|
+
if (!path15 && Array.isArray(criteria)) {
|
|
121172
121172
|
return criteria.map((criterion, index) => _OrmUtils.normalizeWhereCriteria(criterion, options, String(index)));
|
|
121173
121173
|
}
|
|
121174
121174
|
if (!_OrmUtils.isPlainObject(criteria)) {
|
|
@@ -121178,7 +121178,7 @@ var require_OrmUtils = __commonJS({
|
|
|
121178
121178
|
for (const [key, value] of Object.entries(criteria)) {
|
|
121179
121179
|
if (key === "__proto__")
|
|
121180
121180
|
continue;
|
|
121181
|
-
const propertyPath =
|
|
121181
|
+
const propertyPath = path15 ? `${path15}.${key}` : key;
|
|
121182
121182
|
if (value === void 0) {
|
|
121183
121183
|
const behavior = options.undefined || "ignore";
|
|
121184
121184
|
if (behavior === "throw") {
|
|
@@ -122260,7 +122260,7 @@ var require_QueryExpressionMap = __commonJS({
|
|
|
122260
122260
|
map2.onConflict = this.onConflict;
|
|
122261
122261
|
map2.onIgnore = this.onIgnore;
|
|
122262
122262
|
map2.onUpdate = this.onUpdate;
|
|
122263
|
-
map2.joinAttributes = this.joinAttributes.map((
|
|
122263
|
+
map2.joinAttributes = this.joinAttributes.map((join18) => new JoinAttribute_1.JoinAttribute(this.connection, this, join18));
|
|
122264
122264
|
map2.relationIdAttributes = this.relationIdAttributes.map((relationId) => new RelationIdAttribute_1.RelationIdAttribute(this, relationId));
|
|
122265
122265
|
map2.relationCountAttributes = this.relationCountAttributes.map((relationCount) => new RelationCountAttribute_1.RelationCountAttribute(this, relationCount));
|
|
122266
122266
|
map2.wheres = this.wheres.map((where) => ({ ...where }));
|
|
@@ -123104,41 +123104,41 @@ var require_QueryBuilder = __commonJS({
|
|
|
123104
123104
|
createPropertyPath(metadata, entity, prefix = "") {
|
|
123105
123105
|
const paths = [];
|
|
123106
123106
|
for (const key of Object.keys(entity)) {
|
|
123107
|
-
const
|
|
123107
|
+
const path15 = prefix ? `${prefix}.${key}` : key;
|
|
123108
123108
|
if (entity[key] === null || typeof entity[key] !== "object" || InstanceChecker_1.InstanceChecker.isFindOperator(entity[key])) {
|
|
123109
|
-
paths.push(
|
|
123109
|
+
paths.push(path15);
|
|
123110
123110
|
continue;
|
|
123111
123111
|
}
|
|
123112
|
-
if (metadata.hasEmbeddedWithPropertyPath(
|
|
123113
|
-
const subPaths = this.createPropertyPath(metadata, entity[key],
|
|
123112
|
+
if (metadata.hasEmbeddedWithPropertyPath(path15)) {
|
|
123113
|
+
const subPaths = this.createPropertyPath(metadata, entity[key], path15);
|
|
123114
123114
|
paths.push(...subPaths);
|
|
123115
123115
|
continue;
|
|
123116
123116
|
}
|
|
123117
|
-
if (metadata.hasRelationWithPropertyPath(
|
|
123118
|
-
const relation = metadata.findRelationWithPropertyPath(
|
|
123117
|
+
if (metadata.hasRelationWithPropertyPath(path15)) {
|
|
123118
|
+
const relation = metadata.findRelationWithPropertyPath(path15);
|
|
123119
123119
|
if (relation.relationType === "one-to-one" || relation.relationType === "many-to-one") {
|
|
123120
123120
|
const joinColumns = relation.joinColumns.map((j) => j.referencedColumn).filter((j) => !!j);
|
|
123121
123121
|
const hasAllJoinColumns = joinColumns.length > 0 && joinColumns.every((column) => column.getEntityValue(entity[key], false));
|
|
123122
123122
|
if (hasAllJoinColumns) {
|
|
123123
|
-
paths.push(
|
|
123123
|
+
paths.push(path15);
|
|
123124
123124
|
continue;
|
|
123125
123125
|
}
|
|
123126
123126
|
}
|
|
123127
123127
|
if (relation.relationType === "one-to-many" || relation.relationType === "many-to-many") {
|
|
123128
|
-
throw new Error(`Cannot query across ${relation.relationType} for property ${
|
|
123128
|
+
throw new Error(`Cannot query across ${relation.relationType} for property ${path15}`);
|
|
123129
123129
|
}
|
|
123130
123130
|
const primaryColumns = relation.inverseEntityMetadata.primaryColumns;
|
|
123131
123131
|
const hasAllPrimaryKeys = primaryColumns.length > 0 && primaryColumns.every((column) => column.getEntityValue(entity[key], false));
|
|
123132
123132
|
if (hasAllPrimaryKeys) {
|
|
123133
|
-
const subPaths2 = primaryColumns.map((column) => `${
|
|
123133
|
+
const subPaths2 = primaryColumns.map((column) => `${path15}.${column.propertyPath}`);
|
|
123134
123134
|
paths.push(...subPaths2);
|
|
123135
123135
|
continue;
|
|
123136
123136
|
}
|
|
123137
|
-
const subPaths = this.createPropertyPath(relation.inverseEntityMetadata, entity[key]).map((p) => `${
|
|
123137
|
+
const subPaths = this.createPropertyPath(relation.inverseEntityMetadata, entity[key]).map((p) => `${path15}.${p}`);
|
|
123138
123138
|
paths.push(...subPaths);
|
|
123139
123139
|
continue;
|
|
123140
123140
|
}
|
|
123141
|
-
paths.push(
|
|
123141
|
+
paths.push(path15);
|
|
123142
123142
|
}
|
|
123143
123143
|
return paths;
|
|
123144
123144
|
}
|
|
@@ -125485,29 +125485,29 @@ var require_RawSqlResultsToEntityTransformer = __commonJS({
|
|
|
125485
125485
|
*/
|
|
125486
125486
|
transformJoins(rawResults, entity, alias, metadata) {
|
|
125487
125487
|
let hasData = false;
|
|
125488
|
-
for (const
|
|
125489
|
-
if (!
|
|
125488
|
+
for (const join18 of this.expressionMap.joinAttributes) {
|
|
125489
|
+
if (!join18.metadata)
|
|
125490
125490
|
continue;
|
|
125491
|
-
if (!
|
|
125491
|
+
if (!join18.isSelected)
|
|
125492
125492
|
continue;
|
|
125493
|
-
if (
|
|
125493
|
+
if (join18.relation && !metadata.relations.find((relation) => relation === join18.relation))
|
|
125494
125494
|
continue;
|
|
125495
|
-
if (
|
|
125496
|
-
if (
|
|
125495
|
+
if (join18.mapToProperty) {
|
|
125496
|
+
if (join18.mapToPropertyParentAlias !== alias.name)
|
|
125497
125497
|
continue;
|
|
125498
125498
|
} else {
|
|
125499
|
-
if (!
|
|
125499
|
+
if (!join18.relation || join18.parentAlias !== alias.name || join18.relationPropertyPath !== join18.relation.propertyPath)
|
|
125500
125500
|
continue;
|
|
125501
125501
|
}
|
|
125502
|
-
let result = this.transform(rawResults,
|
|
125503
|
-
result = !
|
|
125504
|
-
result = !
|
|
125502
|
+
let result = this.transform(rawResults, join18.alias);
|
|
125503
|
+
result = !join18.isMany ? result[0] : result;
|
|
125504
|
+
result = !join18.isMany && result === void 0 ? null : result;
|
|
125505
125505
|
if (result === void 0)
|
|
125506
125506
|
continue;
|
|
125507
|
-
if (
|
|
125508
|
-
entity[
|
|
125507
|
+
if (join18.mapToPropertyPropertyName) {
|
|
125508
|
+
entity[join18.mapToPropertyPropertyName] = result;
|
|
125509
125509
|
} else {
|
|
125510
|
-
|
|
125510
|
+
join18.relation.setEntityValue(entity, result);
|
|
125511
125511
|
}
|
|
125512
125512
|
hasData = true;
|
|
125513
125513
|
}
|
|
@@ -126247,11 +126247,11 @@ var require_RelationIdMetadataToAttributeTransformer = __commonJS({
|
|
|
126247
126247
|
this.expressionMap.relationIdAttributes.push(attribute);
|
|
126248
126248
|
});
|
|
126249
126249
|
}
|
|
126250
|
-
this.expressionMap.joinAttributes.forEach((
|
|
126251
|
-
if (!
|
|
126250
|
+
this.expressionMap.joinAttributes.forEach((join18) => {
|
|
126251
|
+
if (!join18.metadata || join18.metadata.isJunction)
|
|
126252
126252
|
return;
|
|
126253
|
-
|
|
126254
|
-
const attribute = this.metadataToAttribute(
|
|
126253
|
+
join18.metadata.relationIds.forEach((relationId) => {
|
|
126254
|
+
const attribute = this.metadataToAttribute(join18.alias.name, relationId);
|
|
126255
126255
|
this.expressionMap.relationIdAttributes.push(attribute);
|
|
126256
126256
|
});
|
|
126257
126257
|
});
|
|
@@ -126389,11 +126389,11 @@ var require_RelationCountMetadataToAttributeTransformer = __commonJS({
|
|
|
126389
126389
|
this.expressionMap.relationCountAttributes.push(attribute);
|
|
126390
126390
|
});
|
|
126391
126391
|
}
|
|
126392
|
-
this.expressionMap.joinAttributes.forEach((
|
|
126393
|
-
if (!
|
|
126392
|
+
this.expressionMap.joinAttributes.forEach((join18) => {
|
|
126393
|
+
if (!join18.metadata || join18.metadata.isJunction)
|
|
126394
126394
|
return;
|
|
126395
|
-
|
|
126396
|
-
const attribute = this.metadataToAttribute(
|
|
126395
|
+
join18.metadata.relationCounts.forEach((relationCount) => {
|
|
126396
|
+
const attribute = this.metadataToAttribute(join18.alias.name, relationCount);
|
|
126397
126397
|
this.expressionMap.relationCountAttributes.push(attribute);
|
|
126398
126398
|
});
|
|
126399
126399
|
});
|
|
@@ -126490,9 +126490,9 @@ var require_FindOptionsUtils = __commonJS({
|
|
|
126490
126490
|
relationMetadata = relation.inverseEntityMetadata;
|
|
126491
126491
|
relationName = relationAlias;
|
|
126492
126492
|
} else {
|
|
126493
|
-
const
|
|
126494
|
-
relationMetadata =
|
|
126495
|
-
relationName =
|
|
126493
|
+
const join18 = qb.expressionMap.joinAttributes.find((join19) => join19.entityOrProperty === selection);
|
|
126494
|
+
relationMetadata = join18.metadata;
|
|
126495
|
+
relationName = join18.alias.name;
|
|
126496
126496
|
}
|
|
126497
126497
|
if (!relationName || !relationMetadata) {
|
|
126498
126498
|
throw new error_2.EntityPropertyNotFoundError(relation.propertyPath, metadata);
|
|
@@ -126510,12 +126510,12 @@ var require_FindOptionsUtils = __commonJS({
|
|
|
126510
126510
|
metadata.eagerRelations.forEach((relation) => {
|
|
126511
126511
|
let relationAlias = DriverUtils_1.DriverUtils.buildAlias(qb.connection.driver, { joiner: "__" }, alias, relation.propertyName);
|
|
126512
126512
|
let addJoin = true;
|
|
126513
|
-
for (const
|
|
126514
|
-
if (
|
|
126513
|
+
for (const join18 of qb.expressionMap.joinAttributes) {
|
|
126514
|
+
if (join18.condition !== void 0 || join18.mapToProperty !== void 0 || join18.isMappingMany !== void 0 || join18.direction !== "LEFT" || join18.entityOrProperty !== `${alias}.${relation.propertyPath}`) {
|
|
126515
126515
|
continue;
|
|
126516
126516
|
}
|
|
126517
126517
|
addJoin = false;
|
|
126518
|
-
relationAlias =
|
|
126518
|
+
relationAlias = join18.alias.name;
|
|
126519
126519
|
break;
|
|
126520
126520
|
}
|
|
126521
126521
|
const joinAlreadyAdded = Boolean(qb.expressionMap.joinAttributes.find((joinAttribute) => joinAttribute.alias.name === relationAlias));
|
|
@@ -127480,17 +127480,17 @@ var require_SelectQueryBuilder = __commonJS({
|
|
|
127480
127480
|
allSelects.push(...this.buildEscapedEntityColumnSelects(this.expressionMap.mainAlias.name, metadata));
|
|
127481
127481
|
excludedSelects.push(...this.findEntityColumnSelects(this.expressionMap.mainAlias.name, metadata));
|
|
127482
127482
|
}
|
|
127483
|
-
this.expressionMap.joinAttributes.forEach((
|
|
127484
|
-
if (
|
|
127485
|
-
allSelects.push(...this.buildEscapedEntityColumnSelects(
|
|
127486
|
-
excludedSelects.push(...this.findEntityColumnSelects(
|
|
127483
|
+
this.expressionMap.joinAttributes.forEach((join18) => {
|
|
127484
|
+
if (join18.metadata) {
|
|
127485
|
+
allSelects.push(...this.buildEscapedEntityColumnSelects(join18.alias.name, join18.metadata));
|
|
127486
|
+
excludedSelects.push(...this.findEntityColumnSelects(join18.alias.name, join18.metadata));
|
|
127487
127487
|
} else {
|
|
127488
|
-
const hasMainAlias = this.expressionMap.selects.some((select2) => select2.selection ===
|
|
127488
|
+
const hasMainAlias = this.expressionMap.selects.some((select2) => select2.selection === join18.alias.name);
|
|
127489
127489
|
if (hasMainAlias) {
|
|
127490
127490
|
allSelects.push({
|
|
127491
|
-
selection: this.escape(
|
|
127491
|
+
selection: this.escape(join18.alias.name) + ".*"
|
|
127492
127492
|
});
|
|
127493
|
-
const excludedSelect = this.expressionMap.selects.find((select2) => select2.selection ===
|
|
127493
|
+
const excludedSelect = this.expressionMap.selects.find((select2) => select2.selection === join18.alias.name);
|
|
127494
127494
|
excludedSelects.push(excludedSelect);
|
|
127495
127495
|
}
|
|
127496
127496
|
}
|
|
@@ -127947,18 +127947,18 @@ var require_SelectQueryBuilder = __commonJS({
|
|
|
127947
127947
|
this.buildOrder(this.findOptions.order, this.expressionMap.mainAlias.metadata, this.expressionMap.mainAlias.name);
|
|
127948
127948
|
}
|
|
127949
127949
|
if (this.joins.length) {
|
|
127950
|
-
this.joins.forEach((
|
|
127951
|
-
if (
|
|
127952
|
-
if (
|
|
127953
|
-
this.innerJoinAndSelect(`${
|
|
127950
|
+
this.joins.forEach((join18) => {
|
|
127951
|
+
if (join18.select && !join18.selection) {
|
|
127952
|
+
if (join18.type === "inner") {
|
|
127953
|
+
this.innerJoinAndSelect(`${join18.parentAlias}.${join18.relationMetadata.propertyPath}`, join18.alias);
|
|
127954
127954
|
} else {
|
|
127955
|
-
this.leftJoinAndSelect(`${
|
|
127955
|
+
this.leftJoinAndSelect(`${join18.parentAlias}.${join18.relationMetadata.propertyPath}`, join18.alias);
|
|
127956
127956
|
}
|
|
127957
127957
|
} else {
|
|
127958
|
-
if (
|
|
127959
|
-
this.innerJoin(`${
|
|
127958
|
+
if (join18.type === "inner") {
|
|
127959
|
+
this.innerJoin(`${join18.parentAlias}.${join18.relationMetadata.propertyPath}`, join18.alias);
|
|
127960
127960
|
} else {
|
|
127961
|
-
this.leftJoin(`${
|
|
127961
|
+
this.leftJoin(`${join18.parentAlias}.${join18.relationMetadata.propertyPath}`, join18.alias);
|
|
127962
127962
|
}
|
|
127963
127963
|
}
|
|
127964
127964
|
});
|
|
@@ -128305,7 +128305,7 @@ var require_SelectQueryBuilder = __commonJS({
|
|
|
128305
128305
|
relation.inverseEntityMetadata.eagerRelations.forEach((eagerRelation) => {
|
|
128306
128306
|
let eagerRelationJoinAlias = joinAlias + "_" + eagerRelation.propertyPath.replace(".", "_");
|
|
128307
128307
|
eagerRelationJoinAlias = DriverUtils_1.DriverUtils.buildAlias(this.connection.driver, { joiner: "__" }, joinAlias, eagerRelationJoinAlias);
|
|
128308
|
-
const existJoin = this.joins.find((
|
|
128308
|
+
const existJoin = this.joins.find((join18) => join18.alias === eagerRelationJoinAlias);
|
|
128309
128309
|
if (!existJoin) {
|
|
128310
128310
|
this.joins.push({
|
|
128311
128311
|
type: "left",
|
|
@@ -128349,7 +128349,7 @@ var require_SelectQueryBuilder = __commonJS({
|
|
|
128349
128349
|
} else if (relation) {
|
|
128350
128350
|
let joinAlias = alias + "_" + propertyPath.replace(".", "_");
|
|
128351
128351
|
joinAlias = DriverUtils_1.DriverUtils.buildAlias(this.connection.driver, { joiner: "__" }, alias, joinAlias);
|
|
128352
|
-
const existJoin = this.joins.find((
|
|
128352
|
+
const existJoin = this.joins.find((join18) => join18.alias === joinAlias);
|
|
128353
128353
|
if (!existJoin) {
|
|
128354
128354
|
this.joins.push({
|
|
128355
128355
|
type: "left",
|
|
@@ -128489,7 +128489,7 @@ var require_SelectQueryBuilder = __commonJS({
|
|
|
128489
128489
|
} else {
|
|
128490
128490
|
let joinAlias = alias + "_" + relation.propertyPath.replace(".", "_");
|
|
128491
128491
|
joinAlias = DriverUtils_1.DriverUtils.buildAlias(this.connection.driver, { joiner: "__" }, alias, joinAlias);
|
|
128492
|
-
const existJoin = this.joins.find((
|
|
128492
|
+
const existJoin = this.joins.find((join18) => join18.alias === joinAlias);
|
|
128493
128493
|
if (!existJoin) {
|
|
128494
128494
|
this.joins.push({
|
|
128495
128495
|
type: "left",
|
|
@@ -133814,8 +133814,8 @@ var require_EntityMetadata = __commonJS({
|
|
|
133814
133814
|
const subPaths = this.createPropertyPath(metadata, entity[key], parentPath);
|
|
133815
133815
|
paths.push(...subPaths);
|
|
133816
133816
|
} else {
|
|
133817
|
-
const
|
|
133818
|
-
paths.push(
|
|
133817
|
+
const path15 = prefix ? prefix + "." + key : key;
|
|
133818
|
+
paths.push(path15);
|
|
133819
133819
|
}
|
|
133820
133820
|
});
|
|
133821
133821
|
return paths;
|
|
@@ -148610,8 +148610,8 @@ var require_AbstractSqliteDriver = __commonJS({
|
|
|
148610
148610
|
hasAttachedDatabases() {
|
|
148611
148611
|
return !!Object.keys(this.attachedDatabases).length;
|
|
148612
148612
|
}
|
|
148613
|
-
getAttachedDatabaseHandleByRelativePath(
|
|
148614
|
-
return this.attachedDatabases?.[
|
|
148613
|
+
getAttachedDatabaseHandleByRelativePath(path15) {
|
|
148614
|
+
return this.attachedDatabases?.[path15]?.attachHandle;
|
|
148615
148615
|
}
|
|
148616
148616
|
getAttachedDatabasePathRelativeByHandle(handle) {
|
|
148617
148617
|
return Object.values(this.attachedDatabases).find(({ attachHandle }) => handle === attachHandle)?.attachFilepathRelative;
|
|
@@ -149619,8 +149619,8 @@ var require_ReactNativeDriver = __commonJS({
|
|
|
149619
149619
|
hasAttachedDatabases() {
|
|
149620
149620
|
return !!Object.keys(this.attachedDatabases).length;
|
|
149621
149621
|
}
|
|
149622
|
-
getAttachedDatabaseHandleByRelativePath(
|
|
149623
|
-
return this.attachedDatabases?.[
|
|
149622
|
+
getAttachedDatabaseHandleByRelativePath(path15) {
|
|
149623
|
+
return this.attachedDatabases?.[path15]?.attachHandle;
|
|
149624
149624
|
}
|
|
149625
149625
|
getAttachedDatabasePathRelativeByHandle(handle) {
|
|
149626
149626
|
return Object.values(this.attachedDatabases).find(({ attachHandle }) => handle === attachHandle)?.attachFilepathRelative;
|
|
@@ -150381,16 +150381,16 @@ var require_SqljsDriver = __commonJS({
|
|
|
150381
150381
|
if (!location && !this.options.location) {
|
|
150382
150382
|
throw new error_1.TypeORMError(`No location is set, specify a location parameter or add the location option to your configuration`);
|
|
150383
150383
|
}
|
|
150384
|
-
let
|
|
150384
|
+
let path15 = "";
|
|
150385
150385
|
if (location) {
|
|
150386
|
-
|
|
150386
|
+
path15 = location;
|
|
150387
150387
|
} else if (this.options.location) {
|
|
150388
|
-
|
|
150388
|
+
path15 = this.options.location;
|
|
150389
150389
|
}
|
|
150390
150390
|
if (PlatformTools_1.PlatformTools.type === "node") {
|
|
150391
150391
|
try {
|
|
150392
150392
|
const content = Buffer.from(this.databaseConnection.export());
|
|
150393
|
-
await PlatformTools_1.PlatformTools.writeFile(
|
|
150393
|
+
await PlatformTools_1.PlatformTools.writeFile(path15, content);
|
|
150394
150394
|
} catch (e) {
|
|
150395
150395
|
throw new error_1.TypeORMError(`Could not save database, error: ${e}`);
|
|
150396
150396
|
}
|
|
@@ -150399,12 +150399,12 @@ var require_SqljsDriver = __commonJS({
|
|
|
150399
150399
|
const databaseArray = [].slice.call(database);
|
|
150400
150400
|
if (this.options.useLocalForage) {
|
|
150401
150401
|
if (window.localforage) {
|
|
150402
|
-
await window.localforage.setItem(
|
|
150402
|
+
await window.localforage.setItem(path15, JSON.stringify(databaseArray));
|
|
150403
150403
|
} else {
|
|
150404
150404
|
throw new error_1.TypeORMError(`localforage is not defined - please import localforage.js into your site`);
|
|
150405
150405
|
}
|
|
150406
150406
|
} else {
|
|
150407
|
-
PlatformTools_1.PlatformTools.getGlobalVariable().localStorage.setItem(
|
|
150407
|
+
PlatformTools_1.PlatformTools.getGlobalVariable().localStorage.setItem(path15, JSON.stringify(databaseArray));
|
|
150408
150408
|
}
|
|
150409
150409
|
}
|
|
150410
150410
|
}
|
|
@@ -164250,11 +164250,11 @@ var require_commonjs = __commonJS({
|
|
|
164250
164250
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
164251
164251
|
};
|
|
164252
164252
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
164253
|
-
var
|
|
164253
|
+
var path15 = {
|
|
164254
164254
|
win32: { sep: "\\" },
|
|
164255
164255
|
posix: { sep: "/" }
|
|
164256
164256
|
};
|
|
164257
|
-
exports2.sep = defaultPlatform === "win32" ?
|
|
164257
|
+
exports2.sep = defaultPlatform === "win32" ? path15.win32.sep : path15.posix.sep;
|
|
164258
164258
|
exports2.minimatch.sep = exports2.sep;
|
|
164259
164259
|
exports2.GLOBSTAR = Symbol("globstar **");
|
|
164260
164260
|
exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
|
|
@@ -167576,12 +167576,12 @@ var require_commonjs4 = __commonJS({
|
|
|
167576
167576
|
/**
|
|
167577
167577
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
167578
167578
|
*/
|
|
167579
|
-
resolve(
|
|
167580
|
-
if (!
|
|
167579
|
+
resolve(path15) {
|
|
167580
|
+
if (!path15) {
|
|
167581
167581
|
return this;
|
|
167582
167582
|
}
|
|
167583
|
-
const rootPath = this.getRootString(
|
|
167584
|
-
const dir =
|
|
167583
|
+
const rootPath = this.getRootString(path15);
|
|
167584
|
+
const dir = path15.substring(rootPath.length);
|
|
167585
167585
|
const dirParts = dir.split(this.splitSep);
|
|
167586
167586
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
167587
167587
|
return result;
|
|
@@ -168334,8 +168334,8 @@ var require_commonjs4 = __commonJS({
|
|
|
168334
168334
|
/**
|
|
168335
168335
|
* @internal
|
|
168336
168336
|
*/
|
|
168337
|
-
getRootString(
|
|
168338
|
-
return node_path_1.win32.parse(
|
|
168337
|
+
getRootString(path15) {
|
|
168338
|
+
return node_path_1.win32.parse(path15).root;
|
|
168339
168339
|
}
|
|
168340
168340
|
/**
|
|
168341
168341
|
* @internal
|
|
@@ -168382,8 +168382,8 @@ var require_commonjs4 = __commonJS({
|
|
|
168382
168382
|
/**
|
|
168383
168383
|
* @internal
|
|
168384
168384
|
*/
|
|
168385
|
-
getRootString(
|
|
168386
|
-
return
|
|
168385
|
+
getRootString(path15) {
|
|
168386
|
+
return path15.startsWith("/") ? "/" : "";
|
|
168387
168387
|
}
|
|
168388
168388
|
/**
|
|
168389
168389
|
* @internal
|
|
@@ -168473,11 +168473,11 @@ var require_commonjs4 = __commonJS({
|
|
|
168473
168473
|
/**
|
|
168474
168474
|
* Get the depth of a provided path, string, or the cwd
|
|
168475
168475
|
*/
|
|
168476
|
-
depth(
|
|
168477
|
-
if (typeof
|
|
168478
|
-
|
|
168476
|
+
depth(path15 = this.cwd) {
|
|
168477
|
+
if (typeof path15 === "string") {
|
|
168478
|
+
path15 = this.cwd.resolve(path15);
|
|
168479
168479
|
}
|
|
168480
|
-
return
|
|
168480
|
+
return path15.depth();
|
|
168481
168481
|
}
|
|
168482
168482
|
/**
|
|
168483
168483
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -168964,9 +168964,9 @@ var require_commonjs4 = __commonJS({
|
|
|
168964
168964
|
process2();
|
|
168965
168965
|
return results;
|
|
168966
168966
|
}
|
|
168967
|
-
chdir(
|
|
168967
|
+
chdir(path15 = this.cwd) {
|
|
168968
168968
|
const oldCwd = this.cwd;
|
|
168969
|
-
this.cwd = typeof
|
|
168969
|
+
this.cwd = typeof path15 === "string" ? this.cwd.resolve(path15) : path15;
|
|
168970
168970
|
this.cwd[setAsCwd](oldCwd);
|
|
168971
168971
|
}
|
|
168972
168972
|
};
|
|
@@ -169354,8 +169354,8 @@ var require_processor = __commonJS({
|
|
|
169354
169354
|
}
|
|
169355
169355
|
// match, absolute, ifdir
|
|
169356
169356
|
entries() {
|
|
169357
|
-
return [...this.store.entries()].map(([
|
|
169358
|
-
|
|
169357
|
+
return [...this.store.entries()].map(([path15, n]) => [
|
|
169358
|
+
path15,
|
|
169359
169359
|
!!(n & 2),
|
|
169360
169360
|
!!(n & 1)
|
|
169361
169361
|
]);
|
|
@@ -169573,9 +169573,9 @@ var require_walker = __commonJS({
|
|
|
169573
169573
|
signal;
|
|
169574
169574
|
maxDepth;
|
|
169575
169575
|
includeChildMatches;
|
|
169576
|
-
constructor(patterns,
|
|
169576
|
+
constructor(patterns, path15, opts) {
|
|
169577
169577
|
this.patterns = patterns;
|
|
169578
|
-
this.path =
|
|
169578
|
+
this.path = path15;
|
|
169579
169579
|
this.opts = opts;
|
|
169580
169580
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
169581
169581
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -169594,11 +169594,11 @@ var require_walker = __commonJS({
|
|
|
169594
169594
|
});
|
|
169595
169595
|
}
|
|
169596
169596
|
}
|
|
169597
|
-
#ignored(
|
|
169598
|
-
return this.seen.has(
|
|
169597
|
+
#ignored(path15) {
|
|
169598
|
+
return this.seen.has(path15) || !!this.#ignore?.ignored?.(path15);
|
|
169599
169599
|
}
|
|
169600
|
-
#childrenIgnored(
|
|
169601
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
169600
|
+
#childrenIgnored(path15) {
|
|
169601
|
+
return !!this.#ignore?.childrenIgnored?.(path15);
|
|
169602
169602
|
}
|
|
169603
169603
|
// backpressure mechanism
|
|
169604
169604
|
pause() {
|
|
@@ -169814,8 +169814,8 @@ var require_walker = __commonJS({
|
|
|
169814
169814
|
exports2.GlobUtil = GlobUtil;
|
|
169815
169815
|
var GlobWalker = class extends GlobUtil {
|
|
169816
169816
|
matches = /* @__PURE__ */ new Set();
|
|
169817
|
-
constructor(patterns,
|
|
169818
|
-
super(patterns,
|
|
169817
|
+
constructor(patterns, path15, opts) {
|
|
169818
|
+
super(patterns, path15, opts);
|
|
169819
169819
|
}
|
|
169820
169820
|
matchEmit(e) {
|
|
169821
169821
|
this.matches.add(e);
|
|
@@ -169853,8 +169853,8 @@ var require_walker = __commonJS({
|
|
|
169853
169853
|
exports2.GlobWalker = GlobWalker;
|
|
169854
169854
|
var GlobStream = class extends GlobUtil {
|
|
169855
169855
|
results;
|
|
169856
|
-
constructor(patterns,
|
|
169857
|
-
super(patterns,
|
|
169856
|
+
constructor(patterns, path15, opts) {
|
|
169857
|
+
super(patterns, path15, opts);
|
|
169858
169858
|
this.results = new minipass_1.Minipass({
|
|
169859
169859
|
signal: this.signal,
|
|
169860
169860
|
objectMode: true
|
|
@@ -170681,22 +170681,22 @@ var require_ColumnMetadata = __commonJS({
|
|
|
170681
170681
|
return this;
|
|
170682
170682
|
}
|
|
170683
170683
|
buildPropertyPath() {
|
|
170684
|
-
let
|
|
170684
|
+
let path15 = "";
|
|
170685
170685
|
if (this.embeddedMetadata && this.embeddedMetadata.parentPropertyNames.length)
|
|
170686
|
-
|
|
170687
|
-
|
|
170686
|
+
path15 = this.embeddedMetadata.parentPropertyNames.join(".") + ".";
|
|
170687
|
+
path15 += this.propertyName;
|
|
170688
170688
|
if (!this.entityMetadata.isJunction && this.isVirtual && this.referencedColumn && this.referencedColumn.propertyName !== this.propertyName)
|
|
170689
|
-
|
|
170690
|
-
return
|
|
170689
|
+
path15 += "." + this.referencedColumn.propertyName;
|
|
170690
|
+
return path15;
|
|
170691
170691
|
}
|
|
170692
170692
|
buildDatabasePath() {
|
|
170693
|
-
let
|
|
170693
|
+
let path15 = "";
|
|
170694
170694
|
if (this.embeddedMetadata && this.embeddedMetadata.parentPropertyNames.length)
|
|
170695
|
-
|
|
170696
|
-
|
|
170695
|
+
path15 = this.embeddedMetadata.parentPropertyNames.join(".") + ".";
|
|
170696
|
+
path15 += this.databaseName;
|
|
170697
170697
|
if (!this.entityMetadata.isJunction && this.isVirtual && this.referencedColumn && this.referencedColumn.databaseName !== this.databaseName)
|
|
170698
|
-
|
|
170699
|
-
return
|
|
170698
|
+
path15 += "." + this.referencedColumn.databaseName;
|
|
170699
|
+
return path15;
|
|
170700
170700
|
}
|
|
170701
170701
|
buildDatabaseName(connection) {
|
|
170702
170702
|
let propertyNames = this.embeddedMetadata ? this.embeddedMetadata.parentPrefixes : [];
|
|
@@ -178878,7 +178878,7 @@ var require_form_data = __commonJS({
|
|
|
178878
178878
|
"use strict";
|
|
178879
178879
|
var CombinedStream = require_combined_stream();
|
|
178880
178880
|
var util6 = __require("util");
|
|
178881
|
-
var
|
|
178881
|
+
var path15 = __require("path");
|
|
178882
178882
|
var http7 = __require("http");
|
|
178883
178883
|
var https3 = __require("https");
|
|
178884
178884
|
var parseUrl3 = __require("url").parse;
|
|
@@ -179009,11 +179009,11 @@ var require_form_data = __commonJS({
|
|
|
179009
179009
|
FormData3.prototype._getContentDisposition = function(value, options) {
|
|
179010
179010
|
var filename;
|
|
179011
179011
|
if (typeof options.filepath === "string") {
|
|
179012
|
-
filename =
|
|
179012
|
+
filename = path15.normalize(options.filepath).replace(/\\/g, "/");
|
|
179013
179013
|
} else if (options.filename || value && (value.name || value.path)) {
|
|
179014
|
-
filename =
|
|
179014
|
+
filename = path15.basename(options.filename || value && (value.name || value.path));
|
|
179015
179015
|
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
179016
|
-
filename =
|
|
179016
|
+
filename = path15.basename(value.client._httpMessage.path || "");
|
|
179017
179017
|
}
|
|
179018
179018
|
if (filename) {
|
|
179019
179019
|
return 'filename="' + escapeHeaderParam(filename) + '"';
|
|
@@ -180187,7 +180187,7 @@ var require_axios = __commonJS({
|
|
|
180187
180187
|
var https3 = __require("https");
|
|
180188
180188
|
var http24 = __require("http2");
|
|
180189
180189
|
var util6 = __require("util");
|
|
180190
|
-
var
|
|
180190
|
+
var path15 = __require("path");
|
|
180191
180191
|
var followRedirects2 = require_follow_redirects();
|
|
180192
180192
|
var zlib2 = __require("zlib");
|
|
180193
180193
|
var stream4 = __require("stream");
|
|
@@ -181255,9 +181255,9 @@ var require_axios = __commonJS({
|
|
|
181255
181255
|
function removeBrackets2(key) {
|
|
181256
181256
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
181257
181257
|
}
|
|
181258
|
-
function renderKey2(
|
|
181259
|
-
if (!
|
|
181260
|
-
return
|
|
181258
|
+
function renderKey2(path16, key, dots) {
|
|
181259
|
+
if (!path16) return key;
|
|
181260
|
+
return path16.concat(key).map(function each(token, i) {
|
|
181261
181261
|
token = removeBrackets2(token);
|
|
181262
181262
|
return !dots && i ? "[" + token + "]" : token;
|
|
181263
181263
|
}).join(dots ? "." : "");
|
|
@@ -181335,13 +181335,13 @@ var require_axios = __commonJS({
|
|
|
181335
181335
|
return currentValue;
|
|
181336
181336
|
});
|
|
181337
181337
|
}
|
|
181338
|
-
function defaultVisitor(value, key,
|
|
181338
|
+
function defaultVisitor(value, key, path16) {
|
|
181339
181339
|
let arr = value;
|
|
181340
181340
|
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
181341
|
-
formData.append(renderKey2(
|
|
181341
|
+
formData.append(renderKey2(path16, key, dots), convertValue(value));
|
|
181342
181342
|
return false;
|
|
181343
181343
|
}
|
|
181344
|
-
if (value && !
|
|
181344
|
+
if (value && !path16 && typeof value === "object") {
|
|
181345
181345
|
if (utils$1.endsWith(key, "{}")) {
|
|
181346
181346
|
key = metaTokens ? key : key.slice(0, -2);
|
|
181347
181347
|
value = stringifyWithDepthLimit(value, 1);
|
|
@@ -181360,7 +181360,7 @@ var require_axios = __commonJS({
|
|
|
181360
181360
|
if (isVisitable2(value)) {
|
|
181361
181361
|
return true;
|
|
181362
181362
|
}
|
|
181363
|
-
formData.append(renderKey2(
|
|
181363
|
+
formData.append(renderKey2(path16, key, dots), convertValue(value));
|
|
181364
181364
|
return false;
|
|
181365
181365
|
}
|
|
181366
181366
|
const exposedHelpers = Object.assign(predicates2, {
|
|
@@ -181368,17 +181368,17 @@ var require_axios = __commonJS({
|
|
|
181368
181368
|
convertValue,
|
|
181369
181369
|
isVisitable: isVisitable2
|
|
181370
181370
|
});
|
|
181371
|
-
function build(value,
|
|
181371
|
+
function build(value, path16, depth = 0) {
|
|
181372
181372
|
if (utils$1.isUndefined(value)) return;
|
|
181373
181373
|
throwIfMaxDepthExceeded(depth);
|
|
181374
181374
|
if (stack.indexOf(value) !== -1) {
|
|
181375
|
-
throw new Error("Circular reference detected in " +
|
|
181375
|
+
throw new Error("Circular reference detected in " + path16.join("."));
|
|
181376
181376
|
}
|
|
181377
181377
|
stack.push(value);
|
|
181378
181378
|
utils$1.forEach(value, function each(el, key) {
|
|
181379
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key,
|
|
181379
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path16, exposedHelpers);
|
|
181380
181380
|
if (result === true) {
|
|
181381
|
-
build(el,
|
|
181381
|
+
build(el, path16 ? path16.concat(key) : [key], depth + 1);
|
|
181382
181382
|
}
|
|
181383
181383
|
});
|
|
181384
181384
|
stack.pop();
|
|
@@ -181567,7 +181567,7 @@ var require_axios = __commonJS({
|
|
|
181567
181567
|
};
|
|
181568
181568
|
function toURLEncodedForm2(data, options) {
|
|
181569
181569
|
return toFormData3(data, new platform3.classes.URLSearchParams(), {
|
|
181570
|
-
visitor: function(value, key,
|
|
181570
|
+
visitor: function(value, key, path16, helpers) {
|
|
181571
181571
|
if (platform3.isNode && utils$1.isBuffer(value)) {
|
|
181572
181572
|
this.append(key, value.toString("base64"));
|
|
181573
181573
|
return false;
|
|
@@ -181584,14 +181584,14 @@ var require_axios = __commonJS({
|
|
|
181584
181584
|
}
|
|
181585
181585
|
}
|
|
181586
181586
|
function parsePropPath2(name) {
|
|
181587
|
-
const
|
|
181587
|
+
const path16 = [];
|
|
181588
181588
|
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
181589
181589
|
let match;
|
|
181590
181590
|
while ((match = pattern.exec(name)) !== null) {
|
|
181591
|
-
throwIfDepthExceeded2(
|
|
181592
|
-
|
|
181591
|
+
throwIfDepthExceeded2(path16.length);
|
|
181592
|
+
path16.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
181593
181593
|
}
|
|
181594
|
-
return
|
|
181594
|
+
return path16;
|
|
181595
181595
|
}
|
|
181596
181596
|
function arrayToObject2(arr) {
|
|
181597
181597
|
const obj = {};
|
|
@@ -181606,12 +181606,12 @@ var require_axios = __commonJS({
|
|
|
181606
181606
|
return obj;
|
|
181607
181607
|
}
|
|
181608
181608
|
function formDataToJSON2(formData) {
|
|
181609
|
-
function buildPath(
|
|
181609
|
+
function buildPath(path16, value, target, index) {
|
|
181610
181610
|
throwIfDepthExceeded2(index);
|
|
181611
|
-
let name =
|
|
181611
|
+
let name = path16[index++];
|
|
181612
181612
|
if (name === "__proto__") return true;
|
|
181613
181613
|
const isNumericKey = Number.isFinite(+name);
|
|
181614
|
-
const isLast = index >=
|
|
181614
|
+
const isLast = index >= path16.length;
|
|
181615
181615
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
181616
181616
|
if (isLast) {
|
|
181617
181617
|
if (utils$1.hasOwnProp(target, name)) {
|
|
@@ -181624,7 +181624,7 @@ var require_axios = __commonJS({
|
|
|
181624
181624
|
if (!utils$1.hasOwnProp(target, name) || !utils$1.isObject(target[name])) {
|
|
181625
181625
|
target[name] = [];
|
|
181626
181626
|
}
|
|
181627
|
-
const result = buildPath(
|
|
181627
|
+
const result = buildPath(path16, value, target[name], index);
|
|
181628
181628
|
if (result && utils$1.isArray(target[name])) {
|
|
181629
181629
|
target[name] = arrayToObject2(target[name]);
|
|
181630
181630
|
}
|
|
@@ -183235,8 +183235,8 @@ var require_axios = __commonJS({
|
|
|
183235
183235
|
const allowedSocketPaths = own3("allowedSocketPaths");
|
|
183236
183236
|
if (allowedSocketPaths != null) {
|
|
183237
183237
|
const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
|
|
183238
|
-
const resolvedSocket =
|
|
183239
|
-
const isAllowed = allowed.some((entry) => typeof entry === "string" &&
|
|
183238
|
+
const resolvedSocket = path15.resolve(socketPath);
|
|
183239
|
+
const isAllowed = allowed.some((entry) => typeof entry === "string" && path15.resolve(entry) === resolvedSocket);
|
|
183240
183240
|
if (!isAllowed) {
|
|
183241
183241
|
return reject(new AxiosError3(`socketPath "${socketPath}" is not permitted by allowedSocketPaths`, AxiosError3.ERR_BAD_OPTION_VALUE, config));
|
|
183242
183242
|
}
|
|
@@ -183535,14 +183535,14 @@ var require_axios = __commonJS({
|
|
|
183535
183535
|
var cookies = platform3.hasStandardBrowserEnv ? (
|
|
183536
183536
|
// Standard browser envs support document.cookie
|
|
183537
183537
|
{
|
|
183538
|
-
write(name, value, expires,
|
|
183538
|
+
write(name, value, expires, path16, domain, secure, sameSite) {
|
|
183539
183539
|
if (typeof document === "undefined") return;
|
|
183540
183540
|
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
183541
183541
|
if (utils$1.isNumber(expires)) {
|
|
183542
183542
|
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
183543
183543
|
}
|
|
183544
|
-
if (utils$1.isString(
|
|
183545
|
-
cookie.push(`path=${
|
|
183544
|
+
if (utils$1.isString(path16)) {
|
|
183545
|
+
cookie.push(`path=${path16}`);
|
|
183546
183546
|
}
|
|
183547
183547
|
if (utils$1.isString(domain)) {
|
|
183548
183548
|
cookie.push(`domain=${domain}`);
|
|
@@ -189782,19 +189782,19 @@ var require_pick = __commonJS({
|
|
|
189782
189782
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
189783
189783
|
exports2.pickDisplay = pickDisplay;
|
|
189784
189784
|
exports2.pickTitle = pickTitle;
|
|
189785
|
-
function pickDisplay(payload,
|
|
189786
|
-
if (!payload || !
|
|
189785
|
+
function pickDisplay(payload, path15) {
|
|
189786
|
+
if (!payload || !path15)
|
|
189787
189787
|
return void 0;
|
|
189788
189788
|
let cur = payload;
|
|
189789
|
-
for (const seg of
|
|
189789
|
+
for (const seg of path15.split(".")) {
|
|
189790
189790
|
if (cur == null || typeof cur !== "object")
|
|
189791
189791
|
return void 0;
|
|
189792
189792
|
cur = cur[seg];
|
|
189793
189793
|
}
|
|
189794
189794
|
return cur;
|
|
189795
189795
|
}
|
|
189796
|
-
function pickTitle(payload,
|
|
189797
|
-
const v = pickDisplay(payload,
|
|
189796
|
+
function pickTitle(payload, path15) {
|
|
189797
|
+
const v = pickDisplay(payload, path15);
|
|
189798
189798
|
if (v == null)
|
|
189799
189799
|
return void 0;
|
|
189800
189800
|
if (typeof v === "string")
|
|
@@ -194633,19 +194633,19 @@ var require_module_details_from_path = __commonJS({
|
|
|
194633
194633
|
basedir += segments[i] + sep3;
|
|
194634
194634
|
}
|
|
194635
194635
|
}
|
|
194636
|
-
var
|
|
194636
|
+
var path15 = "";
|
|
194637
194637
|
var lastSegmentIndex = segments.length - 1;
|
|
194638
194638
|
for (var i2 = index + offset; i2 <= lastSegmentIndex; i2++) {
|
|
194639
194639
|
if (i2 === lastSegmentIndex) {
|
|
194640
|
-
|
|
194640
|
+
path15 += segments[i2];
|
|
194641
194641
|
} else {
|
|
194642
|
-
|
|
194642
|
+
path15 += segments[i2] + sep3;
|
|
194643
194643
|
}
|
|
194644
194644
|
}
|
|
194645
194645
|
return {
|
|
194646
194646
|
name,
|
|
194647
194647
|
basedir,
|
|
194648
|
-
path:
|
|
194648
|
+
path: path15
|
|
194649
194649
|
};
|
|
194650
194650
|
};
|
|
194651
194651
|
}
|
|
@@ -194655,7 +194655,7 @@ var require_module_details_from_path = __commonJS({
|
|
|
194655
194655
|
var require_require_in_the_middle = __commonJS({
|
|
194656
194656
|
"../../node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js"(exports2, module2) {
|
|
194657
194657
|
"use strict";
|
|
194658
|
-
var
|
|
194658
|
+
var path15 = __require("path");
|
|
194659
194659
|
var Module46 = __require("module");
|
|
194660
194660
|
var debug3 = require_src()("require-in-the-middle");
|
|
194661
194661
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
@@ -194800,7 +194800,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194800
194800
|
}
|
|
194801
194801
|
moduleName = filename;
|
|
194802
194802
|
} else if (hasWhitelist === true && modules.includes(filename)) {
|
|
194803
|
-
const parsedPath =
|
|
194803
|
+
const parsedPath = path15.parse(filename);
|
|
194804
194804
|
moduleName = parsedPath.name;
|
|
194805
194805
|
basedir = parsedPath.dir;
|
|
194806
194806
|
} else {
|
|
@@ -194838,7 +194838,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194838
194838
|
}
|
|
194839
194839
|
if (res !== filename) {
|
|
194840
194840
|
if (internals === true) {
|
|
194841
|
-
moduleName = moduleName +
|
|
194841
|
+
moduleName = moduleName + path15.sep + path15.relative(basedir, filename);
|
|
194842
194842
|
debug3("preparing to process require of internal file: %s", moduleName);
|
|
194843
194843
|
} else {
|
|
194844
194844
|
debug3("ignoring require of non-main module file: %s", res);
|
|
@@ -194874,8 +194874,8 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194874
194874
|
}
|
|
194875
194875
|
};
|
|
194876
194876
|
function resolveModuleName(stat) {
|
|
194877
|
-
const normalizedPath =
|
|
194878
|
-
return
|
|
194877
|
+
const normalizedPath = path15.sep !== "/" ? stat.path.split(path15.sep).join("/") : stat.path;
|
|
194878
|
+
return path15.posix.join(stat.name, normalizedPath).replace(normalize3, "");
|
|
194879
194879
|
}
|
|
194880
194880
|
}
|
|
194881
194881
|
});
|
|
@@ -194960,7 +194960,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
|
|
|
194960
194960
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
194961
194961
|
exports2.RequireInTheMiddleSingleton = void 0;
|
|
194962
194962
|
var require_in_the_middle_1 = require_require_in_the_middle();
|
|
194963
|
-
var
|
|
194963
|
+
var path15 = __require("path");
|
|
194964
194964
|
var ModuleNameTrie_1 = require_ModuleNameTrie();
|
|
194965
194965
|
var isMocha = [
|
|
194966
194966
|
"afterEach",
|
|
@@ -195024,7 +195024,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
|
|
|
195024
195024
|
};
|
|
195025
195025
|
exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
|
|
195026
195026
|
function normalizePathSeparators(moduleNameOrPath) {
|
|
195027
|
-
return
|
|
195027
|
+
return path15.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path15.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
|
|
195028
195028
|
}
|
|
195029
195029
|
}
|
|
195030
195030
|
});
|
|
@@ -195190,7 +195190,7 @@ var require_register = __commonJS({
|
|
|
195190
195190
|
// ../../node_modules/.pnpm/import-in-the-middle@3.3.3/node_modules/import-in-the-middle/index.js
|
|
195191
195191
|
var require_import_in_the_middle = __commonJS({
|
|
195192
195192
|
"../../node_modules/.pnpm/import-in-the-middle@3.3.3/node_modules/import-in-the-middle/index.js"(exports2, module2) {
|
|
195193
|
-
var
|
|
195193
|
+
var path15 = __require("path");
|
|
195194
195194
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
195195
195195
|
var { fileURLToPath } = __require("url");
|
|
195196
195196
|
var { MessageChannel: MessageChannel2 } = __require("worker_threads");
|
|
@@ -195309,7 +195309,7 @@ var require_import_in_the_middle = __commonJS({
|
|
|
195309
195309
|
} else if (baseDir.endsWith(specifiers.get(loadUrl)) || isTurbopackSpecifier(specifiers.get(loadUrl), baseDir)) {
|
|
195310
195310
|
callHookFn(hookFn, namespace, name, baseDir);
|
|
195311
195311
|
} else if (internals) {
|
|
195312
|
-
const internalPath = name +
|
|
195312
|
+
const internalPath = name + path15.sep + path15.relative(baseDir, filePath);
|
|
195313
195313
|
callHookFn(hookFn, namespace, internalPath, baseDir);
|
|
195314
195314
|
}
|
|
195315
195315
|
} else if (matchArg === specifier) {
|
|
@@ -195384,7 +195384,7 @@ var require_instrumentation2 = __commonJS({
|
|
|
195384
195384
|
"use strict";
|
|
195385
195385
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
195386
195386
|
exports2.InstrumentationBase = void 0;
|
|
195387
|
-
var
|
|
195387
|
+
var path15 = __require("path");
|
|
195388
195388
|
var util_1 = __require("util");
|
|
195389
195389
|
var semver_1 = require_semver3();
|
|
195390
195390
|
var shimmer_1 = require_shimmer();
|
|
@@ -195485,7 +195485,7 @@ var require_instrumentation2 = __commonJS({
|
|
|
195485
195485
|
}
|
|
195486
195486
|
_extractPackageVersion(baseDir) {
|
|
195487
195487
|
try {
|
|
195488
|
-
const json = (0, fs_1.readFileSync)(
|
|
195488
|
+
const json = (0, fs_1.readFileSync)(path15.join(baseDir, "package.json"), {
|
|
195489
195489
|
encoding: "utf8"
|
|
195490
195490
|
});
|
|
195491
195491
|
const version2 = JSON.parse(json).version;
|
|
@@ -195527,7 +195527,7 @@ var require_instrumentation2 = __commonJS({
|
|
|
195527
195527
|
return exports3;
|
|
195528
195528
|
}
|
|
195529
195529
|
const files = module3.files ?? [];
|
|
195530
|
-
const normalizedName =
|
|
195530
|
+
const normalizedName = path15.normalize(name);
|
|
195531
195531
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported(f.supportedVersions, version2, module3.includePrerelease));
|
|
195532
195532
|
return supportedFileInstrumentations.reduce((patchedExports, file2) => {
|
|
195533
195533
|
file2.moduleExports = patchedExports;
|
|
@@ -195573,8 +195573,8 @@ var require_instrumentation2 = __commonJS({
|
|
|
195573
195573
|
this._warnOnPreloadedModules();
|
|
195574
195574
|
for (const module3 of this._modules) {
|
|
195575
195575
|
const hookFn = (exports3, name, baseDir) => {
|
|
195576
|
-
if (!baseDir &&
|
|
195577
|
-
const parsedPath =
|
|
195576
|
+
if (!baseDir && path15.isAbsolute(name)) {
|
|
195577
|
+
const parsedPath = path15.parse(name);
|
|
195578
195578
|
name = parsedPath.name;
|
|
195579
195579
|
baseDir = parsedPath.dir;
|
|
195580
195580
|
}
|
|
@@ -195583,7 +195583,7 @@ var require_instrumentation2 = __commonJS({
|
|
|
195583
195583
|
const onRequire = (exports3, name, baseDir) => {
|
|
195584
195584
|
return this._onRequire(module3, exports3, name, baseDir);
|
|
195585
195585
|
};
|
|
195586
|
-
const hook =
|
|
195586
|
+
const hook = path15.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
|
|
195587
195587
|
this._hooks.push(hook);
|
|
195588
195588
|
const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: true }, hookFn);
|
|
195589
195589
|
this._hooks.push(esmHook);
|
|
@@ -198538,7 +198538,7 @@ var require_util2 = __commonJS({
|
|
|
198538
198538
|
"use strict";
|
|
198539
198539
|
var os7 = __require("os");
|
|
198540
198540
|
var fs14 = __require("fs");
|
|
198541
|
-
var
|
|
198541
|
+
var path15 = __require("path");
|
|
198542
198542
|
var spawn = __require("child_process").spawn;
|
|
198543
198543
|
var exec = __require("child_process").exec;
|
|
198544
198544
|
var execSync = __require("child_process").execSync;
|
|
@@ -199274,7 +199274,7 @@ var require_util2 = __commonJS({
|
|
|
199274
199274
|
function getFilesInPath(source) {
|
|
199275
199275
|
const lstatSync2 = fs14.lstatSync;
|
|
199276
199276
|
const readdirSync4 = fs14.readdirSync;
|
|
199277
|
-
const
|
|
199277
|
+
const join18 = path15.join;
|
|
199278
199278
|
function isDirectory(source2) {
|
|
199279
199279
|
return lstatSync2(source2).isDirectory();
|
|
199280
199280
|
}
|
|
@@ -199283,12 +199283,12 @@ var require_util2 = __commonJS({
|
|
|
199283
199283
|
}
|
|
199284
199284
|
function getDirectories(source2) {
|
|
199285
199285
|
return readdirSync4(source2).map((name) => {
|
|
199286
|
-
return
|
|
199286
|
+
return join18(source2, name);
|
|
199287
199287
|
}).filter(isDirectory);
|
|
199288
199288
|
}
|
|
199289
199289
|
function getFiles(source2) {
|
|
199290
199290
|
return readdirSync4(source2).map((name) => {
|
|
199291
|
-
return
|
|
199291
|
+
return join18(source2, name);
|
|
199292
199292
|
}).filter(isFile2);
|
|
199293
199293
|
}
|
|
199294
199294
|
function getFilesRecursively(source2) {
|
|
@@ -201963,7 +201963,7 @@ var require_network = __commonJS({
|
|
|
201963
201963
|
var exec = __require("child_process").exec;
|
|
201964
201964
|
var execSync = __require("child_process").execSync;
|
|
201965
201965
|
var execFileSync = __require("child_process").execFileSync;
|
|
201966
|
-
var
|
|
201966
|
+
var readFileSync10 = __require("fs").readFileSync;
|
|
201967
201967
|
var fs14 = __require("fs");
|
|
201968
201968
|
var util6 = require_util2();
|
|
201969
201969
|
var _platform = process.platform;
|
|
@@ -202452,7 +202452,7 @@ var require_network = __commonJS({
|
|
|
202452
202452
|
return result;
|
|
202453
202453
|
}
|
|
202454
202454
|
try {
|
|
202455
|
-
const content =
|
|
202455
|
+
const content = readFileSync10(file2, { encoding: "utf8" });
|
|
202456
202456
|
const lines = content.split("\n").filter((l) => /iface|source/.test(l));
|
|
202457
202457
|
lines.forEach((line) => {
|
|
202458
202458
|
const parts = line.replace(/\s+/g, " ").trim().split(" ");
|
|
@@ -207908,7 +207908,7 @@ var require_graphics = __commonJS({
|
|
|
207908
207908
|
"../../node_modules/.pnpm/systeminformation@5.33.13/node_modules/systeminformation/lib/graphics.js"(exports2) {
|
|
207909
207909
|
"use strict";
|
|
207910
207910
|
var fs14 = __require("fs");
|
|
207911
|
-
var
|
|
207911
|
+
var path15 = __require("path");
|
|
207912
207912
|
var exec = __require("child_process").exec;
|
|
207913
207913
|
var execSync = __require("child_process").execSync;
|
|
207914
207914
|
var execFileSync = __require("child_process").execFileSync;
|
|
@@ -208287,13 +208287,13 @@ var require_graphics = __commonJS({
|
|
|
208287
208287
|
}
|
|
208288
208288
|
if (_windows) {
|
|
208289
208289
|
try {
|
|
208290
|
-
const systemSmiPath =
|
|
208290
|
+
const systemSmiPath = path15.join(util6.WINDIR, "System32", "nvidia-smi.exe");
|
|
208291
208291
|
if (fs14.existsSync(systemSmiPath)) {
|
|
208292
208292
|
_nvidiaSmiPath = systemSmiPath;
|
|
208293
208293
|
} else {
|
|
208294
|
-
const basePath =
|
|
208294
|
+
const basePath = path15.join(util6.WINDIR, "System32", "DriverStore", "FileRepository");
|
|
208295
208295
|
const candidates = fs14.readdirSync(basePath, { withFileTypes: true }).filter((dir) => dir.isDirectory()).map((dir) => {
|
|
208296
|
-
const nvidiaSmiPath =
|
|
208296
|
+
const nvidiaSmiPath = path15.join(basePath, dir.name, "nvidia-smi.exe");
|
|
208297
208297
|
try {
|
|
208298
208298
|
const stats = fs14.statSync(nvidiaSmiPath);
|
|
208299
208299
|
return { path: nvidiaSmiPath, ctime: stats.ctimeMs };
|
|
@@ -211557,7 +211557,7 @@ var require_processes = __commonJS({
|
|
|
211557
211557
|
"use strict";
|
|
211558
211558
|
var os7 = __require("os");
|
|
211559
211559
|
var fs14 = __require("fs");
|
|
211560
|
-
var
|
|
211560
|
+
var path15 = __require("path");
|
|
211561
211561
|
var exec = __require("child_process").exec;
|
|
211562
211562
|
var execSync = __require("child_process").execSync;
|
|
211563
211563
|
var util6 = require_util2();
|
|
@@ -212149,7 +212149,7 @@ var require_processes = __commonJS({
|
|
|
212149
212149
|
}
|
|
212150
212150
|
if (firstPos === 1e4 && tmpCommand.indexOf(" ") > -1) {
|
|
212151
212151
|
const parts = tmpCommand.split(" ");
|
|
212152
|
-
if (fs14.existsSync(
|
|
212152
|
+
if (fs14.existsSync(path15.join(cmdPath, parts[0]))) {
|
|
212153
212153
|
command = parts.shift();
|
|
212154
212154
|
params = (parts.join(" ") + " " + tmpParams).trim();
|
|
212155
212155
|
} else {
|
|
@@ -213421,7 +213421,7 @@ var require_dockerSocket = __commonJS({
|
|
|
213421
213421
|
var isWin = __require("os").type() === "Windows_NT";
|
|
213422
213422
|
var socketPath = process.env.DOCKER_SOCKET || (isWin ? "//./pipe/docker_engine" : "/var/run/docker.sock");
|
|
213423
213423
|
var socketTimeout = +process.env.DOCKER_SOCKET_TIMEOUT || 3e4;
|
|
213424
|
-
function fetchJson(
|
|
213424
|
+
function fetchJson(path15, callback) {
|
|
213425
213425
|
let done = false;
|
|
213426
213426
|
const finish = (result) => {
|
|
213427
213427
|
if (!done) {
|
|
@@ -213437,7 +213437,7 @@ var require_dockerSocket = __commonJS({
|
|
|
213437
213437
|
finish({});
|
|
213438
213438
|
});
|
|
213439
213439
|
socket.on("connect", () => {
|
|
213440
|
-
socket.write(`GET ${
|
|
213440
|
+
socket.write(`GET ${path15} HTTP/1.0\r
|
|
213441
213441
|
\r
|
|
213442
213442
|
`);
|
|
213443
213443
|
});
|
|
@@ -216189,7 +216189,7 @@ var require_bluetooth = __commonJS({
|
|
|
216189
216189
|
"use strict";
|
|
216190
216190
|
var exec = __require("child_process").exec;
|
|
216191
216191
|
var execSync = __require("child_process").execSync;
|
|
216192
|
-
var
|
|
216192
|
+
var path15 = __require("path");
|
|
216193
216193
|
var util6 = require_util2();
|
|
216194
216194
|
var bluetoothVendors = require_bluetoothVendors();
|
|
216195
216195
|
var fs14 = __require("fs");
|
|
@@ -216321,7 +216321,7 @@ var require_bluetooth = __commonJS({
|
|
|
216321
216321
|
if (_linux) {
|
|
216322
216322
|
const btFiles = util6.getFilesInPath("/var/lib/bluetooth/");
|
|
216323
216323
|
btFiles.forEach((element) => {
|
|
216324
|
-
const filename =
|
|
216324
|
+
const filename = path15.basename(element);
|
|
216325
216325
|
const pathParts = element.split("/");
|
|
216326
216326
|
const macAddr1 = pathParts.length >= 6 ? pathParts[pathParts.length - 2] : null;
|
|
216327
216327
|
const macAddr2 = pathParts.length >= 7 ? pathParts[pathParts.length - 3] : null;
|
|
@@ -217031,7 +217031,7 @@ import * as http6 from "http";
|
|
|
217031
217031
|
var import_common166 = __toESM(require_common(), 1);
|
|
217032
217032
|
var import_config11 = __toESM(require_config2(), 1);
|
|
217033
217033
|
var import_serve_static = __toESM(require_serve_static2(), 1);
|
|
217034
|
-
import { join as
|
|
217034
|
+
import { join as join17 } from "path";
|
|
217035
217035
|
|
|
217036
217036
|
// ../../node_modules/.pnpm/@chromepilot+logger-kit@0.1.4_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@_425ln5fjzgxj6ooyuhufi5wn3u/node_modules/@chromepilot/logger-kit/dist/nestjs/logger-kit.module.js
|
|
217037
217037
|
var import_common3 = __toESM(require_common(), 1);
|
|
@@ -221101,8 +221101,8 @@ var HcapiService = HcapiService_1 = class HcapiService2 {
|
|
|
221101
221101
|
get internalToken() {
|
|
221102
221102
|
return this.config.get("HCAPI_INTERNAL_TOKEN", "");
|
|
221103
221103
|
}
|
|
221104
|
-
async get(
|
|
221105
|
-
const url2 = `${this.baseUrl}${
|
|
221104
|
+
async get(path15, params) {
|
|
221105
|
+
const url2 = `${this.baseUrl}${path15}`;
|
|
221106
221106
|
try {
|
|
221107
221107
|
const res = await (0, import_rxjs.firstValueFrom)(this.http.get(url2, {
|
|
221108
221108
|
params,
|
|
@@ -221113,7 +221113,7 @@ var HcapiService = HcapiService_1 = class HcapiService2 {
|
|
|
221113
221113
|
return res.data;
|
|
221114
221114
|
} catch (err) {
|
|
221115
221115
|
const axiosErr = err;
|
|
221116
|
-
this.logger.error(`hcapi GET ${
|
|
221116
|
+
this.logger.error(`hcapi GET ${path15} failed: ${axiosErr.message}`);
|
|
221117
221117
|
throw err;
|
|
221118
221118
|
}
|
|
221119
221119
|
}
|
|
@@ -222101,6 +222101,8 @@ var import_config5 = __toESM(require_config2(), 1);
|
|
|
222101
222101
|
var import_typeorm64 = __toESM(require_typeorm2(), 1);
|
|
222102
222102
|
var jwt2 = __toESM(require_jsonwebtoken(), 1);
|
|
222103
222103
|
import { createHash as createHash3, randomUUID as randomUUID2 } from "crypto";
|
|
222104
|
+
import { readFileSync } from "fs";
|
|
222105
|
+
import * as path3 from "path";
|
|
222104
222106
|
import * as os from "os";
|
|
222105
222107
|
|
|
222106
222108
|
// dist/.server-tsc/datasync/registry.js
|
|
@@ -222534,13 +222536,13 @@ var OpLogService = class OpLogService2 {
|
|
|
222534
222536
|
this.logger.debug(`op_logs \u5199\u5165\u5931\u8D25(\u5FFD\u7565): ${err?.message ?? err}`);
|
|
222535
222537
|
});
|
|
222536
222538
|
}
|
|
222537
|
-
recordEvent(
|
|
222539
|
+
recordEvent(path15, detail, status = "ok", userId = null) {
|
|
222538
222540
|
const payload = JSON.stringify(detail).slice(0, 512);
|
|
222539
222541
|
this.record({
|
|
222540
222542
|
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
222541
222543
|
userId,
|
|
222542
222544
|
method: "EVENT",
|
|
222543
|
-
path:
|
|
222545
|
+
path: path15,
|
|
222544
222546
|
entity: null,
|
|
222545
222547
|
targetIds: payload,
|
|
222546
222548
|
status,
|
|
@@ -222689,11 +222691,11 @@ var ResumeChangeLogService = class ResumeChangeLogService2 {
|
|
|
222689
222691
|
["professional.availability", (r) => r?.professional?.availability],
|
|
222690
222692
|
["professional.desiredJob", (r) => r?.professional?.desiredJob]
|
|
222691
222693
|
];
|
|
222692
|
-
for (const [
|
|
222694
|
+
for (const [path15, pick] of scalars) {
|
|
222693
222695
|
const oldV = pick(before);
|
|
222694
222696
|
const newV = pick(after);
|
|
222695
222697
|
if (!ResumeChangeLogService_1.eq(oldV, newV)) {
|
|
222696
|
-
out.push({ fieldPath:
|
|
222698
|
+
out.push({ fieldPath: path15, oldValue: oldV, newValue: newV });
|
|
222697
222699
|
}
|
|
222698
222700
|
}
|
|
222699
222701
|
const lists = [
|
|
@@ -222748,7 +222750,7 @@ var ResumeChangeLogService = class ResumeChangeLogService2 {
|
|
|
222748
222750
|
key: (v) => String(v)
|
|
222749
222751
|
}
|
|
222750
222752
|
];
|
|
222751
|
-
for (const { path:
|
|
222753
|
+
for (const { path: path15, pick, key } of lists) {
|
|
222752
222754
|
const oldList = pick(before) ?? [];
|
|
222753
222755
|
const newList = pick(after) ?? [];
|
|
222754
222756
|
const oldKeys = new Set(oldList.map(key));
|
|
@@ -222757,7 +222759,7 @@ var ResumeChangeLogService = class ResumeChangeLogService2 {
|
|
|
222757
222759
|
const removed = oldList.filter((i) => !newKeys.has(key(i)));
|
|
222758
222760
|
if (added.length || removed.length) {
|
|
222759
222761
|
out.push({
|
|
222760
|
-
fieldPath:
|
|
222762
|
+
fieldPath: path15,
|
|
222761
222763
|
oldValue: removed.length ? { removed: removed.slice(0, 5), before: oldList.length } : { before: oldList.length },
|
|
222762
222764
|
newValue: added.length ? { added: added.slice(0, 5), after: newList.length } : { after: newList.length }
|
|
222763
222765
|
});
|
|
@@ -222864,6 +222866,7 @@ var DatasyncService = class DatasyncService2 {
|
|
|
222864
222866
|
pushing = false;
|
|
222865
222867
|
pulling = false;
|
|
222866
222868
|
migrateBypassPause = false;
|
|
222869
|
+
migrateRunning = false;
|
|
222867
222870
|
authFailed = false;
|
|
222868
222871
|
authFailedToken = null;
|
|
222869
222872
|
pullDebugLogged = /* @__PURE__ */ new Set();
|
|
@@ -222898,9 +222901,14 @@ var DatasyncService = class DatasyncService2 {
|
|
|
222898
222901
|
this.timer = setInterval(() => this.tick(), interval);
|
|
222899
222902
|
this.timer.unref?.();
|
|
222900
222903
|
this.logger.log(`\u6570\u636E\u540C\u6B65\u5DF2\u8C03\u5EA6:\u9996\u5EF6 ${first}ms,\u5468\u671F ${interval}ms`);
|
|
222904
|
+
setImmediate(() => {
|
|
222905
|
+
this.maybeAutoCloudMigrate("boot").catch(() => {
|
|
222906
|
+
});
|
|
222907
|
+
});
|
|
222901
222908
|
}
|
|
222902
222909
|
async tick() {
|
|
222903
|
-
|
|
222910
|
+
await this.maybeAutoCloudMigrate("tick");
|
|
222911
|
+
const push = this.migrateRunning ? { skipped: "migrating" } : await this.pushNow();
|
|
222904
222912
|
const pull = await this.pullNow();
|
|
222905
222913
|
const failed = Object.entries({ ...push, ...pull }).filter(([, v]) => String(v).startsWith("ERR"));
|
|
222906
222914
|
this.opLog.recordEvent("datasync:tick", { push: compactSummary(push), pull: compactSummary(pull) }, failed.length ? "error" : "ok");
|
|
@@ -223260,6 +223268,53 @@ var DatasyncService = class DatasyncService2 {
|
|
|
223260
223268
|
this.migrateBypassPause = false;
|
|
223261
223269
|
}
|
|
223262
223270
|
}
|
|
223271
|
+
static KV_CLOUD_MIGRATED_VERSION = "cloud_migrate_done_version";
|
|
223272
|
+
buildVersion() {
|
|
223273
|
+
const fromEnv = process.env.HM_RELEASE_VERSION;
|
|
223274
|
+
if (fromEnv)
|
|
223275
|
+
return fromEnv;
|
|
223276
|
+
for (const candidate of [
|
|
223277
|
+
path3.join(__dirname, "..", "build-info.json"),
|
|
223278
|
+
path3.join(__dirname, "..", "..", "build-info.json")
|
|
223279
|
+
]) {
|
|
223280
|
+
try {
|
|
223281
|
+
const info2 = JSON.parse(readFileSync(candidate, "utf8"));
|
|
223282
|
+
if (typeof info2?.version === "string" && info2.version)
|
|
223283
|
+
return info2.version;
|
|
223284
|
+
} catch {
|
|
223285
|
+
}
|
|
223286
|
+
}
|
|
223287
|
+
return "0.0.0";
|
|
223288
|
+
}
|
|
223289
|
+
async maybeAutoCloudMigrate(reason) {
|
|
223290
|
+
if (this.migrateRunning)
|
|
223291
|
+
return;
|
|
223292
|
+
const token = await this.authService.getStoredSaasToken();
|
|
223293
|
+
if (!token)
|
|
223294
|
+
return;
|
|
223295
|
+
const version2 = this.buildVersion();
|
|
223296
|
+
if (await this.kvGet(DatasyncService_1.KV_CLOUD_MIGRATED_VERSION) === version2)
|
|
223297
|
+
return;
|
|
223298
|
+
this.migrateRunning = true;
|
|
223299
|
+
try {
|
|
223300
|
+
const res = await this.migrateToCloud();
|
|
223301
|
+
const diff = res.entities.filter((e) => e.localRows !== e.pushResult);
|
|
223302
|
+
const ok = diff.length === 0 && res.spotCheck.ok;
|
|
223303
|
+
if (ok) {
|
|
223304
|
+
await this.kvSet(DatasyncService_1.KV_CLOUD_MIGRATED_VERSION, version2);
|
|
223305
|
+
}
|
|
223306
|
+
this.opLog.recordEvent("datasync:auto-cloud-migrate", { reason, version: version2, ok, diff: diff.map((e) => e.entity), spotCheck: res.spotCheck.detail }, ok ? "ok" : "warn");
|
|
223307
|
+
this.logger.log(`\u81EA\u52A8\u4E0A\u4E91\u8FC1\u79FB(${reason}) version=${version2}:${ok ? "\u5B8C\u6210,\u4E91\u7AEF\u4E0E\u672C\u5730\u4E00\u81F4" : `\u6709\u5DEE\u5F02(${diff.map((e) => e.entity).join(",") || res.spotCheck.detail}),\u4E0B\u8F6E\u91CD\u8BD5`}`);
|
|
223308
|
+
} catch (e) {
|
|
223309
|
+
this.opLog.recordEvent("datasync:auto-cloud-migrate-error", { reason, version: version2, message: e?.message ?? String(e) }, "error");
|
|
223310
|
+
this.logger.warn(`\u81EA\u52A8\u4E0A\u4E91\u8FC1\u79FB(${reason}) version=${version2} \u5931\u8D25,\u4E0B\u8F6E\u91CD\u8BD5: ${e?.message ?? e}`);
|
|
223311
|
+
} finally {
|
|
223312
|
+
this.migrateRunning = false;
|
|
223313
|
+
}
|
|
223314
|
+
}
|
|
223315
|
+
async markCloudMigrated() {
|
|
223316
|
+
await this.kvSet(DatasyncService_1.KV_CLOUD_MIGRATED_VERSION, this.buildVersion());
|
|
223317
|
+
}
|
|
223263
223318
|
tableOf(cfg) {
|
|
223264
223319
|
return this.dataSource.getMetadata(cfg.entity).tableName;
|
|
223265
223320
|
}
|
|
@@ -223841,16 +223896,16 @@ var CollabProxyService = CollabProxyService_1 = class CollabProxyService2 {
|
|
|
223841
223896
|
constructor(datasync) {
|
|
223842
223897
|
this.datasync = datasync;
|
|
223843
223898
|
}
|
|
223844
|
-
async get(
|
|
223845
|
-
return this.call("GET",
|
|
223899
|
+
async get(path15, activeTenantId) {
|
|
223900
|
+
return this.call("GET", path15, void 0, activeTenantId, 15e3);
|
|
223846
223901
|
}
|
|
223847
|
-
async write(method,
|
|
223848
|
-
return this.call(method,
|
|
223902
|
+
async write(method, path15, body, activeTenantId) {
|
|
223903
|
+
return this.call(method, path15, body, activeTenantId, COLLAB_WRITE_TIMEOUT_MS);
|
|
223849
223904
|
}
|
|
223850
|
-
async call(method,
|
|
223905
|
+
async call(method, path15, body, activeTenantId, timeoutMs) {
|
|
223851
223906
|
let res;
|
|
223852
223907
|
try {
|
|
223853
|
-
res = await this.datasync.proxyTenantApi(method,
|
|
223908
|
+
res = await this.datasync.proxyTenantApi(method, path15, body, "/hunter-mate/collab", {
|
|
223854
223909
|
timeoutMs,
|
|
223855
223910
|
headers: activeTenantId != null ? { "x-hm-active-tenant": String(activeTenantId) } : void 0
|
|
223856
223911
|
});
|
|
@@ -224596,8 +224651,13 @@ var DatasyncController = class DatasyncController2 {
|
|
|
224596
224651
|
pushNow() {
|
|
224597
224652
|
return this.datasync.pushNow();
|
|
224598
224653
|
}
|
|
224599
|
-
cloudMigrate() {
|
|
224600
|
-
|
|
224654
|
+
async cloudMigrate() {
|
|
224655
|
+
const res = await this.datasync.migrateToCloud();
|
|
224656
|
+
const diff = res.entities.filter((e) => e.localRows !== e.pushResult);
|
|
224657
|
+
if (diff.length === 0 && res.spotCheck.ok) {
|
|
224658
|
+
await this.datasync.markCloudMigrated();
|
|
224659
|
+
}
|
|
224660
|
+
return res;
|
|
224601
224661
|
}
|
|
224602
224662
|
pullNow() {
|
|
224603
224663
|
return this.datasync.pullNow();
|
|
@@ -224634,7 +224694,7 @@ __decorate72([
|
|
|
224634
224694
|
(0, import_common24.Post)("cloud-migrate"),
|
|
224635
224695
|
__metadata67("design:type", Function),
|
|
224636
224696
|
__metadata67("design:paramtypes", []),
|
|
224637
|
-
__metadata67("design:returntype",
|
|
224697
|
+
__metadata67("design:returntype", Promise)
|
|
224638
224698
|
], DatasyncController.prototype, "cloudMigrate", null);
|
|
224639
224699
|
__decorate72([
|
|
224640
224700
|
(0, import_common24.Post)("pull-now"),
|
|
@@ -225232,8 +225292,8 @@ var OpLogInterceptor = class OpLogInterceptor2 {
|
|
|
225232
225292
|
const method = req.method ?? "";
|
|
225233
225293
|
if (!["POST", "PUT", "PATCH", "DELETE"].includes(method))
|
|
225234
225294
|
return next.handle();
|
|
225235
|
-
const
|
|
225236
|
-
if (SKIP_PREFIXES.some((p) =>
|
|
225295
|
+
const path15 = req.path ?? req.url ?? "";
|
|
225296
|
+
if (SKIP_PREFIXES.some((p) => path15.startsWith(p)))
|
|
225237
225297
|
return next.handle();
|
|
225238
225298
|
const start = Date.now();
|
|
225239
225299
|
const write = (statusCode, error3) => {
|
|
@@ -225244,8 +225304,8 @@ var OpLogInterceptor = class OpLogInterceptor2 {
|
|
|
225244
225304
|
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
225245
225305
|
userId: req.user?.userId ?? null,
|
|
225246
225306
|
method,
|
|
225247
|
-
path:
|
|
225248
|
-
entity: inferEntity(
|
|
225307
|
+
path: path15.slice(0, 256),
|
|
225308
|
+
entity: inferEntity(path15),
|
|
225249
225309
|
targetIds: ids == null ? null : JSON.stringify(ids).slice(0, 512),
|
|
225250
225310
|
status: error3 ? "error" : statusCode >= 400 ? "error" : "ok",
|
|
225251
225311
|
statusCode,
|
|
@@ -225265,15 +225325,15 @@ OpLogInterceptor = __decorate78([
|
|
|
225265
225325
|
(0, import_common30.Injectable)(),
|
|
225266
225326
|
__metadata73("design:paramtypes", [OpLogService])
|
|
225267
225327
|
], OpLogInterceptor);
|
|
225268
|
-
function inferEntity(
|
|
225269
|
-
const m =
|
|
225328
|
+
function inferEntity(path15) {
|
|
225329
|
+
const m = path15.match(/^\/entities\/(\w+)/);
|
|
225270
225330
|
if (m)
|
|
225271
225331
|
return m[1];
|
|
225272
|
-
if (
|
|
225332
|
+
if (path15.startsWith("/customers"))
|
|
225273
225333
|
return "customer";
|
|
225274
|
-
if (
|
|
225334
|
+
if (path15.startsWith("/job-cases"))
|
|
225275
225335
|
return "jobcase";
|
|
225276
|
-
if (
|
|
225336
|
+
if (path15.startsWith("/auth/"))
|
|
225277
225337
|
return "auth";
|
|
225278
225338
|
return null;
|
|
225279
225339
|
}
|
|
@@ -225978,7 +226038,7 @@ import { randomUUID as randomUUID3 } from "crypto";
|
|
|
225978
226038
|
// dist/.server-tsc/system/system.service.js
|
|
225979
226039
|
var import_common45 = __toESM(require_common(), 1);
|
|
225980
226040
|
import * as fs3 from "fs";
|
|
225981
|
-
import * as
|
|
226041
|
+
import * as path4 from "path";
|
|
225982
226042
|
import { createHash as createHash4 } from "crypto";
|
|
225983
226043
|
import { createRequire } from "module";
|
|
225984
226044
|
var __decorate93 = function(decorators, target, key, desc) {
|
|
@@ -225992,12 +226052,12 @@ var __metadata80 = function(k2, v) {
|
|
|
225992
226052
|
};
|
|
225993
226053
|
var SystemService_1;
|
|
225994
226054
|
var HOME2 = () => process.env.HUNTER_MATE_HOME || process.env.HOME || process.env.USERPROFILE || ".";
|
|
225995
|
-
var ROOT = () => process.env.HM_DATA_DIR ||
|
|
226055
|
+
var ROOT = () => process.env.HM_DATA_DIR || path4.join(HOME2(), ".hunter-mate");
|
|
225996
226056
|
var HM_DATA_ROOT = ROOT;
|
|
225997
|
-
var PLUGINS_DIR = () =>
|
|
225998
|
-
var RUNTIME_FILE = () =>
|
|
225999
|
-
var EXTENSION_DIR = () =>
|
|
226000
|
-
var ARTIFACT_STATE_FILE = () =>
|
|
226057
|
+
var PLUGINS_DIR = () => path4.join(ROOT(), "plugins");
|
|
226058
|
+
var RUNTIME_FILE = () => path4.join(ROOT(), "runtime.json");
|
|
226059
|
+
var EXTENSION_DIR = () => path4.join(ROOT(), "extension");
|
|
226060
|
+
var ARTIFACT_STATE_FILE = () => path4.join(ROOT(), "artifacts-state.json");
|
|
226001
226061
|
var WATCH_INTERVAL_MS = Number(process.env.HM_PLUGIN_WATCH_INTERVAL_MS || 3e4);
|
|
226002
226062
|
var SystemService = SystemService_1 = class SystemService2 {
|
|
226003
226063
|
logger = new import_common45.Logger(SystemService_1.name);
|
|
@@ -226046,8 +226106,8 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226046
226106
|
try {
|
|
226047
226107
|
const entries = fs3.readdirSync(d, { withFileTypes: true }).sort((a, b2) => a.name.localeCompare(b2.name));
|
|
226048
226108
|
for (const entry of entries) {
|
|
226049
|
-
const relPath =
|
|
226050
|
-
const full =
|
|
226109
|
+
const relPath = path4.join(rel, entry.name);
|
|
226110
|
+
const full = path4.join(d, entry.name);
|
|
226051
226111
|
if (entry.isDirectory()) {
|
|
226052
226112
|
walk(full, relPath);
|
|
226053
226113
|
} else if (entry.isFile() || entry.isSymbolicLink()) {
|
|
@@ -226071,7 +226131,7 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226071
226131
|
static inspectArtifact(dir, versionSource) {
|
|
226072
226132
|
if (!fs3.existsSync(dir))
|
|
226073
226133
|
return null;
|
|
226074
|
-
if (!fs3.existsSync(
|
|
226134
|
+
if (!fs3.existsSync(path4.join(dir, "manifest.json")) && !fs3.existsSync(path4.join(dir, "package.json")) && !fs3.existsSync(path4.join(dir, "index.js"))) {
|
|
226075
226135
|
return null;
|
|
226076
226136
|
}
|
|
226077
226137
|
const { checksum, latestMtimeMs } = SystemService_1.dirChecksum(dir);
|
|
@@ -226107,44 +226167,44 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226107
226167
|
}
|
|
226108
226168
|
computeBootArtifacts() {
|
|
226109
226169
|
const serverCandidates = [
|
|
226110
|
-
|
|
226111
|
-
|
|
226170
|
+
path4.join(__dirname, "..", "..", "dist"),
|
|
226171
|
+
path4.join(__dirname, ".."),
|
|
226112
226172
|
__dirname
|
|
226113
226173
|
];
|
|
226114
226174
|
let serverRoot = "";
|
|
226115
226175
|
for (const c of serverCandidates) {
|
|
226116
|
-
if (fs3.existsSync(
|
|
226176
|
+
if (fs3.existsSync(path4.join(c, "main.js")) || fs3.existsSync(path4.join(c, "index.js"))) {
|
|
226117
226177
|
serverRoot = c;
|
|
226118
226178
|
break;
|
|
226119
226179
|
}
|
|
226120
226180
|
}
|
|
226121
|
-
const serverPkgPath =
|
|
226181
|
+
const serverPkgPath = path4.resolve(path4.join(serverRoot || __dirname, "..", "package.json"));
|
|
226122
226182
|
const serverPkg = JSON.parse(fs3.existsSync(serverPkgPath) ? fs3.readFileSync(serverPkgPath, "utf8") : '{"version":"0.0.0"}');
|
|
226123
226183
|
const extensionDir = EXTENSION_DIR();
|
|
226124
|
-
const extManifestPath =
|
|
226184
|
+
const extManifestPath = path4.join(extensionDir, "manifest.json");
|
|
226125
226185
|
const extManifest = fs3.existsSync(extManifestPath) ? JSON.parse(fs3.readFileSync(extManifestPath, "utf8")) : null;
|
|
226126
226186
|
const server = SystemService_1.inspectArtifact(serverRoot, serverPkg);
|
|
226127
226187
|
const extension = SystemService_1.inspectArtifact(extensionDir, extManifest);
|
|
226128
|
-
const serverEntry = serverRoot ? fs3.existsSync(
|
|
226188
|
+
const serverEntry = serverRoot ? fs3.existsSync(path4.join(serverRoot, "main.js")) ? path4.join(serverRoot, "main.js") : path4.join(serverRoot, "index.js") : __filename;
|
|
226129
226189
|
const linked = SystemService_1.resolveLinked(extensionDir, serverEntry);
|
|
226130
226190
|
return { server, extension, linked };
|
|
226131
226191
|
}
|
|
226132
226192
|
scanCliPackageVersions() {
|
|
226133
226193
|
let cli = "0.0.0", server = "0.0.0", ext = "0.0.0";
|
|
226134
226194
|
try {
|
|
226135
|
-
const cliPkg = JSON.parse(fs3.readFileSync(
|
|
226195
|
+
const cliPkg = JSON.parse(fs3.readFileSync(path4.join(__dirname, "..", "..", "..", "cli", "package.json"), "utf8"));
|
|
226136
226196
|
if (cliPkg.version)
|
|
226137
226197
|
cli = cliPkg.version;
|
|
226138
226198
|
} catch {
|
|
226139
226199
|
}
|
|
226140
226200
|
try {
|
|
226141
|
-
const serverPkg = JSON.parse(fs3.readFileSync(
|
|
226201
|
+
const serverPkg = JSON.parse(fs3.readFileSync(path4.join(__dirname, "..", "..", "package.json"), "utf8"));
|
|
226142
226202
|
if (serverPkg.version)
|
|
226143
226203
|
server = serverPkg.version;
|
|
226144
226204
|
} catch {
|
|
226145
226205
|
}
|
|
226146
226206
|
try {
|
|
226147
|
-
const extManifest = JSON.parse(fs3.readFileSync(
|
|
226207
|
+
const extManifest = JSON.parse(fs3.readFileSync(path4.join(EXTENSION_DIR(), "manifest.json"), "utf8"));
|
|
226148
226208
|
if (extManifest.version)
|
|
226149
226209
|
ext = extManifest.version;
|
|
226150
226210
|
} catch {
|
|
@@ -226163,9 +226223,9 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226163
226223
|
}
|
|
226164
226224
|
static readBuildInfo() {
|
|
226165
226225
|
const candidates = [
|
|
226166
|
-
|
|
226167
|
-
|
|
226168
|
-
|
|
226226
|
+
path4.join(__dirname, "..", "..", "dist", "build-info.json"),
|
|
226227
|
+
path4.join(__dirname, "..", "build-info.json"),
|
|
226228
|
+
path4.join(__dirname, "build-info.json")
|
|
226169
226229
|
];
|
|
226170
226230
|
for (const p of candidates) {
|
|
226171
226231
|
try {
|
|
@@ -226182,8 +226242,8 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226182
226242
|
}
|
|
226183
226243
|
static readServerPackageVersion() {
|
|
226184
226244
|
const candidates = [
|
|
226185
|
-
|
|
226186
|
-
|
|
226245
|
+
path4.join(__dirname, "..", "package.json"),
|
|
226246
|
+
path4.join(__dirname, "..", "..", "package.json")
|
|
226187
226247
|
];
|
|
226188
226248
|
for (const c of candidates) {
|
|
226189
226249
|
try {
|
|
@@ -226222,12 +226282,12 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226222
226282
|
const loaded = [];
|
|
226223
226283
|
if (fs3.existsSync(dir)) {
|
|
226224
226284
|
for (const name of fs3.readdirSync(dir).sort()) {
|
|
226225
|
-
const pkgFile =
|
|
226285
|
+
const pkgFile = path4.join(dir, name, "package.json");
|
|
226226
226286
|
if (!fs3.existsSync(pkgFile))
|
|
226227
226287
|
continue;
|
|
226228
226288
|
try {
|
|
226229
226289
|
const pkg = JSON.parse(fs3.readFileSync(pkgFile, "utf-8"));
|
|
226230
|
-
const entry =
|
|
226290
|
+
const entry = path4.resolve(path4.join(dir, name), pkg.main || "index.js");
|
|
226231
226291
|
const plugin = {
|
|
226232
226292
|
name,
|
|
226233
226293
|
version: pkg.version ?? "?",
|
|
@@ -226321,7 +226381,7 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226321
226381
|
if (!fs3.existsSync(dir))
|
|
226322
226382
|
return out;
|
|
226323
226383
|
for (const name of fs3.readdirSync(dir)) {
|
|
226324
|
-
const pkgFile =
|
|
226384
|
+
const pkgFile = path4.join(dir, name, "package.json");
|
|
226325
226385
|
if (!fs3.existsSync(pkgFile))
|
|
226326
226386
|
continue;
|
|
226327
226387
|
try {
|
|
@@ -226342,7 +226402,7 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226342
226402
|
needsRestart: this.needsRestart
|
|
226343
226403
|
};
|
|
226344
226404
|
const file2 = RUNTIME_FILE();
|
|
226345
|
-
fs3.mkdirSync(
|
|
226405
|
+
fs3.mkdirSync(path4.dirname(file2), { recursive: true });
|
|
226346
226406
|
fs3.writeFileSync(file2, JSON.stringify(state, null, 2));
|
|
226347
226407
|
return state;
|
|
226348
226408
|
}
|
|
@@ -226358,7 +226418,7 @@ var SystemService = SystemService_1 = class SystemService2 {
|
|
|
226358
226418
|
};
|
|
226359
226419
|
const file2 = ARTIFACT_STATE_FILE();
|
|
226360
226420
|
try {
|
|
226361
|
-
fs3.mkdirSync(
|
|
226421
|
+
fs3.mkdirSync(path4.dirname(file2), { recursive: true });
|
|
226362
226422
|
fs3.writeFileSync(file2, JSON.stringify(state, null, 2));
|
|
226363
226423
|
return state;
|
|
226364
226424
|
} catch {
|
|
@@ -226770,8 +226830,8 @@ function getFramesFromEvent(event) {
|
|
|
226770
226830
|
}
|
|
226771
226831
|
return void 0;
|
|
226772
226832
|
}
|
|
226773
|
-
function normalizeStackTracePath(
|
|
226774
|
-
let filename =
|
|
226833
|
+
function normalizeStackTracePath(path15) {
|
|
226834
|
+
let filename = path15?.startsWith("file://") ? path15.slice(7) : path15;
|
|
226775
226835
|
if (filename?.match(/\/[A-Z]:/)) {
|
|
226776
226836
|
filename = filename.slice(1);
|
|
226777
226837
|
}
|
|
@@ -228591,8 +228651,8 @@ function isValidProtocol(protocol) {
|
|
|
228591
228651
|
return protocol === "http" || protocol === "https";
|
|
228592
228652
|
}
|
|
228593
228653
|
function dsnToString(dsn, withPassword = false) {
|
|
228594
|
-
const { host, path:
|
|
228595
|
-
return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${
|
|
228654
|
+
const { host, path: path15, pass, port, projectId, protocol, publicKey } = dsn;
|
|
228655
|
+
return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path15 ? `${path15}/` : path15}${projectId}`;
|
|
228596
228656
|
}
|
|
228597
228657
|
function dsnFromString(str) {
|
|
228598
228658
|
const match = DSN_REGEX.exec(str);
|
|
@@ -228603,11 +228663,11 @@ function dsnFromString(str) {
|
|
|
228603
228663
|
return void 0;
|
|
228604
228664
|
}
|
|
228605
228665
|
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
|
|
228606
|
-
let
|
|
228666
|
+
let path15 = "";
|
|
228607
228667
|
let projectId = lastPath;
|
|
228608
228668
|
const split = projectId.split("/");
|
|
228609
228669
|
if (split.length > 1) {
|
|
228610
|
-
|
|
228670
|
+
path15 = split.slice(0, -1).join("/");
|
|
228611
228671
|
projectId = split.pop();
|
|
228612
228672
|
}
|
|
228613
228673
|
if (projectId) {
|
|
@@ -228616,7 +228676,7 @@ function dsnFromString(str) {
|
|
|
228616
228676
|
projectId = projectMatch[0];
|
|
228617
228677
|
}
|
|
228618
228678
|
}
|
|
228619
|
-
return dsnFromComponents({ host, pass, path:
|
|
228679
|
+
return dsnFromComponents({ host, pass, path: path15, projectId, port, protocol, publicKey });
|
|
228620
228680
|
}
|
|
228621
228681
|
function dsnFromComponents(components) {
|
|
228622
228682
|
return {
|
|
@@ -233561,9 +233621,9 @@ function stripUrlQueryAndFragment(urlPath) {
|
|
|
233561
233621
|
return urlPath.split(/[?#]/, 1)[0];
|
|
233562
233622
|
}
|
|
233563
233623
|
function getSanitizedUrlString(url2) {
|
|
233564
|
-
const { protocol, host, path:
|
|
233624
|
+
const { protocol, host, path: path15 } = url2;
|
|
233565
233625
|
const filteredHost = host?.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
|
|
233566
|
-
return `${protocol ? `${protocol}://` : ""}${filteredHost}${
|
|
233626
|
+
return `${protocol ? `${protocol}://` : ""}${filteredHost}${path15}`;
|
|
233567
233627
|
}
|
|
233568
233628
|
function stripDataUrlContent(url2, includeDataPrefix = true) {
|
|
233569
233629
|
if (url2.startsWith("data:")) {
|
|
@@ -234812,12 +234872,12 @@ function resolve2(...args) {
|
|
|
234812
234872
|
let resolvedPath = "";
|
|
234813
234873
|
let resolvedAbsolute = false;
|
|
234814
234874
|
for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
234815
|
-
const
|
|
234816
|
-
if (!
|
|
234875
|
+
const path15 = i >= 0 ? args[i] : "/";
|
|
234876
|
+
if (!path15) {
|
|
234817
234877
|
continue;
|
|
234818
234878
|
}
|
|
234819
|
-
resolvedPath = `${
|
|
234820
|
-
resolvedAbsolute =
|
|
234879
|
+
resolvedPath = `${path15}/${resolvedPath}`;
|
|
234880
|
+
resolvedAbsolute = path15.charAt(0) === "/";
|
|
234821
234881
|
}
|
|
234822
234882
|
resolvedPath = normalizeArray(
|
|
234823
234883
|
resolvedPath.split("/").filter((p) => !!p),
|
|
@@ -234863,8 +234923,8 @@ function relative(from, to) {
|
|
|
234863
234923
|
outputParts = outputParts.concat(toParts.slice(samePartsLength));
|
|
234864
234924
|
return outputParts.join("/");
|
|
234865
234925
|
}
|
|
234866
|
-
function dirname4(
|
|
234867
|
-
const result = splitPath(
|
|
234926
|
+
function dirname4(path15) {
|
|
234927
|
+
const result = splitPath(path15);
|
|
234868
234928
|
const root = result[0] || "";
|
|
234869
234929
|
let dir = result[1];
|
|
234870
234930
|
if (!root && !dir) {
|
|
@@ -234875,8 +234935,8 @@ function dirname4(path14) {
|
|
|
234875
234935
|
}
|
|
234876
234936
|
return root + dir;
|
|
234877
234937
|
}
|
|
234878
|
-
function basename2(
|
|
234879
|
-
let f = splitPath(
|
|
234938
|
+
function basename2(path15, ext) {
|
|
234939
|
+
let f = splitPath(path15)[2] || "";
|
|
234880
234940
|
if (ext && f.slice(ext.length * -1) === ext) {
|
|
234881
234941
|
f = f.slice(0, f.length - ext.length);
|
|
234882
234942
|
}
|
|
@@ -235347,8 +235407,8 @@ function flattenIssue(issue) {
|
|
|
235347
235407
|
unionErrors: "unionErrors" in issue ? JSON.stringify(issue.unionErrors) : void 0
|
|
235348
235408
|
};
|
|
235349
235409
|
}
|
|
235350
|
-
function flattenIssuePath(
|
|
235351
|
-
return
|
|
235410
|
+
function flattenIssuePath(path15) {
|
|
235411
|
+
return path15.map((p) => {
|
|
235352
235412
|
if (typeof p === "number") {
|
|
235353
235413
|
return "<array>";
|
|
235354
235414
|
} else {
|
|
@@ -239643,12 +239703,12 @@ function captureIfError(nextResult) {
|
|
|
239643
239703
|
}
|
|
239644
239704
|
function trpcMiddleware(options = {}) {
|
|
239645
239705
|
return async function(opts) {
|
|
239646
|
-
const { path:
|
|
239706
|
+
const { path: path15, type, next, rawInput, getRawInput } = opts;
|
|
239647
239707
|
const client = getClient();
|
|
239648
239708
|
const clientOptions = client?.getOptions();
|
|
239649
239709
|
const dataCollection = client?.getDataCollectionOptions();
|
|
239650
239710
|
const trpcContext = {
|
|
239651
|
-
procedure_path:
|
|
239711
|
+
procedure_path: path15,
|
|
239652
239712
|
procedure_type: type
|
|
239653
239713
|
};
|
|
239654
239714
|
setNormalizationDepthOverrideHint(
|
|
@@ -239673,7 +239733,7 @@ function trpcMiddleware(options = {}) {
|
|
|
239673
239733
|
scope.setContext("trpc", trpcContext);
|
|
239674
239734
|
return startSpanManual(
|
|
239675
239735
|
{
|
|
239676
|
-
name: `trpc/${
|
|
239736
|
+
name: `trpc/${path15}`,
|
|
239677
239737
|
op: "rpc.server",
|
|
239678
239738
|
attributes: {
|
|
239679
239739
|
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: "route",
|
|
@@ -240836,15 +240896,15 @@ var getLayerMetadata = (route, layer, layerPath) => {
|
|
|
240836
240896
|
};
|
|
240837
240897
|
}
|
|
240838
240898
|
};
|
|
240839
|
-
var getRouterPath = (
|
|
240899
|
+
var getRouterPath = (path15, layer) => {
|
|
240840
240900
|
const stackLayer = Array.isArray(layer.handle?.stack) ? layer.handle?.stack?.[0] : void 0;
|
|
240841
240901
|
if (stackLayer?.route?.path) {
|
|
240842
|
-
return `${
|
|
240902
|
+
return `${path15}${stackLayer.route.path}`;
|
|
240843
240903
|
}
|
|
240844
240904
|
if (stackLayer && Array.isArray(stackLayer?.handle?.stack)) {
|
|
240845
|
-
return getRouterPath(
|
|
240905
|
+
return getRouterPath(path15, stackLayer);
|
|
240846
240906
|
}
|
|
240847
|
-
return
|
|
240907
|
+
return path15;
|
|
240848
240908
|
};
|
|
240849
240909
|
var isLayerIgnored = (name, type, config) => {
|
|
240850
240910
|
if (Array.isArray(config?.ignoreLayersType) && config?.ignoreLayersType?.includes(type)) {
|
|
@@ -240864,7 +240924,7 @@ function getActualMatchedRoute(req, constructedRoute) {
|
|
|
240864
240924
|
if (layersStore.length === 0) {
|
|
240865
240925
|
return void 0;
|
|
240866
240926
|
}
|
|
240867
|
-
if (layersStore.every((
|
|
240927
|
+
if (layersStore.every((path15) => path15 === "/")) {
|
|
240868
240928
|
return req.originalUrl === "/" ? "/" : void 0;
|
|
240869
240929
|
}
|
|
240870
240930
|
if (constructedRoute === "*") {
|
|
@@ -240880,11 +240940,11 @@ function getActualMatchedRoute(req, constructedRoute) {
|
|
|
240880
240940
|
function getConstructedRoute(req) {
|
|
240881
240941
|
const layersStore = getStoredLayers(req);
|
|
240882
240942
|
let constructedRoute = "";
|
|
240883
|
-
for (const
|
|
240884
|
-
if (
|
|
240943
|
+
for (const path15 of layersStore) {
|
|
240944
|
+
if (path15 === "/" || path15 === "/*") {
|
|
240885
240945
|
continue;
|
|
240886
240946
|
}
|
|
240887
|
-
constructedRoute += !constructedRoute || constructedRoute.endsWith("/") ?
|
|
240947
|
+
constructedRoute += !constructedRoute || constructedRoute.endsWith("/") ? path15 : `/${path15}`;
|
|
240888
240948
|
}
|
|
240889
240949
|
return constructedRoute.replace(/\/{2,}/g, "/");
|
|
240890
240950
|
}
|
|
@@ -241420,9 +241480,9 @@ function getRequestUrlObject(requestOptions) {
|
|
|
241420
241480
|
const hostHeader = requestOptions.headers?.host && String(requestOptions.headers?.host);
|
|
241421
241481
|
const hostname6 = hostHeader || requestOptions.hostname || requestOptions.host || "";
|
|
241422
241482
|
const port = !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\d+)$/.test(hostname6) ? "" : `:${requestOptions.port}`;
|
|
241423
|
-
const
|
|
241483
|
+
const path15 = requestOptions.path ? requestOptions.path : "/";
|
|
241424
241484
|
const base = `${protocol}//${hostname6}${port}`;
|
|
241425
|
-
return new URL(
|
|
241485
|
+
return new URL(path15.startsWith("//") ? `${base}${path15}` : path15, base);
|
|
241426
241486
|
}
|
|
241427
241487
|
function getRequestUrlFromClientRequest(request2) {
|
|
241428
241488
|
return String(getRequestUrl(getRequestOptions(request2)));
|
|
@@ -242095,11 +242155,11 @@ function shouldIgnoreSpansForIncomingRequest(request2, {
|
|
|
242095
242155
|
return false;
|
|
242096
242156
|
}
|
|
242097
242157
|
function isStaticAssetRequest(urlPath) {
|
|
242098
|
-
const
|
|
242099
|
-
if (
|
|
242158
|
+
const path15 = stripUrlQueryAndFragment(urlPath);
|
|
242159
|
+
if (path15.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)) {
|
|
242100
242160
|
return true;
|
|
242101
242161
|
}
|
|
242102
|
-
if (
|
|
242162
|
+
if (path15.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)) {
|
|
242103
242163
|
return true;
|
|
242104
242164
|
}
|
|
242105
242165
|
return false;
|
|
@@ -242340,11 +242400,11 @@ function isKnownPrefetchRequest2(req) {
|
|
|
242340
242400
|
return req.headers["next-router-prefetch"] === "1";
|
|
242341
242401
|
}
|
|
242342
242402
|
function isStaticAssetRequest2(urlPath) {
|
|
242343
|
-
const
|
|
242344
|
-
if (
|
|
242403
|
+
const path15 = stripUrlQueryAndFragment(urlPath);
|
|
242404
|
+
if (path15.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)) {
|
|
242345
242405
|
return true;
|
|
242346
242406
|
}
|
|
242347
|
-
if (
|
|
242407
|
+
if (path15.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)) {
|
|
242348
242408
|
return true;
|
|
242349
242409
|
}
|
|
242350
242410
|
return false;
|
|
@@ -242704,19 +242764,19 @@ function getBreadcrumbData(request2) {
|
|
|
242704
242764
|
return {};
|
|
242705
242765
|
}
|
|
242706
242766
|
}
|
|
242707
|
-
function getAbsoluteUrl2(origin2,
|
|
242767
|
+
function getAbsoluteUrl2(origin2, path15 = "/") {
|
|
242708
242768
|
try {
|
|
242709
|
-
const url2 = new URL(
|
|
242769
|
+
const url2 = new URL(path15, origin2);
|
|
242710
242770
|
return url2.toString();
|
|
242711
242771
|
} catch {
|
|
242712
242772
|
const url2 = `${origin2}`;
|
|
242713
|
-
if (url2.endsWith("/") &&
|
|
242714
|
-
return `${url2}${
|
|
242773
|
+
if (url2.endsWith("/") && path15.startsWith("/")) {
|
|
242774
|
+
return `${url2}${path15.slice(1)}`;
|
|
242715
242775
|
}
|
|
242716
|
-
if (!url2.endsWith("/") && !
|
|
242717
|
-
return `${url2}/${
|
|
242776
|
+
if (!url2.endsWith("/") && !path15.startsWith("/")) {
|
|
242777
|
+
return `${url2}/${path15}`;
|
|
242718
242778
|
}
|
|
242719
|
-
return `${url2}${
|
|
242779
|
+
return `${url2}${path15}`;
|
|
242720
242780
|
}
|
|
242721
242781
|
}
|
|
242722
242782
|
|
|
@@ -242961,15 +243021,15 @@ function getRequestMethod(original) {
|
|
|
242961
243021
|
}
|
|
242962
243022
|
return "_OTHER";
|
|
242963
243023
|
}
|
|
242964
|
-
function getAbsoluteUrl3(origin2,
|
|
243024
|
+
function getAbsoluteUrl3(origin2, path15 = "/") {
|
|
242965
243025
|
const url2 = `${origin2}`;
|
|
242966
|
-
if (url2.endsWith("/") &&
|
|
242967
|
-
return `${url2}${
|
|
243026
|
+
if (url2.endsWith("/") && path15.startsWith("/")) {
|
|
243027
|
+
return `${url2}${path15.slice(1)}`;
|
|
242968
243028
|
}
|
|
242969
|
-
if (!url2.endsWith("/") && !
|
|
242970
|
-
return `${url2}/${
|
|
243029
|
+
if (!url2.endsWith("/") && !path15.startsWith("/")) {
|
|
243030
|
+
return `${url2}/${path15}`;
|
|
242971
243031
|
}
|
|
242972
|
-
return `${url2}${
|
|
243032
|
+
return `${url2}${path15}`;
|
|
242973
243033
|
}
|
|
242974
243034
|
|
|
242975
243035
|
// ../../node_modules/.pnpm/@sentry+node-core@10.70.0_@opentelemetry+api@1.9.1_@opentelemetry+core@2.10.0_@opentelemetry+_xy53gxni6xwrihkx6w72xmc6na/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/index.js
|
|
@@ -245062,7 +245122,7 @@ function captureWorkerThreadEvents(worker, options) {
|
|
|
245062
245122
|
import { execFile } from "node:child_process";
|
|
245063
245123
|
import { readFile, readdir } from "node:fs";
|
|
245064
245124
|
import * as os2 from "node:os";
|
|
245065
|
-
import { join as
|
|
245125
|
+
import { join as join6 } from "node:path";
|
|
245066
245126
|
import { promisify } from "node:util";
|
|
245067
245127
|
var readFileAsync = promisify(readFile);
|
|
245068
245128
|
var readDirAsync = promisify(readdir);
|
|
@@ -245372,7 +245432,7 @@ async function getLinuxInfo() {
|
|
|
245372
245432
|
if (!distroFile) {
|
|
245373
245433
|
return linuxInfo;
|
|
245374
245434
|
}
|
|
245375
|
-
const distroPath =
|
|
245435
|
+
const distroPath = join6("/etc", distroFile.name);
|
|
245376
245436
|
const contents = (await readFileAsync(distroPath, { encoding: "utf-8" })).toLowerCase();
|
|
245377
245437
|
const { distros } = distroFile;
|
|
245378
245438
|
linuxInfo.name = distros.find((d) => contents.indexOf(getLinuxDistroId(d)) >= 0) || distros[0];
|
|
@@ -245455,12 +245515,12 @@ function emplace(map2, key, contents) {
|
|
|
245455
245515
|
}
|
|
245456
245516
|
return value;
|
|
245457
245517
|
}
|
|
245458
|
-
function shouldSkipContextLinesForFile(
|
|
245459
|
-
if (
|
|
245460
|
-
if (
|
|
245461
|
-
if (
|
|
245462
|
-
if (
|
|
245463
|
-
if (
|
|
245518
|
+
function shouldSkipContextLinesForFile(path15) {
|
|
245519
|
+
if (path15.startsWith("node:")) return true;
|
|
245520
|
+
if (path15.endsWith(".min.js")) return true;
|
|
245521
|
+
if (path15.endsWith(".min.cjs")) return true;
|
|
245522
|
+
if (path15.endsWith(".min.mjs")) return true;
|
|
245523
|
+
if (path15.startsWith("data:")) return true;
|
|
245464
245524
|
return false;
|
|
245465
245525
|
}
|
|
245466
245526
|
function shouldSkipContextLinesForFrame(frame) {
|
|
@@ -245508,9 +245568,9 @@ function makeLineReaderRanges(lines, linecontext) {
|
|
|
245508
245568
|
}
|
|
245509
245569
|
return out;
|
|
245510
245570
|
}
|
|
245511
|
-
function getContextLinesFromFile(
|
|
245571
|
+
function getContextLinesFromFile(path15, ranges, output) {
|
|
245512
245572
|
return new Promise((resolve7, _reject) => {
|
|
245513
|
-
const stream4 = createReadStream(
|
|
245573
|
+
const stream4 = createReadStream(path15);
|
|
245514
245574
|
const lineReaded = createInterface({
|
|
245515
245575
|
input: stream4
|
|
245516
245576
|
});
|
|
@@ -245528,8 +245588,8 @@ function getContextLinesFromFile(path14, ranges, output) {
|
|
|
245528
245588
|
let rangeStart = range[0];
|
|
245529
245589
|
let rangeEnd = range[1];
|
|
245530
245590
|
function onStreamError(e) {
|
|
245531
|
-
LRU_FILE_CONTENTS_FS_READ_FAILED.set(
|
|
245532
|
-
DEBUG_BUILD2 && debug.error(`Failed to read file: ${
|
|
245591
|
+
LRU_FILE_CONTENTS_FS_READ_FAILED.set(path15, 1);
|
|
245592
|
+
DEBUG_BUILD2 && debug.error(`Failed to read file: ${path15}. Error: ${e}`);
|
|
245533
245593
|
lineReaded.close();
|
|
245534
245594
|
lineReaded.removeAllListeners();
|
|
245535
245595
|
destroyStreamAndResolve();
|
|
@@ -246121,8 +246181,8 @@ var localVariablesIntegration = (options = {}) => {
|
|
|
246121
246181
|
};
|
|
246122
246182
|
|
|
246123
246183
|
// ../../node_modules/.pnpm/@sentry+node-core@10.70.0_@opentelemetry+api@1.9.1_@opentelemetry+core@2.10.0_@opentelemetry+_xy53gxni6xwrihkx6w72xmc6na/node_modules/@sentry/node-core/build/esm/integrations/modules.js
|
|
246124
|
-
import { readFileSync as
|
|
246125
|
-
import { join as
|
|
246184
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
246185
|
+
import { join as join7 } from "node:path";
|
|
246126
246186
|
var moduleCache;
|
|
246127
246187
|
var INTEGRATION_NAME22 = "Modules";
|
|
246128
246188
|
function getServerModules() {
|
|
@@ -246159,8 +246219,8 @@ function _getModules() {
|
|
|
246159
246219
|
}
|
|
246160
246220
|
function getPackageJson() {
|
|
246161
246221
|
try {
|
|
246162
|
-
const filePath =
|
|
246163
|
-
const packageJson = JSON.parse(
|
|
246222
|
+
const filePath = join7(process.cwd(), "package.json");
|
|
246223
|
+
const packageJson = JSON.parse(readFileSync3(filePath, "utf8"));
|
|
246164
246224
|
return packageJson;
|
|
246165
246225
|
} catch {
|
|
246166
246226
|
return {};
|
|
@@ -246968,8 +247028,8 @@ function getSpotlightConfig(optionsSpotlight) {
|
|
|
246968
247028
|
|
|
246969
247029
|
// ../../node_modules/.pnpm/@sentry+node-core@10.70.0_@opentelemetry+api@1.9.1_@opentelemetry+core@2.10.0_@opentelemetry+_xy53gxni6xwrihkx6w72xmc6na/node_modules/@sentry/node-core/build/esm/utils/module.js
|
|
246970
247030
|
import { posix, sep } from "node:path";
|
|
246971
|
-
function normalizeWindowsPath(
|
|
246972
|
-
return
|
|
247031
|
+
function normalizeWindowsPath(path15) {
|
|
247032
|
+
return path15.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
|
|
246973
247033
|
}
|
|
246974
247034
|
function createGetModuleFromFilename(basePath = process.argv[1] ? dirname4(process.argv[1]) : process.cwd(), isWindows = sep === "\\") {
|
|
246975
247035
|
const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;
|
|
@@ -248599,8 +248659,8 @@ function _patchExistsCallbackFunction(original, config) {
|
|
|
248599
248659
|
}
|
|
248600
248660
|
};
|
|
248601
248661
|
const functionWithOriginalProperties = patchedFunctionWithOriginalProperties(patchedFunction, original);
|
|
248602
|
-
const promisified = function(
|
|
248603
|
-
return new Promise((resolve7) => functionWithOriginalProperties(
|
|
248662
|
+
const promisified = function(path15) {
|
|
248663
|
+
return new Promise((resolve7) => functionWithOriginalProperties(path15, resolve7));
|
|
248604
248664
|
};
|
|
248605
248665
|
Object.defineProperty(promisified, "name", { value: functionName });
|
|
248606
248666
|
Object.defineProperty(functionWithOriginalProperties, promisify2.custom, {
|
|
@@ -251083,22 +251143,22 @@ function addSpanSource(span, loc, start, end) {
|
|
|
251083
251143
|
span.setAttribute(AttributeNames2.SOURCE, source);
|
|
251084
251144
|
}
|
|
251085
251145
|
}
|
|
251086
|
-
function createFieldIfNotExists(contextValue, info2,
|
|
251087
|
-
let field = getField(contextValue,
|
|
251146
|
+
function createFieldIfNotExists(contextValue, info2, path15) {
|
|
251147
|
+
let field = getField(contextValue, path15);
|
|
251088
251148
|
if (field) {
|
|
251089
251149
|
return { field, spanAdded: false };
|
|
251090
251150
|
}
|
|
251091
|
-
const parentSpan = getParentFieldSpan(contextValue,
|
|
251151
|
+
const parentSpan = getParentFieldSpan(contextValue, path15);
|
|
251092
251152
|
field = {
|
|
251093
|
-
span: createResolverSpan(contextValue, info2,
|
|
251153
|
+
span: createResolverSpan(contextValue, info2, path15, parentSpan)
|
|
251094
251154
|
};
|
|
251095
|
-
addField(contextValue,
|
|
251155
|
+
addField(contextValue, path15, field);
|
|
251096
251156
|
return { field, spanAdded: true };
|
|
251097
251157
|
}
|
|
251098
|
-
function createResolverSpan(contextValue, info2,
|
|
251158
|
+
function createResolverSpan(contextValue, info2, path15, parentSpan) {
|
|
251099
251159
|
const attributes = {
|
|
251100
251160
|
[AttributeNames2.FIELD_NAME]: info2.fieldName,
|
|
251101
|
-
[AttributeNames2.FIELD_PATH]:
|
|
251161
|
+
[AttributeNames2.FIELD_PATH]: path15.join("."),
|
|
251102
251162
|
[AttributeNames2.FIELD_TYPE]: info2.returnType.toString(),
|
|
251103
251163
|
[AttributeNames2.PARENT_NAME]: info2.parentType.name
|
|
251104
251164
|
};
|
|
@@ -251130,15 +251190,15 @@ function getOperation(document2, operationName) {
|
|
|
251130
251190
|
return document2.definitions.find((definition) => OPERATION_VALUES.indexOf(definition?.operation) !== -1);
|
|
251131
251191
|
}
|
|
251132
251192
|
}
|
|
251133
|
-
function addField(contextValue,
|
|
251134
|
-
return contextValue[OTEL_GRAPHQL_DATA_SYMBOL].fields[
|
|
251193
|
+
function addField(contextValue, path15, field) {
|
|
251194
|
+
return contextValue[OTEL_GRAPHQL_DATA_SYMBOL].fields[path15.join(".")] = field;
|
|
251135
251195
|
}
|
|
251136
|
-
function getField(contextValue,
|
|
251137
|
-
return contextValue[OTEL_GRAPHQL_DATA_SYMBOL].fields[
|
|
251196
|
+
function getField(contextValue, path15) {
|
|
251197
|
+
return contextValue[OTEL_GRAPHQL_DATA_SYMBOL].fields[path15.join(".")];
|
|
251138
251198
|
}
|
|
251139
|
-
function getParentFieldSpan(contextValue,
|
|
251140
|
-
for (let i =
|
|
251141
|
-
const field = getField(contextValue,
|
|
251199
|
+
function getParentFieldSpan(contextValue, path15) {
|
|
251200
|
+
for (let i = path15.length - 1; i > 0; i--) {
|
|
251201
|
+
const field = getField(contextValue, path15.slice(0, i));
|
|
251142
251202
|
if (field) {
|
|
251143
251203
|
return field.span;
|
|
251144
251204
|
}
|
|
@@ -251148,9 +251208,9 @@ function getParentFieldSpan(contextValue, path14) {
|
|
|
251148
251208
|
function getRootSpan2(contextValue) {
|
|
251149
251209
|
return contextValue[OTEL_GRAPHQL_DATA_SYMBOL].span;
|
|
251150
251210
|
}
|
|
251151
|
-
function pathToArray(
|
|
251211
|
+
function pathToArray(path15) {
|
|
251152
251212
|
const flattened = [];
|
|
251153
|
-
let curr =
|
|
251213
|
+
let curr = path15;
|
|
251154
251214
|
while (curr) {
|
|
251155
251215
|
flattened.push(String(curr.key));
|
|
251156
251216
|
curr = curr.prev;
|
|
@@ -251291,8 +251351,8 @@ function wrapFieldResolver(getConfig3, fieldResolver, isDefaultResolver = false)
|
|
|
251291
251351
|
if (!contextValue[OTEL_GRAPHQL_DATA_SYMBOL]) {
|
|
251292
251352
|
return fieldResolver.call(this, source, args, contextValue, info2);
|
|
251293
251353
|
}
|
|
251294
|
-
const
|
|
251295
|
-
const { field, spanAdded } = createFieldIfNotExists(contextValue, info2,
|
|
251354
|
+
const path15 = pathToArray(info2?.path);
|
|
251355
|
+
const { field, spanAdded } = createFieldIfNotExists(contextValue, info2, path15);
|
|
251296
251356
|
const span = field.span;
|
|
251297
251357
|
const shouldEndSpan = spanAdded;
|
|
251298
251358
|
return withActiveSpan(span, () => {
|
|
@@ -254278,10 +254338,10 @@ var PostgresJsInstrumentation = class extends import_instrumentation26.Instrumen
|
|
|
254278
254338
|
},
|
|
254279
254339
|
(exports2) => exports2
|
|
254280
254340
|
);
|
|
254281
|
-
["src", "cf/src", "cjs/src"].forEach((
|
|
254341
|
+
["src", "cf/src", "cjs/src"].forEach((path15) => {
|
|
254282
254342
|
module2.files.push(
|
|
254283
254343
|
new InstrumentationNodeModuleFile(
|
|
254284
|
-
`postgres/${
|
|
254344
|
+
`postgres/${path15}/query.js`,
|
|
254285
254345
|
SUPPORTED_VERSIONS4,
|
|
254286
254346
|
this._patchQueryPrototype.bind(this),
|
|
254287
254347
|
this._unpatchQueryPrototype.bind(this)
|
|
@@ -254948,13 +255008,13 @@ var HonoInstrumentation = class extends import_instrumentation29.Instrumentation
|
|
|
254948
255008
|
return function(original) {
|
|
254949
255009
|
return function wrappedHandler(...args) {
|
|
254950
255010
|
if (typeof args[0] === "string") {
|
|
254951
|
-
const
|
|
255011
|
+
const path15 = args[0];
|
|
254952
255012
|
if (args.length === 1) {
|
|
254953
|
-
return original.apply(this, [
|
|
255013
|
+
return original.apply(this, [path15]);
|
|
254954
255014
|
}
|
|
254955
255015
|
const handlers2 = args.slice(1);
|
|
254956
255016
|
return original.apply(this, [
|
|
254957
|
-
|
|
255017
|
+
path15,
|
|
254958
255018
|
...handlers2.map((handler) => instrumentation._wrapHandler(handler))
|
|
254959
255019
|
]);
|
|
254960
255020
|
}
|
|
@@ -254988,13 +255048,13 @@ var HonoInstrumentation = class extends import_instrumentation29.Instrumentation
|
|
|
254988
255048
|
return function(original) {
|
|
254989
255049
|
return function wrappedHandler(...args) {
|
|
254990
255050
|
if (typeof args[0] === "string") {
|
|
254991
|
-
const
|
|
255051
|
+
const path15 = args[0];
|
|
254992
255052
|
if (args.length === 1) {
|
|
254993
|
-
return original.apply(this, [
|
|
255053
|
+
return original.apply(this, [path15]);
|
|
254994
255054
|
}
|
|
254995
255055
|
const handlers2 = args.slice(1);
|
|
254996
255056
|
return original.apply(this, [
|
|
254997
|
-
|
|
255057
|
+
path15,
|
|
254998
255058
|
...handlers2.map((handler) => instrumentation._wrapHandler(handler))
|
|
254999
255059
|
]);
|
|
255000
255060
|
}
|
|
@@ -255014,8 +255074,8 @@ var HonoInstrumentation = class extends import_instrumentation29.Instrumentation
|
|
|
255014
255074
|
if (!instrumentation.isEnabled()) {
|
|
255015
255075
|
return handler.apply(this, [c, next]);
|
|
255016
255076
|
}
|
|
255017
|
-
const
|
|
255018
|
-
const span = instrumentation.tracer.startSpan(
|
|
255077
|
+
const path15 = c.req.path;
|
|
255078
|
+
const span = instrumentation.tracer.startSpan(path15);
|
|
255019
255079
|
return context.with(trace.setSpan(context.active(), span), () => {
|
|
255020
255080
|
return instrumentation._safeExecute(
|
|
255021
255081
|
() => {
|
|
@@ -255025,7 +255085,7 @@ var HonoInstrumentation = class extends import_instrumentation29.Instrumentation
|
|
|
255025
255085
|
const type = instrumentation._determineHandlerType(result2);
|
|
255026
255086
|
span.setAttributes({
|
|
255027
255087
|
[AttributeNames5.HONO_TYPE]: type,
|
|
255028
|
-
[AttributeNames5.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ?
|
|
255088
|
+
[AttributeNames5.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ? path15 : handler.name || "anonymous"
|
|
255029
255089
|
});
|
|
255030
255090
|
instrumentation.getConfig().responseHook?.(span);
|
|
255031
255091
|
return result2;
|
|
@@ -255034,7 +255094,7 @@ var HonoInstrumentation = class extends import_instrumentation29.Instrumentation
|
|
|
255034
255094
|
const type = instrumentation._determineHandlerType(result);
|
|
255035
255095
|
span.setAttributes({
|
|
255036
255096
|
[AttributeNames5.HONO_TYPE]: type,
|
|
255037
|
-
[AttributeNames5.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ?
|
|
255097
|
+
[AttributeNames5.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ? path15 : handler.name || "anonymous"
|
|
255038
255098
|
});
|
|
255039
255099
|
instrumentation.getConfig().responseHook?.(span);
|
|
255040
255100
|
return result;
|
|
@@ -255268,11 +255328,11 @@ var KoaInstrumentation = class extends import_instrumentation31.InstrumentationB
|
|
|
255268
255328
|
const router = dispatchLayer.router;
|
|
255269
255329
|
const routesStack = router?.stack ?? [];
|
|
255270
255330
|
for (const pathLayer of routesStack) {
|
|
255271
|
-
const
|
|
255331
|
+
const path15 = pathLayer.path;
|
|
255272
255332
|
const pathStack = pathLayer.stack;
|
|
255273
255333
|
for (let j = 0; j < pathStack.length; j++) {
|
|
255274
255334
|
const routedMiddleware = pathStack[j];
|
|
255275
|
-
pathStack[j] = this._patchLayer(routedMiddleware, true,
|
|
255335
|
+
pathStack[j] = this._patchLayer(routedMiddleware, true, path15);
|
|
255276
255336
|
}
|
|
255277
255337
|
}
|
|
255278
255338
|
return dispatchLayer;
|
|
@@ -258966,8 +259026,8 @@ function wrapFieldResolver2(getConfig3, fieldResolver, isDefaultResolver = false
|
|
|
258966
259026
|
if (!contextValue[GRAPHQL_DATA_SYMBOL]) {
|
|
258967
259027
|
return fieldResolver.call(this, source, args, contextValue, info2);
|
|
258968
259028
|
}
|
|
258969
|
-
const
|
|
258970
|
-
const { field, spanAdded } = createFieldIfNotExists2(contextValue, info2,
|
|
259029
|
+
const path15 = pathToArray2(info2.path);
|
|
259030
|
+
const { field, spanAdded } = createFieldIfNotExists2(contextValue, info2, path15);
|
|
258971
259031
|
const span = field.span;
|
|
258972
259032
|
return withActiveSpan(span, () => {
|
|
258973
259033
|
try {
|
|
@@ -259004,47 +259064,47 @@ function endResolveSpan(span, shouldEndSpan, error3) {
|
|
|
259004
259064
|
}
|
|
259005
259065
|
span.end();
|
|
259006
259066
|
}
|
|
259007
|
-
function createFieldIfNotExists2(contextValue, info2,
|
|
259008
|
-
const existing = getField2(contextValue,
|
|
259067
|
+
function createFieldIfNotExists2(contextValue, info2, path15) {
|
|
259068
|
+
const existing = getField2(contextValue, path15);
|
|
259009
259069
|
if (existing) {
|
|
259010
259070
|
return { field: existing, spanAdded: false };
|
|
259011
259071
|
}
|
|
259012
|
-
const field = { span: createResolverSpan2(info2,
|
|
259013
|
-
addField2(contextValue,
|
|
259072
|
+
const field = { span: createResolverSpan2(info2, path15, getParentFieldSpan2(contextValue, path15)) };
|
|
259073
|
+
addField2(contextValue, path15, field);
|
|
259014
259074
|
return { field, spanAdded: true };
|
|
259015
259075
|
}
|
|
259016
|
-
function createResolverSpan2(info2,
|
|
259076
|
+
function createResolverSpan2(info2, path15, parentSpan) {
|
|
259017
259077
|
const attributes = {
|
|
259018
259078
|
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN19,
|
|
259019
259079
|
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: i_,
|
|
259020
259080
|
[GRAPHQL_FIELD_NAME2]: info2.fieldName,
|
|
259021
|
-
[GRAPHQL_FIELD_PATH2]:
|
|
259081
|
+
[GRAPHQL_FIELD_PATH2]: path15.join("."),
|
|
259022
259082
|
[GRAPHQL_FIELD_TYPE2]: info2.returnType.toString(),
|
|
259023
259083
|
[GRAPHQL_PARENT_NAME2]: info2.parentType.name
|
|
259024
259084
|
};
|
|
259025
|
-
return startInactiveSpan({ name: `${SPAN_NAME_RESOLVE2} ${
|
|
259085
|
+
return startInactiveSpan({ name: `${SPAN_NAME_RESOLVE2} ${path15.join(".")}`, attributes, parentSpan });
|
|
259026
259086
|
}
|
|
259027
|
-
function addField2(contextValue,
|
|
259087
|
+
function addField2(contextValue, path15, field) {
|
|
259028
259088
|
const data = contextValue[GRAPHQL_DATA_SYMBOL];
|
|
259029
259089
|
if (data) {
|
|
259030
|
-
data.fields[
|
|
259090
|
+
data.fields[path15.join(".")] = field;
|
|
259031
259091
|
}
|
|
259032
259092
|
}
|
|
259033
|
-
function getField2(contextValue,
|
|
259034
|
-
return contextValue[GRAPHQL_DATA_SYMBOL]?.fields[
|
|
259093
|
+
function getField2(contextValue, path15) {
|
|
259094
|
+
return contextValue[GRAPHQL_DATA_SYMBOL]?.fields[path15.join(".")];
|
|
259035
259095
|
}
|
|
259036
|
-
function getParentFieldSpan2(contextValue,
|
|
259037
|
-
for (let i =
|
|
259038
|
-
const field = getField2(contextValue,
|
|
259096
|
+
function getParentFieldSpan2(contextValue, path15) {
|
|
259097
|
+
for (let i = path15.length - 1; i > 0; i--) {
|
|
259098
|
+
const field = getField2(contextValue, path15.slice(0, i));
|
|
259039
259099
|
if (field) {
|
|
259040
259100
|
return field.span;
|
|
259041
259101
|
}
|
|
259042
259102
|
}
|
|
259043
259103
|
return contextValue[GRAPHQL_DATA_SYMBOL]?.span;
|
|
259044
259104
|
}
|
|
259045
|
-
function pathToArray2(
|
|
259105
|
+
function pathToArray2(path15) {
|
|
259046
259106
|
const flattened = [];
|
|
259047
|
-
let curr =
|
|
259107
|
+
let curr = path15;
|
|
259048
259108
|
while (curr) {
|
|
259049
259109
|
flattened.push(String(curr.key));
|
|
259050
259110
|
curr = curr.prev;
|
|
@@ -259530,10 +259590,10 @@ function patchRouterDispatch(dispatchLayer, ignoreLayersType) {
|
|
|
259530
259590
|
const router = dispatchLayer.router;
|
|
259531
259591
|
const routesStack = router?.stack ?? [];
|
|
259532
259592
|
for (const pathLayer of routesStack) {
|
|
259533
|
-
const
|
|
259593
|
+
const path15 = pathLayer.path;
|
|
259534
259594
|
const pathStack = pathLayer.stack;
|
|
259535
259595
|
pathStack.forEach((routedMiddleware, j) => {
|
|
259536
|
-
pathStack[j] = patchLayer2(routedMiddleware, true, ignoreLayersType,
|
|
259596
|
+
pathStack[j] = patchLayer2(routedMiddleware, true, ignoreLayersType, path15);
|
|
259537
259597
|
});
|
|
259538
259598
|
}
|
|
259539
259599
|
return dispatchLayer;
|
|
@@ -261633,8 +261693,8 @@ import * as diagnosticsChannel34 from "node:diagnostics_channel";
|
|
|
261633
261693
|
|
|
261634
261694
|
// ../../node_modules/.pnpm/@sentry+server-utils@10.70.0/node_modules/@sentry/server-utils/build/esm/integrations/tracing-channel/express/route.js
|
|
261635
261695
|
var layerRegisteredPaths = /* @__PURE__ */ new WeakMap();
|
|
261636
|
-
function setLayerRegisteredPath(layer,
|
|
261637
|
-
layerRegisteredPaths.set(layer,
|
|
261696
|
+
function setLayerRegisteredPath(layer, path15) {
|
|
261697
|
+
layerRegisteredPaths.set(layer, path15);
|
|
261638
261698
|
}
|
|
261639
261699
|
function getLayerRegisteredPath(layer) {
|
|
261640
261700
|
return layerRegisteredPaths.get(layer);
|
|
@@ -261648,8 +261708,8 @@ function getStore(req) {
|
|
|
261648
261708
|
}
|
|
261649
261709
|
return store;
|
|
261650
261710
|
}
|
|
261651
|
-
function pushLayerPath(req,
|
|
261652
|
-
getStore(req).push(
|
|
261711
|
+
function pushLayerPath(req, path15) {
|
|
261712
|
+
getStore(req).push(path15);
|
|
261653
261713
|
}
|
|
261654
261714
|
function popLayerPath(req) {
|
|
261655
261715
|
getStore(req).pop();
|
|
@@ -261667,11 +261727,11 @@ function extractLayerPathSegment2(segment) {
|
|
|
261667
261727
|
function getConstructedRoute2(req) {
|
|
261668
261728
|
const layersStore = getStore(req);
|
|
261669
261729
|
let constructedRoute = "";
|
|
261670
|
-
for (const
|
|
261671
|
-
if (
|
|
261730
|
+
for (const path15 of layersStore) {
|
|
261731
|
+
if (path15 === "/" || path15 === "/*") {
|
|
261672
261732
|
continue;
|
|
261673
261733
|
}
|
|
261674
|
-
constructedRoute += !constructedRoute || constructedRoute.endsWith("/") ?
|
|
261734
|
+
constructedRoute += !constructedRoute || constructedRoute.endsWith("/") ? path15 : `/${path15}`;
|
|
261675
261735
|
}
|
|
261676
261736
|
return constructedRoute.replace(/\/{2,}/g, "/");
|
|
261677
261737
|
}
|
|
@@ -261681,7 +261741,7 @@ function getActualMatchedRoute2(req, constructedRoute) {
|
|
|
261681
261741
|
return void 0;
|
|
261682
261742
|
}
|
|
261683
261743
|
const originalUrl = typeof req.originalUrl === "string" ? req.originalUrl : "";
|
|
261684
|
-
if (layersStore.every((
|
|
261744
|
+
if (layersStore.every((path15) => path15 === "/")) {
|
|
261685
261745
|
return originalUrl === "/" ? "/" : void 0;
|
|
261686
261746
|
}
|
|
261687
261747
|
if (constructedRoute === "*") {
|
|
@@ -264970,13 +265030,13 @@ function recordingUrlKey(rawUrl) {
|
|
|
264970
265030
|
|
|
264971
265031
|
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/deferred-reload.js
|
|
264972
265032
|
import fs5 from "node:fs";
|
|
264973
|
-
import
|
|
265033
|
+
import path5 from "node:path";
|
|
264974
265034
|
var DEFAULT_PENDING_RELOAD_FILE = "pending-extension-reload.json";
|
|
264975
265035
|
var DEFAULT_PENDING_RELOAD_TTL_MS = 30 * 6e4;
|
|
264976
265036
|
var DEFAULT_DELIVER_GRACE_MS = 1e4;
|
|
264977
265037
|
var WS_OPEN = 1;
|
|
264978
265038
|
function pendingReloadFile(home, fileName = DEFAULT_PENDING_RELOAD_FILE) {
|
|
264979
|
-
return
|
|
265039
|
+
return path5.join(home, fileName);
|
|
264980
265040
|
}
|
|
264981
265041
|
function queuePendingReload(home, state, opts = {}) {
|
|
264982
265042
|
state.pendingExtensionReload = true;
|
|
@@ -266041,13 +266101,13 @@ RecordingRetentionService = RecordingRetentionService_1 = __decorate100([
|
|
|
266041
266101
|
var import_common65 = __toESM(require_common(), 1);
|
|
266042
266102
|
var import_typeorm96 = __toESM(require_typeorm2(), 1);
|
|
266043
266103
|
import * as fs8 from "fs";
|
|
266044
|
-
import * as
|
|
266104
|
+
import * as path8 from "path";
|
|
266045
266105
|
|
|
266046
266106
|
// dist/.server-tsc/extraction/harness-overlay.service.js
|
|
266047
266107
|
var import_common59 = __toESM(require_common(), 1);
|
|
266048
266108
|
var import_typeorm88 = __toESM(require_typeorm2(), 1);
|
|
266049
266109
|
import * as fs6 from "fs";
|
|
266050
|
-
import * as
|
|
266110
|
+
import * as path6 from "path";
|
|
266051
266111
|
|
|
266052
266112
|
// dist/.server-tsc/site/site.service.js
|
|
266053
266113
|
var import_common58 = __toESM(require_common(), 1);
|
|
@@ -266380,7 +266440,7 @@ var HarnessOverlayService = HarnessOverlayService_1 = class HarnessOverlayServic
|
|
|
266380
266440
|
}
|
|
266381
266441
|
}
|
|
266382
266442
|
async sync(harnessPath, dryRun = false) {
|
|
266383
|
-
const adaptersDir =
|
|
266443
|
+
const adaptersDir = path6.join(harnessPath, "adapters");
|
|
266384
266444
|
if (!fs6.existsSync(adaptersDir)) {
|
|
266385
266445
|
throw new Error(`adapters \u76EE\u5F55\u4E0D\u5B58\u5728: ${adaptersDir}(harnessPath \u6307\u5411 hunter-mate-harness \u4ED3?)`);
|
|
266386
266446
|
}
|
|
@@ -266391,7 +266451,7 @@ var HarnessOverlayService = HarnessOverlayService_1 = class HarnessOverlayServic
|
|
|
266391
266451
|
sites: { added: 0, updated: 0, unchanged: 0 },
|
|
266392
266452
|
errors: []
|
|
266393
266453
|
};
|
|
266394
|
-
const indexFile =
|
|
266454
|
+
const indexFile = path6.join(adaptersDir, "index.yaml");
|
|
266395
266455
|
if (!fs6.existsSync(indexFile)) {
|
|
266396
266456
|
summary.errors.push("index.yaml \u4E0D\u5B58\u5728: " + indexFile);
|
|
266397
266457
|
return summary;
|
|
@@ -266407,13 +266467,13 @@ var HarnessOverlayService = HarnessOverlayService_1 = class HarnessOverlayServic
|
|
|
266407
266467
|
throw new Error(`${ref}: \u7F3A\u5C11 platform/adapter \u5B57\u6BB5`);
|
|
266408
266468
|
new RegExp(t.hostPattern || "");
|
|
266409
266469
|
new RegExp(t.pathPattern || "");
|
|
266410
|
-
const adapterFile =
|
|
266470
|
+
const adapterFile = path6.join(adaptersDir, t.adapter);
|
|
266411
266471
|
if (!fs6.existsSync(adapterFile))
|
|
266412
266472
|
throw new Error(`${ref}: adapter \u6587\u4EF6\u4E0D\u5B58\u5728 ${t.adapter}`);
|
|
266413
266473
|
const doc = validateAdapterDoc(parseYamlSubset(fs6.readFileSync(adapterFile, "utf-8"), t.adapter), t.adapter);
|
|
266414
266474
|
if (t.pageClass)
|
|
266415
266475
|
doc.rulePayload.pageClass = t.pageClass;
|
|
266416
|
-
const externalId = t.adapter.split(
|
|
266476
|
+
const externalId = t.adapter.split(path6.sep).join("/").replace(/\\/g, "/");
|
|
266417
266477
|
seenExternalIds.add(externalId);
|
|
266418
266478
|
pending.push({ externalId, doc, trigger: t });
|
|
266419
266479
|
} catch (e) {
|
|
@@ -266502,7 +266562,7 @@ var si2 = __toESM(require_lib11(), 1);
|
|
|
266502
266562
|
import { promises as fsp } from "fs";
|
|
266503
266563
|
import * as fs7 from "fs";
|
|
266504
266564
|
import * as os4 from "os";
|
|
266505
|
-
import * as
|
|
266565
|
+
import * as path7 from "path";
|
|
266506
266566
|
var __decorate103 = function(decorators, target, key, desc) {
|
|
266507
266567
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
266508
266568
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -266538,7 +266598,7 @@ async function sizeOfDir(dir) {
|
|
|
266538
266598
|
return 0;
|
|
266539
266599
|
}
|
|
266540
266600
|
await pool(entries, WALK_CONCURRENCY, async (ent) => {
|
|
266541
|
-
const full =
|
|
266601
|
+
const full = path7.join(dir, ent.name);
|
|
266542
266602
|
try {
|
|
266543
266603
|
if (ent.isDirectory()) {
|
|
266544
266604
|
const sub = await sizeOfDir(full);
|
|
@@ -266561,7 +266621,7 @@ async function sizeWithBreakdown(dir, limit = TOP_ENTRIES_LIMIT) {
|
|
|
266561
266621
|
}
|
|
266562
266622
|
const sized = [];
|
|
266563
266623
|
await pool(entries, WALK_CONCURRENCY, async (ent) => {
|
|
266564
|
-
const full =
|
|
266624
|
+
const full = path7.join(dir, ent.name);
|
|
266565
266625
|
try {
|
|
266566
266626
|
if (ent.isDirectory()) {
|
|
266567
266627
|
const sub = await sizeOfDir(full);
|
|
@@ -266586,33 +266646,33 @@ function findInstallRoot(startDir, maxUp = 6) {
|
|
|
266586
266646
|
let dir = startDir;
|
|
266587
266647
|
for (let i = 0; i < maxUp; i++) {
|
|
266588
266648
|
try {
|
|
266589
|
-
const pkg =
|
|
266649
|
+
const pkg = path7.join(dir, "package.json");
|
|
266590
266650
|
if (fs7.existsSync(pkg)) {
|
|
266591
266651
|
const name = JSON.parse(fs7.readFileSync(pkg, "utf-8"))?.name;
|
|
266592
266652
|
if (name === "hunter-mate")
|
|
266593
266653
|
return dir;
|
|
266594
266654
|
}
|
|
266595
|
-
if (fs7.existsSync(
|
|
266655
|
+
if (fs7.existsSync(path7.join(dir, "pnpm-workspace.yaml")))
|
|
266596
266656
|
return dir;
|
|
266597
266657
|
} catch {
|
|
266598
266658
|
}
|
|
266599
|
-
const parent =
|
|
266659
|
+
const parent = path7.dirname(dir);
|
|
266600
266660
|
if (parent === dir)
|
|
266601
266661
|
break;
|
|
266602
266662
|
dir = parent;
|
|
266603
266663
|
}
|
|
266604
|
-
return
|
|
266664
|
+
return path7.resolve(startDir, "..", "..", "..");
|
|
266605
266665
|
}
|
|
266606
266666
|
function resolveHarnessPath() {
|
|
266607
266667
|
const fromEnv = (process.env.HUNTER_MATE_HARNESS_PATH || "").trim();
|
|
266608
266668
|
if (fromEnv)
|
|
266609
|
-
return
|
|
266669
|
+
return path7.resolve(fromEnv);
|
|
266610
266670
|
try {
|
|
266611
|
-
const cfgFile =
|
|
266671
|
+
const cfgFile = path7.join(process.env.HUNTER_MATE_HOME || process.env.HOME || process.env.USERPROFILE || ".", ".hunter-mate", "config.json");
|
|
266612
266672
|
if (fs7.existsSync(cfgFile)) {
|
|
266613
266673
|
const fromCfg = String(JSON.parse(fs7.readFileSync(cfgFile, "utf-8"))?.harnessPath ?? "").trim();
|
|
266614
266674
|
if (fromCfg)
|
|
266615
|
-
return
|
|
266675
|
+
return path7.resolve(fromCfg);
|
|
266616
266676
|
}
|
|
266617
266677
|
} catch {
|
|
266618
266678
|
}
|
|
@@ -266629,14 +266689,14 @@ var ResourceCollector = ResourceCollector_1 = class ResourceCollector2 {
|
|
|
266629
266689
|
const specs = [];
|
|
266630
266690
|
const installRoot = this.deps.installRoot ?? findInstallRoot(__dirname);
|
|
266631
266691
|
specs.push({ key: "hunter-mate-install", path: installRoot, group: "hm" });
|
|
266632
|
-
const dataDir3 = this.deps.dataDir ?? process.env.HM_DATA_DIR ??
|
|
266633
|
-
specs.push({ key: "hunter-mate-data", path:
|
|
266692
|
+
const dataDir3 = this.deps.dataDir ?? process.env.HM_DATA_DIR ?? path7.join(process.env.HUNTER_MATE_HOME || process.env.HOME || process.env.USERPROFILE || ".", ".hunter-mate");
|
|
266693
|
+
specs.push({ key: "hunter-mate-data", path: path7.resolve(dataDir3), group: "hm" });
|
|
266634
266694
|
const harness = resolveHarnessPath();
|
|
266635
266695
|
if (harness)
|
|
266636
266696
|
specs.push({ key: "hunter-mate-harness", path: harness, group: "hmh" });
|
|
266637
266697
|
const extra = this.deps.extraPaths ?? parseExtraPathsEnv();
|
|
266638
266698
|
for (const p of extra)
|
|
266639
|
-
specs.push({ key: `extra-${
|
|
266699
|
+
specs.push({ key: `extra-${path7.basename(p) || "path"}`, path: path7.resolve(p), group: "extra" });
|
|
266640
266700
|
const seen = /* @__PURE__ */ new Set();
|
|
266641
266701
|
return specs.filter((s) => {
|
|
266642
266702
|
if (!s.path || seen.has(s.path))
|
|
@@ -266725,7 +266785,7 @@ ResourceCollector = ResourceCollector_1 = __decorate103([
|
|
|
266725
266785
|
__metadata88("design:paramtypes", [Object])
|
|
266726
266786
|
], ResourceCollector);
|
|
266727
266787
|
function parseExtraPathsEnv() {
|
|
266728
|
-
return (process.env.HM_RESOURCE_EXTRA_PATHS || "").split(
|
|
266788
|
+
return (process.env.HM_RESOURCE_EXTRA_PATHS || "").split(path7.delimiter).map((s) => s.trim()).filter(Boolean);
|
|
266729
266789
|
}
|
|
266730
266790
|
async function defaultListProcesses() {
|
|
266731
266791
|
const res = await si2.processes();
|
|
@@ -292887,7 +292947,7 @@ var RecordingRunnerService = RecordingRunnerService_1 = class RecordingRunnerSer
|
|
|
292887
292947
|
if (!harnessPath) {
|
|
292888
292948
|
throw new import_common65.BadRequestException("harnessPath \u672A\u914D\u7F6E(env HUNTER_MATE_HARNESS_PATH \u6216 ~/.hunter-mate/config.json harnessPath)");
|
|
292889
292949
|
}
|
|
292890
|
-
const adapterPath =
|
|
292950
|
+
const adapterPath = path8.join(harnessPath, "adapters", adapterFile);
|
|
292891
292951
|
if (!fs8.existsSync(adapterPath)) {
|
|
292892
292952
|
throw new import_common65.BadRequestException(`adapter \u6587\u4EF6\u4E0D\u5B58\u5728: ${adapterFile}(harnessPath=${harnessPath})`);
|
|
292893
292953
|
}
|
|
@@ -293270,7 +293330,7 @@ var import_websockets = __toESM(require_websockets(), 1);
|
|
|
293270
293330
|
var import_ws2 = __toESM(require_ws(), 1);
|
|
293271
293331
|
import * as fs9 from "fs";
|
|
293272
293332
|
import * as os5 from "os";
|
|
293273
|
-
import * as
|
|
293333
|
+
import * as path9 from "path";
|
|
293274
293334
|
var __decorate110 = function(decorators, target, key, desc) {
|
|
293275
293335
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
293276
293336
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -293282,12 +293342,12 @@ var __metadata94 = function(k2, v) {
|
|
|
293282
293342
|
};
|
|
293283
293343
|
var RecordingGateway_1;
|
|
293284
293344
|
function dataDir2() {
|
|
293285
|
-
return process.env.HM_DATA_DIR ||
|
|
293345
|
+
return process.env.HM_DATA_DIR || path9.join(os5.homedir(), ".hunter-mate");
|
|
293286
293346
|
}
|
|
293287
293347
|
function connLog(event, extra = {}) {
|
|
293288
293348
|
const line = JSON.stringify({ ts: (/* @__PURE__ */ new Date()).toISOString(), event, ...extra }) + "\n";
|
|
293289
293349
|
try {
|
|
293290
|
-
fs9.appendFileSync(
|
|
293350
|
+
fs9.appendFileSync(path9.join(dataDir2(), "connections.log"), line);
|
|
293291
293351
|
} catch {
|
|
293292
293352
|
}
|
|
293293
293353
|
}
|
|
@@ -293438,7 +293498,7 @@ var import_typeorm102 = __toESM(require_typeorm2(), 1);
|
|
|
293438
293498
|
var import_common68 = __toESM(require_common(), 1);
|
|
293439
293499
|
var import_typeorm98 = __toESM(require_typeorm2(), 1);
|
|
293440
293500
|
import * as fs10 from "fs";
|
|
293441
|
-
import * as
|
|
293501
|
+
import * as path10 from "path";
|
|
293442
293502
|
var __decorate111 = function(decorators, target, key, desc) {
|
|
293443
293503
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
293444
293504
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -293598,15 +293658,15 @@ var GovernanceService = GovernanceService_1 = class GovernanceService2 {
|
|
|
293598
293658
|
resolveHarnessPath(harnessPath) {
|
|
293599
293659
|
const p = (harnessPath ?? process.env.HUNTER_MATE_HARNESS_PATH ?? "").trim();
|
|
293600
293660
|
if (p)
|
|
293601
|
-
return
|
|
293661
|
+
return path10.resolve(p);
|
|
293602
293662
|
try {
|
|
293603
293663
|
const home = process.env.HUNTER_MATE_HOME || process.env.HOME || process.env.USERPROFILE || ".";
|
|
293604
|
-
const cfgFile =
|
|
293664
|
+
const cfgFile = path10.join(home, ".hunter-mate", "config.json");
|
|
293605
293665
|
if (fs10.existsSync(cfgFile)) {
|
|
293606
293666
|
const cfg = JSON.parse(fs10.readFileSync(cfgFile, "utf-8"));
|
|
293607
293667
|
const fromCfg = String(cfg?.harnessPath ?? "").trim();
|
|
293608
293668
|
if (fromCfg)
|
|
293609
|
-
return
|
|
293669
|
+
return path10.resolve(fromCfg);
|
|
293610
293670
|
}
|
|
293611
293671
|
} catch {
|
|
293612
293672
|
}
|
|
@@ -293624,7 +293684,7 @@ var GovernanceService = GovernanceService_1 = class GovernanceService2 {
|
|
|
293624
293684
|
const riskProfileRef = this.resolveRiskProfileRef(site, root);
|
|
293625
293685
|
if (!riskProfileRef)
|
|
293626
293686
|
return null;
|
|
293627
|
-
const profileFile =
|
|
293687
|
+
const profileFile = path10.join(root, "adapters", riskProfileRef);
|
|
293628
293688
|
if (!fs10.existsSync(profileFile))
|
|
293629
293689
|
return null;
|
|
293630
293690
|
const doc = parseYamlSubset(fs10.readFileSync(profileFile, "utf-8"), riskProfileRef);
|
|
@@ -293651,7 +293711,7 @@ var GovernanceService = GovernanceService_1 = class GovernanceService2 {
|
|
|
293651
293711
|
try {
|
|
293652
293712
|
const riskProfileRef = this.resolveRiskProfileRef(site, root);
|
|
293653
293713
|
if (riskProfileRef) {
|
|
293654
|
-
const derivationFile =
|
|
293714
|
+
const derivationFile = path10.join(root, "adapters", path10.dirname(riskProfileRef), "action-derivation.yaml");
|
|
293655
293715
|
if (fs10.existsSync(derivationFile)) {
|
|
293656
293716
|
const doc = parseYamlSubset(fs10.readFileSync(derivationFile, "utf-8"), "action-derivation.yaml");
|
|
293657
293717
|
const rules = Array.isArray(doc?.url_actions) ? doc.url_actions : [];
|
|
@@ -293678,7 +293738,7 @@ var GovernanceService = GovernanceService_1 = class GovernanceService2 {
|
|
|
293678
293738
|
}
|
|
293679
293739
|
if (!ref)
|
|
293680
293740
|
return { code: "risk_profile_missing" };
|
|
293681
|
-
const profileFile =
|
|
293741
|
+
const profileFile = path10.join(root, "adapters", ref);
|
|
293682
293742
|
if (!fs10.existsSync(profileFile))
|
|
293683
293743
|
return { code: "risk_profile_missing", detail: profileFile };
|
|
293684
293744
|
try {
|
|
@@ -293698,8 +293758,8 @@ var GovernanceService = GovernanceService_1 = class GovernanceService2 {
|
|
|
293698
293758
|
return !!row;
|
|
293699
293759
|
}
|
|
293700
293760
|
resolveRiskProfileRef(site, root) {
|
|
293701
|
-
const adaptersDir =
|
|
293702
|
-
const indexFile =
|
|
293761
|
+
const adaptersDir = path10.join(root, "adapters");
|
|
293762
|
+
const indexFile = path10.join(adaptersDir, "index.yaml");
|
|
293703
293763
|
if (!fs10.existsSync(indexFile))
|
|
293704
293764
|
return null;
|
|
293705
293765
|
const index = parseYamlSubset(fs10.readFileSync(indexFile, "utf-8"), "index.yaml");
|
|
@@ -293764,7 +293824,7 @@ var GovernanceService = GovernanceService_1 = class GovernanceService2 {
|
|
|
293764
293824
|
const ref = this.resolveRiskProfileRef(site, root);
|
|
293765
293825
|
if (!ref)
|
|
293766
293826
|
throw new Error(`risk_profile_missing:${site} \u5728 adapters/index.yaml \u65E0\u5339\u914D trigger`);
|
|
293767
|
-
const profileFile =
|
|
293827
|
+
const profileFile = path10.join(root, "adapters", ref);
|
|
293768
293828
|
if (!fs10.existsSync(profileFile))
|
|
293769
293829
|
throw new Error(`risk_profile_missing:${profileFile}`);
|
|
293770
293830
|
const original = fs10.readFileSync(profileFile, "utf-8");
|
|
@@ -294478,7 +294538,7 @@ ExtensionControlController = ExtensionControlController_1 = __decorate114([
|
|
|
294478
294538
|
// dist/.server-tsc/extension/extension-version.controller.js
|
|
294479
294539
|
var import_common72 = __toESM(require_common(), 1);
|
|
294480
294540
|
import * as fs11 from "node:fs";
|
|
294481
|
-
import * as
|
|
294541
|
+
import * as path11 from "node:path";
|
|
294482
294542
|
var __decorate115 = function(decorators, target, key, desc) {
|
|
294483
294543
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
294484
294544
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -294490,7 +294550,7 @@ var __metadata99 = function(k2, v) {
|
|
|
294490
294550
|
};
|
|
294491
294551
|
var ExtensionVersionController = class ExtensionVersionController2 {
|
|
294492
294552
|
version() {
|
|
294493
|
-
const manifestPath =
|
|
294553
|
+
const manifestPath = path11.resolve(__dirname, "..", "..", "..", "extension", "dist", "manifest.json");
|
|
294494
294554
|
let builtAt = null;
|
|
294495
294555
|
try {
|
|
294496
294556
|
const stat = fs11.statSync(manifestPath);
|
|
@@ -295079,7 +295139,7 @@ ExtractionRuleController = __decorate126([
|
|
|
295079
295139
|
var import_common85 = __toESM(require_common(), 1);
|
|
295080
295140
|
var import_typeorm114 = __toESM(require_typeorm2(), 1);
|
|
295081
295141
|
var import_shared2 = __toESM(require_dist10(), 1);
|
|
295082
|
-
import * as
|
|
295142
|
+
import * as path12 from "path";
|
|
295083
295143
|
|
|
295084
295144
|
// dist/.server-tsc/extraction/adapter.service.js
|
|
295085
295145
|
var import_common84 = __toESM(require_common(), 1);
|
|
@@ -295572,7 +295632,7 @@ var ExtractionEntityController = class ExtractionEntityController2 {
|
|
|
295572
295632
|
if (!harnessPath || !harnessPath.trim()) {
|
|
295573
295633
|
throw new import_common85.BadRequestException("harnessPath required(body.harnessPath \u6216 env HUNTER_MATE_HARNESS_PATH)");
|
|
295574
295634
|
}
|
|
295575
|
-
const result = await this.harnessOverlay.sync(
|
|
295635
|
+
const result = await this.harnessOverlay.sync(path12.resolve(harnessPath), !!body?.dryRun);
|
|
295576
295636
|
this.eventBus.emit(GOVERNANCE_RESCAN_REQUESTED, { reason: "adapters_sync" });
|
|
295577
295637
|
return result;
|
|
295578
295638
|
}
|
|
@@ -296227,7 +296287,7 @@ var import_typeorm116 = __toESM(require_typeorm2(), 1);
|
|
|
296227
296287
|
var import_common86 = __toESM(require_common(), 1);
|
|
296228
296288
|
import { promises as fs12 } from "fs";
|
|
296229
296289
|
import { homedir as homedir2, hostname as hostname4, userInfo as userInfo3 } from "os";
|
|
296230
|
-
import { join as
|
|
296290
|
+
import { join as join13 } from "path";
|
|
296231
296291
|
|
|
296232
296292
|
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.2_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/usagesink.js
|
|
296233
296293
|
function createUsageSink(opts) {
|
|
@@ -296411,7 +296471,7 @@ var __decorate129 = function(decorators, target, key, desc) {
|
|
|
296411
296471
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
296412
296472
|
};
|
|
296413
296473
|
var DevopsSinkInit_1;
|
|
296414
|
-
var INSTALL_FILE =
|
|
296474
|
+
var INSTALL_FILE = join13(homedir2(), ".config", "dev-ops", "hunter-mate.json");
|
|
296415
296475
|
var DevopsSinkInit = DevopsSinkInit_1 = class DevopsSinkInit2 {
|
|
296416
296476
|
logger = new import_common86.Logger(DevopsSinkInit_1.name);
|
|
296417
296477
|
usage = null;
|
|
@@ -296476,7 +296536,7 @@ var DevopsSinkInit = DevopsSinkInit_1 = class DevopsSinkInit2 {
|
|
|
296476
296536
|
const data = await res.json();
|
|
296477
296537
|
if (!data.install_id)
|
|
296478
296538
|
return null;
|
|
296479
|
-
await fs12.mkdir(
|
|
296539
|
+
await fs12.mkdir(join13(homedir2(), ".config", "dev-ops"), { recursive: true });
|
|
296480
296540
|
await fs12.writeFile(INSTALL_FILE, JSON.stringify({ install_id: data.install_id, product: "hunter-mate", registered_at: (/* @__PURE__ */ new Date()).toISOString() }, null, 2), { mode: 384 });
|
|
296481
296541
|
return data.install_id;
|
|
296482
296542
|
} catch (err) {
|
|
@@ -297031,34 +297091,34 @@ AuthMiddleware = __decorate139([
|
|
|
297031
297091
|
// dist/.server-tsc/shared-page.middleware.js
|
|
297032
297092
|
var import_common97 = __toESM(require_common(), 1);
|
|
297033
297093
|
import { existsSync as existsSync7 } from "fs";
|
|
297034
|
-
import { join as
|
|
297094
|
+
import { join as join14 } from "path";
|
|
297035
297095
|
var __decorate140 = function(decorators, target, key, desc) {
|
|
297036
297096
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297037
297097
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297038
297098
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297039
297099
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297040
297100
|
};
|
|
297041
|
-
var WEB_DIST =
|
|
297101
|
+
var WEB_DIST = join14(__dirname, "..", "..", "web", "dist");
|
|
297042
297102
|
var SharedPageMiddleware = class SharedPageMiddleware2 {
|
|
297043
297103
|
logger = new import_common97.Logger("SharedPageMiddleware");
|
|
297044
|
-
resolveHtml(
|
|
297045
|
-
const rel = /^\/shared\/[^/]+\/?$/.test(
|
|
297104
|
+
resolveHtml(path15) {
|
|
297105
|
+
const rel = /^\/shared\/[^/]+\/?$/.test(path15) ? join14("shared", "placeholder.html") : /^\/team\/insights\/?$/.test(path15) ? join14("team", "insights.html") : null;
|
|
297046
297106
|
if (!rel)
|
|
297047
297107
|
return null;
|
|
297048
|
-
const abs =
|
|
297108
|
+
const abs = join14(WEB_DIST, rel);
|
|
297049
297109
|
return existsSync7(abs) ? abs : null;
|
|
297050
297110
|
}
|
|
297051
297111
|
use(req, res, next) {
|
|
297052
297112
|
if (req.method !== "GET")
|
|
297053
297113
|
return next();
|
|
297054
|
-
const
|
|
297114
|
+
const path15 = (req.originalUrl || req.url || "").split("?")[0];
|
|
297055
297115
|
const accept = req.headers.accept || "";
|
|
297056
297116
|
if (!accept.includes("text/html"))
|
|
297057
297117
|
return next();
|
|
297058
|
-
const html = this.resolveHtml(
|
|
297118
|
+
const html = this.resolveHtml(path15);
|
|
297059
297119
|
if (!html) {
|
|
297060
|
-
if (/^\/(shared|team\/insights)/.test(
|
|
297061
|
-
this.logger.warn(`\u9759\u6001\u5BFC\u51FA HTML \u4E0D\u5B58\u5728: ${
|
|
297120
|
+
if (/^\/(shared|team\/insights)/.test(path15)) {
|
|
297121
|
+
this.logger.warn(`\u9759\u6001\u5BFC\u51FA HTML \u4E0D\u5B58\u5728: ${path15}(\u5148\u6784\u5EFA web)`);
|
|
297062
297122
|
}
|
|
297063
297123
|
return next();
|
|
297064
297124
|
}
|
|
@@ -299261,9 +299321,9 @@ function isVisitable(thing) {
|
|
|
299261
299321
|
function removeBrackets(key) {
|
|
299262
299322
|
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
299263
299323
|
}
|
|
299264
|
-
function renderKey(
|
|
299265
|
-
if (!
|
|
299266
|
-
return
|
|
299324
|
+
function renderKey(path15, key, dots) {
|
|
299325
|
+
if (!path15) return key;
|
|
299326
|
+
return path15.concat(key).map(function each(token, i) {
|
|
299267
299327
|
token = removeBrackets(token);
|
|
299268
299328
|
return !dots && i ? "[" + token + "]" : token;
|
|
299269
299329
|
}).join(dots ? "." : "");
|
|
@@ -299349,13 +299409,13 @@ function toFormData(obj, formData, options) {
|
|
|
299349
299409
|
return currentValue;
|
|
299350
299410
|
});
|
|
299351
299411
|
}
|
|
299352
|
-
function defaultVisitor(value, key,
|
|
299412
|
+
function defaultVisitor(value, key, path15) {
|
|
299353
299413
|
let arr = value;
|
|
299354
299414
|
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
299355
|
-
formData.append(renderKey(
|
|
299415
|
+
formData.append(renderKey(path15, key, dots), convertValue(value));
|
|
299356
299416
|
return false;
|
|
299357
299417
|
}
|
|
299358
|
-
if (value && !
|
|
299418
|
+
if (value && !path15 && typeof value === "object") {
|
|
299359
299419
|
if (utils_default.endsWith(key, "{}")) {
|
|
299360
299420
|
key = metaTokens ? key : key.slice(0, -2);
|
|
299361
299421
|
value = stringifyWithDepthLimit(value, 1);
|
|
@@ -299374,7 +299434,7 @@ function toFormData(obj, formData, options) {
|
|
|
299374
299434
|
if (isVisitable(value)) {
|
|
299375
299435
|
return true;
|
|
299376
299436
|
}
|
|
299377
|
-
formData.append(renderKey(
|
|
299437
|
+
formData.append(renderKey(path15, key, dots), convertValue(value));
|
|
299378
299438
|
return false;
|
|
299379
299439
|
}
|
|
299380
299440
|
const exposedHelpers = Object.assign(predicates, {
|
|
@@ -299382,17 +299442,17 @@ function toFormData(obj, formData, options) {
|
|
|
299382
299442
|
convertValue,
|
|
299383
299443
|
isVisitable
|
|
299384
299444
|
});
|
|
299385
|
-
function build(value,
|
|
299445
|
+
function build(value, path15, depth = 0) {
|
|
299386
299446
|
if (utils_default.isUndefined(value)) return;
|
|
299387
299447
|
throwIfMaxDepthExceeded(depth);
|
|
299388
299448
|
if (stack.indexOf(value) !== -1) {
|
|
299389
|
-
throw new Error("Circular reference detected in " +
|
|
299449
|
+
throw new Error("Circular reference detected in " + path15.join("."));
|
|
299390
299450
|
}
|
|
299391
299451
|
stack.push(value);
|
|
299392
299452
|
utils_default.forEach(value, function each(el, key) {
|
|
299393
|
-
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key,
|
|
299453
|
+
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path15, exposedHelpers);
|
|
299394
299454
|
if (result === true) {
|
|
299395
|
-
build(el,
|
|
299455
|
+
build(el, path15 ? path15.concat(key) : [key], depth + 1);
|
|
299396
299456
|
}
|
|
299397
299457
|
});
|
|
299398
299458
|
stack.pop();
|
|
@@ -299604,7 +299664,7 @@ var platform_default = {
|
|
|
299604
299664
|
// ../../node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
299605
299665
|
function toURLEncodedForm(data, options) {
|
|
299606
299666
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
299607
|
-
visitor: function(value, key,
|
|
299667
|
+
visitor: function(value, key, path15, helpers) {
|
|
299608
299668
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
299609
299669
|
this.append(key, value.toString("base64"));
|
|
299610
299670
|
return false;
|
|
@@ -299626,14 +299686,14 @@ function throwIfDepthExceeded(index) {
|
|
|
299626
299686
|
}
|
|
299627
299687
|
}
|
|
299628
299688
|
function parsePropPath(name) {
|
|
299629
|
-
const
|
|
299689
|
+
const path15 = [];
|
|
299630
299690
|
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
299631
299691
|
let match;
|
|
299632
299692
|
while ((match = pattern.exec(name)) !== null) {
|
|
299633
|
-
throwIfDepthExceeded(
|
|
299634
|
-
|
|
299693
|
+
throwIfDepthExceeded(path15.length);
|
|
299694
|
+
path15.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
299635
299695
|
}
|
|
299636
|
-
return
|
|
299696
|
+
return path15;
|
|
299637
299697
|
}
|
|
299638
299698
|
function arrayToObject(arr) {
|
|
299639
299699
|
const obj = {};
|
|
@@ -299648,12 +299708,12 @@ function arrayToObject(arr) {
|
|
|
299648
299708
|
return obj;
|
|
299649
299709
|
}
|
|
299650
299710
|
function formDataToJSON(formData) {
|
|
299651
|
-
function buildPath(
|
|
299711
|
+
function buildPath(path15, value, target, index) {
|
|
299652
299712
|
throwIfDepthExceeded(index);
|
|
299653
|
-
let name =
|
|
299713
|
+
let name = path15[index++];
|
|
299654
299714
|
if (name === "__proto__") return true;
|
|
299655
299715
|
const isNumericKey = Number.isFinite(+name);
|
|
299656
|
-
const isLast = index >=
|
|
299716
|
+
const isLast = index >= path15.length;
|
|
299657
299717
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
299658
299718
|
if (isLast) {
|
|
299659
299719
|
if (utils_default.hasOwnProp(target, name)) {
|
|
@@ -299666,7 +299726,7 @@ function formDataToJSON(formData) {
|
|
|
299666
299726
|
if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
|
|
299667
299727
|
target[name] = [];
|
|
299668
299728
|
}
|
|
299669
|
-
const result = buildPath(
|
|
299729
|
+
const result = buildPath(path15, value, target[name], index);
|
|
299670
299730
|
if (result && utils_default.isArray(target[name])) {
|
|
299671
299731
|
target[name] = arrayToObject(target[name]);
|
|
299672
299732
|
}
|
|
@@ -301384,9 +301444,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
301384
301444
|
auth = urlUsername + ":" + urlPassword;
|
|
301385
301445
|
}
|
|
301386
301446
|
auth && headers.delete("authorization");
|
|
301387
|
-
let
|
|
301447
|
+
let path15;
|
|
301388
301448
|
try {
|
|
301389
|
-
|
|
301449
|
+
path15 = buildURL(
|
|
301390
301450
|
parsed.pathname + parsed.search,
|
|
301391
301451
|
own2("params"),
|
|
301392
301452
|
own2("paramsSerializer")
|
|
@@ -301405,7 +301465,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
301405
301465
|
false
|
|
301406
301466
|
);
|
|
301407
301467
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
301408
|
-
path:
|
|
301468
|
+
path: path15,
|
|
301409
301469
|
method,
|
|
301410
301470
|
headers: toByteStringHeaderObject(headers),
|
|
301411
301471
|
agents: { http: httpAgent, https: httpsAgent },
|
|
@@ -301807,14 +301867,14 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
301807
301867
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
301808
301868
|
// Standard browser envs support document.cookie
|
|
301809
301869
|
{
|
|
301810
|
-
write(name, value, expires,
|
|
301870
|
+
write(name, value, expires, path15, domain, secure, sameSite) {
|
|
301811
301871
|
if (typeof document === "undefined") return;
|
|
301812
301872
|
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
301813
301873
|
if (utils_default.isNumber(expires)) {
|
|
301814
301874
|
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
301815
301875
|
}
|
|
301816
|
-
if (utils_default.isString(
|
|
301817
|
-
cookie.push(`path=${
|
|
301876
|
+
if (utils_default.isString(path15)) {
|
|
301877
|
+
cookie.push(`path=${path15}`);
|
|
301818
301878
|
}
|
|
301819
301879
|
if (utils_default.isString(domain)) {
|
|
301820
301880
|
cookie.push(`domain=${domain}`);
|
|
@@ -307127,7 +307187,7 @@ var import_common149 = __toESM(require_common(), 1);
|
|
|
307127
307187
|
import { execFile as execFile2 } from "child_process";
|
|
307128
307188
|
import { promisify as promisify3 } from "util";
|
|
307129
307189
|
import * as fs13 from "fs";
|
|
307130
|
-
import * as
|
|
307190
|
+
import * as path13 from "path";
|
|
307131
307191
|
var execFileP = promisify3(execFile2);
|
|
307132
307192
|
var ProcessSampler = class _ProcessSampler {
|
|
307133
307193
|
logger = new import_common149.Logger(_ProcessSampler.name);
|
|
@@ -307343,7 +307403,7 @@ function readProcCpuTimes() {
|
|
|
307343
307403
|
if (!/^\d+$/.test(d))
|
|
307344
307404
|
continue;
|
|
307345
307405
|
try {
|
|
307346
|
-
const stat = fs13.readFileSync(
|
|
307406
|
+
const stat = fs13.readFileSync(path13.join("/proc", d, "stat"), "utf-8");
|
|
307347
307407
|
const rp = stat.lastIndexOf(")");
|
|
307348
307408
|
if (rp < 0)
|
|
307349
307409
|
continue;
|
|
@@ -309154,8 +309214,8 @@ var import_common165 = __toESM(require_common(), 1);
|
|
|
309154
309214
|
// dist/.server-tsc/perf/perf.service.js
|
|
309155
309215
|
var import_common163 = __toESM(require_common(), 1);
|
|
309156
309216
|
var import_config10 = __toESM(require_config2(), 1);
|
|
309157
|
-
import { readFileSync as
|
|
309158
|
-
import * as
|
|
309217
|
+
import { readFileSync as readFileSync9 } from "node:fs";
|
|
309218
|
+
import * as path14 from "node:path";
|
|
309159
309219
|
var __decorate205 = function(decorators, target, key, desc) {
|
|
309160
309220
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
309161
309221
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -309193,7 +309253,7 @@ var PerfReportService = PerfReportService_1 = class PerfReportService2 {
|
|
|
309193
309253
|
}
|
|
309194
309254
|
get serverIdentity() {
|
|
309195
309255
|
try {
|
|
309196
|
-
const info2 = JSON.parse(
|
|
309256
|
+
const info2 = JSON.parse(readFileSync9(path14.join(__dirname, "build-info.json"), "utf8"));
|
|
309197
309257
|
const out = {};
|
|
309198
309258
|
if (info2.version)
|
|
309199
309259
|
out.ver = String(info2.version);
|
|
@@ -309394,7 +309454,7 @@ var __decorate208 = function(decorators, target, key, desc) {
|
|
|
309394
309454
|
var __metadata158 = function(k2, v) {
|
|
309395
309455
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
309396
309456
|
};
|
|
309397
|
-
var WEB_DIST2 =
|
|
309457
|
+
var WEB_DIST2 = join17(__dirname, "..", "..", "web", "dist");
|
|
309398
309458
|
var AUTH_MIDDLEWARE_EXCLUDES = [
|
|
309399
309459
|
{ path: "/", method: import_common166.RequestMethod.GET },
|
|
309400
309460
|
{ path: "entity", method: import_common166.RequestMethod.GET },
|