@storm-software/config-tools 1.41.5 → 1.42.0
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/CHANGELOG.md +12 -0
- package/index.cjs +137 -147
- package/index.js +138 -148
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/logger.cjs +23 -28
- package/utilities/logger.js +23 -28
package/index.cjs
CHANGED
|
@@ -4265,7 +4265,7 @@ var require_jiti = __commonJS({
|
|
|
4265
4265
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
4266
4266
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
4267
4267
|
});
|
|
4268
|
-
const
|
|
4268
|
+
const packageJsonReader = { read: function(jsonPath) {
|
|
4269
4269
|
try {
|
|
4270
4270
|
return { string: external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(external_node_path_namespaceObject.join(external_node_path_namespaceObject.dirname(jsonPath), "package.json")), "utf8") };
|
|
4271
4271
|
} catch (error) {
|
|
@@ -4280,7 +4280,7 @@ var require_jiti = __commonJS({
|
|
|
4280
4280
|
const existing = packageJsonCache.get(path5);
|
|
4281
4281
|
if (void 0 !== existing)
|
|
4282
4282
|
return existing;
|
|
4283
|
-
const source =
|
|
4283
|
+
const source = packageJsonReader.read(path5).string;
|
|
4284
4284
|
if (void 0 === source) {
|
|
4285
4285
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
4286
4286
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -4343,7 +4343,7 @@ var require_jiti = __commonJS({
|
|
|
4343
4343
|
}, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
|
|
4344
4344
|
function getHttpProtocolModuleFormat2() {
|
|
4345
4345
|
}
|
|
4346
|
-
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g,
|
|
4346
|
+
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
4347
4347
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
4348
4348
|
const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
4349
4349
|
external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
@@ -4630,7 +4630,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
4630
4630
|
else
|
|
4631
4631
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
4632
4632
|
return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
4633
|
-
if (null !==
|
|
4633
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
4634
4634
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
|
|
4635
4635
|
const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
4636
4636
|
if (stats.isDirectory()) {
|
|
@@ -10236,7 +10236,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10236
10236
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
10237
10237
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
10238
10238
|
});
|
|
10239
|
-
var
|
|
10239
|
+
var packageJsonReader = { read: function(jsonPath) {
|
|
10240
10240
|
try {
|
|
10241
10241
|
return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
|
|
10242
10242
|
} catch (error) {
|
|
@@ -10251,7 +10251,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10251
10251
|
const existing = packageJsonCache.get(path5);
|
|
10252
10252
|
if (void 0 !== existing)
|
|
10253
10253
|
return existing;
|
|
10254
|
-
const source =
|
|
10254
|
+
const source = packageJsonReader.read(path5).string;
|
|
10255
10255
|
if (void 0 === source) {
|
|
10256
10256
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
10257
10257
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -10318,7 +10318,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10318
10318
|
return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
|
|
10319
10319
|
}
|
|
10320
10320
|
const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
|
|
10321
|
-
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g,
|
|
10321
|
+
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
10322
10322
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
10323
10323
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
10324
10324
|
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
@@ -10603,7 +10603,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10603
10603
|
else
|
|
10604
10604
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
10605
10605
|
return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
10606
|
-
if (null !==
|
|
10606
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
10607
10607
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
|
|
10608
10608
|
const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
10609
10609
|
if (stats.isDirectory()) {
|
|
@@ -66525,7 +66525,7 @@ Parser.acorn = {
|
|
|
66525
66525
|
nonASCIIwhitespace
|
|
66526
66526
|
};
|
|
66527
66527
|
|
|
66528
|
-
// node_modules/.pnpm/mlly@1.
|
|
66528
|
+
// node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
|
|
66529
66529
|
var import_node_module = require("node:module");
|
|
66530
66530
|
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
66531
66531
|
init_dist2();
|
|
@@ -66662,21 +66662,21 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
66662
66662
|
codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
66663
66663
|
"ERR_INVALID_PACKAGE_TARGET",
|
|
66664
66664
|
/**
|
|
66665
|
-
* @param {string}
|
|
66665
|
+
* @param {string} packagePath
|
|
66666
66666
|
* @param {string} key
|
|
66667
66667
|
* @param {unknown} target
|
|
66668
66668
|
* @param {boolean} [isImport=false]
|
|
66669
66669
|
* @param {string} [base]
|
|
66670
66670
|
*/
|
|
66671
|
-
(
|
|
66672
|
-
const
|
|
66671
|
+
(packagePath, key, target, isImport = false, base = void 0) => {
|
|
66672
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
66673
66673
|
if (key === ".") {
|
|
66674
66674
|
(0, import_node_assert.default)(isImport === false);
|
|
66675
|
-
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${
|
|
66675
|
+
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
66676
66676
|
}
|
|
66677
66677
|
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
|
|
66678
66678
|
target
|
|
66679
|
-
)} defined for '${key}' in the package config ${
|
|
66679
|
+
)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
66680
66680
|
},
|
|
66681
66681
|
Error
|
|
66682
66682
|
);
|
|
@@ -66712,14 +66712,14 @@ codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
|
|
|
66712
66712
|
codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
66713
66713
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
66714
66714
|
/**
|
|
66715
|
-
* @param {string}
|
|
66715
|
+
* @param {string} packagePath
|
|
66716
66716
|
* @param {string} subpath
|
|
66717
66717
|
* @param {string} [base]
|
|
66718
66718
|
*/
|
|
66719
|
-
(
|
|
66719
|
+
(packagePath, subpath, base = void 0) => {
|
|
66720
66720
|
if (subpath === ".")
|
|
66721
|
-
return `No "exports" main defined in ${
|
|
66722
|
-
return `Package subpath '${subpath}' is not defined by "exports" in ${
|
|
66721
|
+
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
66722
|
+
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
66723
66723
|
},
|
|
66724
66724
|
Error
|
|
66725
66725
|
);
|
|
@@ -66728,14 +66728,19 @@ codes.ERR_UNSUPPORTED_DIR_IMPORT = createError(
|
|
|
66728
66728
|
"Directory import '%s' is not supported resolving ES modules imported from %s",
|
|
66729
66729
|
Error
|
|
66730
66730
|
);
|
|
66731
|
+
codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
|
|
66732
|
+
"ERR_UNSUPPORTED_RESOLVE_REQUEST",
|
|
66733
|
+
'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
|
|
66734
|
+
TypeError
|
|
66735
|
+
);
|
|
66731
66736
|
codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
66732
66737
|
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
66733
66738
|
/**
|
|
66734
|
-
* @param {string}
|
|
66739
|
+
* @param {string} extension
|
|
66735
66740
|
* @param {string} path
|
|
66736
66741
|
*/
|
|
66737
|
-
(
|
|
66738
|
-
return `Unknown file extension "${
|
|
66742
|
+
(extension, path5) => {
|
|
66743
|
+
return `Unknown file extension "${extension}" for ${path5}`;
|
|
66739
66744
|
},
|
|
66740
66745
|
TypeError
|
|
66741
66746
|
);
|
|
@@ -66758,20 +66763,20 @@ codes.ERR_INVALID_ARG_VALUE = createError(
|
|
|
66758
66763
|
// Note: extra classes have been shaken out.
|
|
66759
66764
|
// , RangeError
|
|
66760
66765
|
);
|
|
66761
|
-
function createError(sym, value2,
|
|
66766
|
+
function createError(sym, value2, constructor) {
|
|
66762
66767
|
messages.set(sym, value2);
|
|
66763
|
-
return makeNodeErrorWithCode(
|
|
66768
|
+
return makeNodeErrorWithCode(constructor, sym);
|
|
66764
66769
|
}
|
|
66765
66770
|
function makeNodeErrorWithCode(Base, key) {
|
|
66766
66771
|
return NodeError;
|
|
66767
|
-
function NodeError(...
|
|
66772
|
+
function NodeError(...parameters) {
|
|
66768
66773
|
const limit = Error.stackTraceLimit;
|
|
66769
66774
|
if (isErrorStackTraceLimitWritable())
|
|
66770
66775
|
Error.stackTraceLimit = 0;
|
|
66771
66776
|
const error = new Base();
|
|
66772
66777
|
if (isErrorStackTraceLimitWritable())
|
|
66773
66778
|
Error.stackTraceLimit = limit;
|
|
66774
|
-
const message = getMessage(key,
|
|
66779
|
+
const message = getMessage(key, parameters, error);
|
|
66775
66780
|
Object.defineProperties(error, {
|
|
66776
66781
|
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
66777
66782
|
// probably.
|
|
@@ -66809,10 +66814,10 @@ function isErrorStackTraceLimitWritable() {
|
|
|
66809
66814
|
}
|
|
66810
66815
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
66811
66816
|
}
|
|
66812
|
-
function hideStackFrames(
|
|
66813
|
-
const hidden = nodeInternalPrefix +
|
|
66814
|
-
Object.defineProperty(
|
|
66815
|
-
return
|
|
66817
|
+
function hideStackFrames(wrappedFunction) {
|
|
66818
|
+
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
66819
|
+
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
66820
|
+
return wrappedFunction;
|
|
66816
66821
|
}
|
|
66817
66822
|
var captureLargerStackTrace = hideStackFrames(
|
|
66818
66823
|
/**
|
|
@@ -66832,29 +66837,29 @@ var captureLargerStackTrace = hideStackFrames(
|
|
|
66832
66837
|
return error;
|
|
66833
66838
|
}
|
|
66834
66839
|
);
|
|
66835
|
-
function getMessage(key,
|
|
66840
|
+
function getMessage(key, parameters, self2) {
|
|
66836
66841
|
const message = messages.get(key);
|
|
66837
66842
|
(0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
|
|
66838
66843
|
if (typeof message === "function") {
|
|
66839
66844
|
(0, import_node_assert.default)(
|
|
66840
|
-
message.length <=
|
|
66845
|
+
message.length <= parameters.length,
|
|
66841
66846
|
// Default options do not count.
|
|
66842
|
-
`Code: ${key}; The provided arguments length (${
|
|
66847
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
66843
66848
|
);
|
|
66844
|
-
return Reflect.apply(message, self2,
|
|
66849
|
+
return Reflect.apply(message, self2, parameters);
|
|
66845
66850
|
}
|
|
66846
66851
|
const regex = /%[dfijoOs]/g;
|
|
66847
66852
|
let expectedLength = 0;
|
|
66848
66853
|
while (regex.exec(message) !== null)
|
|
66849
66854
|
expectedLength++;
|
|
66850
66855
|
(0, import_node_assert.default)(
|
|
66851
|
-
expectedLength ===
|
|
66852
|
-
`Code: ${key}; The provided arguments length (${
|
|
66856
|
+
expectedLength === parameters.length,
|
|
66857
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
66853
66858
|
);
|
|
66854
|
-
if (
|
|
66859
|
+
if (parameters.length === 0)
|
|
66855
66860
|
return message;
|
|
66856
|
-
|
|
66857
|
-
return Reflect.apply(import_node_util.format, null,
|
|
66861
|
+
parameters.unshift(message);
|
|
66862
|
+
return Reflect.apply(import_node_util.format, null, parameters);
|
|
66858
66863
|
}
|
|
66859
66864
|
function determineSpecificType(value2) {
|
|
66860
66865
|
if (value2 === null || value2 === void 0) {
|
|
@@ -66878,8 +66883,6 @@ function determineSpecificType(value2) {
|
|
|
66878
66883
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
66879
66884
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
66880
66885
|
var cache = /* @__PURE__ */ new Map();
|
|
66881
|
-
var reader = { read: read2 };
|
|
66882
|
-
var packageJsonReader = reader;
|
|
66883
66886
|
function read2(jsonPath, { base, specifier }) {
|
|
66884
66887
|
const existing = cache.get(jsonPath);
|
|
66885
66888
|
if (existing) {
|
|
@@ -66945,21 +66948,20 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
66945
66948
|
return result;
|
|
66946
66949
|
}
|
|
66947
66950
|
function getPackageScopeConfig(resolved) {
|
|
66948
|
-
let packageJSONUrl = new
|
|
66951
|
+
let packageJSONUrl = new URL("package.json", resolved);
|
|
66949
66952
|
while (true) {
|
|
66950
66953
|
const packageJSONPath2 = packageJSONUrl.pathname;
|
|
66951
66954
|
if (packageJSONPath2.endsWith("node_modules/package.json")) {
|
|
66952
66955
|
break;
|
|
66953
66956
|
}
|
|
66954
|
-
const packageConfig =
|
|
66955
|
-
|
|
66956
|
-
|
|
66957
|
-
);
|
|
66957
|
+
const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
|
|
66958
|
+
specifier: resolved
|
|
66959
|
+
});
|
|
66958
66960
|
if (packageConfig.exists) {
|
|
66959
66961
|
return packageConfig;
|
|
66960
66962
|
}
|
|
66961
66963
|
const lastPackageJSONUrl = packageJSONUrl;
|
|
66962
|
-
packageJSONUrl = new
|
|
66964
|
+
packageJSONUrl = new URL("../package.json", packageJSONUrl);
|
|
66963
66965
|
if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
|
|
66964
66966
|
break;
|
|
66965
66967
|
}
|
|
@@ -66968,16 +66970,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
66968
66970
|
return {
|
|
66969
66971
|
pjsonPath: packageJSONPath,
|
|
66970
66972
|
exists: false,
|
|
66971
|
-
|
|
66972
|
-
name: void 0,
|
|
66973
|
-
type: "none",
|
|
66974
|
-
exports: void 0,
|
|
66975
|
-
imports: void 0
|
|
66973
|
+
type: "none"
|
|
66976
66974
|
};
|
|
66977
66975
|
}
|
|
66978
66976
|
function getPackageType(url) {
|
|
66979
|
-
|
|
66980
|
-
return packageConfig.type;
|
|
66977
|
+
return getPackageScopeConfig(url).type;
|
|
66981
66978
|
}
|
|
66982
66979
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
66983
66980
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
@@ -67028,29 +67025,29 @@ function extname2(url) {
|
|
|
67028
67025
|
return "";
|
|
67029
67026
|
}
|
|
67030
67027
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
67031
|
-
const
|
|
67032
|
-
if (
|
|
67028
|
+
const value2 = extname2(url);
|
|
67029
|
+
if (value2 === ".js") {
|
|
67033
67030
|
const packageType = getPackageType(url);
|
|
67034
67031
|
if (packageType !== "none") {
|
|
67035
67032
|
return packageType;
|
|
67036
67033
|
}
|
|
67037
67034
|
return "commonjs";
|
|
67038
67035
|
}
|
|
67039
|
-
if (
|
|
67036
|
+
if (value2 === "") {
|
|
67040
67037
|
const packageType = getPackageType(url);
|
|
67041
67038
|
if (packageType === "none" || packageType === "commonjs") {
|
|
67042
67039
|
return "commonjs";
|
|
67043
67040
|
}
|
|
67044
67041
|
return "module";
|
|
67045
67042
|
}
|
|
67046
|
-
const format3 = extensionFormatMap[
|
|
67043
|
+
const format3 = extensionFormatMap[value2];
|
|
67047
67044
|
if (format3)
|
|
67048
67045
|
return format3;
|
|
67049
67046
|
if (ignoreErrors) {
|
|
67050
67047
|
return void 0;
|
|
67051
67048
|
}
|
|
67052
67049
|
const filepath = (0, import_node_url.fileURLToPath)(url);
|
|
67053
|
-
throw new ERR_UNKNOWN_FILE_EXTENSION(
|
|
67050
|
+
throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
|
|
67054
67051
|
}
|
|
67055
67052
|
function getHttpProtocolModuleFormat() {
|
|
67056
67053
|
}
|
|
@@ -67070,14 +67067,15 @@ var {
|
|
|
67070
67067
|
ERR_MODULE_NOT_FOUND,
|
|
67071
67068
|
ERR_PACKAGE_IMPORT_NOT_DEFINED,
|
|
67072
67069
|
ERR_PACKAGE_PATH_NOT_EXPORTED,
|
|
67073
|
-
ERR_UNSUPPORTED_DIR_IMPORT
|
|
67070
|
+
ERR_UNSUPPORTED_DIR_IMPORT,
|
|
67071
|
+
ERR_UNSUPPORTED_RESOLVE_REQUEST
|
|
67074
67072
|
} = codes;
|
|
67075
67073
|
var own = {}.hasOwnProperty;
|
|
67076
67074
|
var invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
|
|
67077
67075
|
var deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
|
|
67078
67076
|
var invalidPackageNameRegEx = /^\.|%|\\/;
|
|
67079
67077
|
var patternRegEx = /\*/g;
|
|
67080
|
-
var
|
|
67078
|
+
var encodedSeparatorRegEx = /%2f|%5c/i;
|
|
67081
67079
|
var emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
67082
67080
|
var doubleSlashRegEx = /[/\\]{2}/;
|
|
67083
67081
|
function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
@@ -67100,21 +67098,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
67100
67098
|
if (format3 !== "module")
|
|
67101
67099
|
return;
|
|
67102
67100
|
const urlPath = (0, import_node_url.fileURLToPath)(url.href);
|
|
67103
|
-
const
|
|
67101
|
+
const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
|
|
67104
67102
|
const basePath = (0, import_node_url.fileURLToPath)(base);
|
|
67105
67103
|
if (!main) {
|
|
67106
67104
|
import_node_process.default.emitWarning(
|
|
67107
|
-
`No "main" or "exports" field defined in the package.json for ${
|
|
67108
|
-
|
|
67105
|
+
`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
|
|
67106
|
+
packagePath.length
|
|
67109
67107
|
)}", imported from ${basePath}.
|
|
67110
67108
|
Default "index" lookups for the main are deprecated for ES modules.`,
|
|
67111
67109
|
"DeprecationWarning",
|
|
67112
67110
|
"DEP0151"
|
|
67113
67111
|
);
|
|
67114
|
-
} else if (import_node_path3.default.resolve(
|
|
67112
|
+
} else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
|
|
67115
67113
|
import_node_process.default.emitWarning(
|
|
67116
|
-
`Package ${
|
|
67117
|
-
|
|
67114
|
+
`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
|
|
67115
|
+
packagePath.length
|
|
67118
67116
|
)}", imported from ${basePath}.
|
|
67119
67117
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,
|
|
67120
67118
|
"DeprecationWarning",
|
|
@@ -67126,7 +67124,6 @@ function tryStatSync(path5) {
|
|
|
67126
67124
|
try {
|
|
67127
67125
|
return (0, import_node_fs3.statSync)(path5);
|
|
67128
67126
|
} catch {
|
|
67129
|
-
return new import_node_fs3.Stats();
|
|
67130
67127
|
}
|
|
67131
67128
|
}
|
|
67132
67129
|
function fileExists(url) {
|
|
@@ -67183,7 +67180,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
67183
67180
|
);
|
|
67184
67181
|
}
|
|
67185
67182
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
67186
|
-
if (
|
|
67183
|
+
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
67187
67184
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
67188
67185
|
resolved.pathname,
|
|
67189
67186
|
'must not include encoded "/" or "\\" characters',
|
|
@@ -67205,12 +67202,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
67205
67202
|
const stats = tryStatSync(
|
|
67206
67203
|
filePath.endsWith("/") ? filePath.slice(-1) : filePath
|
|
67207
67204
|
);
|
|
67208
|
-
if (stats.isDirectory()) {
|
|
67205
|
+
if (stats && stats.isDirectory()) {
|
|
67209
67206
|
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
|
|
67210
67207
|
error.url = String(resolved);
|
|
67211
67208
|
throw error;
|
|
67212
67209
|
}
|
|
67213
|
-
if (!stats.isFile()) {
|
|
67210
|
+
if (!stats || !stats.isFile()) {
|
|
67214
67211
|
const error = new ERR_MODULE_NOT_FOUND(
|
|
67215
67212
|
filePath || resolved.pathname,
|
|
67216
67213
|
base && (0, import_node_url.fileURLToPath)(base),
|
|
@@ -67468,13 +67465,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
|
|
|
67468
67465
|
const keys = Object.getOwnPropertyNames(exports2);
|
|
67469
67466
|
let isConditionalSugar = false;
|
|
67470
67467
|
let i2 = 0;
|
|
67471
|
-
let
|
|
67472
|
-
while (++
|
|
67473
|
-
const key = keys[
|
|
67474
|
-
const
|
|
67468
|
+
let keyIndex = -1;
|
|
67469
|
+
while (++keyIndex < keys.length) {
|
|
67470
|
+
const key = keys[keyIndex];
|
|
67471
|
+
const currentIsConditionalSugar = key === "" || key[0] !== ".";
|
|
67475
67472
|
if (i2++ === 0) {
|
|
67476
|
-
isConditionalSugar =
|
|
67477
|
-
} else if (isConditionalSugar !==
|
|
67473
|
+
isConditionalSugar = currentIsConditionalSugar;
|
|
67474
|
+
} else if (isConditionalSugar !== currentIsConditionalSugar) {
|
|
67478
67475
|
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
67479
67476
|
(0, import_node_url.fileURLToPath)(packageJsonUrl),
|
|
67480
67477
|
base,
|
|
@@ -67710,7 +67707,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
67710
67707
|
let lastPath;
|
|
67711
67708
|
do {
|
|
67712
67709
|
const stat = tryStatSync(packageJsonPath.slice(0, -13));
|
|
67713
|
-
if (!stat.isDirectory()) {
|
|
67710
|
+
if (!stat || !stat.isDirectory()) {
|
|
67714
67711
|
lastPath = packageJsonPath;
|
|
67715
67712
|
packageJsonUrl = new import_node_url.URL(
|
|
67716
67713
|
(isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
|
|
@@ -67719,10 +67716,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
67719
67716
|
packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
|
|
67720
67717
|
continue;
|
|
67721
67718
|
}
|
|
67722
|
-
const packageConfig2 =
|
|
67723
|
-
base,
|
|
67724
|
-
specifier
|
|
67725
|
-
});
|
|
67719
|
+
const packageConfig2 = read2(packageJsonPath, { base, specifier });
|
|
67726
67720
|
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
67727
67721
|
return packageExportsResolve(
|
|
67728
67722
|
packageJsonUrl,
|
|
@@ -67758,19 +67752,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
|
67758
67752
|
}
|
|
67759
67753
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
67760
67754
|
const protocol = base.protocol;
|
|
67761
|
-
const
|
|
67755
|
+
const isData = protocol === "data:";
|
|
67756
|
+
const isRemote = isData || protocol === "http:" || protocol === "https:";
|
|
67762
67757
|
let resolved;
|
|
67763
67758
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
67764
|
-
|
|
67765
|
-
|
|
67759
|
+
try {
|
|
67760
|
+
resolved = new import_node_url.URL(specifier, base);
|
|
67761
|
+
} catch (error_) {
|
|
67762
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
67763
|
+
error.cause = error_;
|
|
67764
|
+
throw error;
|
|
67765
|
+
}
|
|
67766
|
+
} else if (protocol === "file:" && specifier[0] === "#") {
|
|
67766
67767
|
resolved = packageImportsResolve(specifier, base, conditions);
|
|
67767
67768
|
} else {
|
|
67768
67769
|
try {
|
|
67769
67770
|
resolved = new import_node_url.URL(specifier);
|
|
67770
|
-
} catch {
|
|
67771
|
-
if (!
|
|
67772
|
-
|
|
67771
|
+
} catch (error_) {
|
|
67772
|
+
if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
|
|
67773
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
67774
|
+
error.cause = error_;
|
|
67775
|
+
throw error;
|
|
67773
67776
|
}
|
|
67777
|
+
resolved = packageResolve(specifier, base, conditions);
|
|
67774
67778
|
}
|
|
67775
67779
|
}
|
|
67776
67780
|
(0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
|
|
@@ -72294,24 +72298,22 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
72294
72298
|
});
|
|
72295
72299
|
|
|
72296
72300
|
// packages/config/src/schema.ts
|
|
72297
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72301
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
72298
72302
|
var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
72299
|
-
var
|
|
72300
|
-
var
|
|
72301
|
-
var
|
|
72302
|
-
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
|
|
72303
|
+
var Brand1ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
72304
|
+
var Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
72305
|
+
var Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
|
|
72303
72306
|
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
72304
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72307
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
72305
72308
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
72306
|
-
var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72307
|
-
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).
|
|
72309
|
+
var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
|
|
72310
|
+
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
72308
72311
|
var DarkThemeColorConfigSchema = z2.object({
|
|
72309
72312
|
foreground: LightColorSchema,
|
|
72310
72313
|
background: DarkColorSchema,
|
|
72311
|
-
|
|
72312
|
-
|
|
72313
|
-
|
|
72314
|
-
accent: AccentColorSchema,
|
|
72314
|
+
brand1: Brand1ColorSchema,
|
|
72315
|
+
brand2: Brand2ColorSchema,
|
|
72316
|
+
brand3: Brand3ColorSchema,
|
|
72315
72317
|
success: SuccessColorSchema,
|
|
72316
72318
|
info: InfoColorSchema,
|
|
72317
72319
|
warning: WarningColorSchema,
|
|
@@ -72321,10 +72323,9 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
72321
72323
|
var LightThemeColorConfigSchema = z2.object({
|
|
72322
72324
|
foreground: DarkColorSchema,
|
|
72323
72325
|
background: LightColorSchema,
|
|
72324
|
-
|
|
72325
|
-
|
|
72326
|
-
|
|
72327
|
-
accent: AccentColorSchema,
|
|
72326
|
+
brand1: Brand1ColorSchema,
|
|
72327
|
+
brand2: Brand2ColorSchema,
|
|
72328
|
+
brand3: Brand3ColorSchema,
|
|
72328
72329
|
success: SuccessColorSchema,
|
|
72329
72330
|
info: InfoColorSchema,
|
|
72330
72331
|
warning: WarningColorSchema,
|
|
@@ -72338,10 +72339,9 @@ var MultiThemeColorConfigSchema = z2.object({
|
|
|
72338
72339
|
var SingleThemeColorConfigSchema = z2.object({
|
|
72339
72340
|
dark: DarkColorSchema,
|
|
72340
72341
|
light: LightColorSchema,
|
|
72341
|
-
|
|
72342
|
-
|
|
72343
|
-
|
|
72344
|
-
accent: AccentColorSchema,
|
|
72342
|
+
brand1: Brand1ColorSchema,
|
|
72343
|
+
brand2: Brand2ColorSchema,
|
|
72344
|
+
brand3: Brand3ColorSchema,
|
|
72345
72345
|
success: SuccessColorSchema,
|
|
72346
72346
|
info: InfoColorSchema,
|
|
72347
72347
|
warning: WarningColorSchema,
|
|
@@ -72417,10 +72417,9 @@ var StormConfigSchema = z2.object({
|
|
|
72417
72417
|
var COLOR_KEYS = [
|
|
72418
72418
|
"dark",
|
|
72419
72419
|
"light",
|
|
72420
|
-
"
|
|
72421
|
-
"
|
|
72422
|
-
"
|
|
72423
|
-
"accent",
|
|
72420
|
+
"brand1",
|
|
72421
|
+
"brand2",
|
|
72422
|
+
"brand3",
|
|
72424
72423
|
"success",
|
|
72425
72424
|
"info",
|
|
72426
72425
|
"warning",
|
|
@@ -72432,10 +72431,9 @@ var COLOR_KEYS = [
|
|
|
72432
72431
|
var DEFAULT_COLOR_CONFIG = {
|
|
72433
72432
|
dark: "#1d232a",
|
|
72434
72433
|
light: "#f4f4f5",
|
|
72435
|
-
|
|
72436
|
-
|
|
72437
|
-
|
|
72438
|
-
accent: "#6366f1",
|
|
72434
|
+
brand1: "#1fb2a6",
|
|
72435
|
+
brand2: "#6366f1",
|
|
72436
|
+
brand3: "#ec5990",
|
|
72439
72437
|
success: "#087f5b",
|
|
72440
72438
|
info: "#0ea5e9",
|
|
72441
72439
|
warning: "#fcc419",
|
|
@@ -72683,9 +72681,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
72683
72681
|
return (message) => {
|
|
72684
72682
|
console.debug(
|
|
72685
72683
|
`
|
|
72686
|
-
${_chalk.bold.hex(colors.
|
|
72684
|
+
${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
|
|
72687
72685
|
" \u{1F6E0} Debug "
|
|
72688
|
-
)} ${_chalk.hex(colors.
|
|
72686
|
+
)} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72689
72687
|
`
|
|
72690
72688
|
);
|
|
72691
72689
|
};
|
|
@@ -72693,9 +72691,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
72693
72691
|
return (message) => {
|
|
72694
72692
|
console.log(
|
|
72695
72693
|
`
|
|
72696
|
-
${_chalk.bold.hex(colors.
|
|
72694
|
+
${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
|
|
72697
72695
|
" \u2709 System "
|
|
72698
|
-
)} ${_chalk.hex(colors.
|
|
72696
|
+
)} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72699
72697
|
`
|
|
72700
72698
|
);
|
|
72701
72699
|
};
|
|
@@ -73018,16 +73016,15 @@ var getConfigEnv = () => {
|
|
|
73018
73016
|
};
|
|
73019
73017
|
var getThemeColorConfigEnv = (prefix, theme) => {
|
|
73020
73018
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
73021
|
-
return process.env[`${prefix}${themeName}
|
|
73019
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND1`] || process.env[`${prefix}${themeName}DARK_BRAND1`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
73022
73020
|
};
|
|
73023
73021
|
var getSingleThemeColorConfigEnv = (prefix) => {
|
|
73024
73022
|
return {
|
|
73025
73023
|
dark: process.env[`${prefix}DARK`],
|
|
73026
73024
|
light: process.env[`${prefix}LIGHT`],
|
|
73027
|
-
|
|
73028
|
-
|
|
73029
|
-
|
|
73030
|
-
accent: process.env[`${prefix}ACCENT`],
|
|
73025
|
+
brand1: process.env[`${prefix}BRAND1`],
|
|
73026
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
73027
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
73031
73028
|
success: process.env[`${prefix}SUCCESS`],
|
|
73032
73029
|
info: process.env[`${prefix}INFO`],
|
|
73033
73030
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -73047,10 +73044,9 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
73047
73044
|
return {
|
|
73048
73045
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
73049
73046
|
background: process.env[`${prefix}BACKGROUND`],
|
|
73050
|
-
|
|
73051
|
-
|
|
73052
|
-
|
|
73053
|
-
accent: process.env[`${prefix}ACCENT`],
|
|
73047
|
+
brand1: process.env[`${prefix}BRAND1`],
|
|
73048
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
73049
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
73054
73050
|
success: process.env[`${prefix}SUCCESS`],
|
|
73055
73051
|
info: process.env[`${prefix}INFO`],
|
|
73056
73052
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -73208,7 +73204,7 @@ var setConfigEnv = (config) => {
|
|
|
73208
73204
|
}
|
|
73209
73205
|
};
|
|
73210
73206
|
var setThemeColorConfigEnv = (prefix, config) => {
|
|
73211
|
-
return config?.light?.
|
|
73207
|
+
return config?.light?.brand1 || config?.dark?.brand1 ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
73212
73208
|
};
|
|
73213
73209
|
var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
73214
73210
|
if (config.dark) {
|
|
@@ -73217,17 +73213,14 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
73217
73213
|
if (config.light) {
|
|
73218
73214
|
process.env[`${prefix}LIGHT`] = config.light;
|
|
73219
73215
|
}
|
|
73220
|
-
if (config.
|
|
73221
|
-
process.env[`${prefix}
|
|
73216
|
+
if (config.brand1) {
|
|
73217
|
+
process.env[`${prefix}BRAND1`] = config.brand1;
|
|
73222
73218
|
}
|
|
73223
|
-
if (config.
|
|
73224
|
-
process.env[`${prefix}
|
|
73219
|
+
if (config.brand2) {
|
|
73220
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
73225
73221
|
}
|
|
73226
|
-
if (config.
|
|
73227
|
-
process.env[`${prefix}
|
|
73228
|
-
}
|
|
73229
|
-
if (config.accent) {
|
|
73230
|
-
process.env[`${prefix}ACCENT`] = config.accent;
|
|
73222
|
+
if (config.brand3) {
|
|
73223
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
73231
73224
|
}
|
|
73232
73225
|
if (config.success) {
|
|
73233
73226
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -73258,17 +73251,14 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
73258
73251
|
if (config.background) {
|
|
73259
73252
|
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
73260
73253
|
}
|
|
73261
|
-
if (config.
|
|
73262
|
-
process.env[`${prefix}
|
|
73263
|
-
}
|
|
73264
|
-
if (config.secondary) {
|
|
73265
|
-
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
73254
|
+
if (config.brand1) {
|
|
73255
|
+
process.env[`${prefix}BRAND1`] = config.brand1;
|
|
73266
73256
|
}
|
|
73267
|
-
if (config.
|
|
73268
|
-
process.env[`${prefix}
|
|
73257
|
+
if (config.brand2) {
|
|
73258
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
73269
73259
|
}
|
|
73270
|
-
if (config.
|
|
73271
|
-
process.env[`${prefix}
|
|
73260
|
+
if (config.brand3) {
|
|
73261
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
73272
73262
|
}
|
|
73273
73263
|
if (config.success) {
|
|
73274
73264
|
process.env[`${prefix}SUCCESS`] = config.success;
|