@storm-software/untyped 0.10.41 → 0.11.1
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 +1935 -2081
- package/bin/untyped.js +1949 -2095
- package/dist/{chunk-5P2P3MHD.cjs → chunk-27FYXNIO.cjs} +234 -220
- package/dist/{chunk-VN4TMVUB.cjs → chunk-3KJNEJ3C.cjs} +7 -7
- package/dist/{chunk-BWZ4GDR6.cjs → chunk-3STWFZKG.cjs} +2 -2
- package/dist/{chunk-BWQ7JYXM.js → chunk-A4R3AMIX.js} +2 -2
- package/dist/{chunk-FPU3RTYA.js → chunk-AORGS2JP.js} +32 -18
- package/dist/{chunk-FQMRVMPC.js → chunk-E3JIROMO.js} +1 -1
- package/dist/{chunk-KCCBVGV5.js → chunk-EYLEPVOU.js} +2 -2
- package/dist/{chunk-ZQY272JD.js → chunk-FONZ2AHB.js} +2 -2
- package/dist/chunk-OCGQTU2G.cjs +6 -0
- package/dist/{chunk-HBDCU3BP.js → chunk-QAKF7CSX.js} +5 -5
- package/dist/{chunk-UPG2QAZD.cjs → chunk-QECHN5Y2.cjs} +9 -9
- package/dist/{chunk-UXP24GU4.cjs → chunk-S6C63FCT.cjs} +8 -8
- package/dist/{chunk-FMDVH34S.cjs → chunk-UJFQSB2M.cjs} +16 -16
- package/dist/{chunk-R42IA2VA.js → chunk-VSFHJTTZ.js} +2 -2
- package/dist/generate.cjs +7 -7
- package/dist/generate.d.cts +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/generate.js +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/{types-BHTvEliD.d.cts → types-HiZpltUX.d.cts} +358 -358
- package/dist/{types-BHTvEliD.d.ts → types-HiZpltUX.d.ts} +358 -358
- package/dist/utilities.cjs +2 -2
- package/dist/utilities.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-ICJ7ZWD6.cjs +0 -6
|
@@ -1,23 +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
|
|
4
|
+
var _chunk27FYXNIOcjs = require('./chunk-27FYXNIO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3STWFZKGcjs = require('./chunk-3STWFZKG.cjs');
|
|
10
10
|
|
|
11
11
|
// src/generators/json-schema.ts
|
|
12
|
-
|
|
12
|
+
_chunk3STWFZKGcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _promises = require('fs/promises');
|
|
14
14
|
function generateJsonSchemaFile(schema, file, config) {
|
|
15
15
|
try {
|
|
16
|
-
const jsonSchema =
|
|
17
|
-
|
|
16
|
+
const jsonSchema = _chunk3STWFZKGcjs.getOutputFile.call(void 0, file, "json");
|
|
17
|
+
_chunk27FYXNIOcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
|
|
18
18
|
return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
_chunk27FYXNIOcjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
|
|
21
21
|
|
|
22
22
|
Error:
|
|
23
23
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -29,7 +29,7 @@ ${JSON.stringify(schema)}
|
|
|
29
29
|
throw error;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
_chunk3STWFZKGcjs.__name.call(void 0, generateJsonSchemaFile, "generateJsonSchemaFile");
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
mod
|
|
35
35
|
));
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.50.0_@types+node@22.13.1__@swc+core@1.7.26_@swc+h_a526057502c6ea8838db81b326f137cd/node_modules/tsup/assets/cjs_shims.js
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.50.0_@types+node@22.13.1__@swc+core@1.7.26_@swc+h_a526057502c6ea8838db81b326f137cd/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AORGS2JP.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
getOutputFile,
|
|
8
8
|
init_esm_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VSFHJTTZ.js";
|
|
10
10
|
|
|
11
11
|
// src/generators/dts.ts
|
|
12
12
|
init_esm_shims();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__require,
|
|
5
5
|
__toESM,
|
|
6
6
|
init_esm_shims
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VSFHJTTZ.js";
|
|
8
8
|
|
|
9
9
|
// ../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
|
|
10
10
|
var require_color_name = __commonJS({
|
|
@@ -2686,7 +2686,7 @@ init_esm_shims();
|
|
|
2686
2686
|
// ../config/src/schema.ts
|
|
2687
2687
|
init_esm_shims();
|
|
2688
2688
|
|
|
2689
|
-
// ../../node_modules/.pnpm/zod@3.24.
|
|
2689
|
+
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
2690
2690
|
init_esm_shims();
|
|
2691
2691
|
var util;
|
|
2692
2692
|
(function(util2) {
|
|
@@ -6651,16 +6651,33 @@ ZodReadonly.create = (type, params) => {
|
|
|
6651
6651
|
...processCreateParams(params)
|
|
6652
6652
|
});
|
|
6653
6653
|
};
|
|
6654
|
-
function
|
|
6654
|
+
function cleanParams(params, data) {
|
|
6655
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
6656
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
6657
|
+
return p2;
|
|
6658
|
+
}
|
|
6659
|
+
__name(cleanParams, "cleanParams");
|
|
6660
|
+
function custom(check, _params = {}, fatal) {
|
|
6655
6661
|
if (check)
|
|
6656
6662
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
6657
6663
|
var _a, _b;
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6664
|
+
const r = check(data);
|
|
6665
|
+
if (r instanceof Promise) {
|
|
6666
|
+
return r.then((r2) => {
|
|
6667
|
+
var _a2, _b2;
|
|
6668
|
+
if (!r2) {
|
|
6669
|
+
const params = cleanParams(_params, data);
|
|
6670
|
+
const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
6671
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
6672
|
+
}
|
|
6673
|
+
});
|
|
6663
6674
|
}
|
|
6675
|
+
if (!r) {
|
|
6676
|
+
const params = cleanParams(_params, data);
|
|
6677
|
+
const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
|
|
6678
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
6679
|
+
}
|
|
6680
|
+
return;
|
|
6664
6681
|
});
|
|
6665
6682
|
return ZodAny.create();
|
|
6666
6683
|
}
|
|
@@ -7089,17 +7106,14 @@ init_esm_shims();
|
|
|
7089
7106
|
|
|
7090
7107
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
7091
7108
|
init_esm_shims();
|
|
7092
|
-
import process2 from "node:process";
|
|
7093
7109
|
function isUnicodeSupported() {
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
7102
|
-
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
7110
|
+
if (process.platform !== "win32") {
|
|
7111
|
+
return process.env.TERM !== "linux";
|
|
7112
|
+
}
|
|
7113
|
+
return Boolean(process.env.WT_SESSION) || // Windows Terminal
|
|
7114
|
+
Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
7115
|
+
process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
7116
|
+
process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
7103
7117
|
}
|
|
7104
7118
|
__name(isUnicodeSupported, "isUnicodeSupported");
|
|
7105
7119
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AORGS2JP.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
getOutputFile,
|
|
8
8
|
init_esm_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VSFHJTTZ.js";
|
|
10
10
|
|
|
11
11
|
// src/generators/markdown.ts
|
|
12
12
|
init_esm_shims();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AORGS2JP.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
getOutputFile,
|
|
8
8
|
init_esm_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VSFHJTTZ.js";
|
|
10
10
|
|
|
11
11
|
// src/generators/json-schema.ts
|
|
12
12
|
init_esm_shims();
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDeclarationFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A4R3AMIX.js";
|
|
4
4
|
import {
|
|
5
5
|
generateJsonSchemaFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FONZ2AHB.js";
|
|
7
7
|
import {
|
|
8
8
|
generateMarkdownFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EYLEPVOU.js";
|
|
10
10
|
import {
|
|
11
11
|
isVerbose,
|
|
12
12
|
writeError,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AORGS2JP.js";
|
|
15
15
|
import {
|
|
16
16
|
__name,
|
|
17
17
|
init_esm_shims,
|
|
18
18
|
joinPaths
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VSFHJTTZ.js";
|
|
20
20
|
|
|
21
21
|
// src/generate.ts
|
|
22
22
|
init_esm_shims();
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunk27FYXNIOcjs = require('./chunk-27FYXNIO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3STWFZKGcjs = require('./chunk-3STWFZKG.cjs');
|
|
10
10
|
|
|
11
11
|
// src/generators/markdown.ts
|
|
12
|
-
|
|
12
|
+
_chunk3STWFZKGcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _promises = require('fs/promises');
|
|
14
14
|
function generateMarkdown(schema) {
|
|
15
15
|
return `
|
|
@@ -20,7 +20,7 @@ ${generateMarkdownLevel(schema, schema.title || "", "#").join("\n")}
|
|
|
20
20
|
|
|
21
21
|
`;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
_chunk3STWFZKGcjs.__name.call(void 0, generateMarkdown, "generateMarkdown");
|
|
24
24
|
function generateMarkdownLevel(schema, title, level) {
|
|
25
25
|
const lines = [];
|
|
26
26
|
lines.push(`${level} ${title}`);
|
|
@@ -44,14 +44,14 @@ function generateMarkdownLevel(schema, title, level) {
|
|
|
44
44
|
}
|
|
45
45
|
return lines;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
_chunk3STWFZKGcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLevel");
|
|
48
48
|
function generateMarkdownFile(schema, file, config) {
|
|
49
49
|
try {
|
|
50
|
-
const declarations =
|
|
51
|
-
|
|
50
|
+
const declarations = _chunk3STWFZKGcjs.getOutputFile.call(void 0, file, "md");
|
|
51
|
+
_chunk27FYXNIOcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
|
|
52
52
|
return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
|
|
53
53
|
} catch (error) {
|
|
54
|
-
|
|
54
|
+
_chunk27FYXNIOcjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
|
|
55
55
|
|
|
56
56
|
Error:
|
|
57
57
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -63,7 +63,7 @@ ${JSON.stringify(schema)}
|
|
|
63
63
|
throw error;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
_chunk3STWFZKGcjs.__name.call(void 0, generateMarkdownFile, "generateMarkdownFile");
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunk27FYXNIOcjs = require('./chunk-27FYXNIO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3STWFZKGcjs = require('./chunk-3STWFZKG.cjs');
|
|
10
10
|
|
|
11
11
|
// src/generators/dts.ts
|
|
12
|
-
|
|
12
|
+
_chunk3STWFZKGcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _promises = require('fs/promises');
|
|
14
14
|
var _untyped = require('untyped');
|
|
15
15
|
function generateDeclaration(schema) {
|
|
@@ -25,14 +25,14 @@ ${_untyped.generateTypes.call(void 0, schema, {
|
|
|
25
25
|
|
|
26
26
|
`;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
_chunk3STWFZKGcjs.__name.call(void 0, generateDeclaration, "generateDeclaration");
|
|
29
29
|
function generateDeclarationFile(schema, file, config) {
|
|
30
30
|
try {
|
|
31
|
-
const declarations =
|
|
32
|
-
|
|
31
|
+
const declarations = _chunk3STWFZKGcjs.getOutputFile.call(void 0, file, "d.ts");
|
|
32
|
+
_chunk27FYXNIOcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
|
|
33
33
|
return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
35
|
+
_chunk27FYXNIOcjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
|
|
36
36
|
|
|
37
37
|
Error:
|
|
38
38
|
${_optionalChain([error, 'optionalAccess', _4 => _4.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _5 => _5.stack]) ? `
|
|
@@ -44,7 +44,7 @@ ${JSON.stringify(schema)}
|
|
|
44
44
|
throw error;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
_chunk3STWFZKGcjs.__name.call(void 0, generateDeclarationFile, "generateDeclarationFile");
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
@@ -1,29 +1,29 @@
|
|
|
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 _chunkS6C63FCTcjs = require('./chunk-S6C63FCT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3KJNEJ3Ccjs = require('./chunk-3KJNEJ3C.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkQECHN5Y2cjs = require('./chunk-QECHN5Y2.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk27FYXNIOcjs = require('./chunk-27FYXNIO.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk3STWFZKGcjs = require('./chunk-3STWFZKG.cjs');
|
|
20
20
|
|
|
21
21
|
// src/generate.ts
|
|
22
|
-
|
|
22
|
+
_chunk3STWFZKGcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
var _glob = require('glob');
|
|
24
24
|
var _loader = require('untyped/loader');
|
|
25
|
-
var getGenerateAction = /* @__PURE__ */
|
|
26
|
-
|
|
25
|
+
var getGenerateAction = /* @__PURE__ */ _chunk3STWFZKGcjs.__name.call(void 0, (config) => async (options) => {
|
|
26
|
+
_chunk27FYXNIOcjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
|
|
27
27
|
const files = await _glob.glob.call(void 0, options.entry || "**/{untyped.ts,*.untyped.ts}", {
|
|
28
28
|
ignore: [
|
|
29
29
|
"**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
|
|
@@ -38,18 +38,18 @@ var getGenerateAction = /* @__PURE__ */ _chunkBWZ4GDR6cjs.__name.call(void 0, (c
|
|
|
38
38
|
cwd: config.workspaceRoot
|
|
39
39
|
});
|
|
40
40
|
await Promise.all(files.map(async (file) => {
|
|
41
|
-
|
|
41
|
+
_chunk27FYXNIOcjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunk3STWFZKGcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
|
|
42
42
|
let schema;
|
|
43
43
|
try {
|
|
44
|
-
schema = await _loader.loadSchema.call(void 0,
|
|
44
|
+
schema = await _loader.loadSchema.call(void 0, _chunk3STWFZKGcjs.joinPaths.call(void 0, file.parentPath, file.name), {
|
|
45
45
|
jiti: {
|
|
46
|
-
debug:
|
|
47
|
-
fsCache: config.skipCache ? false :
|
|
46
|
+
debug: _chunk27FYXNIOcjs.isVerbose.call(void 0, config.logLevel),
|
|
47
|
+
fsCache: config.skipCache ? false : _chunk3STWFZKGcjs.joinPaths.call(void 0, config.directories.cache || _chunk3STWFZKGcjs.joinPaths.call(void 0, config.workspaceRoot, "node_modules/.cache/storm"), "jiti"),
|
|
48
48
|
interopDefault: true
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
} catch (error) {
|
|
52
|
-
|
|
52
|
+
_chunk27FYXNIOcjs.writeError.call(void 0, `Error while parsing schema file: ${_chunk3STWFZKGcjs.joinPaths.call(void 0, file.parentPath, file.name)}
|
|
53
53
|
|
|
54
54
|
Error:
|
|
55
55
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -61,9 +61,9 @@ ${JSON.stringify(schema)}
|
|
|
61
61
|
throw error;
|
|
62
62
|
}
|
|
63
63
|
const promises = [];
|
|
64
|
-
promises.push(
|
|
65
|
-
promises.push(
|
|
66
|
-
promises.push(
|
|
64
|
+
promises.push(_chunkS6C63FCTcjs.generateDeclarationFile.call(void 0, schema, file, config));
|
|
65
|
+
promises.push(_chunkQECHN5Y2cjs.generateMarkdownFile.call(void 0, schema, file, config));
|
|
66
|
+
promises.push(_chunk3KJNEJ3Ccjs.generateJsonSchemaFile.call(void 0, schema, file, config));
|
|
67
67
|
return Promise.all(promises);
|
|
68
68
|
}));
|
|
69
69
|
}, "getGenerateAction");
|
|
@@ -34,9 +34,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
mod
|
|
35
35
|
));
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.50.0_@types+node@22.13.1__@swc+core@1.7.26_@swc+h_a526057502c6ea8838db81b326f137cd/node_modules/tsup/assets/esm_shims.js
|
|
38
38
|
var init_esm_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.50.0_@types+node@22.13.1__@swc+core@1.7.26_@swc+h_a526057502c6ea8838db81b326f137cd/node_modules/tsup/assets/esm_shims.js"() {
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
|
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 _chunkUJFQSB2Mcjs = require('./chunk-UJFQSB2M.cjs');
|
|
4
|
+
require('./chunk-S6C63FCT.cjs');
|
|
5
|
+
require('./chunk-3KJNEJ3C.cjs');
|
|
6
|
+
require('./chunk-QECHN5Y2.cjs');
|
|
7
|
+
require('./chunk-27FYXNIO.cjs');
|
|
8
|
+
require('./chunk-3STWFZKG.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getGenerateAction =
|
|
11
|
+
exports.getGenerateAction = _chunkUJFQSB2Mcjs.getGenerateAction;
|
package/dist/generate.d.cts
CHANGED
package/dist/generate.d.ts
CHANGED
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-QAKF7CSX.js";
|
|
4
|
+
import "./chunk-A4R3AMIX.js";
|
|
5
|
+
import "./chunk-FONZ2AHB.js";
|
|
6
|
+
import "./chunk-EYLEPVOU.js";
|
|
7
|
+
import "./chunk-AORGS2JP.js";
|
|
8
|
+
import "./chunk-VSFHJTTZ.js";
|
|
9
9
|
export {
|
|
10
10
|
getGenerateAction
|
|
11
11
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkUJFQSB2Mcjs = require('./chunk-UJFQSB2M.cjs');
|
|
4
|
+
require('./chunk-OCGQTU2G.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkS6C63FCTcjs = require('./chunk-S6C63FCT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3KJNEJ3Ccjs = require('./chunk-3KJNEJ3C.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkQECHN5Y2cjs = require('./chunk-QECHN5Y2.cjs');
|
|
16
|
+
require('./chunk-27FYXNIO.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk3STWFZKGcjs = require('./chunk-3STWFZKG.cjs');
|
|
21
21
|
|
|
22
22
|
// src/index.ts
|
|
23
|
-
|
|
23
|
+
_chunk3STWFZKGcjs.init_cjs_shims.call(void 0, );
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -29,4 +29,4 @@ _chunkBWZ4GDR6cjs.init_cjs_shims.call(void 0, );
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
exports.generateDeclaration =
|
|
32
|
+
exports.generateDeclaration = _chunkS6C63FCTcjs.generateDeclaration; exports.generateDeclarationFile = _chunkS6C63FCTcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunk3KJNEJ3Ccjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkQECHN5Y2cjs.generateMarkdown; exports.generateMarkdownFile = _chunkQECHN5Y2cjs.generateMarkdownFile; exports.getGenerateAction = _chunkUJFQSB2Mcjs.getGenerateAction; exports.getOutputFile = _chunk3STWFZKGcjs.getOutputFile;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.c
|
|
|
3
3
|
export { generateJsonSchemaFile } from './generators/json-schema.cjs';
|
|
4
4
|
export { generateMarkdown, generateMarkdownFile } from './generators/markdown.cjs';
|
|
5
5
|
export { getOutputFile } from './utilities.cjs';
|
|
6
|
-
import './types-
|
|
6
|
+
import './types-HiZpltUX.cjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'glob';
|
|
9
9
|
import 'untyped';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.j
|
|
|
3
3
|
export { generateJsonSchemaFile } from './generators/json-schema.js';
|
|
4
4
|
export { generateMarkdown, generateMarkdownFile } from './generators/markdown.js';
|
|
5
5
|
export { getOutputFile } from './utilities.js';
|
|
6
|
-
import './types-
|
|
6
|
+
import './types-HiZpltUX.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'glob';
|
|
9
9
|
import 'untyped';
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGenerateAction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QAKF7CSX.js";
|
|
4
|
+
import "./chunk-E3JIROMO.js";
|
|
5
5
|
import {
|
|
6
6
|
generateDeclaration,
|
|
7
7
|
generateDeclarationFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A4R3AMIX.js";
|
|
9
9
|
import {
|
|
10
10
|
generateJsonSchemaFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FONZ2AHB.js";
|
|
12
12
|
import {
|
|
13
13
|
generateMarkdown,
|
|
14
14
|
generateMarkdownFile
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-EYLEPVOU.js";
|
|
16
|
+
import "./chunk-AORGS2JP.js";
|
|
17
17
|
import {
|
|
18
18
|
getOutputFile,
|
|
19
19
|
init_esm_shims
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VSFHJTTZ.js";
|
|
21
21
|
|
|
22
22
|
// src/index.ts
|
|
23
23
|
init_esm_shims();
|