@storm-software/untyped 0.24.53 → 0.24.55
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/bin/untyped.cjs +1911 -45201
- package/bin/untyped.js +1912 -45408
- package/dist/{chunk-N77CW7VO.cjs → chunk-4G3IU22J.cjs} +2 -51
- package/dist/chunk-4U6ARZBV.js +259 -0
- package/dist/{chunk-VZDVVM3H.cjs → chunk-AA55W4PI.cjs} +5 -7
- package/dist/{chunk-SEXIX2W6.js → chunk-AXIV4HBX.js} +3 -5
- package/dist/chunk-BY5UJMXQ.js +0 -0
- package/dist/{chunk-EOEWGN5V.cjs → chunk-DNUXDRL4.cjs} +5 -7
- package/dist/chunk-DUNUNFJ4.cjs +259 -0
- package/dist/{chunk-R7JBK4EB.js → chunk-EF33M72U.js} +8 -80
- package/dist/{chunk-2YNZOLYK.cjs → chunk-GXKBPF6R.cjs} +13 -79
- package/dist/{chunk-RRGVVEU6.cjs → chunk-NS7A3OHM.cjs} +33 -105
- package/dist/{chunk-7WW4JGOJ.js → chunk-NTN5YK5X.js} +0 -42
- package/dist/{chunk-H6DCXSE3.js → chunk-OKI3BIEA.js} +3 -5
- package/dist/chunk-TQVHFPJA.cjs +1 -0
- package/dist/{chunk-LWOW6NBO.js → chunk-USMEAXKV.js} +5 -71
- package/dist/generate.cjs +7 -7
- package/dist/generate.js +6 -6
- package/dist/index.cjs +8 -12
- package/dist/index.js +8 -12
- package/dist/utilities.cjs +2 -2
- package/dist/utilities.js +1 -1
- package/package.json +3 -2
- package/dist/chunk-GNDAXJ3C.js +0 -6
- package/dist/chunk-H3BI2RS6.js +0 -1840
- package/dist/chunk-OFYCXEXT.cjs +0 -1832
- package/dist/chunk-X4AHMOF6.cjs +0 -6
|
@@ -1,83 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4U6ARZBV.js";
|
|
5
5
|
import {
|
|
6
|
-
getOutputFile
|
|
7
|
-
|
|
8
|
-
} from "./chunk-7WW4JGOJ.js";
|
|
6
|
+
getOutputFile
|
|
7
|
+
} from "./chunk-NTN5YK5X.js";
|
|
9
8
|
|
|
10
9
|
// src/generators/dts.ts
|
|
11
|
-
init_esm_shims();
|
|
12
10
|
import { writeFile } from "node:fs/promises";
|
|
13
11
|
|
|
14
|
-
// ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/index.mjs
|
|
15
|
-
init_esm_shims();
|
|
16
|
-
|
|
17
|
-
// ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.BTwOq8Jl.mjs
|
|
18
|
-
init_esm_shims();
|
|
19
|
-
|
|
20
|
-
// ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.mjs
|
|
21
|
-
init_esm_shims();
|
|
22
|
-
|
|
23
|
-
// ../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs
|
|
24
|
-
init_esm_shims();
|
|
25
|
-
var NUMBER_CHAR_RE = /\d/;
|
|
26
|
-
var STR_SPLITTERS = ["-", "_", "/", "."];
|
|
27
|
-
function isUppercase(char = "") {
|
|
28
|
-
if (NUMBER_CHAR_RE.test(char)) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
return char !== char.toLowerCase();
|
|
32
|
-
}
|
|
33
|
-
function splitByCase(str, separators) {
|
|
34
|
-
const splitters = separators ?? STR_SPLITTERS;
|
|
35
|
-
const parts = [];
|
|
36
|
-
if (!str || typeof str !== "string") {
|
|
37
|
-
return parts;
|
|
38
|
-
}
|
|
39
|
-
let buff = "";
|
|
40
|
-
let previousUpper;
|
|
41
|
-
let previousSplitter;
|
|
42
|
-
for (const char of str) {
|
|
43
|
-
const isSplitter = splitters.includes(char);
|
|
44
|
-
if (isSplitter === true) {
|
|
45
|
-
parts.push(buff);
|
|
46
|
-
buff = "";
|
|
47
|
-
previousUpper = void 0;
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
const isUpper = isUppercase(char);
|
|
51
|
-
if (previousSplitter === false) {
|
|
52
|
-
if (previousUpper === false && isUpper === true) {
|
|
53
|
-
parts.push(buff);
|
|
54
|
-
buff = char;
|
|
55
|
-
previousUpper = isUpper;
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
if (previousUpper === true && isUpper === false && buff.length > 1) {
|
|
59
|
-
const lastChar = buff.at(-1);
|
|
60
|
-
parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
|
|
61
|
-
buff = lastChar + char;
|
|
62
|
-
previousUpper = isUpper;
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
buff += char;
|
|
67
|
-
previousUpper = isUpper;
|
|
68
|
-
previousSplitter = isSplitter;
|
|
69
|
-
}
|
|
70
|
-
parts.push(buff);
|
|
71
|
-
return parts;
|
|
72
|
-
}
|
|
73
|
-
function upperFirst(str) {
|
|
74
|
-
return str ? str[0].toUpperCase() + str.slice(1) : "";
|
|
75
|
-
}
|
|
76
|
-
function pascalCase(str, opts) {
|
|
77
|
-
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
|
|
78
|
-
}
|
|
79
|
-
|
|
80
12
|
// ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.mjs
|
|
13
|
+
import { pascalCase } from "scule";
|
|
81
14
|
function getType(val) {
|
|
82
15
|
const type = typeof val;
|
|
83
16
|
if (type === "undefined" || val === null) {
|
|
@@ -303,6 +236,7 @@ function normalizeSchema(schema, options) {
|
|
|
303
236
|
|
|
304
237
|
// ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/index.mjs
|
|
305
238
|
import { genObjectKey } from "knitwork";
|
|
239
|
+
import "scule";
|
|
306
240
|
var GenerateTypesDefaults = {
|
|
307
241
|
interfaceName: "Untyped",
|
|
308
242
|
addExport: true,
|
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 _chunkNS7A3OHMcjs = require('./chunk-NS7A3OHM.cjs');
|
|
4
|
+
require('./chunk-GXKBPF6R.cjs');
|
|
5
|
+
require('./chunk-DNUXDRL4.cjs');
|
|
6
|
+
require('./chunk-AA55W4PI.cjs');
|
|
7
|
+
require('./chunk-DUNUNFJ4.cjs');
|
|
8
|
+
require('./chunk-4G3IU22J.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getGenerateAction =
|
|
11
|
+
exports.getGenerateAction = _chunkNS7A3OHMcjs.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-EF33M72U.js";
|
|
4
|
+
import "./chunk-USMEAXKV.js";
|
|
5
|
+
import "./chunk-AXIV4HBX.js";
|
|
6
|
+
import "./chunk-OKI3BIEA.js";
|
|
7
|
+
import "./chunk-4U6ARZBV.js";
|
|
8
|
+
import "./chunk-NTN5YK5X.js";
|
|
9
9
|
export {
|
|
10
10
|
getGenerateAction
|
|
11
11
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkNS7A3OHMcjs = require('./chunk-NS7A3OHM.cjs');
|
|
4
|
+
require('./chunk-TQVHFPJA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGXKBPF6Rcjs = require('./chunk-GXKBPF6R.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkDNUXDRL4cjs = require('./chunk-DNUXDRL4.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkAA55W4PIcjs = require('./chunk-AA55W4PI.cjs');
|
|
16
|
+
require('./chunk-DUNUNFJ4.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
var _chunk4G3IU22Jcjs = require('./chunk-4G3IU22J.cjs');
|
|
19
20
|
|
|
20
|
-
var _chunkN77CW7VOcjs = require('./chunk-N77CW7VO.cjs');
|
|
21
21
|
|
|
22
|
-
// src/index.ts
|
|
23
|
-
_chunkN77CW7VOcjs.init_cjs_shims.call(void 0, );
|
|
24
22
|
|
|
25
23
|
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.generateDeclaration = _chunk2YNZOLYKcjs.generateDeclaration; exports.generateDeclarationFile = _chunk2YNZOLYKcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkEOEWGN5Vcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkVZDVVM3Hcjs.generateMarkdown; exports.generateMarkdownFile = _chunkVZDVVM3Hcjs.generateMarkdownFile; exports.getGenerateAction = _chunkRRGVVEU6cjs.getGenerateAction; exports.getOutputFile = _chunkN77CW7VOcjs.getOutputFile;
|
|
28
|
+
exports.generateDeclaration = _chunkGXKBPF6Rcjs.generateDeclaration; exports.generateDeclarationFile = _chunkGXKBPF6Rcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkDNUXDRL4cjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkAA55W4PIcjs.generateMarkdown; exports.generateMarkdownFile = _chunkAA55W4PIcjs.generateMarkdownFile; exports.getGenerateAction = _chunkNS7A3OHMcjs.getGenerateAction; exports.getOutputFile = _chunk4G3IU22Jcjs.getOutputFile;
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGenerateAction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-EF33M72U.js";
|
|
4
|
+
import "./chunk-BY5UJMXQ.js";
|
|
5
5
|
import {
|
|
6
6
|
generateDeclaration,
|
|
7
7
|
generateDeclarationFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-USMEAXKV.js";
|
|
9
9
|
import {
|
|
10
10
|
generateJsonSchemaFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AXIV4HBX.js";
|
|
12
12
|
import {
|
|
13
13
|
generateMarkdown,
|
|
14
14
|
generateMarkdownFile
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-OKI3BIEA.js";
|
|
16
|
+
import "./chunk-4U6ARZBV.js";
|
|
17
17
|
import {
|
|
18
|
-
getOutputFile
|
|
19
|
-
|
|
20
|
-
} from "./chunk-7WW4JGOJ.js";
|
|
21
|
-
|
|
22
|
-
// src/index.ts
|
|
23
|
-
init_esm_shims();
|
|
18
|
+
getOutputFile
|
|
19
|
+
} from "./chunk-NTN5YK5X.js";
|
|
24
20
|
export {
|
|
25
21
|
generateDeclaration,
|
|
26
22
|
generateDeclarationFile,
|
package/dist/utilities.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4G3IU22Jcjs = require('./chunk-4G3IU22J.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.getOutputFile =
|
|
6
|
+
exports.getOutputFile = _chunk4G3IU22Jcjs.getOutputFile;
|
package/dist/utilities.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/untyped",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `untyped` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -179,6 +179,7 @@
|
|
|
179
179
|
"sullivanpj"
|
|
180
180
|
],
|
|
181
181
|
"dependencies": {
|
|
182
|
+
"@storm-software/config-tools": "^1.188.74",
|
|
182
183
|
"commander": "^12.1.0",
|
|
183
184
|
"glob": "^11.1.0",
|
|
184
185
|
"jiti": "2.4.2",
|
|
@@ -191,5 +192,5 @@
|
|
|
191
192
|
},
|
|
192
193
|
"publishConfig": { "access": "public" },
|
|
193
194
|
"sideEffects": false,
|
|
194
|
-
"gitHead": "
|
|
195
|
+
"gitHead": "04528fd5ad2e9964bafae6e92842b2c59015141a"
|
|
195
196
|
}
|