@kubb/core 2.6.1 → 2.6.3
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-JVCA27M5.cjs → chunk-42QBHWTS.cjs} +214 -214
- package/dist/{chunk-ZFWX24A2.js → chunk-46M72VA2.js} +3 -3
- package/dist/{chunk-7XH3IIIO.cjs → chunk-4ETFEMWH.cjs} +3 -3
- package/dist/{chunk-IQLE5TWS.cjs → chunk-AKVDLTIG.cjs} +6 -6
- package/dist/{chunk-MAQLBPOG.js → chunk-BG5SP7MX.js} +3 -3
- package/dist/{chunk-MSOTSQG5.js → chunk-BMYALID3.js} +7 -7
- package/dist/{chunk-Z2DIGHSC.cjs → chunk-CLOD7FDI.cjs} +5 -5
- package/dist/{chunk-UCW7372N.cjs → chunk-IZEN6QJW.cjs} +4 -4
- package/dist/{chunk-RC2A4MWB.js → chunk-K5BPDI36.js} +2 -2
- package/dist/{chunk-VM6OSFNQ.js → chunk-KMYQYSXM.js} +2 -2
- package/dist/{chunk-J5QWFPI4.cjs → chunk-LX3C2KYZ.cjs} +3 -3
- package/dist/{chunk-J5QWFPI4.cjs.map → chunk-LX3C2KYZ.cjs.map} +1 -1
- package/dist/{chunk-KQZNQA3D.cjs → chunk-LZMHGPYG.cjs} +90 -90
- package/dist/{chunk-5X45CG5S.js → chunk-ORSUFOUY.js} +3 -3
- package/dist/{chunk-5X45CG5S.js.map → chunk-ORSUFOUY.js.map} +1 -1
- package/dist/{chunk-R4FBPLRJ.js → chunk-QMJHN2SZ.js} +2 -2
- package/dist/{chunk-JVC5YZVA.cjs → chunk-QNVB4X4Z.cjs} +14 -14
- package/dist/{chunk-MSMNDHDO.cjs → chunk-QUDB2AZM.cjs} +5 -5
- package/dist/{chunk-JSSTXTHS.js → chunk-SQ7PJS37.js} +2 -2
- package/dist/{chunk-42FTVCX7.js → chunk-UP3ABHHJ.js} +2 -2
- package/dist/{chunk-F6NVPUP6.js → chunk-VARKFQXA.js} +2 -2
- package/dist/chunk-ZGGS2LJL.cjs +15 -0
- package/dist/fs.cjs +10 -10
- package/dist/fs.js +4 -4
- package/dist/index.cjs +103 -103
- package/dist/index.js +11 -11
- 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/dist/chunk-4YVJ5P2R.cjs +0 -15
- /package/dist/{chunk-JVCA27M5.cjs.map → chunk-42QBHWTS.cjs.map} +0 -0
- /package/dist/{chunk-IQLE5TWS.cjs.map → chunk-46M72VA2.js.map} +0 -0
- /package/dist/{chunk-7XH3IIIO.cjs.map → chunk-4ETFEMWH.cjs.map} +0 -0
- /package/dist/{chunk-ZFWX24A2.js.map → chunk-AKVDLTIG.cjs.map} +0 -0
- /package/dist/{chunk-JVC5YZVA.cjs.map → chunk-BG5SP7MX.js.map} +0 -0
- /package/dist/{chunk-MSOTSQG5.js.map → chunk-BMYALID3.js.map} +0 -0
- /package/dist/{chunk-RC2A4MWB.js.map → chunk-CLOD7FDI.cjs.map} +0 -0
- /package/dist/{chunk-UCW7372N.cjs.map → chunk-IZEN6QJW.cjs.map} +0 -0
- /package/dist/{chunk-Z2DIGHSC.cjs.map → chunk-K5BPDI36.js.map} +0 -0
- /package/dist/{chunk-VM6OSFNQ.js.map → chunk-KMYQYSXM.js.map} +0 -0
- /package/dist/{chunk-KQZNQA3D.cjs.map → chunk-LZMHGPYG.cjs.map} +0 -0
- /package/dist/{chunk-R4FBPLRJ.js.map → chunk-QMJHN2SZ.js.map} +0 -0
- /package/dist/{chunk-MAQLBPOG.js.map → chunk-QNVB4X4Z.cjs.map} +0 -0
- /package/dist/{chunk-MSMNDHDO.cjs.map → chunk-QUDB2AZM.cjs.map} +0 -0
- /package/dist/{chunk-JSSTXTHS.js.map → chunk-SQ7PJS37.js.map} +0 -0
- /package/dist/{chunk-42FTVCX7.js.map → chunk-UP3ABHHJ.js.map} +0 -0
- /package/dist/{chunk-F6NVPUP6.js.map → chunk-VARKFQXA.js.map} +0 -0
- /package/dist/{chunk-4YVJ5P2R.cjs.map → chunk-ZGGS2LJL.cjs.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { camelCase } from './chunk-
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { camelCase } from './chunk-SQ7PJS37.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-ORSUFOUY.js';
|
|
3
3
|
|
|
4
4
|
// src/utils/URLPath.ts
|
|
5
5
|
init_esm_shims();
|
|
@@ -101,4 +101,4 @@ var URLPath = class {
|
|
|
101
101
|
|
|
102
102
|
export { URLPath };
|
|
103
103
|
//# sourceMappingURL=out.js.map
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-46M72VA2.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLX3C2KYZ_cjs = require('./chunk-LX3C2KYZ.cjs');
|
|
4
4
|
|
|
5
5
|
// src/utils/uniqueName.ts
|
|
6
|
-
|
|
6
|
+
chunkLX3C2KYZ_cjs.init_cjs_shims();
|
|
7
7
|
function getUniqueName(originalName, data) {
|
|
8
8
|
let used = data[originalName] || 0;
|
|
9
9
|
if (used) {
|
|
@@ -26,4 +26,4 @@ function setUniqueName(originalName, data) {
|
|
|
26
26
|
exports.getUniqueName = getUniqueName;
|
|
27
27
|
exports.setUniqueName = setUniqueName;
|
|
28
28
|
//# sourceMappingURL=out.js.map
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-4ETFEMWH.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIZEN6QJW_cjs = require('./chunk-IZEN6QJW.cjs');
|
|
4
|
+
var chunkLX3C2KYZ_cjs = require('./chunk-LX3C2KYZ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/utils/URLPath.ts
|
|
7
|
-
|
|
7
|
+
chunkLX3C2KYZ_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(chunkIZEN6QJW_cjs.camelCase(curr)) : chunkIZEN6QJW_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(chunkIZEN6QJW_cjs.camelCase(item)) : chunkIZEN6QJW_cjs.camelCase(item);
|
|
91
91
|
params[pathParam] = pathParam;
|
|
92
92
|
}, this.path);
|
|
93
93
|
return params;
|
|
@@ -103,4 +103,4 @@ var URLPath = class {
|
|
|
103
103
|
|
|
104
104
|
exports.URLPath = URLPath;
|
|
105
105
|
//# sourceMappingURL=out.js.map
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-AKVDLTIG.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { writeLog } from './chunk-
|
|
2
|
-
import { init_esm_shims, __privateAdd, __privateGet } from './chunk-
|
|
1
|
+
import { writeLog } from './chunk-UP3ABHHJ.js';
|
|
2
|
+
import { init_esm_shims, __privateAdd, __privateGet } from './chunk-ORSUFOUY.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-BG5SP7MX.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { transformReservedWord, trimExtName, searchAndReplace } from './chunk-
|
|
2
|
-
import { setUniqueName } from './chunk-
|
|
3
|
-
import { EventEmitter, LogLevel } from './chunk-
|
|
4
|
-
import { read, getRelativePath } from './chunk-
|
|
5
|
-
import { write } from './chunk-
|
|
6
|
-
import { __commonJS, init_esm_shims, __toESM, __privateAdd, __privateSet, __privateGet, __privateMethod } from './chunk-
|
|
1
|
+
import { transformReservedWord, trimExtName, searchAndReplace } from './chunk-K5BPDI36.js';
|
|
2
|
+
import { setUniqueName } from './chunk-VARKFQXA.js';
|
|
3
|
+
import { EventEmitter, LogLevel } from './chunk-BG5SP7MX.js';
|
|
4
|
+
import { read, getRelativePath } from './chunk-QMJHN2SZ.js';
|
|
5
|
+
import { write } from './chunk-UP3ABHHJ.js';
|
|
6
|
+
import { __commonJS, init_esm_shims, __toESM, __privateAdd, __privateSet, __privateGet, __privateMethod } from './chunk-ORSUFOUY.js';
|
|
7
7
|
import crypto from 'crypto';
|
|
8
8
|
import path, { resolve, extname } from 'path';
|
|
9
9
|
import { print, getExports } from '@kubb/parser';
|
|
@@ -1827,4 +1827,4 @@ parse_fn = function(plugin, pluginManager, context) {
|
|
|
1827
1827
|
|
|
1828
1828
|
export { FileManager, KubbFile, PluginManager, PromiseManager, Warning, createPlugin, isPromise, pluginName };
|
|
1829
1829
|
//# sourceMappingURL=out.js.map
|
|
1830
|
-
//# sourceMappingURL=chunk-
|
|
1830
|
+
//# sourceMappingURL=chunk-BMYALID3.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLX3C2KYZ_cjs = require('./chunk-LX3C2KYZ.cjs');
|
|
4
4
|
|
|
5
5
|
// src/transformers/searchAndReplace.ts
|
|
6
|
-
|
|
6
|
+
chunkLX3C2KYZ_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
|
+
chunkLX3C2KYZ_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
|
+
chunkLX3C2KYZ_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-CLOD7FDI.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLX3C2KYZ_cjs = require('./chunk-LX3C2KYZ.cjs');
|
|
4
4
|
|
|
5
5
|
// src/transformers/casing.ts
|
|
6
|
-
|
|
6
|
+
chunkLX3C2KYZ_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
|
+
chunkLX3C2KYZ_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-IZEN6QJW.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-ORSUFOUY.js';
|
|
2
2
|
|
|
3
3
|
// src/transformers/searchAndReplace.ts
|
|
4
4
|
init_esm_shims();
|
|
@@ -123,4 +123,4 @@ function transformReservedWord(word) {
|
|
|
123
123
|
|
|
124
124
|
export { searchAndReplace, transformReservedWord, trim, trimExtName };
|
|
125
125
|
//# sourceMappingURL=out.js.map
|
|
126
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-K5BPDI36.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-ORSUFOUY.js';
|
|
2
2
|
import fs from 'fs-extra';
|
|
3
3
|
|
|
4
4
|
// src/fs/clean.ts
|
|
@@ -9,4 +9,4 @@ async function clean(path) {
|
|
|
9
9
|
|
|
10
10
|
export { clean };
|
|
11
11
|
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-KMYQYSXM.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.2_@microsoft+api-extractor@7.40.
|
|
74
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.40.5_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.40.
|
|
76
|
+
"../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.40.5_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-LX3C2KYZ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.40.
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.40.5_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"]}
|