@kubb/core 3.10.15 → 3.12.0
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/{chunk-H7GP5BQJ.cjs → chunk-ABJWI4LI.cjs} +4 -4
- package/dist/{chunk-H7GP5BQJ.cjs.map → chunk-ABJWI4LI.cjs.map} +1 -1
- package/dist/{chunk-XQBFZPHC.cjs → chunk-GZVOHBZS.cjs} +47 -47
- package/dist/{chunk-XQBFZPHC.cjs.map → chunk-GZVOHBZS.cjs.map} +1 -1
- package/dist/{chunk-ZZEKLURQ.cjs → chunk-PMVWFTDC.cjs} +17 -17
- package/dist/{chunk-ZZEKLURQ.cjs.map → chunk-PMVWFTDC.cjs.map} +1 -1
- package/dist/{chunk-DFVR26S3.cjs → chunk-TUA3FNWW.cjs} +13 -13
- package/dist/{chunk-DFVR26S3.cjs.map → chunk-TUA3FNWW.cjs.map} +1 -1
- package/dist/{chunk-DYN65P3T.cjs → chunk-ZD6YJ7FU.cjs} +8 -8
- package/dist/{chunk-DYN65P3T.cjs.map → chunk-ZD6YJ7FU.cjs.map} +1 -1
- package/dist/fs.cjs +9 -9
- package/dist/index.cjs +42 -42
- package/dist/logger.cjs +7 -7
- package/dist/mocks.cjs +12 -12
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.d.cts +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/mocks.js +2 -2
- package/dist/mocks.js.map +1 -1
- package/dist/{prompt-HR6NQYCR.cjs → prompt-FHRQSSTB.cjs} +4 -4
- package/dist/{prompt-HR6NQYCR.cjs.map → prompt-FHRQSSTB.cjs.map} +1 -1
- package/dist/transformers.cjs +22 -22
- package/dist/utils.cjs +19 -19
- package/package.json +6 -6
- package/src/mocks/index.ts +2 -2
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 chunkPMVWFTDC_cjs = require('./chunk-PMVWFTDC.cjs');
|
|
6
|
+
require('./chunk-ABJWI4LI.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 chunkPMVWFTDC_cjs.camelCase; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "combineCodes", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkPMVWFTDC_cjs.combineCodes; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "createIndent", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkPMVWFTDC_cjs.createIndent; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "createJSDocBlockText", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkPMVWFTDC_cjs.createJSDocBlockText; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "default", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkPMVWFTDC_cjs.transformers_default; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "escape", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkPMVWFTDC_cjs.escape; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "isValidVarName", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkPMVWFTDC_cjs.isValidVarName; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "jsStringEscape", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkPMVWFTDC_cjs.jsStringEscape; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "merge", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkPMVWFTDC_cjs.merge; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "nameSorter", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkPMVWFTDC_cjs.nameSorter; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "orderBy", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkPMVWFTDC_cjs.orderBy; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "pascalCase", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkPMVWFTDC_cjs.pascalCase; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "searchAndReplace", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkPMVWFTDC_cjs.searchAndReplace; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "stringify", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkPMVWFTDC_cjs.stringify; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "stringifyObject", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkPMVWFTDC_cjs.stringifyObject; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "toRegExp", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkPMVWFTDC_cjs.toRegExp; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "toRegExpString", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkPMVWFTDC_cjs.toRegExpString; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "transformReservedWord", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkPMVWFTDC_cjs.transformReservedWord; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "trim", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkPMVWFTDC_cjs.trim; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "trimQuotes", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkPMVWFTDC_cjs.trimQuotes; }
|
|
89
89
|
});
|
|
90
90
|
//# sourceMappingURL=transformers.cjs.map
|
|
91
91
|
//# sourceMappingURL=transformers.cjs.map
|
package/dist/utils.cjs
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkGZVOHBZS_cjs = require('./chunk-GZVOHBZS.cjs');
|
|
4
|
+
require('./chunk-PMVWFTDC.cjs');
|
|
5
|
+
require('./chunk-ZD6YJ7FU.cjs');
|
|
6
|
+
require('./chunk-ABJWI4LI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "FunctionParams", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkGZVOHBZS_cjs.FunctionParams; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "URLPath", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkGZVOHBZS_cjs.URLPath; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "createFile", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkGZVOHBZS_cjs.createFile; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "createFileExport", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkGZVOHBZS_cjs.createFileExport; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "createFileImport", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkGZVOHBZS_cjs.createFileImport; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "createFileParser", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkGZVOHBZS_cjs.createFileParser; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "getDefaultBanner", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkGZVOHBZS_cjs.getDefaultBanner; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "getFileParser", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkGZVOHBZS_cjs.getFileParser; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "getUniqueName", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkGZVOHBZS_cjs.getUniqueName; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "isPromise", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkGZVOHBZS_cjs.isPromise; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "isPromiseFulfilledResult", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkGZVOHBZS_cjs.isPromiseFulfilledResult; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "isPromiseRejectedResult", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkGZVOHBZS_cjs.isPromiseRejectedResult; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "renderTemplate", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkGZVOHBZS_cjs.renderTemplate; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "setUniqueName", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkGZVOHBZS_cjs.setUniqueName; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "timeout", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkGZVOHBZS_cjs.timeout; }
|
|
69
69
|
});
|
|
70
70
|
//# sourceMappingURL=utils.cjs.map
|
|
71
71
|
//# sourceMappingURL=utils.cjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Generator core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"natural-orderby": "^5.0.0",
|
|
91
91
|
"object-hash": "^3.0.0",
|
|
92
92
|
"p-queue": "^8.1.0",
|
|
93
|
-
"remeda": "^2.23.
|
|
93
|
+
"remeda": "^2.23.1",
|
|
94
94
|
"seedrandom": "^3.0.5",
|
|
95
95
|
"semver": "^7.7.2",
|
|
96
|
-
"@kubb/parser-ts": "3.
|
|
96
|
+
"@kubb/parser-ts": "3.12.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
"@types/seedrandom": "^3.0.8",
|
|
102
102
|
"@types/semver": "^7.7.0",
|
|
103
103
|
"consola": "^3.4.2",
|
|
104
|
-
"prettier": "^3.
|
|
104
|
+
"prettier": "^3.6.2",
|
|
105
105
|
"tsup": "^8.5.0",
|
|
106
106
|
"typescript": "^5.8.3",
|
|
107
|
-
"@kubb/config-ts": "3.
|
|
108
|
-
"@kubb/config-tsup": "3.
|
|
107
|
+
"@kubb/config-ts": "3.12.0",
|
|
108
|
+
"@kubb/config-tsup": "3.12.0"
|
|
109
109
|
},
|
|
110
110
|
"engines": {
|
|
111
111
|
"node": ">=20"
|
package/src/mocks/index.ts
CHANGED
|
@@ -61,13 +61,13 @@ export const createMockedPluginManager = (name?: string) =>
|
|
|
61
61
|
|
|
62
62
|
export const mockedPluginManager = createMockedPluginManager('')
|
|
63
63
|
|
|
64
|
-
export async function matchFiles(files: Array<ResolvedFile | File> | undefined) {
|
|
64
|
+
export async function matchFiles(files: Array<ResolvedFile | File> | undefined, pre?: string) {
|
|
65
65
|
if (!files) {
|
|
66
66
|
return undefined
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
for await (const file of files) {
|
|
70
70
|
const source = await getSource(createFile(file), { logger: mockedLogger })
|
|
71
|
-
await expect(source).toMatchFileSnapshot(path.join('__snapshots__', file.path))
|
|
71
|
+
await expect(source).toMatchFileSnapshot(path.join(...['__snapshots__', pre, file.path].filter(Boolean)))
|
|
72
72
|
}
|
|
73
73
|
}
|