@storm-software/untyped 0.17.13 → 0.17.14
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 +1 -1
- package/bin/untyped.cjs +2 -2
- package/bin/untyped.js +2 -2
- package/dist/{chunk-XDZ6MKOJ.js → chunk-2EHIWN2Y.js} +1 -1
- package/dist/{chunk-HXIKU3JK.cjs → chunk-4ZJTBQTZ.cjs} +6 -6
- package/dist/{chunk-JZ2KUF7M.js → chunk-CTVVSIBS.js} +1 -1
- package/dist/{chunk-IM2U4F25.js → chunk-E6IEJD5Q.js} +2 -2
- package/dist/{chunk-FCXVIV4H.js → chunk-G3XF3RCB.js} +5 -5
- package/dist/{chunk-S5I4HKOJ.cjs → chunk-IEH3CDGZ.cjs} +6 -6
- package/dist/chunk-JOQWI4SE.cjs +6 -0
- package/dist/{chunk-2BAEPAJH.js → chunk-LBXSEEM2.js} +2 -2
- package/dist/{chunk-3YXL7PXV.cjs → chunk-NA6KUMUG.cjs} +2 -2
- package/dist/{chunk-PCAQAFZ4.js → chunk-NTSAK3DX.js} +2 -2
- package/dist/{chunk-BMUKAVNA.js → chunk-VLNJLZYF.js} +2 -2
- package/dist/{chunk-U6SEB647.cjs → chunk-VRWKDLYG.cjs} +38 -38
- package/dist/{chunk-GQAAGVNR.cjs → chunk-X2CGOJUI.cjs} +18 -18
- package/dist/{chunk-QUG2E5L6.cjs → chunk-Z632DVXE.cjs} +6 -6
- package/dist/generate.cjs +7 -7
- package/dist/generate.js +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.js +7 -7
- package/dist/utilities.cjs +2 -2
- package/dist/utilities.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-NDLSJP7Y.cjs +0 -6
- package/dist/types-BhUX0YVA.d.cts +0 -1289
- package/dist/types-BhUX0YVA.d.ts +0 -1289
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/untyped.cjs
CHANGED
|
@@ -32,10 +32,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
mod
|
|
33
33
|
));
|
|
34
34
|
|
|
35
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
35
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/cjs_shims.js
|
|
36
36
|
var getImportMetaUrl, importMetaUrl;
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
40
40
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
41
|
}
|
package/bin/untyped.js
CHANGED
|
@@ -38,9 +38,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
mod
|
|
39
39
|
));
|
|
40
40
|
|
|
41
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
41
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/esm_shims.js
|
|
42
42
|
var init_esm_shims = __esm({
|
|
43
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
43
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/esm_shims.js"() {
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
4
|
+
var _chunkVRWKDLYGcjs = require('./chunk-VRWKDLYG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNA6KUMUGcjs = require('./chunk-NA6KUMUG.cjs');
|
|
9
9
|
|
|
10
10
|
// src/generators/dts.ts
|
|
11
|
-
|
|
11
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
var _untyped = require('untyped');
|
|
14
14
|
function generateDeclaration(schema) {
|
|
@@ -26,11 +26,11 @@ ${_untyped.generateTypes.call(void 0, schema, {
|
|
|
26
26
|
}
|
|
27
27
|
function generateDeclarationFile(schema, file, config) {
|
|
28
28
|
try {
|
|
29
|
-
const declarations =
|
|
30
|
-
|
|
29
|
+
const declarations = _chunkNA6KUMUGcjs.getOutputFile.call(void 0, file, "d.ts");
|
|
30
|
+
_chunkVRWKDLYGcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
|
|
31
31
|
return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
|
|
32
32
|
} catch (error) {
|
|
33
|
-
|
|
33
|
+
_chunkVRWKDLYGcjs.writeError.call(void 0,
|
|
34
34
|
`Error writing declaration file for ${file.name}
|
|
35
35
|
|
|
36
36
|
Error:
|
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDeclarationFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTSAK3DX.js";
|
|
4
4
|
import {
|
|
5
5
|
generateJsonSchemaFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VLNJLZYF.js";
|
|
7
7
|
import {
|
|
8
8
|
generateMarkdownFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LBXSEEM2.js";
|
|
10
10
|
import {
|
|
11
11
|
isVerbose,
|
|
12
12
|
writeError,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2EHIWN2Y.js";
|
|
15
15
|
import {
|
|
16
16
|
init_esm_shims,
|
|
17
17
|
joinPaths
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E6IEJD5Q.js";
|
|
19
19
|
|
|
20
20
|
// src/generate.ts
|
|
21
21
|
init_esm_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
4
|
+
var _chunkVRWKDLYGcjs = require('./chunk-VRWKDLYG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNA6KUMUGcjs = require('./chunk-NA6KUMUG.cjs');
|
|
9
9
|
|
|
10
10
|
// src/generators/markdown.ts
|
|
11
|
-
|
|
11
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
function generateMarkdown(schema) {
|
|
14
14
|
return `
|
|
@@ -46,11 +46,11 @@ function generateMarkdownLevel(schema, title, level) {
|
|
|
46
46
|
}
|
|
47
47
|
function generateMarkdownFile(schema, file, config) {
|
|
48
48
|
try {
|
|
49
|
-
const declarations =
|
|
50
|
-
|
|
49
|
+
const declarations = _chunkNA6KUMUGcjs.getOutputFile.call(void 0, file, "md");
|
|
50
|
+
_chunkVRWKDLYGcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
|
|
51
51
|
return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
|
|
52
52
|
} catch (error) {
|
|
53
|
-
|
|
53
|
+
_chunkVRWKDLYGcjs.writeError.call(void 0,
|
|
54
54
|
`Error writing markdown file for ${file.name}
|
|
55
55
|
|
|
56
56
|
Error:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2EHIWN2Y.js";
|
|
5
5
|
import {
|
|
6
6
|
getOutputFile,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E6IEJD5Q.js";
|
|
9
9
|
|
|
10
10
|
// src/generators/markdown.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bfb917e2b8480b4c6bc56e8a9e3bf7af/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2EHIWN2Y.js";
|
|
5
5
|
import {
|
|
6
6
|
getOutputFile,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E6IEJD5Q.js";
|
|
9
9
|
|
|
10
10
|
// src/generators/dts.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2EHIWN2Y.js";
|
|
5
5
|
import {
|
|
6
6
|
getOutputFile,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E6IEJD5Q.js";
|
|
9
9
|
|
|
10
10
|
// src/generators/json-schema.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNA6KUMUGcjs = require('./chunk-NA6KUMUG.cjs');
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
|
|
9
|
-
var require_color_name =
|
|
9
|
+
var require_color_name = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
10
10
|
"../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports, module) {
|
|
11
11
|
"use strict";
|
|
12
|
-
|
|
12
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
module.exports = {
|
|
14
14
|
"aliceblue": [240, 248, 255],
|
|
15
15
|
"antiquewhite": [250, 235, 215],
|
|
@@ -164,9 +164,9 @@ var require_color_name = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
164
164
|
});
|
|
165
165
|
|
|
166
166
|
// ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
|
|
167
|
-
var require_conversions =
|
|
167
|
+
var require_conversions = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
168
168
|
"../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports, module) {
|
|
169
|
-
|
|
169
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
170
170
|
var cssKeywords = require_color_name();
|
|
171
171
|
var reverseKeywords = {};
|
|
172
172
|
for (const key of Object.keys(cssKeywords)) {
|
|
@@ -836,9 +836,9 @@ var require_conversions = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
836
836
|
});
|
|
837
837
|
|
|
838
838
|
// ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
|
|
839
|
-
var require_route =
|
|
839
|
+
var require_route = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
840
840
|
"../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports, module) {
|
|
841
|
-
|
|
841
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
842
842
|
var conversions = require_conversions();
|
|
843
843
|
function buildGraph() {
|
|
844
844
|
const graph = {};
|
|
@@ -907,9 +907,9 @@ var require_route = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
907
907
|
});
|
|
908
908
|
|
|
909
909
|
// ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
|
|
910
|
-
var require_color_convert =
|
|
910
|
+
var require_color_convert = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
911
911
|
"../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports, module) {
|
|
912
|
-
|
|
912
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
913
913
|
var conversions = require_conversions();
|
|
914
914
|
var route = require_route();
|
|
915
915
|
var convert = {};
|
|
@@ -969,10 +969,10 @@ var require_color_convert = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
969
969
|
});
|
|
970
970
|
|
|
971
971
|
// ../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
|
|
972
|
-
var require_ansi_styles =
|
|
972
|
+
var require_ansi_styles = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
973
973
|
"../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module) {
|
|
974
974
|
"use strict";
|
|
975
|
-
|
|
975
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
976
976
|
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
977
977
|
const code = fn(...args);
|
|
978
978
|
return `\x1B[${code + offset}m`;
|
|
@@ -1112,10 +1112,10 @@ var require_ansi_styles = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
1112
1112
|
});
|
|
1113
1113
|
|
|
1114
1114
|
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
1115
|
-
var require_has_flag =
|
|
1115
|
+
var require_has_flag = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
1116
1116
|
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
|
|
1117
1117
|
"use strict";
|
|
1118
|
-
|
|
1118
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1119
1119
|
module.exports = (flag, argv = process.argv) => {
|
|
1120
1120
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
1121
1121
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -1126,12 +1126,12 @@ var require_has_flag = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
|
|
1128
1128
|
// ../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
1129
|
-
var require_supports_color =
|
|
1129
|
+
var require_supports_color = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
1130
1130
|
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
|
|
1131
1131
|
"use strict";
|
|
1132
|
-
|
|
1133
|
-
var os =
|
|
1134
|
-
var tty =
|
|
1132
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1133
|
+
var os = _chunkNA6KUMUGcjs.__require.call(void 0, "os");
|
|
1134
|
+
var tty = _chunkNA6KUMUGcjs.__require.call(void 0, "tty");
|
|
1135
1135
|
var hasFlag = require_has_flag();
|
|
1136
1136
|
var { env } = process;
|
|
1137
1137
|
var forceColor;
|
|
@@ -1229,10 +1229,10 @@ var require_supports_color = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
1229
1229
|
});
|
|
1230
1230
|
|
|
1231
1231
|
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
|
|
1232
|
-
var require_util =
|
|
1232
|
+
var require_util = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
1233
1233
|
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
|
|
1234
1234
|
"use strict";
|
|
1235
|
-
|
|
1235
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1236
1236
|
var stringReplaceAll = (string, substring, replacer) => {
|
|
1237
1237
|
let index = string.indexOf(substring);
|
|
1238
1238
|
if (index === -1) {
|
|
@@ -1269,10 +1269,10 @@ var require_util = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
1269
1269
|
});
|
|
1270
1270
|
|
|
1271
1271
|
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
|
|
1272
|
-
var require_templates =
|
|
1272
|
+
var require_templates = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
1273
1273
|
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
|
|
1274
1274
|
"use strict";
|
|
1275
|
-
|
|
1275
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1276
1276
|
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
1277
1277
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
1278
1278
|
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
@@ -1384,10 +1384,10 @@ var require_templates = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
1384
1384
|
});
|
|
1385
1385
|
|
|
1386
1386
|
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
|
|
1387
|
-
var require_source =
|
|
1387
|
+
var require_source = _chunkNA6KUMUGcjs.__commonJS.call(void 0, {
|
|
1388
1388
|
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
|
|
1389
1389
|
"use strict";
|
|
1390
|
-
|
|
1390
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1391
1391
|
var ansiStyles = require_ansi_styles();
|
|
1392
1392
|
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
1393
1393
|
var {
|
|
@@ -1563,10 +1563,10 @@ var require_source = _chunk3YXL7PXVcjs.__commonJS.call(void 0, {
|
|
|
1563
1563
|
});
|
|
1564
1564
|
|
|
1565
1565
|
// ../config-tools/src/logger/get-log-level.ts
|
|
1566
|
-
|
|
1566
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1567
1567
|
|
|
1568
1568
|
// ../config-tools/src/types.ts
|
|
1569
|
-
|
|
1569
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1570
1570
|
var LogLevel = {
|
|
1571
1571
|
SILENT: 0,
|
|
1572
1572
|
FATAL: 10,
|
|
@@ -1619,16 +1619,16 @@ var isVerbose = (label = LogLevelLabel.SILENT) => {
|
|
|
1619
1619
|
};
|
|
1620
1620
|
|
|
1621
1621
|
// ../config-tools/src/logger/console.ts
|
|
1622
|
-
|
|
1622
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1623
1623
|
|
|
1624
1624
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
1625
|
-
|
|
1625
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1626
1626
|
|
|
1627
1627
|
// ../config/src/index.ts
|
|
1628
|
-
|
|
1628
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1629
1629
|
|
|
1630
1630
|
// ../config/src/constants.ts
|
|
1631
|
-
|
|
1631
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1632
1632
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
1633
1633
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
1634
1634
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -1647,13 +1647,13 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
1647
1647
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
1648
1648
|
|
|
1649
1649
|
// ../config/src/define-config.ts
|
|
1650
|
-
|
|
1650
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1651
1651
|
|
|
1652
1652
|
// ../config/src/schema.ts
|
|
1653
|
-
|
|
1653
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1654
1654
|
|
|
1655
1655
|
// ../../node_modules/.pnpm/zod@3.24.4/node_modules/zod/lib/index.mjs
|
|
1656
|
-
|
|
1656
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
1657
1657
|
var util;
|
|
1658
1658
|
(function(util2) {
|
|
1659
1659
|
util2.assertEqual = (val) => val;
|
|
@@ -5924,7 +5924,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
5924
5924
|
);
|
|
5925
5925
|
|
|
5926
5926
|
// ../config/src/types.ts
|
|
5927
|
-
|
|
5927
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
5928
5928
|
|
|
5929
5929
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
5930
5930
|
var _fs = require('fs');
|
|
@@ -5960,8 +5960,8 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5960
5960
|
};
|
|
5961
5961
|
|
|
5962
5962
|
// ../config-tools/src/logger/chalk.ts
|
|
5963
|
-
|
|
5964
|
-
var import_chalk =
|
|
5963
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
5964
|
+
var import_chalk = _chunkNA6KUMUGcjs.__toESM.call(void 0, require_source(), 1);
|
|
5965
5965
|
var chalkDefault = {
|
|
5966
5966
|
hex: (_) => (message) => message,
|
|
5967
5967
|
bgHex: (_) => ({
|
|
@@ -5990,10 +5990,10 @@ var getChalk = () => {
|
|
|
5990
5990
|
};
|
|
5991
5991
|
|
|
5992
5992
|
// ../config-tools/src/logger/console-icons.ts
|
|
5993
|
-
|
|
5993
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
5994
5994
|
|
|
5995
5995
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
5996
|
-
|
|
5996
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
5997
5997
|
function isUnicodeSupported() {
|
|
5998
5998
|
if (process.platform !== "win32") {
|
|
5999
5999
|
return process.env.TERM !== "linux";
|
|
@@ -6018,7 +6018,7 @@ var CONSOLE_ICONS = {
|
|
|
6018
6018
|
};
|
|
6019
6019
|
|
|
6020
6020
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
6021
|
-
|
|
6021
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
6022
6022
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
6023
6023
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
6024
6024
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunk4ZJTBQTZcjs = require('./chunk-4ZJTBQTZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZ632DVXEcjs = require('./chunk-Z632DVXE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkIEH3CDGZcjs = require('./chunk-IEH3CDGZ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkVRWKDLYGcjs = require('./chunk-VRWKDLYG.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkNA6KUMUGcjs = require('./chunk-NA6KUMUG.cjs');
|
|
19
19
|
|
|
20
20
|
// src/generate.ts
|
|
21
|
-
|
|
21
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
var _glob = require('glob');
|
|
23
23
|
var _loader = require('untyped/loader');
|
|
24
24
|
var getGenerateAction = (config) => async (options) => {
|
|
25
|
-
|
|
25
|
+
_chunkVRWKDLYGcjs.writeTrace.call(void 0,
|
|
26
26
|
`Running Storm Untyped with options: ${JSON.stringify(options)}`,
|
|
27
27
|
config
|
|
28
28
|
);
|
|
@@ -41,17 +41,17 @@ var getGenerateAction = (config) => async (options) => {
|
|
|
41
41
|
});
|
|
42
42
|
await Promise.all(
|
|
43
43
|
files.map(async (file) => {
|
|
44
|
-
|
|
45
|
-
`Generating files for schema file: ${
|
|
44
|
+
_chunkVRWKDLYGcjs.writeTrace.call(void 0,
|
|
45
|
+
`Generating files for schema file: ${_chunkNA6KUMUGcjs.joinPaths.call(void 0, file.parentPath, file.name)}`,
|
|
46
46
|
config
|
|
47
47
|
);
|
|
48
48
|
let schema;
|
|
49
49
|
try {
|
|
50
|
-
schema = await _loader.loadSchema.call(void 0,
|
|
50
|
+
schema = await _loader.loadSchema.call(void 0, _chunkNA6KUMUGcjs.joinPaths.call(void 0, file.parentPath, file.name), {
|
|
51
51
|
jiti: {
|
|
52
|
-
debug:
|
|
53
|
-
fsCache: config.skipCache ? false :
|
|
54
|
-
config.directories.cache ||
|
|
52
|
+
debug: _chunkVRWKDLYGcjs.isVerbose.call(void 0, config.logLevel),
|
|
53
|
+
fsCache: config.skipCache ? false : _chunkNA6KUMUGcjs.joinPaths.call(void 0,
|
|
54
|
+
config.directories.cache || _chunkNA6KUMUGcjs.joinPaths.call(void 0,
|
|
55
55
|
config.workspaceRoot,
|
|
56
56
|
"node_modules/.cache/storm"
|
|
57
57
|
),
|
|
@@ -61,8 +61,8 @@ var getGenerateAction = (config) => async (options) => {
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
} catch (error) {
|
|
64
|
-
|
|
65
|
-
`Error while parsing schema file: ${
|
|
64
|
+
_chunkVRWKDLYGcjs.writeError.call(void 0,
|
|
65
|
+
`Error while parsing schema file: ${_chunkNA6KUMUGcjs.joinPaths.call(void 0, file.parentPath, file.name)}
|
|
66
66
|
|
|
67
67
|
Error:
|
|
68
68
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -76,9 +76,9 @@ ${JSON.stringify(schema)}
|
|
|
76
76
|
throw error;
|
|
77
77
|
}
|
|
78
78
|
const promises = [];
|
|
79
|
-
promises.push(
|
|
80
|
-
promises.push(
|
|
81
|
-
promises.push(
|
|
79
|
+
promises.push(_chunk4ZJTBQTZcjs.generateDeclarationFile.call(void 0, schema, file, config));
|
|
80
|
+
promises.push(_chunkIEH3CDGZcjs.generateMarkdownFile.call(void 0, schema, file, config));
|
|
81
|
+
promises.push(_chunkZ632DVXEcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
|
|
82
82
|
return Promise.all(promises);
|
|
83
83
|
})
|
|
84
84
|
);
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
|
4
|
+
var _chunkVRWKDLYGcjs = require('./chunk-VRWKDLYG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNA6KUMUGcjs = require('./chunk-NA6KUMUG.cjs');
|
|
9
9
|
|
|
10
10
|
// src/generators/json-schema.ts
|
|
11
|
-
|
|
11
|
+
_chunkNA6KUMUGcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
function generateJsonSchemaFile(schema, file, config) {
|
|
14
14
|
try {
|
|
15
|
-
const jsonSchema =
|
|
16
|
-
|
|
15
|
+
const jsonSchema = _chunkNA6KUMUGcjs.getOutputFile.call(void 0, file, "json");
|
|
16
|
+
_chunkVRWKDLYGcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
|
|
17
17
|
return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
|
|
18
18
|
} catch (error) {
|
|
19
|
-
|
|
19
|
+
_chunkVRWKDLYGcjs.writeError.call(void 0,
|
|
20
20
|
`Error writing JSON schema file for ${file.name}
|
|
21
21
|
|
|
22
22
|
Error:
|
package/dist/generate.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
3
|
+
var _chunkX2CGOJUIcjs = require('./chunk-X2CGOJUI.cjs');
|
|
4
|
+
require('./chunk-4ZJTBQTZ.cjs');
|
|
5
|
+
require('./chunk-Z632DVXE.cjs');
|
|
6
|
+
require('./chunk-IEH3CDGZ.cjs');
|
|
7
|
+
require('./chunk-VRWKDLYG.cjs');
|
|
8
|
+
require('./chunk-NA6KUMUG.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getGenerateAction =
|
|
11
|
+
exports.getGenerateAction = _chunkX2CGOJUIcjs.getGenerateAction;
|
package/dist/generate.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGenerateAction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-G3XF3RCB.js";
|
|
4
|
+
import "./chunk-NTSAK3DX.js";
|
|
5
|
+
import "./chunk-VLNJLZYF.js";
|
|
6
|
+
import "./chunk-LBXSEEM2.js";
|
|
7
|
+
import "./chunk-2EHIWN2Y.js";
|
|
8
|
+
import "./chunk-E6IEJD5Q.js";
|
|
9
9
|
export {
|
|
10
10
|
getGenerateAction
|
|
11
11
|
};
|