@storm-software/linting-tools 1.47.2 → 1.48.1
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 +27 -16
- package/README.md +1 -1
- package/bin/lint.js +215 -229
- package/cspell/dictionary.txt +1 -0
- package/package.json +2 -2
- package/src/cli/index.js +90 -90
package/cspell/dictionary.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"keywords": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"url": "https://github.com/storm-software/storm-ops",
|
|
23
23
|
"directory": "packages/linting-tools"
|
|
24
24
|
},
|
|
25
|
-
"license": "Apache
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
26
|
"author": {
|
|
27
27
|
"name": "Storm Software",
|
|
28
28
|
"email": "contact@stormsoftware.com",
|
package/src/cli/index.js
CHANGED
|
@@ -30215,9 +30215,9 @@ var require_commonjs2 = __commonJS({
|
|
|
30215
30215
|
}
|
|
30216
30216
|
});
|
|
30217
30217
|
|
|
30218
|
-
// node_modules/.pnpm/minipass@7.0
|
|
30218
|
+
// node_modules/.pnpm/minipass@7.1.0/node_modules/minipass/dist/commonjs/index.js
|
|
30219
30219
|
var require_commonjs3 = __commonJS({
|
|
30220
|
-
"node_modules/.pnpm/minipass@7.0
|
|
30220
|
+
"node_modules/.pnpm/minipass@7.1.0/node_modules/minipass/dist/commonjs/index.js"(exports) {
|
|
30221
30221
|
"use strict";
|
|
30222
30222
|
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
30223
30223
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -240985,17 +240985,17 @@ var require_lib3 = __commonJS({
|
|
|
240985
240985
|
}
|
|
240986
240986
|
});
|
|
240987
240987
|
|
|
240988
|
-
// node_modules/.pnpm/nopt@7.2.
|
|
240988
|
+
// node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/debug.js
|
|
240989
240989
|
var require_debug = __commonJS({
|
|
240990
|
-
"node_modules/.pnpm/nopt@7.2.
|
|
240990
|
+
"node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/debug.js"(exports, module) {
|
|
240991
240991
|
module.exports = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG ? (...a) => console.error(...a) : () => {
|
|
240992
240992
|
};
|
|
240993
240993
|
}
|
|
240994
240994
|
});
|
|
240995
240995
|
|
|
240996
|
-
// node_modules/.pnpm/nopt@7.2.
|
|
240996
|
+
// node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/type-defs.js
|
|
240997
240997
|
var require_type_defs = __commonJS({
|
|
240998
|
-
"node_modules/.pnpm/nopt@7.2.
|
|
240998
|
+
"node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/type-defs.js"(exports, module) {
|
|
240999
240999
|
var url = __require("url");
|
|
241000
241000
|
var path35 = __require("path");
|
|
241001
241001
|
var Stream3 = __require("stream").Stream;
|
|
@@ -241077,9 +241077,9 @@ var require_type_defs = __commonJS({
|
|
|
241077
241077
|
}
|
|
241078
241078
|
});
|
|
241079
241079
|
|
|
241080
|
-
// node_modules/.pnpm/nopt@7.2.
|
|
241080
|
+
// node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/nopt-lib.js
|
|
241081
241081
|
var require_nopt_lib = __commonJS({
|
|
241082
|
-
"node_modules/.pnpm/nopt@7.2.
|
|
241082
|
+
"node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/nopt-lib.js"(exports, module) {
|
|
241083
241083
|
var abbrev = require_lib3();
|
|
241084
241084
|
var debug14 = require_debug();
|
|
241085
241085
|
var defaultTypeDefs = require_type_defs();
|
|
@@ -241444,9 +241444,9 @@ var require_nopt_lib = __commonJS({
|
|
|
241444
241444
|
}
|
|
241445
241445
|
});
|
|
241446
241446
|
|
|
241447
|
-
// node_modules/.pnpm/nopt@7.2.
|
|
241447
|
+
// node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/nopt.js
|
|
241448
241448
|
var require_nopt = __commonJS({
|
|
241449
|
-
"node_modules/.pnpm/nopt@7.2.
|
|
241449
|
+
"node_modules/.pnpm/nopt@7.2.1/node_modules/nopt/lib/nopt.js"(exports, module) {
|
|
241450
241450
|
var lib = require_nopt_lib();
|
|
241451
241451
|
var defaultTypeDefs = require_type_defs();
|
|
241452
241452
|
module.exports = exports = nopt;
|
|
@@ -241630,9 +241630,9 @@ var require_lib4 = __commonJS({
|
|
|
241630
241630
|
}
|
|
241631
241631
|
});
|
|
241632
241632
|
|
|
241633
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
241633
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/umask.js
|
|
241634
241634
|
var require_umask = __commonJS({
|
|
241635
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
241635
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/umask.js"(exports, module) {
|
|
241636
241636
|
var parse5 = (val) => {
|
|
241637
241637
|
if (typeof val === "string") {
|
|
241638
241638
|
if (/^0o?[0-7]+$/.test(val)) {
|
|
@@ -242104,9 +242104,9 @@ var require_valid = __commonJS({
|
|
|
242104
242104
|
}
|
|
242105
242105
|
});
|
|
242106
242106
|
|
|
242107
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242107
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/type-defs.js
|
|
242108
242108
|
var require_type_defs2 = __commonJS({
|
|
242109
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242109
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/type-defs.js"(exports, module) {
|
|
242110
242110
|
var nopt = require_nopt();
|
|
242111
242111
|
var { validate: validateUmask } = require_umask();
|
|
242112
242112
|
var Umask = class {
|
|
@@ -242166,9 +242166,9 @@ var require_type_defs2 = __commonJS({
|
|
|
242166
242166
|
}
|
|
242167
242167
|
});
|
|
242168
242168
|
|
|
242169
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242169
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/nerf-dart.js
|
|
242170
242170
|
var require_nerf_dart = __commonJS({
|
|
242171
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242171
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/nerf-dart.js"(exports, module) {
|
|
242172
242172
|
var { URL: URL3 } = __require("node:url");
|
|
242173
242173
|
module.exports = (url) => {
|
|
242174
242174
|
const parsed = new URL3(url);
|
|
@@ -242180,9 +242180,9 @@ var require_nerf_dart = __commonJS({
|
|
|
242180
242180
|
}
|
|
242181
242181
|
});
|
|
242182
242182
|
|
|
242183
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242183
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/env-replace.js
|
|
242184
242184
|
var require_env_replace = __commonJS({
|
|
242185
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242185
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/env-replace.js"(exports, module) {
|
|
242186
242186
|
var envExpr = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
|
|
242187
242187
|
module.exports = (f, env3) => f.replace(envExpr, (orig, esc, name) => {
|
|
242188
242188
|
const val = env3[name] !== void 0 ? env3[name] : `\${${name}}`;
|
|
@@ -242194,9 +242194,9 @@ var require_env_replace = __commonJS({
|
|
|
242194
242194
|
}
|
|
242195
242195
|
});
|
|
242196
242196
|
|
|
242197
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242197
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/parse-field.js
|
|
242198
242198
|
var require_parse_field = __commonJS({
|
|
242199
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242199
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/parse-field.js"(exports, module) {
|
|
242200
242200
|
var typeDefs = require_type_defs2();
|
|
242201
242201
|
var envReplace = require_env_replace();
|
|
242202
242202
|
var { resolve: resolve12 } = __require("node:path");
|
|
@@ -242264,9 +242264,9 @@ var require_parse_field = __commonJS({
|
|
|
242264
242264
|
}
|
|
242265
242265
|
});
|
|
242266
242266
|
|
|
242267
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242267
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/set-envs.js
|
|
242268
242268
|
var require_set_envs = __commonJS({
|
|
242269
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242269
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/set-envs.js"(exports, module) {
|
|
242270
242270
|
var envKey = (key, val) => {
|
|
242271
242271
|
return !/^[/@_]/.test(key) && typeof envVal(val) === "string" && `npm_config_${key.replace(/-/g, "_").toLowerCase()}`;
|
|
242272
242272
|
};
|
|
@@ -242331,9 +242331,9 @@ var require_set_envs = __commonJS({
|
|
|
242331
242331
|
}
|
|
242332
242332
|
});
|
|
242333
242333
|
|
|
242334
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242334
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/errors.js
|
|
242335
242335
|
var require_errors2 = __commonJS({
|
|
242336
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242336
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/errors.js"(exports, module) {
|
|
242337
242337
|
"use strict";
|
|
242338
242338
|
var ErrInvalidAuth = class extends Error {
|
|
242339
242339
|
constructor(problems) {
|
|
@@ -242357,9 +242357,9 @@ var require_errors2 = __commonJS({
|
|
|
242357
242357
|
}
|
|
242358
242358
|
});
|
|
242359
242359
|
|
|
242360
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242360
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/type-description.js
|
|
242361
242361
|
var require_type_description = __commonJS({
|
|
242362
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242362
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/type-description.js"(exports, module) {
|
|
242363
242363
|
var typeDefs = require_type_defs2();
|
|
242364
242364
|
var typeDescription = (t) => {
|
|
242365
242365
|
if (!t || typeof t !== "function" && typeof t !== "object") {
|
|
@@ -242379,9 +242379,9 @@ var require_type_description = __commonJS({
|
|
|
242379
242379
|
}
|
|
242380
242380
|
});
|
|
242381
242381
|
|
|
242382
|
-
// node_modules/.pnpm/json-parse-even-better-errors@3.0.
|
|
242382
|
+
// node_modules/.pnpm/json-parse-even-better-errors@3.0.2/node_modules/json-parse-even-better-errors/lib/index.js
|
|
242383
242383
|
var require_lib5 = __commonJS({
|
|
242384
|
-
"node_modules/.pnpm/json-parse-even-better-errors@3.0.
|
|
242384
|
+
"node_modules/.pnpm/json-parse-even-better-errors@3.0.2/node_modules/json-parse-even-better-errors/lib/index.js"(exports, module) {
|
|
242385
242385
|
"use strict";
|
|
242386
242386
|
var INDENT = Symbol.for("indent");
|
|
242387
242387
|
var NEWLINE = Symbol.for("newline");
|
|
@@ -242843,9 +242843,9 @@ var require_lib9 = __commonJS({
|
|
|
242843
242843
|
}
|
|
242844
242844
|
});
|
|
242845
242845
|
|
|
242846
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
242846
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/index.js
|
|
242847
242847
|
var require_lib10 = __commonJS({
|
|
242848
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
242848
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/index.js"(exports, module) {
|
|
242849
242849
|
var { walkUp } = require_cjs3();
|
|
242850
242850
|
var ini2 = require_ini2();
|
|
242851
242851
|
var nopt = require_nopt();
|
|
@@ -243263,7 +243263,7 @@ var require_lib10 = __commonJS({
|
|
|
243263
243263
|
const k = envReplace(key, this.env);
|
|
243264
243264
|
const v = this.parseField(value, k);
|
|
243265
243265
|
if (where !== "default") {
|
|
243266
|
-
this.#checkDeprecated(k
|
|
243266
|
+
this.#checkDeprecated(k);
|
|
243267
243267
|
if (this.definitions[key]?.exclusive) {
|
|
243268
243268
|
for (const exclusive of this.definitions[key].exclusive) {
|
|
243269
243269
|
if (!this.isDefault(exclusive)) {
|
|
@@ -243276,7 +243276,7 @@ var require_lib10 = __commonJS({
|
|
|
243276
243276
|
}
|
|
243277
243277
|
}
|
|
243278
243278
|
}
|
|
243279
|
-
#checkDeprecated(key
|
|
243279
|
+
#checkDeprecated(key) {
|
|
243280
243280
|
if (this.deprecated[key]) {
|
|
243281
243281
|
log2.warn("config", key, this.deprecated[key]);
|
|
243282
243282
|
}
|
|
@@ -243392,7 +243392,7 @@ var require_lib10 = __commonJS({
|
|
|
243392
243392
|
}
|
|
243393
243393
|
const iniData = ini2.stringify(conf.raw).trim() + "\n";
|
|
243394
243394
|
if (!iniData.trim()) {
|
|
243395
|
-
await unlink(conf.source).catch((
|
|
243395
|
+
await unlink(conf.source).catch(() => {
|
|
243396
243396
|
});
|
|
243397
243397
|
return;
|
|
243398
243398
|
}
|
|
@@ -243425,9 +243425,8 @@ var require_lib10 = __commonJS({
|
|
|
243425
243425
|
this.delete(`${nerfed}:certfile`, level);
|
|
243426
243426
|
this.delete(`${nerfed}:keyfile`, level);
|
|
243427
243427
|
}
|
|
243428
|
-
setCredentialsByURI(uri, { token, username, password,
|
|
243428
|
+
setCredentialsByURI(uri, { token, username, password, certfile, keyfile }) {
|
|
243429
243429
|
const nerfed = nerfDart(uri);
|
|
243430
|
-
email = email || this.get("email", "user");
|
|
243431
243430
|
this.delete(`${nerfed}:always-auth`, "user");
|
|
243432
243431
|
this.delete(`${nerfed}:email`, "user");
|
|
243433
243432
|
if (certfile && keyfile) {
|
|
@@ -243552,9 +243551,9 @@ var require_lib10 = __commonJS({
|
|
|
243552
243551
|
}
|
|
243553
243552
|
});
|
|
243554
243553
|
|
|
243555
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
243554
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/definitions/definition.js
|
|
243556
243555
|
var require_definition = __commonJS({
|
|
243557
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
243556
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/definitions/definition.js"(exports, module) {
|
|
243558
243557
|
var required = ["type", "description", "default", "key"];
|
|
243559
243558
|
var allowed = [
|
|
243560
243559
|
"default",
|
|
@@ -244154,9 +244153,9 @@ var require_ci_info = __commonJS({
|
|
|
244154
244153
|
}
|
|
244155
244154
|
});
|
|
244156
244155
|
|
|
244157
|
-
// node_modules/.pnpm/@npmcli+config@8.3.
|
|
244156
|
+
// node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/definitions/definitions.js
|
|
244158
244157
|
var require_definitions = __commonJS({
|
|
244159
|
-
"node_modules/.pnpm/@npmcli+config@8.3.
|
|
244158
|
+
"node_modules/.pnpm/@npmcli+config@8.3.1/node_modules/@npmcli/config/lib/definitions/definitions.js"(exports, module) {
|
|
244160
244159
|
var Definition = require_definition();
|
|
244161
244160
|
var ciInfo = require_ci_info();
|
|
244162
244161
|
var querystring = __require("node:querystring");
|
|
@@ -246474,9 +246473,9 @@ var require_js_tokens = __commonJS({
|
|
|
246474
246473
|
}
|
|
246475
246474
|
});
|
|
246476
246475
|
|
|
246477
|
-
// node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
246476
|
+
// node_modules/.pnpm/@babel+helper-validator-identifier@7.24.5/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
246478
246477
|
var require_identifier = __commonJS({
|
|
246479
|
-
"node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
246478
|
+
"node_modules/.pnpm/@babel+helper-validator-identifier@7.24.5/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports) {
|
|
246480
246479
|
"use strict";
|
|
246481
246480
|
Object.defineProperty(exports, "__esModule", {
|
|
246482
246481
|
value: true
|
|
@@ -246559,9 +246558,9 @@ var require_identifier = __commonJS({
|
|
|
246559
246558
|
}
|
|
246560
246559
|
});
|
|
246561
246560
|
|
|
246562
|
-
// node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
246561
|
+
// node_modules/.pnpm/@babel+helper-validator-identifier@7.24.5/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
246563
246562
|
var require_keyword = __commonJS({
|
|
246564
|
-
"node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
246563
|
+
"node_modules/.pnpm/@babel+helper-validator-identifier@7.24.5/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports) {
|
|
246565
246564
|
"use strict";
|
|
246566
246565
|
Object.defineProperty(exports, "__esModule", {
|
|
246567
246566
|
value: true
|
|
@@ -246597,9 +246596,9 @@ var require_keyword = __commonJS({
|
|
|
246597
246596
|
}
|
|
246598
246597
|
});
|
|
246599
246598
|
|
|
246600
|
-
// node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
246599
|
+
// node_modules/.pnpm/@babel+helper-validator-identifier@7.24.5/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
246601
246600
|
var require_lib11 = __commonJS({
|
|
246602
|
-
"node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
246601
|
+
"node_modules/.pnpm/@babel+helper-validator-identifier@7.24.5/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports) {
|
|
246603
246602
|
"use strict";
|
|
246604
246603
|
Object.defineProperty(exports, "__esModule", {
|
|
246605
246604
|
value: true
|
|
@@ -246706,9 +246705,9 @@ var require_picocolors = __commonJS({
|
|
|
246706
246705
|
}
|
|
246707
246706
|
});
|
|
246708
246707
|
|
|
246709
|
-
// node_modules/.pnpm/@babel+highlight@7.24.
|
|
246708
|
+
// node_modules/.pnpm/@babel+highlight@7.24.5/node_modules/@babel/highlight/lib/index.js
|
|
246710
246709
|
var require_lib12 = __commonJS({
|
|
246711
|
-
"node_modules/.pnpm/@babel+highlight@7.24.
|
|
246710
|
+
"node_modules/.pnpm/@babel+highlight@7.24.5/node_modules/@babel/highlight/lib/index.js"(exports) {
|
|
246712
246711
|
"use strict";
|
|
246713
246712
|
Object.defineProperty(exports, "__esModule", {
|
|
246714
246713
|
value: true
|
|
@@ -246736,7 +246735,7 @@ var require_lib12 = __commonJS({
|
|
|
246736
246735
|
return t.get(e);
|
|
246737
246736
|
var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
246738
246737
|
for (var u in e)
|
|
246739
|
-
if ("default" !== u &&
|
|
246738
|
+
if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
246740
246739
|
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
246741
246740
|
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
246742
246741
|
}
|
|
@@ -246768,7 +246767,7 @@ var require_lib12 = __commonJS({
|
|
|
246768
246767
|
if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) {
|
|
246769
246768
|
return "keyword";
|
|
246770
246769
|
}
|
|
246771
|
-
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset)
|
|
246770
|
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
|
246772
246771
|
return "jsxIdentifier";
|
|
246773
246772
|
}
|
|
246774
246773
|
if (token.value[0] !== token.value[0].toLowerCase()) {
|
|
@@ -284644,9 +284643,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
284644
284643
|
}
|
|
284645
284644
|
});
|
|
284646
284645
|
|
|
284647
|
-
// node_modules/.pnpm/ajv@8.
|
|
284646
|
+
// node_modules/.pnpm/ajv@8.13.0/node_modules/ajv/dist/runtime/equal.js
|
|
284648
284647
|
var require_equal = __commonJS({
|
|
284649
|
-
"node_modules/.pnpm/ajv@8.
|
|
284648
|
+
"node_modules/.pnpm/ajv@8.13.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
284650
284649
|
"use strict";
|
|
284651
284650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
284652
284651
|
var equal2 = require_fast_deep_equal();
|
|
@@ -292372,24 +292371,20 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
292372
292371
|
});
|
|
292373
292372
|
|
|
292374
292373
|
// packages/config/src/schema.ts
|
|
292375
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
292374
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
292376
292375
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
292377
|
-
var
|
|
292378
|
-
var
|
|
292379
|
-
var TertiaryColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
|
|
292380
|
-
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
|
|
292376
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
292377
|
+
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
292381
292378
|
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
292382
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
292379
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
292383
292380
|
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
292384
|
-
var ErrorColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
292385
|
-
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).
|
|
292381
|
+
var ErrorColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
|
|
292382
|
+
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
292386
292383
|
var DarkThemeColorConfigSchema = z.object({
|
|
292387
292384
|
foreground: LightColorSchema,
|
|
292388
292385
|
background: DarkColorSchema,
|
|
292389
|
-
|
|
292390
|
-
|
|
292391
|
-
tertiary: TertiaryColorSchema,
|
|
292392
|
-
accent: AccentColorSchema,
|
|
292386
|
+
brand: BrandColorSchema,
|
|
292387
|
+
help: HelpColorSchema,
|
|
292393
292388
|
success: SuccessColorSchema,
|
|
292394
292389
|
info: InfoColorSchema,
|
|
292395
292390
|
warning: WarningColorSchema,
|
|
@@ -292399,10 +292394,8 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
292399
292394
|
var LightThemeColorConfigSchema = z.object({
|
|
292400
292395
|
foreground: DarkColorSchema,
|
|
292401
292396
|
background: LightColorSchema,
|
|
292402
|
-
|
|
292403
|
-
|
|
292404
|
-
tertiary: TertiaryColorSchema,
|
|
292405
|
-
accent: AccentColorSchema,
|
|
292397
|
+
brand: BrandColorSchema,
|
|
292398
|
+
help: HelpColorSchema,
|
|
292406
292399
|
success: SuccessColorSchema,
|
|
292407
292400
|
info: InfoColorSchema,
|
|
292408
292401
|
warning: WarningColorSchema,
|
|
@@ -292416,10 +292409,8 @@ var MultiThemeColorConfigSchema = z.object({
|
|
|
292416
292409
|
var SingleThemeColorConfigSchema = z.object({
|
|
292417
292410
|
dark: DarkColorSchema,
|
|
292418
292411
|
light: LightColorSchema,
|
|
292419
|
-
|
|
292420
|
-
|
|
292421
|
-
tertiary: TertiaryColorSchema,
|
|
292422
|
-
accent: AccentColorSchema,
|
|
292412
|
+
brand: BrandColorSchema,
|
|
292413
|
+
help: HelpColorSchema,
|
|
292423
292414
|
success: SuccessColorSchema,
|
|
292424
292415
|
info: InfoColorSchema,
|
|
292425
292416
|
warning: WarningColorSchema,
|
|
@@ -292465,7 +292456,7 @@ var StormConfigSchema = z.object({
|
|
|
292465
292456
|
runtimeVersion: z.string().trim().regex(
|
|
292466
292457
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
292467
292458
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
292468
|
-
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
292459
|
+
packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
|
|
292469
292460
|
timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
292470
292461
|
locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
292471
292462
|
logLevel: z.enum([
|
|
@@ -292493,17 +292484,26 @@ var StormConfigSchema = z.object({
|
|
|
292493
292484
|
|
|
292494
292485
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
292495
292486
|
var DEFAULT_COLOR_CONFIG = {
|
|
292496
|
-
|
|
292497
|
-
|
|
292498
|
-
|
|
292499
|
-
|
|
292500
|
-
|
|
292501
|
-
|
|
292502
|
-
|
|
292503
|
-
|
|
292504
|
-
|
|
292505
|
-
|
|
292506
|
-
|
|
292487
|
+
light: {
|
|
292488
|
+
background: "#f4f4f5",
|
|
292489
|
+
foreground: "#1d232a",
|
|
292490
|
+
brand: "#1fb2a6",
|
|
292491
|
+
help: "#8250df",
|
|
292492
|
+
success: "#087f5b",
|
|
292493
|
+
info: "#0550ae",
|
|
292494
|
+
warning: "#e3b341",
|
|
292495
|
+
error: "#a40e26"
|
|
292496
|
+
},
|
|
292497
|
+
dark: {
|
|
292498
|
+
background: "#22272E",
|
|
292499
|
+
foreground: "#fcfcf5",
|
|
292500
|
+
brand: "#1fb2a6",
|
|
292501
|
+
help: "#8256D0",
|
|
292502
|
+
success: "#087f5b",
|
|
292503
|
+
info: "#316DCA",
|
|
292504
|
+
warning: "#F3D371",
|
|
292505
|
+
error: "#d1242f"
|
|
292506
|
+
}
|
|
292507
292507
|
};
|
|
292508
292508
|
var DEFAULT_STORM_CONFIG = {
|
|
292509
292509
|
name: "storm",
|
|
@@ -292612,7 +292612,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
292612
292612
|
return (message) => {
|
|
292613
292613
|
console.error(
|
|
292614
292614
|
`
|
|
292615
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#
|
|
292615
|
+
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
292616
292616
|
" \u{1F480} Fatal "
|
|
292617
292617
|
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
292618
292618
|
`
|
|
@@ -292667,9 +292667,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
292667
292667
|
return (message) => {
|
|
292668
292668
|
console.debug(
|
|
292669
292669
|
`
|
|
292670
|
-
${_chalk.bold.hex(colors.
|
|
292670
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
292671
292671
|
" \u{1F6E0} Debug "
|
|
292672
|
-
)} ${_chalk.hex(colors.
|
|
292672
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
292673
292673
|
`
|
|
292674
292674
|
);
|
|
292675
292675
|
};
|
|
@@ -292677,9 +292677,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
292677
292677
|
return (message) => {
|
|
292678
292678
|
console.log(
|
|
292679
292679
|
`
|
|
292680
|
-
${_chalk.bold.hex(colors.
|
|
292680
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
292681
292681
|
" \u2709 System "
|
|
292682
|
-
)} ${_chalk.hex(colors.
|
|
292682
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
292683
292683
|
`
|
|
292684
292684
|
);
|
|
292685
292685
|
};
|
|
@@ -292691,7 +292691,7 @@ var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(messa
|
|
|
292691
292691
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
292692
292692
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
292693
292693
|
var formatLogMessage = (message, prefix = "-") => {
|
|
292694
|
-
return typeof message === "string" ? message : typeof message === "object" ? `
|
|
292694
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
|
|
292695
292695
|
${Object.keys(message).map(
|
|
292696
292696
|
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
|
|
292697
292697
|
).join("\n")}` : message;
|
|
@@ -330410,7 +330410,7 @@ import * as actualFS from "fs";
|
|
|
330410
330410
|
import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "fs";
|
|
330411
330411
|
import { lstat, readdir, readlink, realpath } from "fs/promises";
|
|
330412
330412
|
|
|
330413
|
-
// node_modules/.pnpm/minipass@7.0
|
|
330413
|
+
// node_modules/.pnpm/minipass@7.1.0/node_modules/minipass/dist/esm/index.js
|
|
330414
330414
|
import { EventEmitter } from "events";
|
|
330415
330415
|
import Stream2 from "stream";
|
|
330416
330416
|
import { StringDecoder } from "string_decoder";
|