@storm-software/untyped 0.24.61 → 0.24.63

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.24.54-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.24.62-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/bin/untyped.cjs CHANGED
@@ -675,6 +675,35 @@ var DEFAULT_COLOR_CONFIG = {
675
675
  gradient: ["#1fb2a6", "#db2777", "#818cf8"]
676
676
  }
677
677
  };
678
+ function getColors(config) {
679
+ if (!config?.colors || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !config.colors["base"]?.["dark"])) {
680
+ return DEFAULT_COLOR_CONFIG;
681
+ }
682
+ if (config.colors["base"]) {
683
+ if (typeof config.colors["base"]["dark"] === "object") {
684
+ return config.colors["base"]["dark"];
685
+ } else if (config.colors["base"]["dark"] === "string") {
686
+ return config.colors["base"];
687
+ }
688
+ }
689
+ if (typeof config.colors["dark"] === "object") {
690
+ return config.colors["dark"];
691
+ }
692
+ return config.colors ?? DEFAULT_COLOR_CONFIG;
693
+ }
694
+ function getColor(key, config) {
695
+ const colors = getColors(config);
696
+ const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
697
+ if (result) {
698
+ return result;
699
+ }
700
+ if (key === "link" || key === "debug") {
701
+ return getColor("info", config);
702
+ } else if (key === "fatal") {
703
+ return getColor("danger", config);
704
+ }
705
+ return getColor("brand", config);
706
+ }
678
707
 
679
708
  // ../config-tools/src/logger/chalk.ts
680
709
  var import_chalk = __toESM(require("chalk"), 1);
@@ -940,6 +969,7 @@ var _isFunction = (value) => {
940
969
  return false;
941
970
  }
942
971
  };
972
+ var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
943
973
 
944
974
  // ../config-tools/src/utilities/correct-paths.ts
945
975
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -2284,7 +2314,10 @@ ${JSON.stringify(schema)}
2284
2314
  // bin/untyped.ts
2285
2315
  async function createProgram(config) {
2286
2316
  try {
2287
- writeInfo("\u26A1 Running Storm Untyped codegen utility", config);
2317
+ writeInfo(
2318
+ `${brandIcon(config)} Running Storm Untyped codegen utility`,
2319
+ config
2320
+ );
2288
2321
  const root = findWorkspaceRootSafe();
2289
2322
  process.env.STORM_WORKSPACE_ROOT ??= root;
2290
2323
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
@@ -2293,7 +2326,7 @@ async function createProgram(config) {
2293
2326
  }
2294
2327
  const program = new import_commander.Command("storm-untyped");
2295
2328
  program.version("1.0.0", "-v --version", "display CLI version");
2296
- program.description("\u26A1 Run the Storm untyped codegen utility").showHelpAfterError(true).showSuggestionAfterError();
2329
+ program.description("Run the Storm untyped codegen utility").showHelpAfterError(true).showSuggestionAfterError();
2297
2330
  program.command("generate", { isDefault: true }).alias("bundle").description(
2298
2331
  "Run a TypeScript build using Untyped, API-Extractor, and TSC (for type generation)."
2299
2332
  ).option(
package/bin/untyped.js CHANGED
@@ -653,6 +653,35 @@ var DEFAULT_COLOR_CONFIG = {
653
653
  gradient: ["#1fb2a6", "#db2777", "#818cf8"]
654
654
  }
655
655
  };
656
+ function getColors(config) {
657
+ if (!config?.colors || typeof config.colors !== "object" || !config.colors["dark"] && (!config.colors["base"] || typeof config.colors !== "object" || !config.colors["base"]?.["dark"])) {
658
+ return DEFAULT_COLOR_CONFIG;
659
+ }
660
+ if (config.colors["base"]) {
661
+ if (typeof config.colors["base"]["dark"] === "object") {
662
+ return config.colors["base"]["dark"];
663
+ } else if (config.colors["base"]["dark"] === "string") {
664
+ return config.colors["base"];
665
+ }
666
+ }
667
+ if (typeof config.colors["dark"] === "object") {
668
+ return config.colors["dark"];
669
+ }
670
+ return config.colors ?? DEFAULT_COLOR_CONFIG;
671
+ }
672
+ function getColor(key, config) {
673
+ const colors = getColors(config);
674
+ const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
675
+ if (result) {
676
+ return result;
677
+ }
678
+ if (key === "link" || key === "debug") {
679
+ return getColor("info", config);
680
+ } else if (key === "fatal") {
681
+ return getColor("danger", config);
682
+ }
683
+ return getColor("brand", config);
684
+ }
656
685
 
657
686
  // ../config-tools/src/logger/chalk.ts
658
687
  import chalk from "chalk";
@@ -918,6 +947,7 @@ var _isFunction = (value) => {
918
947
  return false;
919
948
  }
920
949
  };
950
+ var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("\u{1F5F2}");
921
951
 
922
952
  // ../config-tools/src/utilities/correct-paths.ts
923
953
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
@@ -2262,7 +2292,10 @@ ${JSON.stringify(schema)}
2262
2292
  // bin/untyped.ts
2263
2293
  async function createProgram(config) {
2264
2294
  try {
2265
- writeInfo("\u26A1 Running Storm Untyped codegen utility", config);
2295
+ writeInfo(
2296
+ `${brandIcon(config)} Running Storm Untyped codegen utility`,
2297
+ config
2298
+ );
2266
2299
  const root = findWorkspaceRootSafe();
2267
2300
  process.env.STORM_WORKSPACE_ROOT ??= root;
2268
2301
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
@@ -2271,7 +2304,7 @@ async function createProgram(config) {
2271
2304
  }
2272
2305
  const program = new Command("storm-untyped");
2273
2306
  program.version("1.0.0", "-v --version", "display CLI version");
2274
- program.description("\u26A1 Run the Storm untyped codegen utility").showHelpAfterError(true).showSuggestionAfterError();
2307
+ program.description("Run the Storm untyped codegen utility").showHelpAfterError(true).showSuggestionAfterError();
2275
2308
  program.command("generate", { isDefault: true }).alias("bundle").description(
2276
2309
  "Run a TypeScript build using Untyped, API-Extractor, and TSC (for type generation)."
2277
2310
  ).option(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/untyped",
3
- "version": "0.24.61",
3
+ "version": "0.24.63",
4
4
  "type": "module",
5
5
  "description": "A package containing `untyped` utilities for building Storm Software libraries and applications",
6
6
  "repository": {
@@ -179,7 +179,7 @@
179
179
  "sullivanpj"
180
180
  ],
181
181
  "dependencies": {
182
- "@storm-software/config-tools": "^1.188.80",
182
+ "@storm-software/config-tools": "^1.189.1",
183
183
  "commander": "^12.1.0",
184
184
  "glob": "^11.1.0",
185
185
  "jiti": "2.4.2",
@@ -192,5 +192,5 @@
192
192
  },
193
193
  "publishConfig": { "access": "public" },
194
194
  "sideEffects": false,
195
- "gitHead": "f0da2445e3b4764750c75fdcd1d0ec13a10c6602"
195
+ "gitHead": "282913d6672835512eeea3570f24995dfb7e40c6"
196
196
  }