@storm-software/untyped 0.8.2 → 0.8.3

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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/{dist/chunk-GWEQOXW6.mjs → bin/chunk-65NJ2BNV.js} +16 -13
  3. package/bin/chunk-7LNAPF6J.js +7601 -0
  4. package/bin/chunk-BIBA7MGH.js +84 -0
  5. package/bin/chunk-MVPKPUE3.js +1120 -0
  6. package/bin/chunk-PRGAKNNV.js +765 -0
  7. package/bin/chunk-Q3AKY4XY.js +4054 -0
  8. package/bin/chunk-Q42ZDLPG.js +510 -0
  9. package/bin/chunk-RNYNEYJ5.js +451 -0
  10. package/bin/dist-SOH4ASEU.js +17570 -0
  11. package/bin/esm-SQV6ELTR.js +1716 -0
  12. package/bin/execa-4HBUJBFQ.js +2424 -0
  13. package/bin/json5-WTSMELC2.js +10 -0
  14. package/bin/jsonc-B7SFZJW2.js +15 -0
  15. package/bin/multipart-parser-TFNERLJV.js +187 -0
  16. package/bin/toml-MTE5VHET.js +10 -0
  17. package/bin/untyped.cjs +83925 -0
  18. package/bin/untyped.js +42339 -373
  19. package/bin/yaml-D6PQ2AEL.js +10 -0
  20. package/dist/{chunk-XSW3ZXMK.mjs → chunk-B5PWE2FK.js} +8 -3
  21. package/dist/{chunk-6HKRKQSU.js → chunk-BFSI6OL7.cjs} +12 -7
  22. package/dist/{chunk-LWMIR3BQ.js → chunk-CLGOYXO6.cjs} +13 -8
  23. package/dist/chunk-EIXSLKJ6.js +85 -0
  24. package/dist/{chunk-EBIRRCGB.mjs → chunk-ELSZYSKI.js} +8 -3
  25. package/dist/{chunk-6OB6EGVE.js → chunk-HUCZDWTY.cjs} +206 -175
  26. package/dist/chunk-KQOG5R22.cjs +6 -0
  27. package/dist/chunk-MW6UM5LZ.js +6 -0
  28. package/dist/chunk-S36U2TKG.js +7218 -0
  29. package/dist/{chunk-MNW76QG7.mjs → chunk-SF7VZOKX.js} +39 -8
  30. package/dist/{chunk-HSIBHFJE.mjs → chunk-TJ5YM7SW.js} +8 -3
  31. package/dist/{chunk-TJLW3KPU.js → chunk-UCWWPTWV.cjs} +11 -6
  32. package/dist/chunk-VCSZBLKU.cjs +85 -0
  33. package/dist/chunk-YU5YP27Q.cjs +7221 -0
  34. package/dist/generate.cjs +11 -0
  35. package/dist/{generate.d.mts → generate.d.cts} +1 -1
  36. package/dist/generate.d.ts +1 -1
  37. package/dist/generate.js +11 -10
  38. package/dist/index.cjs +32 -0
  39. package/dist/{index.d.mts → index.d.cts} +6 -6
  40. package/dist/index.d.ts +1 -1
  41. package/dist/index.js +32 -27
  42. package/dist/{types-CIJRaFHD.d.mts → types-BQ21E8Xn.d.cts} +3 -3
  43. package/dist/{types-CIJRaFHD.d.ts → types-BQ21E8Xn.d.ts} +3 -3
  44. package/dist/utilities.cjs +6 -0
  45. package/dist/utilities.js +6 -6
  46. package/package.json +44 -53
  47. package/bin/untyped.mjs +0 -7050
  48. package/dist/chunk-NYKCIVTC.js +0 -46
  49. package/dist/chunk-U4YLQDJK.js +0 -1
  50. package/dist/chunk-ZHPKHX4S.mjs +0 -0
  51. package/dist/generate.mjs +0 -10
  52. package/dist/index.mjs +0 -27
  53. package/dist/utilities.mjs +0 -6
  54. /package/bin/{untyped.d.mts → untyped.d.cts} +0 -0
  55. /package/dist/{utilities.d.mts → utilities.d.cts} +0 -0
@@ -1,22 +1,30 @@
1
1
  import {
2
2
  generateDeclarationFile
3
- } from "./chunk-EBIRRCGB.mjs";
3
+ } from "./chunk-ELSZYSKI.js";
4
4
  import {
5
5
  generateJsonSchemaFile
6
- } from "./chunk-HSIBHFJE.mjs";
6
+ } from "./chunk-TJ5YM7SW.js";
7
7
  import {
8
8
  generateMarkdownFile
9
- } from "./chunk-XSW3ZXMK.mjs";
9
+ } from "./chunk-B5PWE2FK.js";
10
+ import {
11
+ isVerbose,
12
+ writeError,
13
+ writeTrace
14
+ } from "./chunk-S36U2TKG.js";
10
15
  import {
11
16
  __commonJS,
12
17
  __name,
13
- __toESM
14
- } from "./chunk-GWEQOXW6.mjs";
18
+ __toESM,
19
+ init_esm_shims,
20
+ joinPaths
21
+ } from "./chunk-EIXSLKJ6.js";
15
22
 
