@kubb/core 2.0.2 → 2.0.4
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-W2FP7ZWW.cjs → chunk-5VM4RVM5.cjs} +7 -7
- package/dist/{chunk-4A7WG6IA.js → chunk-5Z57Z2SO.js} +3 -3
- package/dist/{chunk-H47IKRXJ.cjs → chunk-ANP6S23V.cjs} +7 -7
- package/dist/{chunk-HIE46T3F.js → chunk-FGFTYKQS.js} +2 -2
- package/dist/{chunk-NAWI7UXW.js → chunk-FVK2YAOX.js} +2 -2
- package/dist/{chunk-7S67BJXQ.js → chunk-IYT5Y4GK.js} +2 -2
- package/dist/{chunk-PLVKILIY.cjs → chunk-MYRGSDE5.cjs} +7 -7
- package/dist/{chunk-54P4AWHI.js → chunk-NZHABRCW.js} +3 -3
- package/dist/chunk-NZHABRCW.js.map +1 -0
- package/dist/{chunk-K2H7BYQB.js → chunk-OTFKQILI.js} +3 -3
- package/dist/{chunk-WZQO3EPM.cjs → chunk-PAJNBSPO.cjs} +3 -3
- package/dist/chunk-PAJNBSPO.cjs.map +1 -0
- package/dist/{chunk-5TK7TMV6.cjs → chunk-QS3TLDZN.cjs} +5 -5
- package/dist/{chunk-E3ANGQ5N.cjs → chunk-TCVNI37N.cjs} +90 -90
- package/dist/{chunk-XDHI63G7.cjs → chunk-UICUGNAR.cjs} +4 -4
- package/dist/{chunk-XPOF4D5N.js → chunk-WT27HKBG.js} +2 -2
- package/dist/fs.cjs +9 -9
- package/dist/fs.js +3 -3
- package/dist/index.cjs +297 -297
- package/dist/index.js +7 -7
- package/dist/logger.cjs +7 -7
- package/dist/logger.js +3 -3
- package/dist/transformers.cjs +21 -21
- package/dist/transformers.js +5 -5
- package/dist/utils.cjs +12 -12
- package/dist/utils.js +3 -3
- package/package.json +3 -3
- package/dist/chunk-54P4AWHI.js.map +0 -1
- package/dist/chunk-WZQO3EPM.cjs.map +0 -1
- /package/dist/{chunk-W2FP7ZWW.cjs.map → chunk-5VM4RVM5.cjs.map} +0 -0
- /package/dist/{chunk-4A7WG6IA.js.map → chunk-5Z57Z2SO.js.map} +0 -0
- /package/dist/{chunk-H47IKRXJ.cjs.map → chunk-ANP6S23V.cjs.map} +0 -0
- /package/dist/{chunk-HIE46T3F.js.map → chunk-FGFTYKQS.js.map} +0 -0
- /package/dist/{chunk-NAWI7UXW.js.map → chunk-FVK2YAOX.js.map} +0 -0
- /package/dist/{chunk-7S67BJXQ.js.map → chunk-IYT5Y4GK.js.map} +0 -0
- /package/dist/{chunk-PLVKILIY.cjs.map → chunk-MYRGSDE5.cjs.map} +0 -0
- /package/dist/{chunk-K2H7BYQB.js.map → chunk-OTFKQILI.js.map} +0 -0
- /package/dist/{chunk-5TK7TMV6.cjs.map → chunk-QS3TLDZN.cjs.map} +0 -0
- /package/dist/{chunk-E3ANGQ5N.cjs.map → chunk-TCVNI37N.cjs.map} +0 -0
- /package/dist/{chunk-XDHI63G7.cjs.map → chunk-UICUGNAR.cjs.map} +0 -0
- /package/dist/{chunk-XPOF4D5N.js.map → chunk-WT27HKBG.js.map} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkTCVNI37N_cjs = require('./chunk-TCVNI37N.cjs');
|
|
4
|
+
var chunkPAJNBSPO_cjs = require('./chunk-PAJNBSPO.cjs');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var jsRuntime = require('js-runtime');
|
|
7
7
|
|
|
8
8
|
// src/fs/clean.ts
|
|
9
|
-
|
|
10
|
-
var import_fs_extra =
|
|
9
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
10
|
+
var import_fs_extra = chunkPAJNBSPO_cjs.__toESM(chunkTCVNI37N_cjs.require_lib(), 1);
|
|
11
11
|
async function clean(path) {
|
|
12
12
|
return import_fs_extra.default.remove(path);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// src/fs/read.ts
|
|
16
|
-
|
|
17
|
-
var import_fs_extra2 =
|
|
16
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
17
|
+
var import_fs_extra2 = chunkPAJNBSPO_cjs.__toESM(chunkTCVNI37N_cjs.require_lib(), 1);
|
|
18
18
|
function slash(path, platform = "linux") {
|
|
19
19
|
const isWindowsPath = /^\\\\\?\\/.test(path);
|
|
20
20
|
if (["linux", "mac"].includes(platform) && !isWindowsPath) {
|
|
@@ -68,4 +68,4 @@ exports.getRelativePath = getRelativePath;
|
|
|
68
68
|
exports.read = read;
|
|
69
69
|
exports.readSync = readSync;
|
|
70
70
|
//# sourceMappingURL=out.js.map
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-5VM4RVM5.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { camelCase } from './chunk-
|
|
3
|
-
import { init_esm_shims } from './chunk-
|
|
2
|
+
import { camelCase } from './chunk-WT27HKBG.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-NZHABRCW.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -125,4 +125,4 @@ function setUniqueName(originalName, data) {
|
|
|
125
125
|
|
|
126
126
|
export { URLPath, getUniqueName, setUniqueName };
|
|
127
127
|
//# sourceMappingURL=out.js.map
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-5Z57Z2SO.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkUICUGNAR_cjs = require('./chunk-UICUGNAR.cjs');
|
|
4
|
+
var chunkPAJNBSPO_cjs = require('./chunk-PAJNBSPO.cjs');
|
|
5
5
|
|
|
6
6
|
// src/utils/URLPath.ts
|
|
7
|
-
|
|
7
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
8
8
|
var URLPath = class {
|
|
9
9
|
constructor(path) {
|
|
10
10
|
this.path = path;
|
|
@@ -71,7 +71,7 @@ var URLPath = class {
|
|
|
71
71
|
let newPath = this.path.replaceAll("{", "${");
|
|
72
72
|
if (found) {
|
|
73
73
|
newPath = found.reduce((prev, curr) => {
|
|
74
|
-
const pathParam = replacer ? replacer(
|
|
74
|
+
const pathParam = replacer ? replacer(chunkUICUGNAR_cjs.camelCase(curr)) : chunkUICUGNAR_cjs.camelCase(curr);
|
|
75
75
|
const replacement = `\${${pathParam}}`;
|
|
76
76
|
return prev.replace(curr, replacement);
|
|
77
77
|
}, this.path);
|
|
@@ -87,7 +87,7 @@ var URLPath = class {
|
|
|
87
87
|
const params = {};
|
|
88
88
|
found.forEach((item) => {
|
|
89
89
|
item = item.replaceAll("{", "").replaceAll("}", "");
|
|
90
|
-
const pathParam = replacer ? replacer(
|
|
90
|
+
const pathParam = replacer ? replacer(chunkUICUGNAR_cjs.camelCase(item)) : chunkUICUGNAR_cjs.camelCase(item);
|
|
91
91
|
params[pathParam] = pathParam;
|
|
92
92
|
}, this.path);
|
|
93
93
|
return params;
|
|
@@ -102,7 +102,7 @@ var URLPath = class {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
// src/utils/uniqueName.ts
|
|
105
|
-
|
|
105
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
106
106
|
function getUniqueName(originalName, data) {
|
|
107
107
|
let used = data[originalName] || 0;
|
|
108
108
|
if (used) {
|
|
@@ -126,4 +126,4 @@ exports.URLPath = URLPath;
|
|
|
126
126
|
exports.getUniqueName = getUniqueName;
|
|
127
127
|
exports.setUniqueName = setUniqueName;
|
|
128
128
|
//# sourceMappingURL=out.js.map
|
|
129
|
-
//# sourceMappingURL=chunk-
|
|
129
|
+
//# sourceMappingURL=chunk-ANP6S23V.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
2
|
+
import { init_esm_shims } from './chunk-NZHABRCW.js';
|
|
3
3
|
|
|
4
4
|
createRequire(import.meta.url);
|
|
5
5
|
|
|
@@ -126,4 +126,4 @@ function transformReservedWord(word) {
|
|
|
126
126
|
|
|
127
127
|
export { searchAndReplace, transformReservedWord, trim, trimExtName };
|
|
128
128
|
//# sourceMappingURL=out.js.map
|
|
129
|
-
//# sourceMappingURL=chunk-
|
|
129
|
+
//# sourceMappingURL=chunk-FGFTYKQS.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
2
|
+
import { init_esm_shims } from './chunk-NZHABRCW.js';
|
|
3
3
|
import fs2 from 'fs-extra';
|
|
4
4
|
import { relative, basename, extname } from 'path';
|
|
5
5
|
import { switcher } from 'js-runtime';
|
|
@@ -64,4 +64,4 @@ function readSync(path) {
|
|
|
64
64
|
|
|
65
65
|
export { clean, getRelativePath, read, readSync };
|
|
66
66
|
//# sourceMappingURL=out.js.map
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-FVK2YAOX.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
2
|
+
import { init_esm_shims } from './chunk-NZHABRCW.js';
|
|
3
3
|
import { resolve } from 'path';
|
|
4
4
|
import fs from 'fs-extra';
|
|
5
5
|
import { switcher } from 'js-runtime';
|
|
@@ -82,4 +82,4 @@ async function writeLog(data) {
|
|
|
82
82
|
|
|
83
83
|
export { write, writeLog };
|
|
84
84
|
//# sourceMappingURL=out.js.map
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
85
|
+
//# sourceMappingURL=chunk-IYT5Y4GK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkTCVNI37N_cjs = require('./chunk-TCVNI37N.cjs');
|
|
4
|
+
var chunkPAJNBSPO_cjs = require('./chunk-PAJNBSPO.cjs');
|
|
5
5
|
var seedrandom = require('seedrandom');
|
|
6
6
|
var tty = require('tty');
|
|
7
7
|
|
|
@@ -10,13 +10,13 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
10
10
|
var seedrandom__default = /*#__PURE__*/_interopDefault(seedrandom);
|
|
11
11
|
|
|
12
12
|
// src/logger.ts
|
|
13
|
-
|
|
13
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/node.js
|
|
16
|
-
|
|
16
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/chunk-5WCZOS7T.js
|
|
19
|
-
|
|
19
|
+
chunkPAJNBSPO_cjs.init_cjs_shims();
|
|
20
20
|
var b = {
|
|
21
21
|
reset: [0, 0],
|
|
22
22
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
@@ -110,7 +110,7 @@ function createLogger({ logLevel, name, spinner }) {
|
|
|
110
110
|
};
|
|
111
111
|
const debug = async (message) => {
|
|
112
112
|
if (message) {
|
|
113
|
-
await
|
|
113
|
+
await chunkTCVNI37N_cjs.writeLog(message);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
const logger = {
|
|
@@ -159,4 +159,4 @@ exports.p = p2;
|
|
|
159
159
|
exports.randomCliColour = randomCliColour;
|
|
160
160
|
exports.randomColour = randomColour;
|
|
161
161
|
//# sourceMappingURL=out.js.map
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-MYRGSDE5.cjs.map
|
|
@@ -60,12 +60,12 @@ var __privateMethod = (obj, member, method) => {
|
|
|
60
60
|
return method;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// ../../node_modules/.pnpm/tsup@8.0.
|
|
63
|
+
// ../../node_modules/.pnpm/tsup@8.0.1_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
|
|
64
64
|
var init_esm_shims = __esm({
|
|
65
|
-
"../../node_modules/.pnpm/tsup@8.0.
|
|
65
|
+
"../../node_modules/.pnpm/tsup@8.0.1_ts-node@10.9.2_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
export { __commonJS, __privateAdd, __privateGet, __privateMethod, __privateSet, __require, __toESM, init_esm_shims };
|
|
70
70
|
//# sourceMappingURL=out.js.map
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-NZHABRCW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.1_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,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { writeLog } from './chunk-
|
|
3
|
-
import { init_esm_shims } from './chunk-
|
|
2
|
+
import { writeLog } from './chunk-IYT5Y4GK.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-NZHABRCW.js';
|
|
4
4
|
import seedrandom from 'seedrandom';
|
|
5
5
|
import { isatty } from 'tty';
|
|
6
6
|
|
|
@@ -152,4 +152,4 @@ function randomCliColour(text, colors = defaultColours) {
|
|
|
152
152
|
|
|
153
153
|
export { LogLevel, createLogger, p2 as p, randomCliColour, randomColour };
|
|
154
154
|
//# sourceMappingURL=out.js.map
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-OTFKQILI.js.map
|
|
@@ -71,9 +71,9 @@ var __privateMethod = (obj, member, method) => {
|
|
|
71
71
|
return method;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
// ../../node_modules/.pnpm/tsup@8.0.
|
|
74
|
+
// ../../node_modules/.pnpm/tsup@8.0.1_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.
|
|
76
|
+
"../../node_modules/.pnpm/tsup@8.0.1_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-PAJNBSPO.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.1_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"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPAJNBSPO_cjs = require('./chunk-PAJNBSPO.cjs');
|
|
4
4
|
|
|
5
5
|
// src/transformers/searchAndReplace.ts
|
|
6
|
-
|
|
6
|
+
chunkPAJNBSPO_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
|
+
chunkPAJNBSPO_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
|
+
chunkPAJNBSPO_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-QS3TLDZN.cjs.map
|