@kubb/core 3.10.0 → 3.10.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/dist/{FileManager-DGGtDdkP.d.ts → FileManager-B14BOfNb.d.ts} +5 -2
- package/dist/{FileManager-DMjZQbMx.d.cts → FileManager-D2fUBfwx.d.cts} +5 -2
- package/dist/{chunk-Y5PNCSWA.cjs → chunk-57BPN7ID.cjs} +4 -4
- package/dist/{chunk-Y5PNCSWA.cjs.map → chunk-57BPN7ID.cjs.map} +1 -1
- package/dist/{chunk-B7Y6OY64.cjs → chunk-DAGXRU5M.cjs} +35 -35
- package/dist/{chunk-B7Y6OY64.cjs.map → chunk-DAGXRU5M.cjs.map} +1 -1
- package/dist/{chunk-KG2WJR6G.cjs → chunk-RZTZXKTK.cjs} +17 -17
- package/dist/{chunk-KG2WJR6G.cjs.map → chunk-RZTZXKTK.cjs.map} +1 -1
- package/dist/{chunk-MX3CSHV7.js → chunk-XICDTA6N.js} +2 -2
- package/dist/{chunk-MX3CSHV7.js.map → chunk-XICDTA6N.js.map} +1 -1
- package/dist/{chunk-EHN6D7S5.cjs → chunk-ZTYODCQ6.cjs} +11 -11
- package/dist/{chunk-EHN6D7S5.cjs.map → chunk-ZTYODCQ6.cjs.map} +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/logger.cjs +6 -6
- package/dist/mocks.cjs +9 -9
- package/dist/mocks.d.cts +1 -2
- package/dist/mocks.d.ts +1 -2
- package/dist/mocks.js +1 -1
- package/dist/{parser-OKRLQpPI.d.ts → parser-CYKQRXlL.d.ts} +1 -1
- package/dist/{parser-Dp4HBfH4.d.cts → parser-fbk23k1t.d.cts} +1 -1
- package/dist/{prompt-4XMPFNMS.cjs → prompt-RHWXTTFP.cjs} +4 -4
- package/dist/{prompt-4XMPFNMS.cjs.map → prompt-RHWXTTFP.cjs.map} +1 -1
- package/dist/transformers.cjs +22 -22
- package/dist/utils.cjs +18 -18
- package/dist/utils.d.cts +3 -4
- package/dist/utils.d.ts +3 -4
- package/dist/utils.js +1 -1
- package/package.json +5 -6
- package/src/FileManager.ts +1 -1
- package/src/PromiseManager.ts +1 -1
- package/src/config.ts +1 -1
- package/src/types.ts +1 -1
- package/src/utils/promise.ts +1 -1
- package/src/utils/types.ts +5 -0
package/dist/transformers.cjs
CHANGED
|
@@ -2,90 +2,90 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkRZTZXKTK_cjs = require('./chunk-RZTZXKTK.cjs');
|
|
6
|
+
require('./chunk-57BPN7ID.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "camelCase", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkRZTZXKTK_cjs.camelCase; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "combineCodes", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkRZTZXKTK_cjs.combineCodes; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "createIndent", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkRZTZXKTK_cjs.createIndent; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "createJSDocBlockText", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkRZTZXKTK_cjs.createJSDocBlockText; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "default", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkRZTZXKTK_cjs.transformers_default; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "escape", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkRZTZXKTK_cjs.escape; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "isValidVarName", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkRZTZXKTK_cjs.isValidVarName; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "jsStringEscape", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkRZTZXKTK_cjs.jsStringEscape; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "merge", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkRZTZXKTK_cjs.merge; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "nameSorter", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkRZTZXKTK_cjs.nameSorter; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "orderBy", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkRZTZXKTK_cjs.orderBy; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "pascalCase", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkRZTZXKTK_cjs.pascalCase; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "searchAndReplace", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkRZTZXKTK_cjs.searchAndReplace; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "stringify", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkRZTZXKTK_cjs.stringify; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "stringifyObject", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkRZTZXKTK_cjs.stringifyObject; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "toRegExp", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkRZTZXKTK_cjs.toRegExp; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "toRegExpString", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkRZTZXKTK_cjs.toRegExpString; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "transformReservedWord", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkRZTZXKTK_cjs.transformReservedWord; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "trim", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkRZTZXKTK_cjs.trim; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "trimQuotes", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkRZTZXKTK_cjs.trimQuotes; }
|
|
89
89
|
});
|
|
90
90
|
//# sourceMappingURL=transformers.cjs.map
|
|
91
91
|
//# sourceMappingURL=transformers.cjs.map
|
package/dist/utils.cjs
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkDAGXRU5M_cjs = require('./chunk-DAGXRU5M.cjs');
|
|
4
|
+
require('./chunk-RZTZXKTK.cjs');
|
|
5
|
+
require('./chunk-57BPN7ID.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "FunctionParams", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkDAGXRU5M_cjs.FunctionParams; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "URLPath", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkDAGXRU5M_cjs.URLPath; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createFile", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkDAGXRU5M_cjs.createFile; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "createFileExport", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkDAGXRU5M_cjs.createFileExport; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "createFileImport", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkDAGXRU5M_cjs.createFileImport; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "createFileParser", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkDAGXRU5M_cjs.createFileParser; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "getDefaultBanner", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkDAGXRU5M_cjs.getDefaultBanner; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "getFileParser", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkDAGXRU5M_cjs.getFileParser; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "getUniqueName", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkDAGXRU5M_cjs.getUniqueName; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "isPromise", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkDAGXRU5M_cjs.isPromise; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "isPromiseFulfilledResult", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkDAGXRU5M_cjs.isPromiseFulfilledResult; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "isPromiseRejectedResult", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkDAGXRU5M_cjs.isPromiseRejectedResult; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "renderTemplate", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkDAGXRU5M_cjs.renderTemplate; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "setUniqueName", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkDAGXRU5M_cjs.setUniqueName; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "timeout", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkDAGXRU5M_cjs.timeout; }
|
|
68
68
|
});
|
|
69
69
|
//# sourceMappingURL=utils.cjs.map
|
|
70
70
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { PossiblePromise } from '
|
|
2
|
-
export { P as ParserModule, d as createFile, b as createFileExport, c as createFileImport, e as createFileParser, g as getDefaultBanner, a as getFileParser } from './parser-
|
|
1
|
+
import { a as PossiblePromise } from './FileManager-D2fUBfwx.cjs';
|
|
2
|
+
export { P as ParserModule, d as createFile, b as createFileExport, c as createFileImport, e as createFileParser, g as getDefaultBanner, a as getFileParser } from './parser-fbk23k1t.cjs';
|
|
3
|
+
import '@kubb/fs';
|
|
3
4
|
import '@kubb/fs/types';
|
|
4
5
|
import './logger-BWq-oJU_.cjs';
|
|
5
6
|
import 'consola/utils';
|
|
6
7
|
import 'consola';
|
|
7
|
-
import './FileManager-DMjZQbMx.cjs';
|
|
8
|
-
import '@kubb/fs';
|
|
9
8
|
|
|
10
9
|
type FunctionParamsASTWithoutType = {
|
|
11
10
|
name?: string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { PossiblePromise } from '
|
|
2
|
-
export { P as ParserModule, d as createFile, b as createFileExport, c as createFileImport, e as createFileParser, g as getDefaultBanner, a as getFileParser } from './parser-
|
|
1
|
+
import { a as PossiblePromise } from './FileManager-B14BOfNb.js';
|
|
2
|
+
export { P as ParserModule, d as createFile, b as createFileExport, c as createFileImport, e as createFileParser, g as getDefaultBanner, a as getFileParser } from './parser-CYKQRXlL.js';
|
|
3
|
+
import '@kubb/fs';
|
|
3
4
|
import '@kubb/fs/types';
|
|
4
5
|
import './logger-BWq-oJU_.js';
|
|
5
6
|
import 'consola/utils';
|
|
6
7
|
import 'consola';
|
|
7
|
-
import './FileManager-DGGtDdkP.js';
|
|
8
|
-
import '@kubb/fs';
|
|
9
8
|
|
|
10
9
|
type FunctionParamsASTWithoutType = {
|
|
11
10
|
name?: string;
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getDefaultBanner, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-
|
|
1
|
+
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getDefaultBanner, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-XICDTA6N.js';
|
|
2
2
|
import './chunk-O5ASNFB7.js';
|
|
3
3
|
//# sourceMappingURL=utils.js.map
|
|
4
4
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.1",
|
|
4
4
|
"description": "Generator core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -83,9 +83,8 @@
|
|
|
83
83
|
"remeda": "^2.21.3",
|
|
84
84
|
"seedrandom": "^3.0.5",
|
|
85
85
|
"semver": "^7.7.1",
|
|
86
|
-
"@kubb/fs": "3.10.
|
|
87
|
-
"@kubb/parser-ts": "3.10.
|
|
88
|
-
"@kubb/types": "3.10.0"
|
|
86
|
+
"@kubb/fs": "3.10.1",
|
|
87
|
+
"@kubb/parser-ts": "3.10.1"
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
91
90
|
"@types/object-hash": "^3.0.6",
|
|
@@ -95,8 +94,8 @@
|
|
|
95
94
|
"prettier": "^3.5.3",
|
|
96
95
|
"tsup": "^8.4.0",
|
|
97
96
|
"typescript": "^5.8.3",
|
|
98
|
-
"@kubb/config-ts": "3.10.
|
|
99
|
-
"@kubb/config-tsup": "3.10.
|
|
97
|
+
"@kubb/config-ts": "3.10.1",
|
|
98
|
+
"@kubb/config-tsup": "3.10.1"
|
|
100
99
|
},
|
|
101
100
|
"engines": {
|
|
102
101
|
"node": ">=20"
|
package/src/FileManager.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type * as KubbFile from '@kubb/fs/types'
|
|
|
10
10
|
|
|
11
11
|
import { trimExtName } from '@kubb/fs'
|
|
12
12
|
import type { ResolvedFile } from '@kubb/fs/types'
|
|
13
|
-
import type { GreaterThan } from '
|
|
13
|
+
import type { GreaterThan } from './utils/types.ts'
|
|
14
14
|
import PQueue from 'p-queue'
|
|
15
15
|
import type { Logger } from './logger.ts'
|
|
16
16
|
import type { BarrelType, Config, Plugin } from './types.ts'
|
package/src/PromiseManager.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hookFirst, hookParallel, hookSeq } from './utils/executeStrategies.ts'
|
|
2
2
|
|
|
3
|
-
import type { PossiblePromise } from '
|
|
3
|
+
import type { PossiblePromise } from './utils/types.ts'
|
|
4
4
|
import type { Strategy, StrategySwitch } from './utils/executeStrategies.ts'
|
|
5
5
|
|
|
6
6
|
type PromiseFunc<T = unknown, T2 = never> = () => T2 extends never ? Promise<T> : Promise<T> | T2
|
package/src/config.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as KubbFile from '@kubb/fs/types'
|
|
2
|
-
import type { PossiblePromise } from '
|
|
2
|
+
import type { PossiblePromise } from './utils/types.ts'
|
|
3
3
|
import type { FileManager } from './FileManager.ts'
|
|
4
4
|
import type { PluginManager } from './PluginManager.ts'
|
|
5
5
|
import type { Logger } from './logger.ts'
|
package/src/utils/promise.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type PossiblePromise<T> = Promise<T> | T
|
|
2
|
+
|
|
3
|
+
type ArrayWithLength<T extends number, U extends any[] = []> = U['length'] extends T ? U : ArrayWithLength<T, [true, ...U]>
|
|
4
|
+
|
|
5
|
+
export type GreaterThan<T extends number, U extends number> = ArrayWithLength<U> extends [...ArrayWithLength<T>, ...infer _] ? false : true
|