16
23
  // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
17
24
  var require_balanced_match = __commonJS({
18
25
  "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
19
26
  "use strict";
27
+ init_esm_shims();
20
28
  module.exports = balanced;
21
29
  function balanced(a, b, str) {
22
30
  if (a instanceof RegExp) a = maybeMatch(a, str);
@@ -86,6 +94,7 @@ var require_balanced_match = __commonJS({
86
94
  // ../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js
87
95
  var require_brace_expansion = __commonJS({
88
96
  "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module) {
97
+ init_esm_shims();
89
98
  var balanced = require_balanced_match();
90
99
  module.exports = expandTop;
91
100
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -245,14 +254,17 @@ var require_brace_expansion = __commonJS({
245
254
  });
246
255
 
247
256
  // src/generate.ts
248
- import { writeError, writeTrace } from "@storm-software/config-tools/logger/console";
249
- import { isVerbose } from "@storm-software/config-tools/logger/get-log-level";
250
- import { joinPaths } from "@storm-software/config-tools/utilities/correct-paths";
257
+ init_esm_shims();
258
+
259
+ // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/index.js
260
+ init_esm_shims();
251
261
 
252
262
  // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js
263
+ init_esm_shims();
253
264
  var import_brace_expansion = __toESM(require_brace_expansion(), 1);
254
265
 
255
266
  // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
267
+ init_esm_shims();
256
268
  var MAX_PATTERN_LENGTH = 1024 * 64;
257
269
  var assertValidPattern = /* @__PURE__ */ __name((pattern) => {
258
270
  if (typeof pattern !== "string") {
@@ -263,7 +275,11 @@ var assertValidPattern = /* @__PURE__ */ __name((pattern) => {
263
275
  }
264
276
  }, "assertValidPattern");
265
277
 
278
+ // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js
279
+ init_esm_shims();
280
+
266
281
  // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js
282
+ init_esm_shims();
267
283
  var posixClasses = {
268
284
  "[:alnum:]": [
269
285
  "\\p{L}\\p{Nl}\\p{Nd}",
@@ -439,6 +455,7 @@ var parseClass = /* @__PURE__ */ __name((glob2, position) => {
439
455
  }, "parseClass");
440
456
 
441
457
  // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js
458
+ init_esm_shims();
442
459
  var unescape = /* @__PURE__ */ __name((s, { windowsPathsNoEscape = false } = {}) => {
443
460
  return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
444
461
  }, "unescape");
@@ -928,6 +945,7 @@ var AST = class _AST {
928
945
  };
929
946
 
930
947
  // ../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js
948
+ init_esm_shims();
931
949
  var escape = /* @__PURE__ */ __name((s, { windowsPathsNoEscape = false } = {}) => {
932
950
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
933
951
  }, "escape");
@@ -1697,9 +1715,14 @@ minimatch.escape = escape;
1697
1715
  minimatch.unescape = unescape;
1698
1716
 
1699
1717
  // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/glob.js
1718
+ init_esm_shims();
1700
1719
  import { fileURLToPath as fileURLToPath2 } from "node:url";
1701
1720
 
1721
+ // ../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js
1722
+ init_esm_shims();
1723
+
1702
1724
  // ../../node_modules/.pnpm/lru-cache@11.0.2/node_modules/lru-cache/dist/esm/index.js
1725
+ init_esm_shims();
1703
1726
  var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
1704
1727
  var warned = /* @__PURE__ */ new Set();
1705
1728
  var PROCESS = typeof process === "object" && !!process ? process : {};
@@ -3104,6 +3127,7 @@ import * as actualFS from "node:fs";
3104
3127
  import { lstat, readdir, readlink, realpath } from "node:fs/promises";
3105
3128
 
3106
3129
  // ../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js
3130
+ init_esm_shims();
3107
3131
  import { EventEmitter } from "node:events";
3108
3132
  import Stream from "node:stream";
3109
3133
  import { StringDecoder } from "node:string_decoder";
@@ -5699,6 +5723,7 @@ var Path = process.platform === "win32" ? PathWin32 : PathPosix;
5699
5723
  var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
5700
5724
 
5701
5725
  // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/pattern.js
5726
+ init_esm_shims();
5702
5727
  var isPatternList = /* @__PURE__ */ __name((pl) => pl.length >= 1, "isPatternList");
5703
5728
  var isGlobList = /* @__PURE__ */ __name((gl) => gl.length >= 1, "isGlobList");
5704
5729
  var Pattern = class _Pattern {
@@ -5887,7 +5912,11 @@ var Pattern = class _Pattern {
5887
5912
  }
5888
5913
  };
5889
5914
 
5915
+ // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/walker.js
5916
+ init_esm_shims();
5917
+
5890
5918
  // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/ignore.js
5919
+ init_esm_shims();
5891
5920
  var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
5892
5921
  var Ignore = class {
5893
5922
  static {
@@ -5969,6 +5998,7 @@ var Ignore = class {
5969
5998
  };
5970
5999
 
5971
6000
  // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/processor.js
6001
+ init_esm_shims();
5972
6002
  var HasWalkedCache = class _HasWalkedCache {
5973
6003
  static {
5974
6004
  __name(this, "HasWalkedCache");
@@ -6727,6 +6757,7 @@ var Glob = class {
6727
6757
  };
6728
6758
 
6729
6759
  // ../../node_modules/.pnpm/glob@11.0.1/node_modules/glob/dist/esm/has-magic.js
6760
+ init_esm_shims();
6730
6761
  var hasMagic = /* @__PURE__ */ __name((pattern, options = {}) => {
6731
6762
  if (!Array.isArray(pattern)) {
6732
6763
  pattern = [
@@ -1,10 +1,15 @@
1
+ import {
2
+ writeError,
3
+ writeTrace
4
+ } from "./chunk-S36U2TKG.js";
1
5
  import {
2
6
  __name,
3
- getOutputFile
4
- } from "./chunk-GWEQOXW6.mjs";
7
+ getOutputFile,
8
+ init_esm_shims
9
+ } from "./chunk-EIXSLKJ6.js";
5
10
 
6
11
  // src/generators/json-schema.ts
7
- import { writeError, writeTrace } from "@storm-software/config-tools/logger/console";
12
+ init_esm_shims();
8
13
  import { writeFile } from "node:fs/promises";
9
14
  function generateJsonSchemaFile(schema, file, config) {
10
15
  try {
@@ -1,18 +1,23 @@
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 _chunkNYKCIVTCjs = require('./chunk-NYKCIVTC.js');
4
+ var _chunkYU5YP27Qcjs = require('./chunk-YU5YP27Q.cjs');
5
+
6
+
7
+
8
+
9
+ var _chunkVCSZBLKUcjs = require('./chunk-VCSZBLKU.cjs');
5
10
 
6
11
  // src/generators/json-schema.ts
7
- var _console = require('@storm-software/config-tools/logger/console');
12
+ _chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
8
13
  var _promises = require('fs/promises');
9
14
  function generateJsonSchemaFile(schema, file, config) {
10
15
  try {
11
- const jsonSchema = _chunkNYKCIVTCjs.getOutputFile.call(void 0, file, "json");
12
- _console.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
16
+ const jsonSchema = _chunkVCSZBLKUcjs.getOutputFile.call(void 0, file, "json");
17
+ _chunkYU5YP27Qcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
13
18
  return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
14
19
  } catch (error) {
15
- _console.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
20
+ _chunkYU5YP27Qcjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
16
21
 
17
22
  Error:
18
23
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -24,7 +29,7 @@ ${JSON.stringify(schema)}
24
29
  throw error;
25
30
  }
26
31
  }
27
- _chunkNYKCIVTCjs.__name.call(void 0, generateJsonSchemaFile, "generateJsonSchemaFile");
32
+ _chunkVCSZBLKUcjs.__name.call(void 0, generateJsonSchemaFile, "generateJsonSchemaFile");
28
33
 
29
34
 
30
35
 
@@ -0,0 +1,85 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __esm = (fn, res) => function __init() {
15
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
+ };
17
+ var __commonJS = (cb, mod) => function __require2() {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+
37
+ // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js
38
+ var init_cjs_shims = __esm({
39
+ "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js"() {
40
+ }
41
+ });
42
+
43
+ // src/utilities.ts
44
+ init_cjs_shims();
45
+
46
+ // ../config-tools/src/utilities/correct-paths.ts
47
+ init_cjs_shims();
48
+ var _devkit = require('@nx/devkit');
49
+ var correctPaths = /* @__PURE__ */ __name((path) => {
50
+ if (!path) {
51
+ return "";
52
+ }
53
+ if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
54
+ path = `C:${path}`;
55
+ }
56
+ return path.replaceAll("\\", "/");
57
+ }, "correctPaths");
58
+ var joinPaths = /* @__PURE__ */ __name((...paths) => {
59
+ if (!paths || paths.length === 0) {
60
+ return "";
61
+ }
62
+ return correctPaths(_devkit.joinPathFragments.call(void 0, ...paths.map((path) => correctPaths(path))));
63
+ }, "joinPaths");
64
+
65
+ // src/utilities.ts
66
+ var getOutputFile = /* @__PURE__ */ __name((file, extension) => {
67
+ let fileName = file.name.slice(0, file.name.lastIndexOf(".")).replace(".untyped", "").replace("untyped", "").replace(".schema", "").replace("schema", "");
68
+ if (!fileName) {
69
+ fileName = "schema";
70
+ }
71
+ if (fileName !== "schema") {
72
+ fileName = `${fileName}.schema`;
73
+ }
74
+ return joinPaths(file.parentPath, `${fileName}.${extension}`);
75
+ }, "getOutputFile");
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+ exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims; exports.joinPaths = joinPaths; exports.getOutputFile = getOutputFile;