@kubb/core 2.14.0 → 2.15.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.
Files changed (29) hide show
  1. package/dist/{chunk-O4HDY7JS.cjs → chunk-5ECHVUOT.cjs} +19 -19
  2. package/dist/{chunk-GOCMZM5Z.cjs → chunk-5JJFBKBI.cjs} +5 -5
  3. package/dist/{chunk-SEIE6FAK.cjs → chunk-7PQW23Z4.cjs} +7 -7
  4. package/dist/{chunk-FJJL4FXB.cjs → chunk-E2N6ELJH.cjs} +14 -14
  5. package/dist/{chunk-N7GFIV72.cjs → chunk-LT7MMILS.cjs} +3 -3
  6. package/dist/{chunk-3NPJUYXJ.cjs → chunk-NT5TMOO2.cjs} +4 -4
  7. package/dist/{chunk-QAG3ZNOM.cjs → chunk-VHGMEMCF.cjs} +3 -3
  8. package/dist/chunk-VHGMEMCF.cjs.map +1 -0
  9. package/dist/{chunk-N32RRGTX.cjs → chunk-VIYSO66S.cjs} +5 -5
  10. package/dist/chunk-X7VSDHLQ.cjs +19 -0
  11. package/dist/{chunk-NET6KXFF.cjs → chunk-ZRKR2HKR.cjs} +88 -88
  12. package/dist/fs.cjs +7 -7
  13. package/dist/index.cjs +293 -293
  14. package/dist/logger.cjs +5 -5
  15. package/dist/mocks.cjs +7 -7
  16. package/dist/transformers.cjs +5 -5
  17. package/dist/utils.cjs +26 -26
  18. package/package.json +4 -4
  19. package/dist/chunk-J6F7QWGK.cjs +0 -19
  20. package/dist/chunk-QAG3ZNOM.cjs.map +0 -1
  21. /package/dist/{chunk-O4HDY7JS.cjs.map → chunk-5ECHVUOT.cjs.map} +0 -0
  22. /package/dist/{chunk-GOCMZM5Z.cjs.map → chunk-5JJFBKBI.cjs.map} +0 -0
  23. /package/dist/{chunk-SEIE6FAK.cjs.map → chunk-7PQW23Z4.cjs.map} +0 -0
  24. /package/dist/{chunk-FJJL4FXB.cjs.map → chunk-E2N6ELJH.cjs.map} +0 -0
  25. /package/dist/{chunk-N7GFIV72.cjs.map → chunk-LT7MMILS.cjs.map} +0 -0
  26. /package/dist/{chunk-3NPJUYXJ.cjs.map → chunk-NT5TMOO2.cjs.map} +0 -0
  27. /package/dist/{chunk-N32RRGTX.cjs.map → chunk-VIYSO66S.cjs.map} +0 -0
  28. /package/dist/{chunk-J6F7QWGK.cjs.map → chunk-X7VSDHLQ.cjs.map} +0 -0
  29. /package/dist/{chunk-NET6KXFF.cjs.map → chunk-ZRKR2HKR.cjs.map} +0 -0
