@storm-software/linting-tools 1.26.9 → 1.26.11

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.26.10](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.9...linting-tools-v1.26.10) (2024-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **config-tools:** Ehanced config values assignement logic ([d66dcf7](https://github.com/storm-software/storm-ops/commit/d66dcf7500d15bc85065cb5676a1fb585d44d94b))
7
+
8
+ ## [1.26.9](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.8...linting-tools-v1.26.9) (2024-01-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **config-tools:** Added code to print out config values added ([ea56410](https://github.com/storm-software/storm-ops/commit/ea56410f9e7e9f3e4f68268395a13127a1653d2d))
14
+
1
15
  ## [1.26.8](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.7...linting-tools-v1.26.8) (2024-01-17)
2
16
 
3
17
 
package/cli/index.js CHANGED
@@ -278254,29 +278254,6 @@ var getConfigFile = async (filePath2) => {
278254
278254
  return config2;
278255
278255
  };
278256
278256
 
278257
- // packages/config-tools/src/types.ts
278258
- var LogLevel = {
278259
- SILENT: 0,
278260
- FATAL: 10,
278261
- ERROR: 20,
278262
- WARN: 30,
278263
- INFO: 40,
278264
- SUCCESS: 45,
278265
- DEBUG: 60,
278266
- TRACE: 70,
278267
- ALL: 100
278268
- };
278269
- var LogLevelLabel = {
278270
- SILENT: "silent",
278271
- FATAL: "fatal",
278272
- ERROR: "error",
278273
- WARN: "warn",
278274
- INFO: "info",
278275
- DEBUG: "debug",
278276
- TRACE: "trace",
278277
- ALL: "all"
278278
- };
278279
-
278280
278257
  // packages/config-tools/src/utilities/find-up.ts
278281
278258
  import { existsSync } from "node:fs";
278282
278259
  import { join } from "node:path";
@@ -282056,6 +282033,29 @@ var getDefaultConfig = (config2 = {}, root) => {
282056
282033
  });
282057
282034
  };
282058
282035
 
282036
+ // packages/config-tools/src/types.ts
282037
+ var LogLevel = {
282038
+ SILENT: 0,
282039
+ FATAL: 10,
282040
+ ERROR: 20,
282041
+ WARN: 30,
282042
+ INFO: 40,
282043
+ SUCCESS: 45,
282044
+ DEBUG: 60,
282045
+ TRACE: 70,
282046
+ ALL: 100
282047
+ };
282048
+ var LogLevelLabel = {
282049
+ SILENT: "silent",
282050
+ FATAL: "fatal",
282051
+ ERROR: "error",
282052
+ WARN: "warn",
282053
+ INFO: "info",
282054
+ DEBUG: "debug",
282055
+ TRACE: "trace",
282056
+ ALL: "all"
282057
+ };
282058
+
282059
282059
  // packages/config-tools/src/utilities/get-log-level.ts
282060
282060
  var getLogLevel = (label) => {
282061
282061
  switch (label) {
@@ -282384,16 +282384,6 @@ var prepareWorkspace = async () => {
282384
282384
  };
282385
282385
 
282386
282386
  // packages/config-tools/src/env/get-env.ts
282387
- var getExtensionEnv = (extensionName) => {
282388
- const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
282389
- return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
282390
- const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
282391
- if (name) {
282392
- ret[name] = process.env[key];
282393
- }
282394
- return ret;
282395
- }, {});
282396
- };
282397
282387
  var getConfigEnv = () => {
282398
282388
  const prefix = "STORM_";
282399
282389
  let config2 = {
@@ -282414,7 +282404,9 @@ var getConfigEnv = () => {
282414
282404
  runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
282415
282405
  runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
282416
282406
  env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
282417
- ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
282407
+ ci: process.env[`${prefix}CI`] !== void 0 ? Boolean(
282408
+ process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
282409
+ ) : void 0,
282418
282410
  colors: {
282419
282411
  primary: process.env[`${prefix}COLOR_PRIMARY`],
282420
282412
  background: process.env[`${prefix}COLOR_BACKGROUND`],
@@ -282426,9 +282418,8 @@ var getConfigEnv = () => {
282426
282418
  },
282427
282419
  repository: process.env[`${prefix}REPOSITORY`],
282428
282420
  branch: process.env[`${prefix}BRANCH`],
282429
- preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
282430
- logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
282431
- extensions: {}
282421
+ preMajor: process.env[`${prefix}PRE_MAJOR`] !== void 0 ? Boolean(process.env[`${prefix}PRE_MAJOR`]) : void 0,
282422
+ logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
282432
282423
  };
282433
282424
  const serializedConfig = process.env[`${prefix}CONFIG`];
282434
282425
  if (serializedConfig) {
@@ -282440,14 +282431,7 @@ var getConfigEnv = () => {
282440
282431
  extensions: { ...config2.extensions, ...parsed.extensions }
282441
282432
  };
282442
282433
  }
282443
- const extensionPrefix = `${prefix}EXTENSION_`;
282444
- return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
282445
- const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
282446
- if (extensionName) {
282447
- ret.extensions[extensionName] = getExtensionEnv(extensionName);
282448
- }
282449
- return ret;
282450
- }, config2);
282434
+ return config2;
282451
282435
  };
282452
282436
 
282453
282437
  // node_modules/.pnpm/commander@11.1.0/node_modules/commander/esm.mjs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/linting-tools",
3
- "version": "1.26.9",
3
+ "version": "1.26.11",
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": [