@storm-software/config-tools 1.41.4 → 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 +28 -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.js
CHANGED
|
@@ -4271,7 +4271,7 @@ var require_jiti = __commonJS({
|
|
|
4271
4271
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
4272
4272
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
4273
4273
|
});
|
|
4274
|
-
const
|
|
4274
|
+
const packageJsonReader = { read: function(jsonPath) {
|
|
4275
4275
|
try {
|
|
4276
4276
|
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") };
|
|
4277
4277
|
} catch (error) {
|
|
@@ -4286,7 +4286,7 @@ var require_jiti = __commonJS({
|
|
|
4286
4286
|
const existing = packageJsonCache.get(path5);
|
|
4287
4287
|
if (void 0 !== existing)
|
|
4288
4288
|
return existing;
|
|
4289
|
-
const source =
|
|
4289
|
+
const source = packageJsonReader.read(path5).string;
|
|
4290
4290
|
if (void 0 === source) {
|
|
4291
4291
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
4292
4292
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -4349,7 +4349,7 @@ var require_jiti = __commonJS({
|
|
|
4349
4349
|
}, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
|
|
4350
4350
|
function getHttpProtocolModuleFormat2() {
|
|
4351
4351
|
}
|
|
4352
|
-
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,
|
|
4352
|
+
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}/;
|
|
4353
4353
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
4354
4354
|
const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
4355
4355
|
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");
|
|
@@ -4636,7 +4636,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
4636
4636
|
else
|
|
4637
4637
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
4638
4638
|
return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
4639
|
-
if (null !==
|
|
4639
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
4640
4640
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
|
|
4641
4641
|
const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
4642
4642
|
if (stats.isDirectory()) {
|
|
@@ -10242,7 +10242,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10242
10242
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
10243
10243
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
10244
10244
|
});
|
|
10245
|
-
var
|
|
10245
|
+
var packageJsonReader = { read: function(jsonPath) {
|
|
10246
10246
|
try {
|
|
10247
10247
|
return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
|
|
10248
10248
|
} catch (error) {
|
|
@@ -10257,7 +10257,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10257
10257
|
const existing = packageJsonCache.get(path5);
|
|
10258
10258
|
if (void 0 !== existing)
|
|
10259
10259
|
return existing;
|
|
10260
|
-
const source =
|
|
10260
|
+
const source = packageJsonReader.read(path5).string;
|
|
10261
10261
|
if (void 0 === source) {
|
|
10262
10262
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
10263
10263
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -10324,7 +10324,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10324
10324
|
return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
|
|
10325
10325
|
}
|
|
10326
10326
|
const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
|
|
10327
|
-
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,
|
|
10327
|
+
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}/;
|
|
10328
10328
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
10329
10329
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
10330
10330
|
_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");
|
|
@@ -10609,7 +10609,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10609
10609
|
else
|
|
10610
10610
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
10611
10611
|
return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
10612
|
-
if (null !==
|
|
10612
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
10613
10613
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
|
|
10614
10614
|
const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
10615
10615
|
if (stats.isDirectory()) {
|
|
@@ -66483,11 +66483,11 @@ Parser.acorn = {
|
|
|
66483
66483
|
nonASCIIwhitespace
|
|
66484
66484
|
};
|
|
66485
66485
|
|
|
66486
|
-
// node_modules/.pnpm/mlly@1.
|
|
66486
|
+
// node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
|
|
66487
66487
|
init_dist2();
|
|
66488
66488
|
init_dist();
|
|
66489
66489
|
import { builtinModules, createRequire } from "node:module";
|
|
66490
|
-
import fs, { realpathSync, statSync,
|
|
66490
|
+
import fs, { realpathSync, statSync, promises } from "node:fs";
|
|
66491
66491
|
import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
|
|
66492
66492
|
import assert from "node:assert";
|
|
66493
66493
|
import process$1 from "node:process";
|
|
@@ -66620,21 +66620,21 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
66620
66620
|
codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
66621
66621
|
"ERR_INVALID_PACKAGE_TARGET",
|
|
66622
66622
|
/**
|
|
66623
|
-
* @param {string}
|
|
66623
|
+
* @param {string} packagePath
|
|
66624
66624
|
* @param {string} key
|
|
66625
66625
|
* @param {unknown} target
|
|
66626
66626
|
* @param {boolean} [isImport=false]
|
|
66627
66627
|
* @param {string} [base]
|
|
66628
66628
|
*/
|
|
66629
|
-
(
|
|
66630
|
-
const
|
|
66629
|
+
(packagePath, key, target, isImport = false, base = void 0) => {
|
|
66630
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
66631
66631
|
if (key === ".") {
|
|
66632
66632
|
assert(isImport === false);
|
|
66633
|
-
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${
|
|
66633
|
+
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 "./"' : ""}`;
|
|
66634
66634
|
}
|
|
66635
66635
|
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
|
|
66636
66636
|
target
|
|
66637
|
-
)} defined for '${key}' in the package config ${
|
|
66637
|
+
)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
66638
66638
|
},
|
|
66639
66639
|
Error
|
|
66640
66640
|
);
|
|
@@ -66670,14 +66670,14 @@ codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
|
|
|
66670
66670
|
codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
66671
66671
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
66672
66672
|
/**
|
|
66673
|
-
* @param {string}
|
|
66673
|
+
* @param {string} packagePath
|
|
66674
66674
|
* @param {string} subpath
|
|
66675
66675
|
* @param {string} [base]
|
|
66676
66676
|
*/
|
|
66677
|
-
(
|
|
66677
|
+
(packagePath, subpath, base = void 0) => {
|
|
66678
66678
|
if (subpath === ".")
|
|
66679
|
-
return `No "exports" main defined in ${
|
|
66680
|
-
return `Package subpath '${subpath}' is not defined by "exports" in ${
|
|
66679
|
+
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
66680
|
+
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
66681
66681
|
},
|
|
66682
66682
|
Error
|
|
66683
66683
|
);
|
|
@@ -66686,14 +66686,19 @@ codes.ERR_UNSUPPORTED_DIR_IMPORT = createError(
|
|
|
66686
66686
|
"Directory import '%s' is not supported resolving ES modules imported from %s",
|
|
66687
66687
|
Error
|
|
66688
66688
|
);
|
|
66689
|
+
codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
|
|
66690
|
+
"ERR_UNSUPPORTED_RESOLVE_REQUEST",
|
|
66691
|
+
'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
|
|
66692
|
+
TypeError
|
|
66693
|
+
);
|
|
66689
66694
|
codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
66690
66695
|
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
66691
66696
|
/**
|
|
66692
|
-
* @param {string}
|
|
66697
|
+
* @param {string} extension
|
|
66693
66698
|
* @param {string} path
|
|
66694
66699
|
*/
|
|
66695
|
-
(
|
|
66696
|
-
return `Unknown file extension "${
|
|
66700
|
+
(extension, path5) => {
|
|
66701
|
+
return `Unknown file extension "${extension}" for ${path5}`;
|
|
66697
66702
|
},
|
|
66698
66703
|
TypeError
|
|
66699
66704
|
);
|
|
@@ -66716,20 +66721,20 @@ codes.ERR_INVALID_ARG_VALUE = createError(
|
|
|
66716
66721
|
// Note: extra classes have been shaken out.
|
|
66717
66722
|
// , RangeError
|
|
66718
66723
|
);
|
|
66719
|
-
function createError(sym, value2,
|
|
66724
|
+
function createError(sym, value2, constructor) {
|
|
66720
66725
|
messages.set(sym, value2);
|
|
66721
|
-
return makeNodeErrorWithCode(
|
|
66726
|
+
return makeNodeErrorWithCode(constructor, sym);
|
|
66722
66727
|
}
|
|
66723
66728
|
function makeNodeErrorWithCode(Base, key) {
|
|
66724
66729
|
return NodeError;
|
|
66725
|
-
function NodeError(...
|
|
66730
|
+
function NodeError(...parameters) {
|
|
66726
66731
|
const limit = Error.stackTraceLimit;
|
|
66727
66732
|
if (isErrorStackTraceLimitWritable())
|
|
66728
66733
|
Error.stackTraceLimit = 0;
|
|
66729
66734
|
const error = new Base();
|
|
66730
66735
|
if (isErrorStackTraceLimitWritable())
|
|
66731
66736
|
Error.stackTraceLimit = limit;
|
|
66732
|
-
const message = getMessage(key,
|
|
66737
|
+
const message = getMessage(key, parameters, error);
|
|
66733
66738
|
Object.defineProperties(error, {
|
|
66734
66739
|
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
66735
66740
|
// probably.
|
|
@@ -66767,10 +66772,10 @@ function isErrorStackTraceLimitWritable() {
|
|
|
66767
66772
|
}
|
|
66768
66773
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
66769
66774
|
}
|
|
66770
|
-
function hideStackFrames(
|
|
66771
|
-
const hidden = nodeInternalPrefix +
|
|
66772
|
-
Object.defineProperty(
|
|
66773
|
-
return
|
|
66775
|
+
function hideStackFrames(wrappedFunction) {
|
|
66776
|
+
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
66777
|
+
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
66778
|
+
return wrappedFunction;
|
|
66774
66779
|
}
|
|
66775
66780
|
var captureLargerStackTrace = hideStackFrames(
|
|
66776
66781
|
/**
|
|
@@ -66790,29 +66795,29 @@ var captureLargerStackTrace = hideStackFrames(
|
|
|
66790
66795
|
return error;
|
|
66791
66796
|
}
|
|
66792
66797
|
);
|
|
66793
|
-
function getMessage(key,
|
|
66798
|
+
function getMessage(key, parameters, self2) {
|
|
66794
66799
|
const message = messages.get(key);
|
|
66795
66800
|
assert(message !== void 0, "expected `message` to be found");
|
|
66796
66801
|
if (typeof message === "function") {
|
|
66797
66802
|
assert(
|
|
66798
|
-
message.length <=
|
|
66803
|
+
message.length <= parameters.length,
|
|
66799
66804
|
// Default options do not count.
|
|
66800
|
-
`Code: ${key}; The provided arguments length (${
|
|
66805
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
66801
66806
|
);
|
|
66802
|
-
return Reflect.apply(message, self2,
|
|
66807
|
+
return Reflect.apply(message, self2, parameters);
|
|
66803
66808
|
}
|
|
66804
66809
|
const regex = /%[dfijoOs]/g;
|
|
66805
66810
|
let expectedLength = 0;
|
|
66806
66811
|
while (regex.exec(message) !== null)
|
|
66807
66812
|
expectedLength++;
|
|
66808
66813
|
assert(
|
|
66809
|
-
expectedLength ===
|
|
66810
|
-
`Code: ${key}; The provided arguments length (${
|
|
66814
|
+
expectedLength === parameters.length,
|
|
66815
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
66811
66816
|
);
|
|
66812
|
-
if (
|
|
66817
|
+
if (parameters.length === 0)
|
|
66813
66818
|
return message;
|
|
66814
|
-
|
|
66815
|
-
return Reflect.apply(format2, null,
|
|
66819
|
+
parameters.unshift(message);
|
|
66820
|
+
return Reflect.apply(format2, null, parameters);
|
|
66816
66821
|
}
|
|
66817
66822
|
function determineSpecificType(value2) {
|
|
66818
66823
|
if (value2 === null || value2 === void 0) {
|
|
@@ -66836,8 +66841,6 @@ function determineSpecificType(value2) {
|
|
|
66836
66841
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
66837
66842
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
66838
66843
|
var cache = /* @__PURE__ */ new Map();
|
|
66839
|
-
var reader = { read: read2 };
|
|
66840
|
-
var packageJsonReader = reader;
|
|
66841
66844
|
function read2(jsonPath, { base, specifier }) {
|
|
66842
66845
|
const existing = cache.get(jsonPath);
|
|
66843
66846
|
if (existing) {
|
|
@@ -66903,21 +66906,20 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
66903
66906
|
return result;
|
|
66904
66907
|
}
|
|
66905
66908
|
function getPackageScopeConfig(resolved) {
|
|
66906
|
-
let packageJSONUrl = new URL
|
|
66909
|
+
let packageJSONUrl = new URL("package.json", resolved);
|
|
66907
66910
|
while (true) {
|
|
66908
66911
|
const packageJSONPath2 = packageJSONUrl.pathname;
|
|
66909
66912
|
if (packageJSONPath2.endsWith("node_modules/package.json")) {
|
|
66910
66913
|
break;
|
|
66911
66914
|
}
|
|
66912
|
-
const packageConfig =
|
|
66913
|
-
|
|
66914
|
-
|
|
66915
|
-
);
|
|
66915
|
+
const packageConfig = read2(fileURLToPath$1(packageJSONUrl), {
|
|
66916
|
+
specifier: resolved
|
|
66917
|
+
});
|
|
66916
66918
|
if (packageConfig.exists) {
|
|
66917
66919
|
return packageConfig;
|
|
66918
66920
|
}
|
|
66919
66921
|
const lastPackageJSONUrl = packageJSONUrl;
|
|
66920
|
-
packageJSONUrl = new URL
|
|
66922
|
+
packageJSONUrl = new URL("../package.json", packageJSONUrl);
|
|
66921
66923
|
if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
|
|
66922
66924
|
break;
|
|
66923
66925
|
}
|
|
@@ -66926,16 +66928,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
66926
66928
|
return {
|
|
66927
66929
|
pjsonPath: packageJSONPath,
|
|
66928
66930
|
exists: false,
|
|
66929
|
-
|
|
66930
|
-
name: void 0,
|
|
66931
|
-
type: "none",
|
|
66932
|
-
exports: void 0,
|
|
66933
|
-
imports: void 0
|
|
66931
|
+
type: "none"
|
|
66934
66932
|
};
|
|
66935
66933
|
}
|
|
66936
66934
|
function getPackageType(url) {
|
|
66937
|
-
|
|
66938
|
-
return packageConfig.type;
|
|
66935
|
+
return getPackageScopeConfig(url).type;
|
|
66939
66936
|
}
|
|
66940
66937
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
66941
66938
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
@@ -66986,29 +66983,29 @@ function extname2(url) {
|
|
|
66986
66983
|
return "";
|
|
66987
66984
|
}
|
|
66988
66985
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
66989
|
-
const
|
|
66990
|
-
if (
|
|
66986
|
+
const value2 = extname2(url);
|
|
66987
|
+
if (value2 === ".js") {
|
|
66991
66988
|
const packageType = getPackageType(url);
|
|
66992
66989
|
if (packageType !== "none") {
|
|
66993
66990
|
return packageType;
|
|
66994
66991
|
}
|
|
66995
66992
|
return "commonjs";
|
|
66996
66993
|
}
|
|
66997
|
-
if (
|
|
66994
|
+
if (value2 === "") {
|
|
66998
66995
|
const packageType = getPackageType(url);
|
|
66999
66996
|
if (packageType === "none" || packageType === "commonjs") {
|
|
67000
66997
|
return "commonjs";
|
|
67001
66998
|
}
|
|
67002
66999
|
return "module";
|
|
67003
67000
|
}
|
|
67004
|
-
const format3 = extensionFormatMap[
|
|
67001
|
+
const format3 = extensionFormatMap[value2];
|
|
67005
67002
|
if (format3)
|
|
67006
67003
|
return format3;
|
|
67007
67004
|
if (ignoreErrors) {
|
|
67008
67005
|
return void 0;
|
|
67009
67006
|
}
|
|
67010
67007
|
const filepath = fileURLToPath$1(url);
|
|
67011
|
-
throw new ERR_UNKNOWN_FILE_EXTENSION(
|
|
67008
|
+
throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
|
|
67012
67009
|
}
|
|
67013
67010
|
function getHttpProtocolModuleFormat() {
|
|
67014
67011
|
}
|
|
@@ -67028,14 +67025,15 @@ var {
|
|
|
67028
67025
|
ERR_MODULE_NOT_FOUND,
|
|
67029
67026
|
ERR_PACKAGE_IMPORT_NOT_DEFINED,
|
|
67030
67027
|
ERR_PACKAGE_PATH_NOT_EXPORTED,
|
|
67031
|
-
ERR_UNSUPPORTED_DIR_IMPORT
|
|
67028
|
+
ERR_UNSUPPORTED_DIR_IMPORT,
|
|
67029
|
+
ERR_UNSUPPORTED_RESOLVE_REQUEST
|
|
67032
67030
|
} = codes;
|
|
67033
67031
|
var own = {}.hasOwnProperty;
|
|
67034
67032
|
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;
|
|
67035
67033
|
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;
|
|
67036
67034
|
var invalidPackageNameRegEx = /^\.|%|\\/;
|
|
67037
67035
|
var patternRegEx = /\*/g;
|
|
67038
|
-
var
|
|
67036
|
+
var encodedSeparatorRegEx = /%2f|%5c/i;
|
|
67039
67037
|
var emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
67040
67038
|
var doubleSlashRegEx = /[/\\]{2}/;
|
|
67041
67039
|
function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
@@ -67058,21 +67056,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
67058
67056
|
if (format3 !== "module")
|
|
67059
67057
|
return;
|
|
67060
67058
|
const urlPath = fileURLToPath$1(url.href);
|
|
67061
|
-
const
|
|
67059
|
+
const packagePath = fileURLToPath$1(new URL$1(".", packageJsonUrl));
|
|
67062
67060
|
const basePath = fileURLToPath$1(base);
|
|
67063
67061
|
if (!main) {
|
|
67064
67062
|
process$1.emitWarning(
|
|
67065
|
-
`No "main" or "exports" field defined in the package.json for ${
|
|
67066
|
-
|
|
67063
|
+
`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
|
|
67064
|
+
packagePath.length
|
|
67067
67065
|
)}", imported from ${basePath}.
|
|
67068
67066
|
Default "index" lookups for the main are deprecated for ES modules.`,
|
|
67069
67067
|
"DeprecationWarning",
|
|
67070
67068
|
"DEP0151"
|
|
67071
67069
|
);
|
|
67072
|
-
} else if (path2.resolve(
|
|
67070
|
+
} else if (path2.resolve(packagePath, main) !== urlPath) {
|
|
67073
67071
|
process$1.emitWarning(
|
|
67074
|
-
`Package ${
|
|
67075
|
-
|
|
67072
|
+
`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
|
|
67073
|
+
packagePath.length
|
|
67076
67074
|
)}", imported from ${basePath}.
|
|
67077
67075
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,
|
|
67078
67076
|
"DeprecationWarning",
|
|
@@ -67084,7 +67082,6 @@ function tryStatSync(path5) {
|
|
|
67084
67082
|
try {
|
|
67085
67083
|
return statSync(path5);
|
|
67086
67084
|
} catch {
|
|
67087
|
-
return new Stats();
|
|
67088
67085
|
}
|
|
67089
67086
|
}
|
|
67090
67087
|
function fileExists(url) {
|
|
@@ -67141,7 +67138,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
67141
67138
|
);
|
|
67142
67139
|
}
|
|
67143
67140
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
67144
|
-
if (
|
|
67141
|
+
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
67145
67142
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
67146
67143
|
resolved.pathname,
|
|
67147
67144
|
'must not include encoded "/" or "\\" characters',
|
|
@@ -67163,12 +67160,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
67163
67160
|
const stats = tryStatSync(
|
|
67164
67161
|
filePath.endsWith("/") ? filePath.slice(-1) : filePath
|
|
67165
67162
|
);
|
|
67166
|
-
if (stats.isDirectory()) {
|
|
67163
|
+
if (stats && stats.isDirectory()) {
|
|
67167
67164
|
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath$1(base));
|
|
67168
67165
|
error.url = String(resolved);
|
|
67169
67166
|
throw error;
|
|
67170
67167
|
}
|
|
67171
|
-
if (!stats.isFile()) {
|
|
67168
|
+
if (!stats || !stats.isFile()) {
|
|
67172
67169
|
const error = new ERR_MODULE_NOT_FOUND(
|
|
67173
67170
|
filePath || resolved.pathname,
|
|
67174
67171
|
base && fileURLToPath$1(base),
|
|
@@ -67426,13 +67423,13 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
67426
67423
|
const keys = Object.getOwnPropertyNames(exports);
|
|
67427
67424
|
let isConditionalSugar = false;
|
|
67428
67425
|
let i2 = 0;
|
|
67429
|
-
let
|
|
67430
|
-
while (++
|
|
67431
|
-
const key = keys[
|
|
67432
|
-
const
|
|
67426
|
+
let keyIndex = -1;
|
|
67427
|
+
while (++keyIndex < keys.length) {
|
|
67428
|
+
const key = keys[keyIndex];
|
|
67429
|
+
const currentIsConditionalSugar = key === "" || key[0] !== ".";
|
|
67433
67430
|
if (i2++ === 0) {
|
|
67434
|
-
isConditionalSugar =
|
|
67435
|
-
} else if (isConditionalSugar !==
|
|
67431
|
+
isConditionalSugar = currentIsConditionalSugar;
|
|
67432
|
+
} else if (isConditionalSugar !== currentIsConditionalSugar) {
|
|
67436
67433
|
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
67437
67434
|
fileURLToPath$1(packageJsonUrl),
|
|
67438
67435
|
base,
|
|
@@ -67668,7 +67665,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
67668
67665
|
let lastPath;
|
|
67669
67666
|
do {
|
|
67670
67667
|
const stat = tryStatSync(packageJsonPath.slice(0, -13));
|
|
67671
|
-
if (!stat.isDirectory()) {
|
|
67668
|
+
if (!stat || !stat.isDirectory()) {
|
|
67672
67669
|
lastPath = packageJsonPath;
|
|
67673
67670
|
packageJsonUrl = new URL$1(
|
|
67674
67671
|
(isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
|
|
@@ -67677,10 +67674,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
67677
67674
|
packageJsonPath = fileURLToPath$1(packageJsonUrl);
|
|
67678
67675
|
continue;
|
|
67679
67676
|
}
|
|
67680
|
-
const packageConfig2 =
|
|
67681
|
-
base,
|
|
67682
|
-
specifier
|
|
67683
|
-
});
|
|
67677
|
+
const packageConfig2 = read2(packageJsonPath, { base, specifier });
|
|
67684
67678
|
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
67685
67679
|
return packageExportsResolve(
|
|
67686
67680
|
packageJsonUrl,
|
|
@@ -67716,19 +67710,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
|
67716
67710
|
}
|
|
67717
67711
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
67718
67712
|
const protocol = base.protocol;
|
|
67719
|
-
const
|
|
67713
|
+
const isData = protocol === "data:";
|
|
67714
|
+
const isRemote = isData || protocol === "http:" || protocol === "https:";
|
|
67720
67715
|
let resolved;
|
|
67721
67716
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
67722
|
-
|
|
67723
|
-
|
|
67717
|
+
try {
|
|
67718
|
+
resolved = new URL$1(specifier, base);
|
|
67719
|
+
} catch (error_) {
|
|
67720
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
67721
|
+
error.cause = error_;
|
|
67722
|
+
throw error;
|
|
67723
|
+
}
|
|
67724
|
+
} else if (protocol === "file:" && specifier[0] === "#") {
|
|
67724
67725
|
resolved = packageImportsResolve(specifier, base, conditions);
|
|
67725
67726
|
} else {
|
|
67726
67727
|
try {
|
|
67727
67728
|
resolved = new URL$1(specifier);
|
|
67728
|
-
} catch {
|
|
67729
|
-
if (!
|
|
67730
|
-
|
|
67729
|
+
} catch (error_) {
|
|
67730
|
+
if (isRemote && !builtinModules.includes(specifier)) {
|
|
67731
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
67732
|
+
error.cause = error_;
|
|
67733
|
+
throw error;
|
|
67731
67734
|
}
|
|
67735
|
+
resolved = packageResolve(specifier, base, conditions);
|
|
67732
67736
|
}
|
|
67733
67737
|
}
|
|
67734
67738
|
assert(resolved !== void 0, "expected to be defined");
|
|
@@ -72252,24 +72256,22 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
72252
72256
|
});
|
|
72253
72257
|
|
|
72254
72258
|
// packages/config/src/schema.ts
|
|
72255
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72259
|
+
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");
|
|
72256
72260
|
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");
|
|
72257
|
-
var
|
|
72258
|
-
var
|
|
72259
|
-
var
|
|
72260
|
-
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");
|
|
72261
|
+
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");
|
|
72262
|
+
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");
|
|
72263
|
+
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");
|
|
72261
72264
|
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");
|
|
72262
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72265
|
+
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");
|
|
72263
72266
|
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");
|
|
72264
|
-
var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72265
|
-
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).
|
|
72267
|
+
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");
|
|
72268
|
+
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
72266
72269
|
var DarkThemeColorConfigSchema = z2.object({
|
|
72267
72270
|
foreground: LightColorSchema,
|
|
72268
72271
|
background: DarkColorSchema,
|
|
72269
|
-
|
|
72270
|
-
|
|
72271
|
-
|
|
72272
|
-
accent: AccentColorSchema,
|
|
72272
|
+
brand1: Brand1ColorSchema,
|
|
72273
|
+
brand2: Brand2ColorSchema,
|
|
72274
|
+
brand3: Brand3ColorSchema,
|
|
72273
72275
|
success: SuccessColorSchema,
|
|
72274
72276
|
info: InfoColorSchema,
|
|
72275
72277
|
warning: WarningColorSchema,
|
|
@@ -72279,10 +72281,9 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
72279
72281
|
var LightThemeColorConfigSchema = z2.object({
|
|
72280
72282
|
foreground: DarkColorSchema,
|
|
72281
72283
|
background: LightColorSchema,
|
|
72282
|
-
|
|
72283
|
-
|
|
72284
|
-
|
|
72285
|
-
accent: AccentColorSchema,
|
|
72284
|
+
brand1: Brand1ColorSchema,
|
|
72285
|
+
brand2: Brand2ColorSchema,
|
|
72286
|
+
brand3: Brand3ColorSchema,
|
|
72286
72287
|
success: SuccessColorSchema,
|
|
72287
72288
|
info: InfoColorSchema,
|
|
72288
72289
|
warning: WarningColorSchema,
|
|
@@ -72296,10 +72297,9 @@ var MultiThemeColorConfigSchema = z2.object({
|
|
|
72296
72297
|
var SingleThemeColorConfigSchema = z2.object({
|
|
72297
72298
|
dark: DarkColorSchema,
|
|
72298
72299
|
light: LightColorSchema,
|
|
72299
|
-
|
|
72300
|
-
|
|
72301
|
-
|
|
72302
|
-
accent: AccentColorSchema,
|
|
72300
|
+
brand1: Brand1ColorSchema,
|
|
72301
|
+
brand2: Brand2ColorSchema,
|
|
72302
|
+
brand3: Brand3ColorSchema,
|
|
72303
72303
|
success: SuccessColorSchema,
|
|
72304
72304
|
info: InfoColorSchema,
|
|
72305
72305
|
warning: WarningColorSchema,
|
|
@@ -72375,10 +72375,9 @@ var StormConfigSchema = z2.object({
|
|
|
72375
72375
|
var COLOR_KEYS = [
|
|
72376
72376
|
"dark",
|
|
72377
72377
|
"light",
|
|
72378
|
-
"
|
|
72379
|
-
"
|
|
72380
|
-
"
|
|
72381
|
-
"accent",
|
|
72378
|
+
"brand1",
|
|
72379
|
+
"brand2",
|
|
72380
|
+
"brand3",
|
|
72382
72381
|
"success",
|
|
72383
72382
|
"info",
|
|
72384
72383
|
"warning",
|
|
@@ -72390,10 +72389,9 @@ var COLOR_KEYS = [
|
|
|
72390
72389
|
var DEFAULT_COLOR_CONFIG = {
|
|
72391
72390
|
dark: "#1d232a",
|
|
72392
72391
|
light: "#f4f4f5",
|
|
72393
|
-
|
|
72394
|
-
|
|
72395
|
-
|
|
72396
|
-
accent: "#6366f1",
|
|
72392
|
+
brand1: "#1fb2a6",
|
|
72393
|
+
brand2: "#6366f1",
|
|
72394
|
+
brand3: "#ec5990",
|
|
72397
72395
|
success: "#087f5b",
|
|
72398
72396
|
info: "#0ea5e9",
|
|
72399
72397
|
warning: "#fcc419",
|
|
@@ -72641,9 +72639,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
72641
72639
|
return (message) => {
|
|
72642
72640
|
console.debug(
|
|
72643
72641
|
`
|
|
72644
|
-
${_chalk.bold.hex(colors.
|
|
72642
|
+
${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
|
|
72645
72643
|
" \u{1F6E0} Debug "
|
|
72646
|
-
)} ${_chalk.hex(colors.
|
|
72644
|
+
)} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72647
72645
|
`
|
|
72648
72646
|
);
|
|
72649
72647
|
};
|
|
@@ -72651,9 +72649,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
72651
72649
|
return (message) => {
|
|
72652
72650
|
console.log(
|
|
72653
72651
|
`
|
|
72654
|
-
${_chalk.bold.hex(colors.
|
|
72652
|
+
${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
|
|
72655
72653
|
" \u2709 System "
|
|
72656
|
-
)} ${_chalk.hex(colors.
|
|
72654
|
+
)} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72657
72655
|
`
|
|
72658
72656
|
);
|
|
72659
72657
|
};
|
|
@@ -72976,16 +72974,15 @@ var getConfigEnv = () => {
|
|
|
72976
72974
|
};
|
|
72977
72975
|
var getThemeColorConfigEnv = (prefix, theme) => {
|
|
72978
72976
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
72979
|
-
return process.env[`${prefix}${themeName}
|
|
72977
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND1`] || process.env[`${prefix}${themeName}DARK_BRAND1`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
72980
72978
|
};
|
|
72981
72979
|
var getSingleThemeColorConfigEnv = (prefix) => {
|
|
72982
72980
|
return {
|
|
72983
72981
|
dark: process.env[`${prefix}DARK`],
|
|
72984
72982
|
light: process.env[`${prefix}LIGHT`],
|
|
72985
|
-
|
|
72986
|
-
|
|
72987
|
-
|
|
72988
|
-
accent: process.env[`${prefix}ACCENT`],
|
|
72983
|
+
brand1: process.env[`${prefix}BRAND1`],
|
|
72984
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
72985
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
72989
72986
|
success: process.env[`${prefix}SUCCESS`],
|
|
72990
72987
|
info: process.env[`${prefix}INFO`],
|
|
72991
72988
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -73005,10 +73002,9 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
73005
73002
|
return {
|
|
73006
73003
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
73007
73004
|
background: process.env[`${prefix}BACKGROUND`],
|
|
73008
|
-
|
|
73009
|
-
|
|
73010
|
-
|
|
73011
|
-
accent: process.env[`${prefix}ACCENT`],
|
|
73005
|
+
brand1: process.env[`${prefix}BRAND1`],
|
|
73006
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
73007
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
73012
73008
|
success: process.env[`${prefix}SUCCESS`],
|
|
73013
73009
|
info: process.env[`${prefix}INFO`],
|
|
73014
73010
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -73166,7 +73162,7 @@ var setConfigEnv = (config) => {
|
|
|
73166
73162
|
}
|
|
73167
73163
|
};
|
|
73168
73164
|
var setThemeColorConfigEnv = (prefix, config) => {
|
|
73169
|
-
return config?.light?.
|
|
73165
|
+
return config?.light?.brand1 || config?.dark?.brand1 ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
73170
73166
|
};
|
|
73171
73167
|
var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
73172
73168
|
if (config.dark) {
|
|
@@ -73175,17 +73171,14 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
73175
73171
|
if (config.light) {
|
|
73176
73172
|
process.env[`${prefix}LIGHT`] = config.light;
|
|
73177
73173
|
}
|
|
73178
|
-
if (config.
|
|
73179
|
-
process.env[`${prefix}
|
|
73174
|
+
if (config.brand1) {
|
|
73175
|
+
process.env[`${prefix}BRAND1`] = config.brand1;
|
|
73180
73176
|
}
|
|
73181
|
-
if (config.
|
|
73182
|
-
process.env[`${prefix}
|
|
73177
|
+
if (config.brand2) {
|
|
73178
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
73183
73179
|
}
|
|
73184
|
-
if (config.
|
|
73185
|
-
process.env[`${prefix}
|
|
73186
|
-
}
|
|
73187
|
-
if (config.accent) {
|
|
73188
|
-
process.env[`${prefix}ACCENT`] = config.accent;
|
|
73180
|
+
if (config.brand3) {
|
|
73181
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
73189
73182
|
}
|
|
73190
73183
|
if (config.success) {
|
|
73191
73184
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -73216,17 +73209,14 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
73216
73209
|
if (config.background) {
|
|
73217
73210
|
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
73218
73211
|
}
|
|
73219
|
-
if (config.
|
|
73220
|
-
process.env[`${prefix}
|
|
73221
|
-
}
|
|
73222
|
-
if (config.secondary) {
|
|
73223
|
-
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
73212
|
+
if (config.brand1) {
|
|
73213
|
+
process.env[`${prefix}BRAND1`] = config.brand1;
|
|
73224
73214
|
}
|
|
73225
|
-
if (config.
|
|
73226
|
-
process.env[`${prefix}
|
|
73215
|
+
if (config.brand2) {
|
|
73216
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
73227
73217
|
}
|
|
73228
|
-
if (config.
|
|
73229
|
-
process.env[`${prefix}
|
|
73218
|
+
if (config.brand3) {
|
|
73219
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
73230
73220
|
}
|
|
73231
73221
|
if (config.success) {
|
|
73232
73222
|
process.env[`${prefix}SUCCESS`] = config.success;
|