@storm-software/untyped 0.24.103 → 0.24.104

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.101-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.102-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
@@ -106,6 +106,10 @@ var fatalColorSchema = z.optional(colorSchema);
106
106
  schemaRegistry.add(fatalColorSchema, {
107
107
  description: "The fatal color of the workspace"
108
108
  });
109
+ var performanceColorSchema = z._default(colorSchema, "#00ff00");
110
+ schemaRegistry.add(performanceColorSchema, {
111
+ description: "The performance color of the workspace"
112
+ });
109
113
  var positiveColorSchema = z._default(colorSchema, "#4ade80");
110
114
  schemaRegistry.add(positiveColorSchema, {
111
115
  description: "The positive number color of the workspace"
@@ -132,6 +136,7 @@ var darkColorsSchema = z.object({
132
136
  warning: warningColorSchema,
133
137
  danger: dangerColorSchema,
134
138
  fatal: fatalColorSchema,
139
+ performance: performanceColorSchema,
135
140
  positive: positiveColorSchema,
136
141
  negative: negativeColorSchema,
137
142
  gradient: gradientStopsSchema
@@ -150,6 +155,7 @@ var lightColorsSchema = z.object({
150
155
  warning: warningColorSchema,
151
156
  danger: dangerColorSchema,
152
157
  fatal: fatalColorSchema,
158
+ performance: performanceColorSchema,
153
159
  positive: positiveColorSchema,
154
160
  negative: negativeColorSchema,
155
161
  gradient: gradientStopsSchema
@@ -172,6 +178,7 @@ var singleColorsSchema = z.object({
172
178
  warning: warningColorSchema,
173
179
  danger: dangerColorSchema,
174
180
  fatal: fatalColorSchema,
181
+ performance: performanceColorSchema,
175
182
  positive: positiveColorSchema,
176
183
  negative: negativeColorSchema,
177
184
  gradient: gradientStopsSchema
@@ -539,6 +546,7 @@ var logLevelSchema = z._default(
539
546
  "warn",
540
547
  "success",
541
548
  "info",
549
+ "performance",
542
550
  "debug",
543
551
  "trace",
544
552
  "all"
@@ -622,6 +630,7 @@ var LogLevel = {
622
630
  WARN: 30,
623
631
  SUCCESS: 35,
624
632
  INFO: 40,
633
+ PERFORMANCE: 50,
625
634
  DEBUG: 60,
626
635
  TRACE: 70,
627
636
  ALL: 100
@@ -633,6 +642,7 @@ var LogLevelLabel = {
633
642
  WARN: "warn",
634
643
  SUCCESS: "success",
635
644
  INFO: "info",
645
+ PERFORMANCE: "performance",
636
646
  DEBUG: "debug",
637
647
  TRACE: "trace",
638
648
  ALL: "all"
@@ -652,6 +662,7 @@ var DEFAULT_COLOR_CONFIG = {
652
662
  warning: "#e3b341",
653
663
  danger: "#D8314A",
654
664
  fatal: "#51070f",
665
+ performance: "#83ff83",
655
666
  link: "#3fa6ff",
656
667
  positive: "#22c55e",
657
668
  negative: "#dc2626",
@@ -669,6 +680,7 @@ var DEFAULT_COLOR_CONFIG = {
669
680
  warning: "#f3d371",
670
681
  danger: "#D8314A",
671
682
  fatal: "#a40e26",
683
+ performance: "#00ff00",
672
684
  link: "#3fa6ff",
673
685
  positive: "#22c55e",
674
686
  negative: "#dc2626",
@@ -756,6 +768,7 @@ var CONSOLE_ICONS = {
756
768
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
757
769
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
758
770
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
771
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
759
772
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
760
773
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
761
774
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -776,6 +789,8 @@ var getLogLevel = (label) => {
776
789
  return LogLevel.TRACE;
777
790
  case "debug":
778
791
  return LogLevel.DEBUG;
792
+ case "performance":
793
+ return LogLevel.PERFORMANCE;
779
794
  case "info":
780
795
  return LogLevel.INFO;
781
796
  case "warn":
@@ -800,6 +815,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
800
815
  if (logLevel >= LogLevel.DEBUG) {
801
816
  return LogLevelLabel.DEBUG;
802
817
  }
818
+ if (logLevel >= LogLevel.PERFORMANCE) {
819
+ return LogLevelLabel.PERFORMANCE;
820
+ }
803
821
  if (logLevel >= LogLevel.INFO) {
804
822
  return LogLevelLabel.INFO;
805
823
  }
@@ -887,6 +905,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
887
905
  )(
888
906
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
889
907
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
908
+ `
909
+ );
910
+ };
911
+ }
912
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
913
+ return (message) => {
914
+ console.debug(
915
+ `
916
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
917
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
918
+ )(
919
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
920
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
890
921
  `
891
922
  );
892
923
  };
@@ -932,17 +963,15 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
932
963
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
933
964
  var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
934
965
  var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
966
+ var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
935
967
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
936
968
  var getStopwatch = (name) => {
937
969
  const start = /* @__PURE__ */ new Date();
938
970
  return () => {
939
- console.info(
940
- `> \u23F1 The${name ? ` ${name}` : ""} process took ${(0, import_formatDistanceToNow.formatDistanceToNow)(
941
- start,
942
- {
943
- includeSeconds: true
944
- }
945
- )} to complete`
971
+ writePerformance(
972
+ `The${name ? ` ${name}` : ""} process took ${(0, import_formatDistanceToNow.formatDistanceToNow)(start, {
973
+ includeSeconds: true
974
+ })} to complete`
946
975
  );
947
976
  };
948
977
  };
@@ -1205,6 +1234,7 @@ var COLOR_KEYS = [
1205
1234
  "warning",
1206
1235
  "danger",
1207
1236
  "fatal",
1237
+ "performance",
1208
1238
  "positive",
1209
1239
  "negative"
1210
1240
  ];
@@ -1584,6 +1614,7 @@ var getSingleThemeColorsEnv = (prefix) => {
1584
1614
  warning: process.env[`${prefix}WARNING`],
1585
1615
  danger: process.env[`${prefix}DANGER`],
1586
1616
  fatal: process.env[`${prefix}FATAL`],
1617
+ performance: process.env[`${prefix}PERFORMANCE`],
1587
1618
  positive: process.env[`${prefix}POSITIVE`],
1588
1619
  negative: process.env[`${prefix}NEGATIVE`],
1589
1620
  gradient
@@ -1623,6 +1654,7 @@ var getBaseThemeColorsEnv = (prefix) => {
1623
1654
  warning: process.env[`${prefix}WARNING`],
1624
1655
  danger: process.env[`${prefix}DANGER`],
1625
1656
  fatal: process.env[`${prefix}FATAL`],
1657
+ performance: process.env[`${prefix}PERFORMANCE`],
1626
1658
  positive: process.env[`${prefix}POSITIVE`],
1627
1659
  negative: process.env[`${prefix}NEGATIVE`],
1628
1660
  gradient
@@ -1933,6 +1965,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
1933
1965
  if (config.fatal) {
1934
1966
  process.env[`${prefix}FATAL`] = config.fatal;
1935
1967
  }
1968
+ if (config.performance) {
1969
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1970
+ }
1936
1971
  if (config.positive) {
1937
1972
  process.env[`${prefix}POSITIVE`] = config.positive;
1938
1973
  }
@@ -1991,6 +2026,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
1991
2026
  if (config.fatal) {
1992
2027
  process.env[`${prefix}FATAL`] = config.fatal;
1993
2028
  }
2029
+ if (config.performance) {
2030
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
2031
+ }
1994
2032
  if (config.positive) {
1995
2033
  process.env[`${prefix}POSITIVE`] = config.positive;
1996
2034
  }
package/bin/untyped.js CHANGED
@@ -84,6 +84,10 @@ var fatalColorSchema = z.optional(colorSchema);
84
84
  schemaRegistry.add(fatalColorSchema, {
85
85
  description: "The fatal color of the workspace"
86
86
  });
87
+ var performanceColorSchema = z._default(colorSchema, "#00ff00");
88
+ schemaRegistry.add(performanceColorSchema, {
89
+ description: "The performance color of the workspace"
90
+ });
87
91
  var positiveColorSchema = z._default(colorSchema, "#4ade80");
88
92
  schemaRegistry.add(positiveColorSchema, {
89
93
  description: "The positive number color of the workspace"
@@ -110,6 +114,7 @@ var darkColorsSchema = z.object({
110
114
  warning: warningColorSchema,
111
115
  danger: dangerColorSchema,
112
116
  fatal: fatalColorSchema,
117
+ performance: performanceColorSchema,
113
118
  positive: positiveColorSchema,
114
119
  negative: negativeColorSchema,
115
120
  gradient: gradientStopsSchema
@@ -128,6 +133,7 @@ var lightColorsSchema = z.object({
128
133
  warning: warningColorSchema,
129
134
  danger: dangerColorSchema,
130
135
  fatal: fatalColorSchema,
136
+ performance: performanceColorSchema,
131
137
  positive: positiveColorSchema,
132
138
  negative: negativeColorSchema,
133
139
  gradient: gradientStopsSchema
@@ -150,6 +156,7 @@ var singleColorsSchema = z.object({
150
156
  warning: warningColorSchema,
151
157
  danger: dangerColorSchema,
152
158
  fatal: fatalColorSchema,
159
+ performance: performanceColorSchema,
153
160
  positive: positiveColorSchema,
154
161
  negative: negativeColorSchema,
155
162
  gradient: gradientStopsSchema
@@ -517,6 +524,7 @@ var logLevelSchema = z._default(
517
524
  "warn",
518
525
  "success",
519
526
  "info",
527
+ "performance",
520
528
  "debug",
521
529
  "trace",
522
530
  "all"
@@ -600,6 +608,7 @@ var LogLevel = {
600
608
  WARN: 30,
601
609
  SUCCESS: 35,
602
610
  INFO: 40,
611
+ PERFORMANCE: 50,
603
612
  DEBUG: 60,
604
613
  TRACE: 70,
605
614
  ALL: 100
@@ -611,6 +620,7 @@ var LogLevelLabel = {
611
620
  WARN: "warn",
612
621
  SUCCESS: "success",
613
622
  INFO: "info",
623
+ PERFORMANCE: "performance",
614
624
  DEBUG: "debug",
615
625
  TRACE: "trace",
616
626
  ALL: "all"
@@ -630,6 +640,7 @@ var DEFAULT_COLOR_CONFIG = {
630
640
  warning: "#e3b341",
631
641
  danger: "#D8314A",
632
642
  fatal: "#51070f",
643
+ performance: "#83ff83",
633
644
  link: "#3fa6ff",
634
645
  positive: "#22c55e",
635
646
  negative: "#dc2626",
@@ -647,6 +658,7 @@ var DEFAULT_COLOR_CONFIG = {
647
658
  warning: "#f3d371",
648
659
  danger: "#D8314A",
649
660
  fatal: "#a40e26",
661
+ performance: "#00ff00",
650
662
  link: "#3fa6ff",
651
663
  positive: "#22c55e",
652
664
  negative: "#dc2626",
@@ -734,6 +746,7 @@ var CONSOLE_ICONS = {
734
746
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
735
747
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
736
748
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
749
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
737
750
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
738
751
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
739
752
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -754,6 +767,8 @@ var getLogLevel = (label) => {
754
767
  return LogLevel.TRACE;
755
768
  case "debug":
756
769
  return LogLevel.DEBUG;
770
+ case "performance":
771
+ return LogLevel.PERFORMANCE;
757
772
  case "info":
758
773
  return LogLevel.INFO;
759
774
  case "warn":
@@ -778,6 +793,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
778
793
  if (logLevel >= LogLevel.DEBUG) {
779
794
  return LogLevelLabel.DEBUG;
780
795
  }
796
+ if (logLevel >= LogLevel.PERFORMANCE) {
797
+ return LogLevelLabel.PERFORMANCE;
798
+ }
781
799
  if (logLevel >= LogLevel.INFO) {
782
800
  return LogLevelLabel.INFO;
783
801
  }
@@ -865,6 +883,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
865
883
  )(
866
884
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
867
885
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
886
+ `
887
+ );
888
+ };
889
+ }
890
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
891
+ return (message) => {
892
+ console.debug(
893
+ `
894
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
895
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
896
+ )(
897
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
898
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
868
899
  `
869
900
  );
870
901
  };
@@ -910,17 +941,15 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
910
941
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
911
942
  var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
912
943
  var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
944
+ var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
913
945
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
914
946
  var getStopwatch = (name) => {
915
947
  const start = /* @__PURE__ */ new Date();
916
948
  return () => {
917
- console.info(
918
- `> \u23F1 The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(
919
- start,
920
- {
921
- includeSeconds: true
922
- }
923
- )} to complete`
949
+ writePerformance(
950
+ `The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
951
+ includeSeconds: true
952
+ })} to complete`
924
953
  );
925
954
  };
926
955
  };
@@ -1183,6 +1212,7 @@ var COLOR_KEYS = [
1183
1212
  "warning",
1184
1213
  "danger",
1185
1214
  "fatal",
1215
+ "performance",
1186
1216
  "positive",
1187
1217
  "negative"
1188
1218
  ];
@@ -1562,6 +1592,7 @@ var getSingleThemeColorsEnv = (prefix) => {
1562
1592
  warning: process.env[`${prefix}WARNING`],
1563
1593
  danger: process.env[`${prefix}DANGER`],
1564
1594
  fatal: process.env[`${prefix}FATAL`],
1595
+ performance: process.env[`${prefix}PERFORMANCE`],
1565
1596
  positive: process.env[`${prefix}POSITIVE`],
1566
1597
  negative: process.env[`${prefix}NEGATIVE`],
1567
1598
  gradient
@@ -1601,6 +1632,7 @@ var getBaseThemeColorsEnv = (prefix) => {
1601
1632
  warning: process.env[`${prefix}WARNING`],
1602
1633
  danger: process.env[`${prefix}DANGER`],
1603
1634
  fatal: process.env[`${prefix}FATAL`],
1635
+ performance: process.env[`${prefix}PERFORMANCE`],
1604
1636
  positive: process.env[`${prefix}POSITIVE`],
1605
1637
  negative: process.env[`${prefix}NEGATIVE`],
1606
1638
  gradient
@@ -1911,6 +1943,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
1911
1943
  if (config.fatal) {
1912
1944
  process.env[`${prefix}FATAL`] = config.fatal;
1913
1945
  }
1946
+ if (config.performance) {
1947
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
1948
+ }
1914
1949
  if (config.positive) {
1915
1950
  process.env[`${prefix}POSITIVE`] = config.positive;
1916
1951
  }
@@ -1969,6 +2004,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
1969
2004
  if (config.fatal) {
1970
2005
  process.env[`${prefix}FATAL`] = config.fatal;
1971
2006
  }
2007
+ if (config.performance) {
2008
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
2009
+ }
1972
2010
  if (config.positive) {
1973
2011
  process.env[`${prefix}POSITIVE`] = config.positive;
1974
2012
  }
@@ -5,17 +5,17 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkR4BGLXGMcjs = require('./chunk-R4BGLXGM.cjs');
8
+ var _chunkN63SWX5Jcjs = require('./chunk-N63SWX5J.cjs');
9
9
 
10
10
 
11
- var _chunkNODVNGU4cjs = require('./chunk-NODVNGU4.cjs');
11
+ var _chunkHA3HZCDIcjs = require('./chunk-HA3HZCDI.cjs');
12
12
 
13
13
 
14
- var _chunkW6RT7NS6cjs = require('./chunk-W6RT7NS6.cjs');
14
+ var _chunkLJWAQIM6cjs = require('./chunk-LJWAQIM6.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkL64BC5YIcjs = require('./chunk-L64BC5YI.cjs');
18
+ var _chunkVCP73ILFcjs = require('./chunk-VCP73ILF.cjs');
19
19
 
20
20
 
21
21
  var _chunk4G3IU22Jcjs = require('./chunk-4G3IU22J.cjs');
@@ -6627,7 +6627,7 @@ var babelPluginUntyped = function(api, options) {
6627
6627
  if (p2.parent.type !== "ExportNamedDeclaration" && p2.parent.type !== "ExportDefaultDeclaration") {
6628
6628
  return;
6629
6629
  }
6630
- const _getLines = _chunkR4BGLXGMcjs.cachedFn.call(void 0, () => this.file.code.split("\n"));
6630
+ const _getLines = _chunkN63SWX5Jcjs.cachedFn.call(void 0, () => this.file.code.split("\n"));
6631
6631
  const getCode = (loc) => {
6632
6632
  if (!loc) {
6633
6633
  return "";
@@ -6653,7 +6653,7 @@ var babelPluginUntyped = function(api, options) {
6653
6653
  if (lparam.typeAnnotation) {
6654
6654
  Object.assign(
6655
6655
  arg,
6656
- _chunkR4BGLXGMcjs.mergedTypes.call(void 0,
6656
+ _chunkN63SWX5Jcjs.mergedTypes.call(void 0,
6657
6657
  arg,
6658
6658
  inferAnnotationType(lparam.typeAnnotation, getCode)
6659
6659
  )
@@ -6662,7 +6662,7 @@ var babelPluginUntyped = function(api, options) {
6662
6662
  if (param.type === "AssignmentPattern") {
6663
6663
  Object.assign(
6664
6664
  arg,
6665
- _chunkR4BGLXGMcjs.mergedTypes.call(void 0, arg, inferArgType(param.right))
6665
+ _chunkN63SWX5Jcjs.mergedTypes.call(void 0, arg, inferArgType(param.right))
6666
6666
  );
6667
6667
  }
6668
6668
  schema.args = schema.args || [];
@@ -6676,7 +6676,7 @@ var babelPluginUntyped = function(api, options) {
6676
6676
  const { type } = _optionalChain([tag, 'access', _27 => _27.match, 'call', _28 => _28(/^@returns\s+{(?<type>[\S\s]+)}/), 'optionalAccess', _29 => _29.groups]) || {};
6677
6677
  if (type) {
6678
6678
  schema.returns = schema.returns || {};
6679
- Object.assign(schema.returns, _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, type));
6679
+ Object.assign(schema.returns, _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, type));
6680
6680
  return false;
6681
6681
  }
6682
6682
  }
@@ -6685,7 +6685,7 @@ var babelPluginUntyped = function(api, options) {
6685
6685
  if (type && param) {
6686
6686
  const arg = _optionalChain([schema, 'access', _33 => _33.args, 'optionalAccess', _34 => _34.find, 'call', _35 => _35((arg2) => arg2.name === param)]);
6687
6687
  if (arg) {
6688
- Object.assign(arg, _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, type));
6688
+ Object.assign(arg, _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, type));
6689
6689
  return false;
6690
6690
  }
6691
6691
  }
@@ -6761,7 +6761,7 @@ function parseJSDocs(input) {
6761
6761
  if (!type) {
6762
6762
  continue;
6763
6763
  }
6764
- Object.assign(schema, _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, type));
6764
+ Object.assign(schema, _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, type));
6765
6765
  for (const typedef in typedefs) {
6766
6766
  schema.markdownType = type;
6767
6767
  if (schema.tsType) {
@@ -6821,20 +6821,20 @@ var AST_JSTYPE_MAP = {
6821
6821
  };
6822
6822
  function inferArgType(e2, getCode) {
6823
6823
  if (AST_JSTYPE_MAP[e2.type]) {
6824
- return _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, AST_JSTYPE_MAP[e2.type]);
6824
+ return _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, AST_JSTYPE_MAP[e2.type]);
6825
6825
  }
6826
6826
  if (e2.type === "AssignmentExpression") {
6827
6827
  return inferArgType(e2.right);
6828
6828
  }
6829
6829
  if (e2.type === "NewExpression" && e2.callee.type === "Identifier") {
6830
- return _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, e2.callee.name);
6830
+ return _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, e2.callee.name);
6831
6831
  }
6832
6832
  if (e2.type === "ArrayExpression" || e2.type === "TupleExpression") {
6833
6833
  const itemTypes = e2.elements.filter((el) => r.isExpression(el)).flatMap((el) => inferArgType(el).type);
6834
6834
  return {
6835
6835
  type: "array",
6836
6836
  items: {
6837
- type: _chunkR4BGLXGMcjs.normalizeTypes.call(void 0, itemTypes)
6837
+ type: _chunkN63SWX5Jcjs.normalizeTypes.call(void 0, itemTypes)
6838
6838
  }
6839
6839
  };
6840
6840
  }
@@ -6857,10 +6857,10 @@ function inferTSType(tsType, getCode) {
6857
6857
  items: inferTSType(tsType.typeParameters.params[0], getCode)
6858
6858
  };
6859
6859
  }
6860
- return _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, getCode(tsType.loc));
6860
+ return _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, getCode(tsType.loc));
6861
6861
  }
6862
6862
  if (tsType.type === "TSUnionType") {
6863
- return _chunkR4BGLXGMcjs.mergedTypes.call(void 0, ...tsType.types.map((t2) => inferTSType(t2, getCode)));
6863
+ return _chunkN63SWX5Jcjs.mergedTypes.call(void 0, ...tsType.types.map((t2) => inferTSType(t2, getCode)));
6864
6864
  }
6865
6865
  if (tsType.type === "TSArrayType") {
6866
6866
  return {
@@ -6868,7 +6868,7 @@ function inferTSType(tsType, getCode) {
6868
6868
  items: inferTSType(tsType.elementType, getCode)
6869
6869
  };
6870
6870
  }
6871
- return _chunkR4BGLXGMcjs.getTypeDescriptor.call(void 0, getCode(tsType.loc));
6871
+ return _chunkN63SWX5Jcjs.getTypeDescriptor.call(void 0, getCode(tsType.loc));
6872
6872
  }
6873
6873
 
6874
6874
  // ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/loader.mjs
@@ -6890,7 +6890,7 @@ async function loadSchema(entryPath, options = {}) {
6890
6890
  if (rawSchemaKeys.length === 1 && rawSchemaKeys[0] === "default") {
6891
6891
  rawSchema = rawSchema.default;
6892
6892
  }
6893
- const schema = await _chunkR4BGLXGMcjs.resolveSchema.call(void 0, rawSchema, options.defaults, {
6893
+ const schema = await _chunkN63SWX5Jcjs.resolveSchema.call(void 0, rawSchema, options.defaults, {
6894
6894
  ignoreDefaults: options.ignoreDefaults
6895
6895
  });
6896
6896
  return schema;
@@ -6898,7 +6898,7 @@ async function loadSchema(entryPath, options = {}) {
6898
6898
 
6899
6899
  // src/generate.ts
6900
6900
  var getGenerateAction = (config) => async (options) => {
6901
- _chunkL64BC5YIcjs.writeTrace.call(void 0,
6901
+ _chunkVCP73ILFcjs.writeTrace.call(void 0,
6902
6902
  `Running Storm Untyped with options: ${JSON.stringify(options)}`,
6903
6903
  config
6904
6904
  );
@@ -6917,7 +6917,7 @@ var getGenerateAction = (config) => async (options) => {
6917
6917
  });
6918
6918
  await Promise.all(
6919
6919
  files.map(async (file) => {
6920
- _chunkL64BC5YIcjs.writeTrace.call(void 0,
6920
+ _chunkVCP73ILFcjs.writeTrace.call(void 0,
6921
6921
  `Generating files for schema file: ${_chunk4G3IU22Jcjs.joinPaths.call(void 0, file.parentPath, file.name)}`,
6922
6922
  config
6923
6923
  );
@@ -6936,7 +6936,7 @@ var getGenerateAction = (config) => async (options) => {
6936
6936
  }
6937
6937
  });
6938
6938
  } catch (error) {
6939
- _chunkL64BC5YIcjs.writeError.call(void 0,
6939
+ _chunkVCP73ILFcjs.writeError.call(void 0,
6940
6940
  `Error while parsing schema file: ${_chunk4G3IU22Jcjs.joinPaths.call(void 0, file.parentPath, file.name)}
6941
6941
 
6942
6942
  Error:
@@ -6952,12 +6952,12 @@ ${JSON.stringify(schema)}
6952
6952
  }
6953
6953
  const promises = [];
6954
6954
  promises.push(
6955
- _chunkR4BGLXGMcjs.generateDeclarationFile.call(void 0, schema, file, options.generatedBy, config)
6955
+ _chunkN63SWX5Jcjs.generateDeclarationFile.call(void 0, schema, file, options.generatedBy, config)
6956
6956
  );
6957
6957
  promises.push(
6958
- _chunkW6RT7NS6cjs.generateMarkdownFile.call(void 0, schema, file, options.generatedBy, config)
6958
+ _chunkLJWAQIM6cjs.generateMarkdownFile.call(void 0, schema, file, options.generatedBy, config)
6959
6959
  );
6960
- promises.push(_chunkNODVNGU4cjs.generateJsonSchemaFile.call(void 0, schema, file, config));
6960
+ promises.push(_chunkHA3HZCDIcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
6961
6961
  return Promise.all(promises);
6962
6962
  })
6963
6963
  );
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-JAFBXSZZ.js";
4
+ } from "./chunk-DUDDS5LM.js";
5
5
  import {
6
6
  getOutputFile
7
7
  } from "./chunk-NTN5YK5X.js";
@@ -9,6 +9,7 @@ var LogLevel = {
9
9
  WARN: 30,
10
10
  SUCCESS: 35,
11
11
  INFO: 40,
12
+ PERFORMANCE: 50,
12
13
  DEBUG: 60,
13
14
  TRACE: 70,
14
15
  ALL: 100
@@ -20,6 +21,7 @@ var LogLevelLabel = {
20
21
  WARN: "warn",
21
22
  SUCCESS: "success",
22
23
  INFO: "info",
24
+ PERFORMANCE: "performance",
23
25
  DEBUG: "debug",
24
26
  TRACE: "trace",
25
27
  ALL: "all"
@@ -39,6 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
39
41
  warning: "#e3b341",
40
42
  danger: "#D8314A",
41
43
  fatal: "#51070f",
44
+ performance: "#83ff83",
42
45
  link: "#3fa6ff",
43
46
  positive: "#22c55e",
44
47
  negative: "#dc2626",
@@ -56,6 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
56
59
  warning: "#f3d371",
57
60
  danger: "#D8314A",
58
61
  fatal: "#a40e26",
62
+ performance: "#00ff00",
59
63
  link: "#3fa6ff",
60
64
  positive: "#22c55e",
61
65
  negative: "#dc2626",
@@ -114,6 +118,7 @@ var CONSOLE_ICONS = {
114
118
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
115
119
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
116
120
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
121
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
117
122
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
118
123
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
119
124
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -134,6 +139,8 @@ var getLogLevel = (label) => {
134
139
  return LogLevel.TRACE;
135
140
  case "debug":
136
141
  return LogLevel.DEBUG;
142
+ case "performance":
143
+ return LogLevel.PERFORMANCE;
137
144
  case "info":
138
145
  return LogLevel.INFO;
139
146
  case "warn":
@@ -218,6 +225,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
218
225
  )(
219
226
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
220
227
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
228
+ `
229
+ );
230
+ };
231
+ }
232
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
233
+ return (message) => {
234
+ console.debug(
235
+ `
236
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
237
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
238
+ )(
239
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
240
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
221
241
  `
222
242
  );
223
243
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkL64BC5YIcjs = require('./chunk-L64BC5YI.cjs');
4
+ var _chunkVCP73ILFcjs = require('./chunk-VCP73ILF.cjs');
5
5
 
6
6
 
7
7
  var _chunk4G3IU22Jcjs = require('./chunk-4G3IU22J.cjs');
@@ -11,10 +11,10 @@ var _promises = require('fs/promises');
11
11
  function generateJsonSchemaFile(schema, file, config) {
12
12
  try {
13
13
  const jsonSchema = _chunk4G3IU22Jcjs.getOutputFile.call(void 0, file, "json");
14
- _chunkL64BC5YIcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
14
+ _chunkVCP73ILFcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
15
15
  return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
16
16
  } catch (error) {
17
- _chunkL64BC5YIcjs.writeError.call(void 0,
17
+ _chunkVCP73ILFcjs.writeError.call(void 0,
18
18
  `Error writing JSON schema file for ${file.name}
19
19
 
20
20
  Error:
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkL64BC5YIcjs = require('./chunk-L64BC5YI.cjs');
4
+ var _chunkVCP73ILFcjs = require('./chunk-VCP73ILF.cjs');
5
5
 
6
6
 
7
7
  var _chunk4G3IU22Jcjs = require('./chunk-4G3IU22J.cjs');
@@ -45,10 +45,10 @@ function generateMarkdownLevel(schema, title, level) {
45
45
  function generateMarkdownFile(schema, file, generatedBy = "@storm-software/untyped", config) {
46
46
  try {
47
47
  const declarations = _chunk4G3IU22Jcjs.getOutputFile.call(void 0, file, "md");
48
- _chunkL64BC5YIcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
48
+ _chunkVCP73ILFcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
49
49
  return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema, generatedBy));
50
50
  } catch (error) {
51
- _chunkL64BC5YIcjs.writeError.call(void 0,
51
+ _chunkVCP73ILFcjs.writeError.call(void 0,
52
52
  `Error writing markdown file for ${file.name}
53
53
 
54
54
  Error: