@kubb/core 2.21.0 → 2.21.2
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-YDJ4Z6NY.cjs → chunk-5UEMCOTB.cjs} +18 -18
- package/dist/{chunk-DNGK2BKN.cjs → chunk-7GISIU7C.cjs} +12 -12
- package/dist/{chunk-5FVZDHZF.cjs → chunk-NPISNQZW.cjs} +5 -5
- package/dist/{chunk-YSPZSLSK.cjs → chunk-QGEKR3WN.cjs} +3 -3
- package/dist/{chunk-YSPZSLSK.cjs.map → chunk-QGEKR3WN.cjs.map} +1 -1
- package/dist/{chunk-4ILDTWZB.cjs → chunk-RDHZSAKG.cjs} +28 -28
- package/dist/{chunk-7AFXUAZA.cjs → chunk-SPD3YLEM.cjs} +145 -145
- package/dist/index.cjs +132 -132
- package/dist/logger.cjs +3 -3
- package/dist/mocks.cjs +8 -8
- package/dist/transformers.cjs +4 -4
- package/dist/utils.cjs +4 -4
- package/package.json +8 -8
- /package/dist/{chunk-YDJ4Z6NY.cjs.map → chunk-5UEMCOTB.cjs.map} +0 -0
- /package/dist/{chunk-DNGK2BKN.cjs.map → chunk-7GISIU7C.cjs.map} +0 -0
- /package/dist/{chunk-5FVZDHZF.cjs.map → chunk-NPISNQZW.cjs.map} +0 -0
- /package/dist/{chunk-4ILDTWZB.cjs.map → chunk-RDHZSAKG.cjs.map} +0 -0
- /package/dist/{chunk-7AFXUAZA.cjs.map → chunk-SPD3YLEM.cjs.map} +0 -0
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNPISNQZWcjs = require('./chunk-NPISNQZW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkQGEKR3WNcjs = require('./chunk-QGEKR3WN.cjs');
|
|
10
10
|
|
|
11
11
|
// src/transformers/index.ts
|
|
12
|
-
|
|
12
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _remeda = require('remeda');
|
|
14
14
|
|
|
15
15
|
// src/transformers/combineCodes.ts
|
|
16
|
-
|
|
16
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
17
17
|
function combineCodes(codes) {
|
|
18
18
|
return codes.join("\n");
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// src/transformers/createJSDocBlockText.ts
|
|
22
|
-
|
|
22
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
23
23
|
function createJSDocBlockText({ comments }) {
|
|
24
24
|
const filteredComments = comments.filter(Boolean);
|
|
25
25
|
if (!filteredComments.length) {
|
|
@@ -31,7 +31,7 @@ function createJSDocBlockText({ comments }) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// src/transformers/escape.ts
|
|
34
|
-
|
|
34
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
35
35
|
function escape(text) {
|
|
36
36
|
return text ? text.replaceAll("`", "\\`") : "";
|
|
37
37
|
}
|
|
@@ -57,13 +57,13 @@ function jsStringEscape(input) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// src/transformers/indent.ts
|
|
60
|
-
|
|
60
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
61
61
|
function createIndent(size) {
|
|
62
62
|
return Array.from({ length: size + 1 }).join(" ");
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// src/transformers/nameSorter.ts
|
|
66
|
-
|
|
66
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
67
67
|
function nameSorter(a, b) {
|
|
68
68
|
if (a.name < b.name) {
|
|
69
69
|
return -1;
|
|
@@ -75,7 +75,7 @@ function nameSorter(a, b) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// src/transformers/searchAndReplace.ts
|
|
78
|
-
|
|
78
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
79
79
|
function searchAndReplace(options) {
|
|
80
80
|
const { text, replaceBy, prefix = "", key } = options;
|
|
81
81
|
const searchValues = _optionalChain([options, 'access', _ => _.searchValues, 'optionalCall', _2 => _2(prefix, key)]) || [
|
|
@@ -93,10 +93,10 @@ function searchAndReplace(options) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
// src/transformers/stringify.ts
|
|
96
|
-
|
|
96
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
97
97
|
|
|
98
98
|
// src/transformers/trim.ts
|
|
99
|
-
|
|
99
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
100
100
|
function trim(text) {
|
|
101
101
|
return text.replaceAll(/\n/g, "").trim();
|
|
102
102
|
}
|
|
@@ -136,7 +136,7 @@ function stringifyObject(value) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// src/transformers/toRegExp.ts
|
|
139
|
-
|
|
139
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
140
140
|
function stringToRegex(text) {
|
|
141
141
|
const isStartWithSlash = text.startsWith("/");
|
|
142
142
|
const isEndWithSlash = text.endsWith("/");
|
|
@@ -157,7 +157,7 @@ function toRegExpString(text) {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
// src/transformers/transformReservedWord.ts
|
|
160
|
-
|
|
160
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
161
161
|
var reservedWords = [
|
|
162
162
|
"abstract",
|
|
163
163
|
"arguments",
|
|
@@ -270,11 +270,11 @@ var transformers_default = {
|
|
|
270
270
|
JSDoc: {
|
|
271
271
|
createJSDocBlockText
|
|
272
272
|
},
|
|
273
|
-
orderBy:
|
|
273
|
+
orderBy: _chunkNPISNQZWcjs.orderBy,
|
|
274
274
|
merge: _remeda.merge,
|
|
275
|
-
camelCase:
|
|
276
|
-
pascalCase:
|
|
277
|
-
pathCase:
|
|
275
|
+
camelCase: _chunkNPISNQZWcjs.camelCase,
|
|
276
|
+
pascalCase: _chunkNPISNQZWcjs.pascalCase,
|
|
277
|
+
pathCase: _chunkNPISNQZWcjs.pathCase
|
|
278
278
|
};
|
|
279
279
|
|
|
280
280
|
|
|
@@ -296,4 +296,4 @@ var transformers_default = {
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
exports.trim = trim; exports.trimQuotes = trimQuotes; exports.trimExtName = trimExtName; exports.searchAndReplace = searchAndReplace; exports.combineCodes = combineCodes; exports.createJSDocBlockText = createJSDocBlockText; exports.escape = escape; exports.jsStringEscape = jsStringEscape; exports.createIndent = createIndent; exports.nameSorter = nameSorter; exports.stringify = stringify; exports.stringifyObject = stringifyObject; exports.toRegExp = toRegExp; exports.toRegExpString = toRegExpString; exports.transformReservedWord = transformReservedWord; exports.transformers_default = transformers_default; exports.merge = _remeda.merge;
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-5UEMCOTB.cjs.map
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQGEKR3WNcjs = require('./chunk-QGEKR3WN.cjs');
|
|
6
6
|
|
|
7
7
|
// src/logger.ts
|
|
8
|
-
|
|
8
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
9
9
|
var _seedrandom = require('seedrandom'); var _seedrandom2 = _interopRequireDefault(_seedrandom);
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/node.js
|
|
12
|
-
|
|
12
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/chunk-5WCZOS7T.js
|
|
15
|
-
|
|
15
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
16
16
|
var b = {
|
|
17
17
|
reset: [0, 0],
|
|
18
18
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
@@ -77,25 +77,25 @@ var _tty = require('tty');
|
|
|
77
77
|
var p2 = w(_tty.isatty.call(void 0, 1));
|
|
78
78
|
|
|
79
79
|
// src/utils/EventEmitter.ts
|
|
80
|
-
|
|
80
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
81
81
|
var _events = require('events');
|
|
82
82
|
var _emitter;
|
|
83
83
|
var EventEmitter = class {
|
|
84
84
|
constructor() {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
_chunkQGEKR3WNcjs.__privateAdd.call(void 0, this, _emitter, new (0, _events.EventEmitter)());
|
|
86
|
+
_chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _emitter).setMaxListeners(100);
|
|
87
87
|
}
|
|
88
88
|
emit(eventName, ...eventArg) {
|
|
89
|
-
|
|
89
|
+
_chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _emitter).emit(eventName, ...eventArg);
|
|
90
90
|
}
|
|
91
91
|
on(eventName, handler) {
|
|
92
|
-
|
|
92
|
+
_chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _emitter).on(eventName, handler);
|
|
93
93
|
}
|
|
94
94
|
off(eventName, handler) {
|
|
95
|
-
|
|
95
|
+
_chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _emitter).off(eventName, handler);
|
|
96
96
|
}
|
|
97
97
|
removeAll() {
|
|
98
|
-
|
|
98
|
+
_chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _emitter).removeAllListeners();
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
_emitter = new WeakMap();
|
|
@@ -184,4 +184,4 @@ function randomCliColour(text, colors = defaultColours) {
|
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
exports.p = p2; exports.EventEmitter = EventEmitter; exports.LogLevel = LogLevel; exports.LogMapper = LogMapper; exports.createLogger = createLogger; exports.randomColour = randomColour; exports.randomCliColour = randomCliColour;
|
|
187
|
-
//# sourceMappingURL=chunk-
|
|
187
|
+
//# sourceMappingURL=chunk-7GISIU7C.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQGEKR3WNcjs = require('./chunk-QGEKR3WN.cjs');
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/.pnpm/natural-orderby@3.0.2/node_modules/natural-orderby/dist/index.js
|
|
6
|
-
|
|
6
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
7
7
|
var compareNumbers = function compareNumbers2(numberA, numberB) {
|
|
8
8
|
if (numberA < numberB) {
|
|
9
9
|
return -1;
|
|
@@ -306,10 +306,10 @@ function orderBy(collection, identifiers, orders) {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
// src/transformers/casing.ts
|
|
309
|
-
|
|
309
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
310
310
|
|
|
311
311
|
// ../../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js
|
|
312
|
-
|
|
312
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
313
313
|
var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
314
314
|
var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
315
315
|
var SPLIT_SEPARATE_NUMBER_RE = /(\d)\p{Ll}|(\p{L})\d/u;
|
|
@@ -458,4 +458,4 @@ natural-orderby/dist/index.js:
|
|
|
458
458
|
* @license MIT
|
|
459
459
|
*)
|
|
460
460
|
*/
|
|
461
|
-
//# sourceMappingURL=chunk-
|
|
461
|
+
//# sourceMappingURL=chunk-NPISNQZW.cjs.map
|
|
@@ -45,9 +45,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// ../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.47.0_@types+node@20.14.
|
|
48
|
+
// ../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.47.0_@types+node@20.14.9__postcss@8.4.38_ts-node@10.9.2_e4wj7wuzn7kxi3mm64msznmrum/node_modules/tsup/assets/cjs_shims.js
|
|
49
49
|
var init_cjs_shims = __esm({
|
|
50
|
-
"../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.47.0_@types+node@20.14.
|
|
50
|
+
"../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.47.0_@types+node@20.14.9__postcss@8.4.38_ts-node@10.9.2_e4wj7wuzn7kxi3mm64msznmrum/node_modules/tsup/assets/cjs_shims.js"() {
|
|
51
51
|
"use strict";
|
|
52
52
|
}
|
|
53
53
|
});
|
|
@@ -63,4 +63,4 @@ var init_cjs_shims = __esm({
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.__publicField = __publicField; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__privateMethod = __privateMethod; exports.__privateWrapper = __privateWrapper; exports.init_cjs_shims = init_cjs_shims;
|
|
66
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-QGEKR3WN.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.47.0_@types+node@20.14.
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.47.0_@types+node@20.14.9__postcss@8.4.38_ts-node@10.9.2_e4wj7wuzn7kxi3mm64msznmrum/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,37 +1,37 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNPISNQZWcjs = require('./chunk-NPISNQZW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQGEKR3WNcjs = require('./chunk-QGEKR3WN.cjs');
|
|
11
11
|
|
|
12
12
|
// src/utils/index.ts
|
|
13
|
-
|
|
13
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
|
|
15
15
|
// src/utils/FunctionParams.ts
|
|
16
|
-
|
|
16
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
17
17
|
var _items, _FunctionParams_static, orderItems_fn, addParams_fn;
|
|
18
18
|
var _FunctionParams = class _FunctionParams {
|
|
19
19
|
constructor() {
|
|
20
|
-
|
|
20
|
+
_chunkQGEKR3WNcjs.__privateAdd.call(void 0, this, _items, []);
|
|
21
21
|
return this;
|
|
22
22
|
}
|
|
23
23
|
get items() {
|
|
24
|
-
return
|
|
24
|
+
return _chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _items).flat();
|
|
25
25
|
}
|
|
26
26
|
add(item) {
|
|
27
27
|
if (!item) {
|
|
28
28
|
return this;
|
|
29
29
|
}
|
|
30
30
|
if (Array.isArray(item)) {
|
|
31
|
-
item.filter(Boolean).forEach((it) =>
|
|
31
|
+
item.filter(Boolean).forEach((it) => _chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _items).push(it));
|
|
32
32
|
return this;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
_chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _items).push(item);
|
|
35
35
|
return this;
|
|
36
36
|
}
|
|
37
37
|
static toObject(items) {
|
|
@@ -41,9 +41,9 @@ var _FunctionParams = class _FunctionParams {
|
|
|
41
41
|
const required = _nullishCoalesce(items.every((item) => item.required), () => ( true));
|
|
42
42
|
items.forEach((item) => {
|
|
43
43
|
var _a, _b;
|
|
44
|
-
name =
|
|
44
|
+
name = _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _a = _FunctionParams, _FunctionParams_static, addParams_fn).call(_a, name, { ...item, type: void 0 });
|
|
45
45
|
if (items.some((item2) => item2.type)) {
|
|
46
|
-
type =
|
|
46
|
+
type = _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _b = _FunctionParams, _FunctionParams_static, addParams_fn).call(_b, type, item);
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
@@ -55,35 +55,35 @@ var _FunctionParams = class _FunctionParams {
|
|
|
55
55
|
}
|
|
56
56
|
static toString(items) {
|
|
57
57
|
var _a;
|
|
58
|
-
const sortedData =
|
|
58
|
+
const sortedData = _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _a = _FunctionParams, _FunctionParams_static, orderItems_fn).call(_a, items);
|
|
59
59
|
return sortedData.reduce((acc, item) => {
|
|
60
60
|
var _a2, _b, _c;
|
|
61
61
|
if (Array.isArray(item)) {
|
|
62
62
|
if (item.length <= 0) {
|
|
63
63
|
return acc;
|
|
64
64
|
}
|
|
65
|
-
const subItems =
|
|
65
|
+
const subItems = _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _a2 = _FunctionParams, _FunctionParams_static, orderItems_fn).call(_a2, item);
|
|
66
66
|
const objectItem = _FunctionParams.toObject(subItems);
|
|
67
|
-
return
|
|
67
|
+
return _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _b = _FunctionParams, _FunctionParams_static, addParams_fn).call(_b, acc, objectItem);
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _c = _FunctionParams, _FunctionParams_static, addParams_fn).call(_c, acc, item);
|
|
70
70
|
}, []).join(", ");
|
|
71
71
|
}
|
|
72
72
|
toObject() {
|
|
73
73
|
var _a;
|
|
74
|
-
const items =
|
|
74
|
+
const items = _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _a = _FunctionParams, _FunctionParams_static, orderItems_fn).call(_a, _chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _items)).flat();
|
|
75
75
|
return _FunctionParams.toObject(items);
|
|
76
76
|
}
|
|
77
77
|
toString() {
|
|
78
78
|
var _a;
|
|
79
|
-
const items =
|
|
79
|
+
const items = _chunkQGEKR3WNcjs.__privateMethod.call(void 0, _a = _FunctionParams, _FunctionParams_static, orderItems_fn).call(_a, _chunkQGEKR3WNcjs.__privateGet.call(void 0, this, _items));
|
|
80
80
|
return _FunctionParams.toString(items);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
_items = new WeakMap();
|
|
84
84
|
_FunctionParams_static = new WeakSet();
|
|
85
85
|
orderItems_fn = function(items) {
|
|
86
|
-
return
|
|
86
|
+
return _chunkNPISNQZWcjs.orderBy.call(void 0,
|
|
87
87
|
items.filter(Boolean),
|
|
88
88
|
[
|
|
89
89
|
(v) => {
|
|
@@ -111,7 +111,7 @@ addParams_fn = function(acc, item) {
|
|
|
111
111
|
acc.push(`${type}${rest.default ? ` = ${rest.default}` : ""}`);
|
|
112
112
|
return acc;
|
|
113
113
|
}
|
|
114
|
-
const parameterName = name.startsWith("{") ? name :
|
|
114
|
+
const parameterName = name.startsWith("{") ? name : _chunkNPISNQZWcjs.camelCase.call(void 0, name);
|
|
115
115
|
if (type) {
|
|
116
116
|
if (required) {
|
|
117
117
|
acc.push(`${parameterName}: ${type}${rest.default ? ` = ${rest.default}` : ""}`);
|
|
@@ -123,11 +123,11 @@ addParams_fn = function(acc, item) {
|
|
|
123
123
|
}
|
|
124
124
|
return acc;
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
_chunkQGEKR3WNcjs.__privateAdd.call(void 0, _FunctionParams, _FunctionParams_static);
|
|
127
127
|
var FunctionParams = _FunctionParams;
|
|
128
128
|
|
|
129
129
|
// src/utils/promise.ts
|
|
130
|
-
|
|
130
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
131
131
|
function isPromise(result) {
|
|
132
132
|
return !!result && typeof _optionalChain([result, 'optionalAccess', _4 => _4.then]) === "function";
|
|
133
133
|
}
|
|
@@ -139,7 +139,7 @@ function isPromiseRejectedResult(result) {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
// src/utils/renderTemplate.ts
|
|
142
|
-
|
|
142
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
143
143
|
function renderTemplate(template, data = void 0) {
|
|
144
144
|
if (!data || !Object.keys(data).length) {
|
|
145
145
|
return template.replace(/{{(.*?)}}/g, "");
|
|
@@ -164,7 +164,7 @@ function renderTemplate(template, data = void 0) {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
// src/utils/timeout.ts
|
|
167
|
-
|
|
167
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
168
168
|
async function timeout(ms) {
|
|
169
169
|
return new Promise((resolve) => {
|
|
170
170
|
setTimeout(() => {
|
|
@@ -174,7 +174,7 @@ async function timeout(ms) {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
// src/utils/uniqueName.ts
|
|
177
|
-
|
|
177
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
178
178
|
function getUniqueName(originalName, data) {
|
|
179
179
|
let used = data[originalName] || 0;
|
|
180
180
|
if (used) {
|
|
@@ -195,7 +195,7 @@ function setUniqueName(originalName, data) {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
// src/utils/URLPath.ts
|
|
198
|
-
|
|
198
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
199
199
|
var URLPath = class {
|
|
200
200
|
constructor(path) {
|
|
201
201
|
this.path = path;
|
|
@@ -262,7 +262,7 @@ var URLPath = class {
|
|
|
262
262
|
let newPath = this.path.replaceAll("{", "${");
|
|
263
263
|
if (found) {
|
|
264
264
|
newPath = found.reduce((prev, curr) => {
|
|
265
|
-
const pathParam = replacer ? replacer(
|
|
265
|
+
const pathParam = replacer ? replacer(_chunkNPISNQZWcjs.camelCase.call(void 0, curr)) : _chunkNPISNQZWcjs.camelCase.call(void 0, curr);
|
|
266
266
|
const replacement = `\${${pathParam}}`;
|
|
267
267
|
return prev.replace(curr, replacement);
|
|
268
268
|
}, this.path);
|
|
@@ -278,7 +278,7 @@ var URLPath = class {
|
|
|
278
278
|
const params = {};
|
|
279
279
|
found.forEach((item) => {
|
|
280
280
|
item = item.replaceAll("{", "").replaceAll("}", "");
|
|
281
|
-
const pathParam = replacer ? replacer(
|
|
281
|
+
const pathParam = replacer ? replacer(_chunkNPISNQZWcjs.camelCase.call(void 0, item)) : _chunkNPISNQZWcjs.camelCase.call(void 0, item);
|
|
282
282
|
params[pathParam] = pathParam;
|
|
283
283
|
}, this.path);
|
|
284
284
|
return params;
|
|
@@ -293,7 +293,7 @@ var URLPath = class {
|
|
|
293
293
|
};
|
|
294
294
|
|
|
295
295
|
// src/utils/getParser.ts
|
|
296
|
-
|
|
296
|
+
_chunkQGEKR3WNcjs.init_cjs_shims.call(void 0, );
|
|
297
297
|
async function getParser(language) {
|
|
298
298
|
let modulePromise;
|
|
299
299
|
switch (language) {
|
|
@@ -317,4 +317,4 @@ async function getParser(language) {
|
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
exports.FunctionParams = FunctionParams; exports.isPromise = isPromise; exports.isPromiseFulfilledResult = isPromiseFulfilledResult; exports.isPromiseRejectedResult = isPromiseRejectedResult; exports.renderTemplate = renderTemplate; exports.timeout = timeout; exports.getUniqueName = getUniqueName; exports.setUniqueName = setUniqueName; exports.URLPath = URLPath; exports.getParser = getParser;
|
|
320
|
-
//# sourceMappingURL=chunk-
|
|
320
|
+
//# sourceMappingURL=chunk-RDHZSAKG.cjs.map
|