@kubb/core 2.6.6 → 2.6.7
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-NGM34FB2.cjs → chunk-2JNTDAI2.cjs} +3 -3
- package/dist/{chunk-NGM34FB2.cjs.map → chunk-2JNTDAI2.cjs.map} +1 -1
- package/dist/{chunk-DZ63TRO3.js → chunk-6453B5D6.js} +3 -3
- package/dist/{chunk-DZ63TRO3.js.map → chunk-6453B5D6.js.map} +1 -1
- package/dist/{chunk-DDBPI6U7.js → chunk-7LKI2367.js} +2 -2
- package/dist/{chunk-FEAY5FTX.cjs → chunk-AMVMOCJ4.cjs} +4 -4
- package/dist/{chunk-QUL3TACU.js → chunk-DUZFWQUE.js} +2 -2
- package/dist/{chunk-RVIZ52LV.js → chunk-E4QOZYOP.js} +3 -3
- package/dist/chunk-EFAVSUDO.cjs +15 -0
- package/dist/{chunk-XMJY6AMI.js → chunk-HTCJOTLL.js} +2 -2
- package/dist/{chunk-DNFR6EDG.cjs → chunk-JWYPCGK5.cjs} +5 -5
- package/dist/{chunk-DZZXW555.cjs → chunk-KRX65PCH.cjs} +14 -14
- package/dist/{chunk-O6KGDMGN.cjs → chunk-LVTR4JV4.cjs} +214 -214
- package/dist/{chunk-B3FP7HMI.cjs → chunk-M5H5RXTY.cjs} +6 -6
- package/dist/{chunk-JQBPOWRF.cjs → chunk-PHI4BK5K.cjs} +90 -90
- package/dist/{chunk-IAM2TSOD.js → chunk-Q5OJPP57.js} +7 -7
- package/dist/{chunk-7QEHTZ4T.js → chunk-QDUQWRFO.js} +2 -2
- package/dist/{chunk-MCUCYURB.js → chunk-VCS7BATE.js} +3 -3
- package/dist/{chunk-CPVVYFYJ.cjs → chunk-WCUXF325.cjs} +3 -3
- package/dist/{chunk-P5VTO36N.cjs → chunk-WDKUUZXN.cjs} +5 -5
- package/dist/{chunk-YETB7TYW.js → chunk-YFNYSIDY.js} +2 -2
- package/dist/{chunk-5TWA5OHW.js → chunk-YNFGR7GL.js} +2 -2
- package/dist/fs.cjs +10 -10
- package/dist/fs.js +4 -4
- package/dist/index.cjs +103 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/logger.cjs +7 -7
- package/dist/logger.js +3 -3
- package/dist/mocks.cjs +10 -10
- package/dist/mocks.js +8 -8
- package/dist/transformers.cjs +23 -23
- package/dist/transformers.js +5 -5
- package/dist/utils.cjs +13 -13
- package/dist/utils.js +4 -4
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/dist/chunk-33K7PH2K.cjs +0 -15
- /package/dist/{chunk-DDBPI6U7.js.map → chunk-7LKI2367.js.map} +0 -0
- /package/dist/{chunk-FEAY5FTX.cjs.map → chunk-AMVMOCJ4.cjs.map} +0 -0
- /package/dist/{chunk-QUL3TACU.js.map → chunk-DUZFWQUE.js.map} +0 -0
- /package/dist/{chunk-DZZXW555.cjs.map → chunk-E4QOZYOP.js.map} +0 -0
- /package/dist/{chunk-33K7PH2K.cjs.map → chunk-EFAVSUDO.cjs.map} +0 -0
- /package/dist/{chunk-XMJY6AMI.js.map → chunk-HTCJOTLL.js.map} +0 -0
- /package/dist/{chunk-5TWA5OHW.js.map → chunk-JWYPCGK5.cjs.map} +0 -0
- /package/dist/{chunk-RVIZ52LV.js.map → chunk-KRX65PCH.cjs.map} +0 -0
- /package/dist/{chunk-O6KGDMGN.cjs.map → chunk-LVTR4JV4.cjs.map} +0 -0
- /package/dist/{chunk-B3FP7HMI.cjs.map → chunk-M5H5RXTY.cjs.map} +0 -0
- /package/dist/{chunk-JQBPOWRF.cjs.map → chunk-PHI4BK5K.cjs.map} +0 -0
- /package/dist/{chunk-IAM2TSOD.js.map → chunk-Q5OJPP57.js.map} +0 -0
- /package/dist/{chunk-7QEHTZ4T.js.map → chunk-QDUQWRFO.js.map} +0 -0
- /package/dist/{chunk-MCUCYURB.js.map → chunk-VCS7BATE.js.map} +0 -0
- /package/dist/{chunk-CPVVYFYJ.cjs.map → chunk-WCUXF325.cjs.map} +0 -0
- /package/dist/{chunk-P5VTO36N.cjs.map → chunk-WDKUUZXN.cjs.map} +0 -0
- /package/dist/{chunk-YETB7TYW.js.map → chunk-YFNYSIDY.js.map} +0 -0
- /package/dist/{chunk-DNFR6EDG.cjs.map → chunk-YNFGR7GL.js.map} +0 -0
|
@@ -71,9 +71,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
71
71
|
return method;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.
|
|
74
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.3_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
|
|
75
75
|
var init_cjs_shims = __esm({
|
|
76
|
-
"../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.
|
|
76
|
+
"../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.3_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
|
|
@@ -88,4 +88,4 @@ exports.__require = __require;
|
|
|
88
88
|
exports.__toESM = __toESM;
|
|
89
89
|
exports.init_cjs_shims = init_cjs_shims;
|
|
90
90
|
//# sourceMappingURL=out.js.map
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-2JNTDAI2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.3_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL('file:' + __filename).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"]}
|
|
@@ -49,12 +49,12 @@ var __privateMethod = (obj, member, method) => {
|
|
|
49
49
|
return method;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.
|
|
52
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.3_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
|
|
53
53
|
var init_esm_shims = __esm({
|
|
54
|
-
"../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.
|
|
54
|
+
"../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.3_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
export { __commonJS, __privateAdd, __privateGet, __privateMethod, __privateSet, __toESM, init_esm_shims };
|
|
59
59
|
//# sourceMappingURL=out.js.map
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-6453B5D6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.42.3_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["// Shim globals in esm bundle\nimport { fileURLToPath } from 'url'\nimport path from 'path'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-6453B5D6.js';
|
|
2
2
|
import { relative, basename, extname } from 'path';
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
4
|
import { switcher } from 'js-runtime';
|
|
@@ -55,4 +55,4 @@ function readSync(path) {
|
|
|
55
55
|
|
|
56
56
|
export { getRelativePath, read, readSync };
|
|
57
57
|
//# sourceMappingURL=out.js.map
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-7LKI2367.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2JNTDAI2_cjs = require('./chunk-2JNTDAI2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/transformers/casing.ts
|
|
6
|
-
|
|
6
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/change-case@5.4.3/node_modules/change-case/dist/index.js
|
|
9
|
-
|
|
9
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
10
10
|
var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
11
11
|
var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
12
12
|
var SPLIT_SEPARATE_NUMBER_RE = /(\d)\p{Ll}|(\p{L})\d/u;
|
|
@@ -133,4 +133,4 @@ exports.camelCase = camelCase2;
|
|
|
133
133
|
exports.pascalCase = pascalCase2;
|
|
134
134
|
exports.pathCase = pathCase2;
|
|
135
135
|
//# sourceMappingURL=out.js.map
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
136
|
+
//# sourceMappingURL=chunk-AMVMOCJ4.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-6453B5D6.js';
|
|
2
2
|
import { camelCase as camelCase$1, pascalCase as pascalCase$1, pathCase as pathCase$1 } from 'change-case';
|
|
3
3
|
|
|
4
4
|
// src/transformers/casing.ts
|
|
@@ -27,4 +27,4 @@ function pathCase(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
|
27
27
|
|
|
28
28
|
export { camelCase, pascalCase, pathCase };
|
|
29
29
|
//# sourceMappingURL=out.js.map
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-DUZFWQUE.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { writeLog } from './chunk-
|
|
2
|
-
import { init_esm_shims, __privateAdd, __privateGet } from './chunk-
|
|
1
|
+
import { writeLog } from './chunk-HTCJOTLL.js';
|
|
2
|
+
import { init_esm_shims, __privateAdd, __privateGet } from './chunk-6453B5D6.js';
|
|
3
3
|
import seedrandom from 'seedrandom';
|
|
4
4
|
import { isatty } from 'tty';
|
|
5
5
|
import { EventEmitter as EventEmitter$1 } from 'events';
|
|
@@ -167,4 +167,4 @@ function randomCliColour(text, colors = defaultColours) {
|
|
|
167
167
|
|
|
168
168
|
export { EventEmitter, LogLevel, createLogger, p2 as p, randomCliColour, randomColour };
|
|
169
169
|
//# sourceMappingURL=out.js.map
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-E4QOZYOP.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkPHI4BK5K_cjs = require('./chunk-PHI4BK5K.cjs');
|
|
4
|
+
var chunk2JNTDAI2_cjs = require('./chunk-2JNTDAI2.cjs');
|
|
5
|
+
|
|
6
|
+
// src/fs/clean.ts
|
|
7
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
8
|
+
var import_fs_extra = chunk2JNTDAI2_cjs.__toESM(chunkPHI4BK5K_cjs.require_lib(), 1);
|
|
9
|
+
async function clean(path) {
|
|
10
|
+
return import_fs_extra.default.remove(path);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.clean = clean;
|
|
14
|
+
//# sourceMappingURL=out.js.map
|
|
15
|
+
//# sourceMappingURL=chunk-EFAVSUDO.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-6453B5D6.js';
|
|
2
2
|
import { resolve } from 'path';
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
4
|
import { switcher } from 'js-runtime';
|
|
@@ -79,4 +79,4 @@ async function writeLog(data) {
|
|
|
79
79
|
|
|
80
80
|
export { write, writeLog };
|
|
81
81
|
//# sourceMappingURL=out.js.map
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-HTCJOTLL.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2JNTDAI2_cjs = require('./chunk-2JNTDAI2.cjs');
|
|
4
4
|
|
|
5
5
|
// src/transformers/searchAndReplace.ts
|
|
6
|
-
|
|
6
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
7
7
|
function searchAndReplace(options) {
|
|
8
8
|
const { text, replaceBy, prefix = "", key } = options;
|
|
9
9
|
const searchValues = options.searchValues?.(prefix, key) || [
|
|
@@ -21,7 +21,7 @@ function searchAndReplace(options) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// src/transformers/trim.ts
|
|
24
|
-
|
|
24
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
25
25
|
function trim(text) {
|
|
26
26
|
return text.replaceAll(/\n/g, "").trim();
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ function trimExtName(text) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// src/transformers/transformReservedWord.ts
|
|
33
|
-
|
|
33
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
34
34
|
var reservedWords = [
|
|
35
35
|
"abstract",
|
|
36
36
|
"arguments",
|
|
@@ -128,4 +128,4 @@ exports.transformReservedWord = transformReservedWord;
|
|
|
128
128
|
exports.trim = trim;
|
|
129
129
|
exports.trimExtName = trimExtName;
|
|
130
130
|
//# sourceMappingURL=out.js.map
|
|
131
|
-
//# sourceMappingURL=chunk-
|
|
131
|
+
//# sourceMappingURL=chunk-JWYPCGK5.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkPHI4BK5K_cjs = require('./chunk-PHI4BK5K.cjs');
|
|
4
|
+
var chunk2JNTDAI2_cjs = require('./chunk-2JNTDAI2.cjs');
|
|
5
5
|
var seedrandom = require('seedrandom');
|
|
6
6
|
var tty = require('tty');
|
|
7
7
|
var events = require('events');
|
|
@@ -11,13 +11,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
11
11
|
var seedrandom__default = /*#__PURE__*/_interopDefault(seedrandom);
|
|
12
12
|
|
|
13
13
|
// src/logger.ts
|
|
14
|
-
|
|
14
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/node.js
|
|
17
|
-
|
|
17
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/chunk-5WCZOS7T.js
|
|
20
|
-
|
|
20
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
21
21
|
var b = {
|
|
22
22
|
reset: [0, 0],
|
|
23
23
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
@@ -79,24 +79,24 @@ function w(r2 = false) {
|
|
|
79
79
|
var p2 = w(tty.isatty(1));
|
|
80
80
|
|
|
81
81
|
// src/utils/EventEmitter.ts
|
|
82
|
-
|
|
82
|
+
chunk2JNTDAI2_cjs.init_cjs_shims();
|
|
83
83
|
var _emitter;
|
|
84
84
|
var EventEmitter = class {
|
|
85
85
|
constructor() {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
chunk2JNTDAI2_cjs.__privateAdd(this, _emitter, new events.EventEmitter());
|
|
87
|
+
chunk2JNTDAI2_cjs.__privateGet(this, _emitter).setMaxListeners(100);
|
|
88
88
|
}
|
|
89
89
|
emit(eventName, ...eventArg) {
|
|
90
|
-
|
|
90
|
+
chunk2JNTDAI2_cjs.__privateGet(this, _emitter).emit(eventName, ...eventArg);
|
|
91
91
|
}
|
|
92
92
|
on(eventName, handler) {
|
|
93
|
-
|
|
93
|
+
chunk2JNTDAI2_cjs.__privateGet(this, _emitter).on(eventName, handler);
|
|
94
94
|
}
|
|
95
95
|
off(eventName, handler) {
|
|
96
|
-
|
|
96
|
+
chunk2JNTDAI2_cjs.__privateGet(this, _emitter).off(eventName, handler);
|
|
97
97
|
}
|
|
98
98
|
removeAll() {
|
|
99
|
-
|
|
99
|
+
chunk2JNTDAI2_cjs.__privateGet(this, _emitter).removeAllListeners();
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
_emitter = new WeakMap();
|
|
@@ -129,7 +129,7 @@ function createLogger({ logLevel, name, spinner }) {
|
|
|
129
129
|
throw new Error(message || "Something went wrong");
|
|
130
130
|
});
|
|
131
131
|
events.on("debug", async (messages) => {
|
|
132
|
-
await
|
|
132
|
+
await chunkPHI4BK5K_cjs.writeLog(messages.join("\n"));
|
|
133
133
|
});
|
|
134
134
|
const logger = {
|
|
135
135
|
name,
|
|
@@ -178,4 +178,4 @@ exports.p = p2;
|
|
|
178
178
|
exports.randomCliColour = randomCliColour;
|
|
179
179
|
exports.randomColour = randomColour;
|
|
180
180
|
//# sourceMappingURL=out.js.map
|
|
181
|
-
//# sourceMappingURL=chunk-
|
|
181
|
+
//# sourceMappingURL=chunk-KRX65PCH.cjs.map
|