@@ -1,27 +1,27 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkN7GFIV72cjs = require('./chunk-N7GFIV72.cjs');
3
+ var _chunkLT7MMILScjs = require('./chunk-LT7MMILS.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk3NPJUYXJcjs = require('./chunk-3NPJUYXJ.cjs');
8
+ var _chunkNT5TMOO2cjs = require('./chunk-NT5TMOO2.cjs');
9
9
 
10
10
 
11
- var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
11
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
12
12
 
13
13
  // src/transformers/index.ts
14
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
14
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
15
15
  var _remeda = require('remeda');
16
16
 
17
17
  // src/transformers/combineCodes.ts
18
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
18
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
19
19
  function combineCodes(codes) {
20
20
  return codes.join("\n");
21
21
  }
22
22
 
23
23
  // src/transformers/createJSDocBlockText.ts
24
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
24
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
25
25
  function createJSDocBlockText({ comments }) {
26
26
  const filteredComments = comments.filter(Boolean);
27
27
  if (!filteredComments.length) {
@@ -33,7 +33,7 @@ function createJSDocBlockText({ comments }) {
33
33
  }
34
34
 
35
35
  // src/transformers/escape.ts
36
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
36
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
37
37
  function escape(text) {
38
38
  return text ? text.replaceAll("`", "\\`") : "";
39
39
  }
@@ -59,13 +59,13 @@ function jsStringEscape(input) {
59
59
  }
60
60
 
61
61
  // src/transformers/indent.ts
62
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
62
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
63
63
  function createIndent(size) {
64
64
  return Array.from({ length: size + 1 }).join(" ");
65
65
  }
66
66
 
67
67
  // src/transformers/nameSorter.ts
68
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
68
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
69
69
  function nameSorter(a, b) {
70
70
  if (a.name < b.name) {
71
71
  return -1;
@@ -77,7 +77,7 @@ function nameSorter(a, b) {
77
77
  }
78
78
 
79
79
  // src/transformers/searchAndReplace.ts
80
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
80
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
81
81
  function searchAndReplace(options) {
82
82
  const { text, replaceBy, prefix = "", key } = options;
83
83
  const searchValues = _optionalChain([options, 'access', _ => _.searchValues, 'optionalCall', _2 => _2(prefix, key)]) || [
@@ -95,10 +95,10 @@ function searchAndReplace(options) {
95
95
  }
96
96
 
97
97
  // src/transformers/stringify.ts
98
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
98
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
99
99
 
100
100
  // src/transformers/trim.ts
101
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
101
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
102
102
  function trim(text) {
103
103
  return text.replaceAll(/\n/g, "").trim();
104
104
  }
@@ -138,7 +138,7 @@ function stringifyObject(value) {
138
138
  }
139
139
 
140
140
  // src/transformers/toRegExp.ts
141
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
141
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
142
142
  function stringToRegex(text) {
143
143
  const isStartWithSlash = text.startsWith("/");
144
144
  const isEndWithSlash = text.endsWith("/");
@@ -159,7 +159,7 @@ function toRegExpString(text) {
159
159
  }
160
160
 
161
161
  // src/transformers/transformReservedWord.ts
162
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
162
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
163
163
  var reservedWords = [
164
164
  "abstract",
165
165
  "arguments",
@@ -272,11 +272,11 @@ var transformers_default = {
272
272
  JSDoc: {
273
273
  createJSDocBlockText
274
274
  },
275
- orderBy: _chunkN7GFIV72cjs.orderBy,
275
+ orderBy: _chunkLT7MMILScjs.orderBy,
276
276
  merge: _remeda.merge,
277
- camelCase: _chunk3NPJUYXJcjs.camelCase,
278
- pascalCase: _chunk3NPJUYXJcjs.pascalCase,
279
- pathCase: _chunk3NPJUYXJcjs.pathCase
277
+ camelCase: _chunkNT5TMOO2cjs.camelCase,
278
+ pascalCase: _chunkNT5TMOO2cjs.pascalCase,
279
+ pathCase: _chunkNT5TMOO2cjs.pathCase
280
280
  };
281
281
 
282
282
 
@@ -298,4 +298,4 @@ var transformers_default = {
298
298
 
299
299
 
300
300
  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;
301
- //# sourceMappingURL=chunk-O4HDY7JS.cjs.map
301
+ //# sourceMappingURL=chunk-5ECHVUOT.cjs.map
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNET6KXFFcjs = require('./chunk-NET6KXFF.cjs');
3
+ var _chunkZRKR2HKRcjs = require('./chunk-ZRKR2HKR.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
7
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
8
8
 
9
9
  // src/fs/read.ts
10
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
11
- var import_fs_extra = _chunkQAG3ZNOMcjs.__toESM.call(void 0, _chunkNET6KXFFcjs.require_lib.call(void 0, ), 1);
10
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
11
+ var import_fs_extra = _chunkVHGMEMCFcjs.__toESM.call(void 0, _chunkZRKR2HKRcjs.require_lib.call(void 0, ), 1);
12
12
  var _path = require('path');
13
13
  var _jsruntime = require('js-runtime');
14
14
  function slash(path, platform = "linux") {
@@ -64,4 +64,4 @@ function readSync(path) {
64
64
 
65
65
 
66
66
  exports.getRelativePath = getRelativePath; exports.read = read; exports.readSync = readSync;
67
- //# sourceMappingURL=chunk-GOCMZM5Z.cjs.map
67
+ //# sourceMappingURL=chunk-5JJFBKBI.cjs.map
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk3NPJUYXJcjs = require('./chunk-3NPJUYXJ.cjs');
3
+ var _chunkNT5TMOO2cjs = require('./chunk-NT5TMOO2.cjs');
4
4
 
5
5
 
6
- var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
6
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
7
7
 
8
8
  // src/utils/uniqueName.ts
9
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
9
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
10
10
  function getUniqueName(originalName, data) {
11
11
  let used = data[originalName] || 0;
12
12
  if (used) {
@@ -27,7 +27,7 @@ function setUniqueName(originalName, data) {
27
27
  }
28
28
 
29
29
  // src/utils/URLPath.ts
30
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
30
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
31
31
  var URLPath = class {
32
32
  constructor(path) {
33
33
  this.path = path;
@@ -94,7 +94,7 @@ var URLPath = class {
94
94
  let newPath = this.path.replaceAll("{", "${");
95
95
  if (found) {
96
96
  newPath = found.reduce((prev, curr) => {
97
- const pathParam = replacer ? replacer(_chunk3NPJUYXJcjs.camelCase.call(void 0, curr)) : _chunk3NPJUYXJcjs.camelCase.call(void 0, curr);
97
+ const pathParam = replacer ? replacer(_chunkNT5TMOO2cjs.camelCase.call(void 0, curr)) : _chunkNT5TMOO2cjs.camelCase.call(void 0, curr);
98
98
  const replacement = `\${${pathParam}}`;
99
99
  return prev.replace(curr, replacement);
100
100
  }, this.path);
@@ -110,7 +110,7 @@ var URLPath = class {
110
110
  const params = {};
111
111
  found.forEach((item) => {
112
112
  item = item.replaceAll("{", "").replaceAll("}", "");
113
- const pathParam = replacer ? replacer(_chunk3NPJUYXJcjs.camelCase.call(void 0, item)) : _chunk3NPJUYXJcjs.camelCase.call(void 0, item);
113
+ const pathParam = replacer ? replacer(_chunkNT5TMOO2cjs.camelCase.call(void 0, item)) : _chunkNT5TMOO2cjs.camelCase.call(void 0, item);
114
114
  params[pathParam] = pathParam;
115
115
  }, this.path);
116
116
  return params;
@@ -129,4 +129,4 @@ var URLPath = class {
129
129
 
130
130
 
131
131
  exports.getUniqueName = getUniqueName; exports.setUniqueName = setUniqueName; exports.URLPath = URLPath;
132
- //# sourceMappingURL=chunk-SEIE6FAK.cjs.map
132
+ //# sourceMappingURL=chunk-7PQW23Z4.cjs.map
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkN32RRGTXcjs = require('./chunk-N32RRGTX.cjs');
3
+ var _chunkVIYSO66Scjs = require('./chunk-VIYSO66S.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
8
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
9
9
 
10
10
  // src/logger.ts
11
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
11
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
12
12
  var _seedrandom = require('seedrandom'); var _seedrandom2 = _interopRequireDefault(_seedrandom);
13
13
 
14
14
  // ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/node.js
15
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
15
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
16
16
 
17
17
  // ../../node_modules/.pnpm/tinyrainbow@1.1.1/node_modules/tinyrainbow/dist/chunk-5WCZOS7T.js
18
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
18
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
19
19
  var b = {
20
20
  reset: [0, 0],
21
21
  bold: [1, 22, "\x1B[22m\x1B[1m"],
@@ -80,25 +80,25 @@ var _tty = require('tty');
80
80
  var p2 = w(_tty.isatty.call(void 0, 1));
81
81
 
82
82
  // src/utils/EventEmitter.ts
83
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
83
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
84
84
  var _events = require('events');
85
85
  var _emitter;
86
86
  var EventEmitter = class {
87
87
  constructor() {
88
- _chunkQAG3ZNOMcjs.__privateAdd.call(void 0, this, _emitter, new (0, _events.EventEmitter)());
89
- _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _emitter).setMaxListeners(100);
88
+ _chunkVHGMEMCFcjs.__privateAdd.call(void 0, this, _emitter, new (0, _events.EventEmitter)());
89
+ _chunkVHGMEMCFcjs.__privateGet.call(void 0, this, _emitter).setMaxListeners(100);
90
90
  }
91
91
  emit(eventName, ...eventArg) {
92
- _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _emitter).emit(eventName, ...eventArg);
92
+ _chunkVHGMEMCFcjs.__privateGet.call(void 0, this, _emitter).emit(eventName, ...eventArg);
93
93
  }
94
94
  on(eventName, handler) {
95
- _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _emitter).on(eventName, handler);
95
+ _chunkVHGMEMCFcjs.__privateGet.call(void 0, this, _emitter).on(eventName, handler);
96
96
  }
97
97
  off(eventName, handler) {
98
- _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _emitter).off(eventName, handler);
98
+ _chunkVHGMEMCFcjs.__privateGet.call(void 0, this, _emitter).off(eventName, handler);
99
99
  }
100
100
  removeAll() {
101
- _chunkQAG3ZNOMcjs.__privateGet.call(void 0, this, _emitter).removeAllListeners();
101
+ _chunkVHGMEMCFcjs.__privateGet.call(void 0, this, _emitter).removeAllListeners();
102
102
  }
103
103
  };
104
104
  _emitter = new WeakMap();
@@ -134,7 +134,7 @@ function createLogger({ logLevel, name, spinner }) {
134
134
  });
135
135
  events.on("debug", async (messages) => {
136
136
  if (logLevel === LogLevel.debug) {
137
- await _chunkN32RRGTXcjs.writeLog.call(void 0, messages.join("\n"));
137
+ await _chunkVIYSO66Scjs.writeLog.call(void 0, messages.join("\n"));
138
138
  }
139
139
  });
140
140
  const logger = {
@@ -185,4 +185,4 @@ function randomCliColour(text, colors = defaultColours) {
185
185
 
186
186
 
187
187
  exports.p = p2; exports.EventEmitter = EventEmitter; exports.LogLevel = LogLevel; exports.createLogger = createLogger; exports.randomColour = randomColour; exports.randomCliColour = randomCliColour;
188
- //# sourceMappingURL=chunk-FJJL4FXB.cjs.map
188
+ //# sourceMappingURL=chunk-E2N6ELJH.cjs.map
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
3
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
4
4
 
5
5
  // ../../node_modules/.pnpm/natural-orderby@3.0.2/node_modules/natural-orderby/dist/index.js
6
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
6
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
7
7
  var compareNumbers = function compareNumbers2(numberA, numberB) {
8
8
  if (numberA < numberB) {
9
9
  return -1;
@@ -322,4 +322,4 @@ natural-orderby/dist/index.js:
322
322
  * @license MIT
323
323
  *)
324
324
  */
325
- //# sourceMappingURL=chunk-N7GFIV72.cjs.map
325
+ //# sourceMappingURL=chunk-LT7MMILS.cjs.map
@@ -1,12 +1,12 @@
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 _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
3
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
4
4
 
5
5
  // src/transformers/casing.ts
6
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
6
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
7
7
 
8
8
  // ../../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js
9
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
9
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
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;
@@ -140,4 +140,4 @@ function pathCase2(text, { isFile, prefix = "", suffix = "" } = {}) {
140
140
 
141
141
 
142
142
  exports.camelCase = camelCase2; exports.pascalCase = pascalCase2; exports.pathCase = pathCase2;
143
- //# sourceMappingURL=chunk-3NPJUYXJ.cjs.map
143
+ //# sourceMappingURL=chunk-NT5TMOO2.cjs.map
@@ -69,9 +69,9 @@ var __privateMethod = (obj, member, method) => {
69
69
  return method;
70
70
  };
71
71
 
72
- // ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.1_ts-node@10.9.2_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js
72
+ // ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.1_@types+node@20.12.7__postcss@8.4.38_ts-node@10.9.2_4cb746h7xbnoda5ladgxgeqgt4/node_modules/tsup/assets/cjs_shims.js
73
73
  var init_cjs_shims = __esm({
74
- "../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.1_ts-node@10.9.2_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js"() {
74
+ "../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.1_@types+node@20.12.7__postcss@8.4.38_ts-node@10.9.2_4cb746h7xbnoda5ladgxgeqgt4/node_modules/tsup/assets/cjs_shims.js"() {
75
75
  "use strict";
76
76
  }
77
77
  });
@@ -88,4 +88,4 @@ var init_cjs_shims = __esm({
88
88
 
89
89
 
90
90
  exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.__publicField = __publicField; exports.__privateGet = __privateGet; exports.__privateAdd = __privateAdd; exports.__privateSet = __privateSet; exports.__privateWrapper = __privateWrapper; exports.__privateMethod = __privateMethod; exports.init_cjs_shims = init_cjs_shims;
91
- //# sourceMappingURL=chunk-QAG3ZNOM.cjs.map
91
+ //# sourceMappingURL=chunk-VHGMEMCF.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.1_@types+node@20.12.7__postcss@8.4.38_ts-node@10.9.2_4cb746h7xbnoda5ladgxgeqgt4/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,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkNET6KXFFcjs = require('./chunk-NET6KXFF.cjs');
3
+ var _chunkZRKR2HKRcjs = require('./chunk-ZRKR2HKR.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkQAG3ZNOMcjs = require('./chunk-QAG3ZNOM.cjs');
7
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
8
8
 
9
9
  // src/fs/write.ts
10
- _chunkQAG3ZNOMcjs.init_cjs_shims.call(void 0, );
11
- var import_fs_extra = _chunkQAG3ZNOMcjs.__toESM.call(void 0, _chunkNET6KXFFcjs.require_lib.call(void 0, ), 1);
10
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
11
+ var import_fs_extra = _chunkVHGMEMCFcjs.__toESM.call(void 0, _chunkZRKR2HKRcjs.require_lib.call(void 0, ), 1);
12
12
  var _path = require('path');
13
13
  var _jsruntime = require('js-runtime');
14
14
  var writer = _jsruntime.switcher.call(void 0,
@@ -91,4 +91,4 @@ async function writeLog(data) {
91
91
 
92
92
 
93
93
  exports.write = write; exports.writeLog = writeLog;
94
- //# sourceMappingURL=chunk-N32RRGTX.cjs.map
94
+ //# sourceMappingURL=chunk-VIYSO66S.cjs.map
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZRKR2HKRcjs = require('./chunk-ZRKR2HKR.cjs');
4
+
5
+
6
+
7
+ var _chunkVHGMEMCFcjs = require('./chunk-VHGMEMCF.cjs');
8
+
9
+ // src/fs/clean.ts
10
+ _chunkVHGMEMCFcjs.init_cjs_shims.call(void 0, );
11
+ var import_fs_extra = _chunkVHGMEMCFcjs.__toESM.call(void 0, _chunkZRKR2HKRcjs.require_lib.call(void 0, ), 1);
12
+ async function clean(path) {
13
+ return import_fs_extra.default.remove(path);
14
+ }
15
+
16
+
17
+
18
+ exports.clean = clean;
19
+ //# sourceMappingURL=chunk-X7VSDHLQ.cjs.map