@kubb/core 2.18.6 → 2.18.8

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/index.cjs CHANGED
@@ -4,19 +4,19 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkM6VNU2SJcjs = require('./chunk-M6VNU2SJ.cjs');
7
+ var _chunkLV5YAOBNcjs = require('./chunk-LV5YAOBN.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunk7TB4GNKFcjs = require('./chunk-7TB4GNKF.cjs');
11
+ var _chunkOSQ5H5PEcjs = require('./chunk-OSQ5H5PE.cjs');
12
12
 
13
13
 
14
- var _chunkJI763CHTcjs = require('./chunk-JI763CHT.cjs');
14
+ var _chunkNOK6AFG5cjs = require('./chunk-NOK6AFG5.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkFWUA552Wcjs = require('./chunk-FWUA552W.cjs');
19
- require('./chunk-BE4KSMB4.cjs');
18
+ var _chunk2OYYCPPZcjs = require('./chunk-2OYYCPPZ.cjs');
19
+ require('./chunk-BZWRLQGS.cjs');
20
20
 
21
21
 
22
22
 
@@ -25,24 +25,24 @@ require('./chunk-BE4KSMB4.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkTCFN5BZ6cjs = require('./chunk-TCFN5BZ6.cjs');
28
+ var _chunkOCJ2ZNS2cjs = require('./chunk-OCJ2ZNS2.cjs');
29
29
 
30
30
  // src/index.ts
31
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
31
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
32
32
 
33
33
  // src/build.ts
34
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
34
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
35
35
  var _fs = require('@kubb/fs');
36
36
 
37
37
  // src/PluginManager.ts
38
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
38
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
39
39
 
40
40
 
41
41
  // src/PromiseManager.ts
42
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
42
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
43
43
 
44
44
  // src/utils/executeStrategies.ts
45
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
45
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
46
46
  function hookSeq(promises) {
47
47
  return promises.filter(Boolean).reduce(
48
48
  (promise, func) => {
@@ -80,8 +80,8 @@ function hookParallel(promises) {
80
80
  var _options;
81
81
  var PromiseManager = class {
82
82
  constructor(options = {}) {
83
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _options, {});
84
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _options, options);
83
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _options, {});
84
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _options, options);
85
85
  return this;
86
86
  }
87
87
  run(strategy, promises) {
@@ -89,7 +89,7 @@ var PromiseManager = class {
89
89
  return hookSeq(promises);
90
90
  }
91
91
  if (strategy === "first") {
92
- return hookFirst(promises, _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _options).nullCheck);
92
+ return hookFirst(promises, _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _options).nullCheck);
93
93
  }
94
94
  if (strategy === "parallel") {
95
95
  return hookParallel(promises);
@@ -106,7 +106,7 @@ function isPromiseRejectedResult(result) {
106
106
  }
107
107
 
108
108
  // src/errors.ts
109
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
109
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
110
110
  var Warning = class extends Error {
111
111
  constructor(message, options) {
112
112
  super(message, { cause: _optionalChain([options, 'optionalAccess', _3 => _3.cause]) });
@@ -117,11 +117,11 @@ var ValidationPluginError = class extends Error {
117
117
  };
118
118
 
119
119
  // src/plugin.ts
120
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
120
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
121
121
  var _path2 = require('path'); var _path3 = _interopRequireDefault(_path2);
122
122
 
123
123
  // src/utils/cache.ts
124
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
124
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
125
125
  function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
126
126
  return {
127
127
  set(id, value) {
@@ -201,8 +201,8 @@ var pluginCore = createPlugin((options) => {
201
201
  var _core, _usedPluginNames, _promiseManager, _getSortedPlugins, getSortedPlugins_fn, _addExecutedToCallStack, addExecutedToCallStack_fn, _execute, execute_fn, _executeSync, executeSync_fn, _catcher, catcher_fn, _parse, parse_fn;
202
202
  var PluginManager = class {
203
203
  constructor(config, options) {
204
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _getSortedPlugins);
205
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
204
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _getSortedPlugins);
205
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
206
206
  /**
207
207
  * Run an async plugin hook and return the result.
208
208
  * @param hookName Name of the plugin hook. Must be either in `PluginHooks` or `OutputPluginValueHooks`.
@@ -210,7 +210,7 @@ var PluginManager = class {
210
210
  * @param plugin The actual pluginObject to run.
211
211
  */
212
212
  // Implementation signature
213
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _execute);
213
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _execute);
214
214
  /**
215
215
  * Run a sync plugin hook and return the result.
216
216
  * @param hookName Name of the plugin hook. Must be in `PluginHooks`.
@@ -218,14 +218,14 @@ var PluginManager = class {
218
218
  * @param plugin The acutal plugin
219
219
  * @param replaceContext When passed, the plugin context can be overridden.
220
220
  */
221
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _executeSync);
222
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _catcher);
223
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _parse);
224
- this.events = new (0, _chunkM6VNU2SJcjs.EventEmitter)();
221
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _executeSync);
222
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _catcher);
223
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _parse);
224
+ this.events = new (0, _chunkLV5YAOBNcjs.EventEmitter)();
225
225
  this.executed = [];
226
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _core, void 0);
227
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
228
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
226
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _core, void 0);
227
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
228
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
229
229
  this.resolvePath = (params) => {
230
230
  if (params.pluginKey) {
231
231
  const paths = this.hookForPluginSync({
@@ -267,22 +267,22 @@ Falling back on the first item.
267
267
  `
268
268
  ]);
269
269
  }
270
- return _chunkJI763CHTcjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _8 => _8.at, 'call', _9 => _9(0)]) || params.name);
270
+ return _chunkNOK6AFG5cjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _8 => _8.at, 'call', _9 => _9(0)]) || params.name);
271
271
  }
272
272
  const name = this.hookFirstSync({
273
273
  hookName: "resolveName",
274
274
  parameters: [params.name, params.type]
275
275
  }).result;
276
- return _chunkJI763CHTcjs.transformReservedWord.call(void 0, name);
276
+ return _chunkNOK6AFG5cjs.transformReservedWord.call(void 0, name);
277
277
  };
278
278
  this.config = config;
279
279
  this.logger = options.logger;
280
- this.queue = new (0, _chunk7TB4GNKFcjs.PQueue)({ concurrency: 1 });
281
- this.fileManager = new (0, _chunk7TB4GNKFcjs.FileManager)({
280
+ this.queue = new (0, _chunkOSQ5H5PEcjs.PQueue)({ concurrency: 1 });
281
+ this.fileManager = new (0, _chunkOSQ5H5PEcjs.FileManager)({
282
282
  task: options.task,
283
283
  queue: this.queue
284
284
  });
285
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({
285
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({
286
286
  nullCheck: (state) => !!_optionalChain([state, 'optionalAccess', _10 => _10.result])
287
287
  }));
288
288
  const plugins = config.plugins || [];
@@ -293,11 +293,11 @@ Falling back on the first item.
293
293
  fileManager: this.fileManager,
294
294
  resolvePath: this.resolvePath.bind(this),
295
295
  resolveName: this.resolveName.bind(this),
296
- getPlugins: _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
296
+ getPlugins: _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
297
297
  });
298
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _core, _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
299
- this.plugins = [_chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
300
- return _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _core).api);
298
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _core, _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
299
+ this.plugins = [_chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
300
+ return _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _core).api);
301
301
  });
302
302
  return this;
303
303
  }
@@ -337,7 +337,7 @@ Falling back on the first item.
337
337
  }) {
338
338
  const plugins = this.getPluginsByKey(hookName, pluginKey);
339
339
  const promises = plugins.map((plugin) => {
340
- return _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
340
+ return _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
341
341
  strategy: "hookFirst",
342
342
  hookName,
343
343
  parameters,
@@ -356,7 +356,7 @@ Falling back on the first item.
356
356
  }) {
357
357
  const plugins = this.getPluginsByKey(hookName, pluginKey);
358
358
  return plugins.map((plugin) => {
359
- return _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
359
+ return _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
360
360
  strategy: "hookFirst",
361
361
  hookName,
362
362
  parameters,
@@ -372,11 +372,11 @@ Falling back on the first item.
372
372
  parameters,
373
373
  skipped
374
374
  }) {
375
- const promises = _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
375
+ const promises = _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
376
376
  return skipped ? skipped.has(plugin) : true;
377
377
  }).map((plugin) => {
378
378
  return async () => {
379
- const value = await _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
379
+ const value = await _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
380
380
  strategy: "hookFirst",
381
381
  hookName,
382
382
  parameters,
@@ -388,7 +388,7 @@ Falling back on the first item.
388
388
  });
389
389
  };
390
390
  });
391
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
391
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
392
392
  }
393
393
  /**
394
394
  * First non-null result stops and will return it's value.
@@ -399,12 +399,12 @@ Falling back on the first item.
399
399
  skipped
400
400
  }) {
401
401
  let parseResult = null;
402
- for (const plugin of _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
402
+ for (const plugin of _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
403
403
  if (_optionalChain([skipped, 'optionalAccess', _11 => _11.has, 'call', _12 => _12(plugin)])) {
404
404
  continue;
405
405
  }
406
406
  parseResult = {
407
- result: _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
407
+ result: _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
408
408
  strategy: "hookFirst",
409
409
  hookName,
410
410
  parameters,
@@ -425,19 +425,19 @@ Falling back on the first item.
425
425
  hookName,
426
426
  parameters
427
427
  }) {
428
- const promises = _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
429
- return () => _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
428
+ const promises = _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
429
+ return () => _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
430
430
  strategy: "hookParallel",
431
431
  hookName,
432
432
  parameters,
433
433
  plugin
434
434
  });
435
435
  });
436
- const results = await _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
436
+ const results = await _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
437
437
  results.forEach((result, index) => {
438
438
  if (isPromiseRejectedResult(result)) {
439
- const plugin = _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
440
- _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
439
+ const plugin = _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
440
+ _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
441
441
  }
442
442
  });
443
443
  return results.filter((result) => result.status === "fulfilled").map((result) => result.value);
@@ -452,16 +452,16 @@ Falling back on the first item.
452
452
  }) {
453
453
  const [argument0, ...rest] = parameters;
454
454
  let promise = Promise.resolve(argument0);
455
- for (const plugin of _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
455
+ for (const plugin of _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
456
456
  promise = promise.then((arg0) => {
457
- const value = _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
457
+ const value = _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
458
458
  strategy: "hookReduceArg0",
459
459
  hookName,
460
460
  parameters: [arg0, ...rest],
461
461
  plugin
462
462
  });
463
463
  return value;
464
- }).then((result) => reduce.call(_chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
464
+ }).then((result) => reduce.call(_chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
465
465
  }
466
466
  return promise;
467
467
  }
@@ -469,15 +469,15 @@ Falling back on the first item.
469
469
  * Chains plugins
470
470
  */
471
471
  async hookSeq({ hookName, parameters }) {
472
- const promises = _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
473
- return () => _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
472
+ const promises = _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
473
+ return () => _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
474
474
  strategy: "hookSeq",
475
475
  hookName,
476
476
  parameters,
477
477
  plugin
478
478
  });
479
479
  });
480
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
480
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
481
481
  }
482
482
  getPluginsByKey(hookName, pluginKey) {
483
483
  const plugins = [...this.plugins];
@@ -528,7 +528,7 @@ _getSortedPlugins = new WeakSet();
528
528
  getSortedPlugins_fn = function(hookName) {
529
529
  const plugins = [...this.plugins].filter((plugin) => plugin.name !== "core");
530
530
  if (hookName) {
531
- if (this.logger.logLevel === _chunkM6VNU2SJcjs.LogLevel.info) {
531
+ if (this.logger.logLevel === _chunkLV5YAOBNcjs.LogLevel.info) {
532
532
  const containsHookName = plugins.some((item) => item[hookName]);
533
533
  if (!containsHookName) {
534
534
  this.logger.emit("warning", `No hook ${hookName} found`);
@@ -576,7 +576,7 @@ execute_fn = function({
576
576
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
577
577
  const task = Promise.resolve().then(() => {
578
578
  if (typeof hook === "function") {
579
- const possiblePromiseResult = hook.apply({ ..._chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
579
+ const possiblePromiseResult = hook.apply({ ..._chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
580
580
  if (isPromise(possiblePromiseResult)) {
581
581
  return Promise.resolve(possiblePromiseResult);
582
582
  }
@@ -585,7 +585,7 @@ execute_fn = function({
585
585
  return hook;
586
586
  }).then((result) => {
587
587
  output = result;
588
- _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
588
+ _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
589
589
  parameters,
590
590
  output,
591
591
  strategy,
@@ -594,7 +594,7 @@ execute_fn = function({
594
594
  });
595
595
  return result;
596
596
  }).catch((e) => {
597
- _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
597
+ _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
598
598
  return null;
599
599
  });
600
600
  return task;
@@ -614,12 +614,12 @@ executeSync_fn = function({
614
614
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
615
615
  try {
616
616
  if (typeof hook === "function") {
617
- const fn = hook.apply({ ..._chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
617
+ const fn = hook.apply({ ..._chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
618
618
  output = fn;
619
619
  return fn;
620
620
  }
621
621
  output = hook;
622
- _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
622
+ _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
623
623
  parameters,
624
624
  output,
625
625
  strategy,
@@ -628,7 +628,7 @@ executeSync_fn = function({
628
628
  });
629
629
  return hook;
630
630
  } catch (e) {
631
- _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
631
+ _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
632
632
  return null;
633
633
  }
634
634
  };
@@ -640,8 +640,8 @@ catcher_fn = function(cause, plugin, hookName) {
640
640
  };
641
641
  _parse = new WeakSet();
642
642
  parse_fn = function(plugin, pluginManager, context) {
643
- const usedPluginNames = _chunkTCFN5BZ6cjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
644
- _chunkFWUA552Wcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
643
+ const usedPluginNames = _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
644
+ _chunk2OYYCPPZcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
645
645
  const key = [plugin.name, usedPluginNames[plugin.name]].filter(Boolean);
646
646
  if (!plugin.transform) {
647
647
  plugin.transform = function transform(_path, code) {
@@ -663,7 +663,7 @@ parse_fn = function(plugin, pluginManager, context) {
663
663
  };
664
664
 
665
665
  // src/config.ts
666
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
666
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
667
667
  function defineConfig(options) {
668
668
  return options;
669
669
  }
@@ -676,16 +676,16 @@ async function transformReducer(_previousCode, result, _plugin) {
676
676
  return result;
677
677
  }
678
678
  async function setup(options) {
679
- const { config, logger = _chunkM6VNU2SJcjs.createLogger.call(void 0, { logLevel: _chunkM6VNU2SJcjs.LogLevel.silent }) } = options;
679
+ const { config, logger = _chunkLV5YAOBNcjs.createLogger.call(void 0, { logLevel: _chunkLV5YAOBNcjs.LogLevel.silent }) } = options;
680
680
  let count = 0;
681
681
  try {
682
- if (isInputPath(config) && !new (0, _chunkFWUA552Wcjs.URLPath)(config.input.path).isURL) {
682
+ if (isInputPath(config) && !new (0, _chunk2OYYCPPZcjs.URLPath)(config.input.path).isURL) {
683
683
  await _fs.read.call(void 0, config.input.path);
684
684
  }
685
685
  } catch (e) {
686
686
  if (isInputPath(config)) {
687
687
  throw new Error(
688
- `Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${_chunkM6VNU2SJcjs.p.dim(config.input.path)}`,
688
+ `Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${_chunkLV5YAOBNcjs.p.dim(config.input.path)}`,
689
689
  {
690
690
  cause: e
691
691
  }
@@ -697,7 +697,7 @@ async function setup(options) {
697
697
  }
698
698
  const task = async (file) => {
699
699
  const { path: path4 } = file;
700
- let source = await _chunk7TB4GNKFcjs.FileManager.getSource(file);
700
+ let source = await _chunkOSQ5H5PEcjs.FileManager.getSource(file);
701
701
  const { result: loadedResult } = await pluginManager.hookFirst({
702
702
  hookName: "load",
703
703
  parameters: [path4]
@@ -738,14 +738,14 @@ async function setup(options) {
738
738
  const { hookName, parameters, plugin } = executer;
739
739
  if (hookName === "writeFile") {
740
740
  const [code] = parameters;
741
- logger.emit("debug", [`PluginKey ${_chunkM6VNU2SJcjs.p.dim(JSON.stringify(plugin.key))}
741
+ logger.emit("debug", [`PluginKey ${_chunkLV5YAOBNcjs.p.dim(JSON.stringify(plugin.key))}
742
742
  with source
743
743
 
744
744
  ${code}`]);
745
745
  }
746
746
  });
747
747
  pluginManager.queue.on("add", () => {
748
- if (logger.logLevel !== _chunkM6VNU2SJcjs.LogLevel.info) {
748
+ if (logger.logLevel !== _chunkLV5YAOBNcjs.LogLevel.info) {
749
749
  return;
750
750
  }
751
751
  if (count === 0) {
@@ -753,31 +753,31 @@ ${code}`]);
753
753
  }
754
754
  });
755
755
  pluginManager.queue.on("active", () => {
756
- if (logger.logLevel !== _chunkM6VNU2SJcjs.LogLevel.info) {
756
+ if (logger.logLevel !== _chunkLV5YAOBNcjs.LogLevel.info) {
757
757
  return;
758
758
  }
759
759
  if (logger.spinner && pluginManager.queue.size > 0) {
760
760
  const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
761
- logger.spinner.suffixText = _chunkM6VNU2SJcjs.p.dim(text);
761
+ logger.spinner.suffixText = _chunkLV5YAOBNcjs.p.dim(text);
762
762
  }
763
763
  ++count;
764
764
  });
765
765
  pluginManager.queue.on("completed", () => {
766
- if (logger.logLevel !== _chunkM6VNU2SJcjs.LogLevel.info) {
766
+ if (logger.logLevel !== _chunkLV5YAOBNcjs.LogLevel.info) {
767
767
  return;
768
768
  }
769
769
  if (logger.spinner) {
770
770
  const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
771
- logger.spinner.suffixText = _chunkM6VNU2SJcjs.p.dim(text);
771
+ logger.spinner.suffixText = _chunkLV5YAOBNcjs.p.dim(text);
772
772
  }
773
773
  });
774
774
  pluginManager.on("executed", (executer) => {
775
775
  const { hookName, plugin, output, parameters } = executer;
776
776
  const logs = [
777
- `${_chunkM6VNU2SJcjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
778
- parameters && `${_chunkM6VNU2SJcjs.p.bgWhite("Parameters")} ${_chunkM6VNU2SJcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
777
+ `${_chunkLV5YAOBNcjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
778
+ parameters && `${_chunkLV5YAOBNcjs.p.bgWhite("Parameters")} ${_chunkLV5YAOBNcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
779
779
  JSON.stringify(parameters, void 0, 2),
780
- output && `${_chunkM6VNU2SJcjs.p.bgWhite("Output")} ${_chunkM6VNU2SJcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
780
+ output && `${_chunkLV5YAOBNcjs.p.bgWhite("Output")} ${_chunkLV5YAOBNcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
781
781
  output
782
782
  ].filter(Boolean);
783
783
  logger.emit("debug", logs);
@@ -792,13 +792,13 @@ async function build(options) {
792
792
  parameters: [options.config]
793
793
  });
794
794
  await pluginManager.hookParallel({ hookName: "buildEnd" });
795
- if (logger.logLevel === _chunkM6VNU2SJcjs.LogLevel.info) {
795
+ if (logger.logLevel === _chunkLV5YAOBNcjs.LogLevel.info) {
796
796
  logger.emit("end", "\u{1F4BE} Writing completed");
797
797
  }
798
798
  const files = await Promise.all(
799
799
  fileManager.files.map(async (file) => ({
800
800
  ...file,
801
- source: await _chunk7TB4GNKFcjs.FileManager.getSource(file)
801
+ source: await _chunkOSQ5H5PEcjs.FileManager.getSource(file)
802
802
  }))
803
803
  );
804
804
  return {
@@ -815,14 +815,14 @@ async function safeBuild(options) {
815
815
  parameters: [options.config]
816
816
  });
817
817
  await pluginManager.hookParallel({ hookName: "buildEnd" });
818
- if (logger.logLevel === _chunkM6VNU2SJcjs.LogLevel.info) {
818
+ if (logger.logLevel === _chunkLV5YAOBNcjs.LogLevel.info) {
819
819
  logger.emit("end", "\u{1F4BE} Writing completed");
820
820
  }
821
821
  } catch (e) {
822
822
  const files2 = await Promise.all(
823
823
  fileManager.files.map(async (file) => ({
824
824
  ...file,
825
- source: await _chunk7TB4GNKFcjs.FileManager.getSource(file)
825
+ source: await _chunkOSQ5H5PEcjs.FileManager.getSource(file)
826
826
  }))
827
827
  );
828
828
  return {
@@ -834,7 +834,7 @@ async function safeBuild(options) {
834
834
  const files = await Promise.all(
835
835
  fileManager.files.map(async (file) => ({
836
836
  ...file,
837
- source: await _chunk7TB4GNKFcjs.FileManager.getSource(file)
837
+ source: await _chunkOSQ5H5PEcjs.FileManager.getSource(file)
838
838
  }))
839
839
  );
840
840
  return {
@@ -844,103 +844,103 @@ async function safeBuild(options) {
844
844
  }
845
845
 
846
846
  // src/Generator.ts
847
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
847
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
848
848
  var _options2, _context;
849
849
  var Generator = class {
850
850
  constructor(options, context) {
851
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _options2, {});
852
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _context, {});
851
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _options2, {});
852
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _context, {});
853
853
  if (context) {
854
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _context, context);
854
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _context, context);
855
855
  }
856
856
  if (options) {
857
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _options2, options);
857
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _options2, options);
858
858
  }
859
859
  return this;
860
860
  }
861
861
  get options() {
862
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _options2);
862
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _options2);
863
863
  }
864
864
  get context() {
865
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _context);
865
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _context);
866
866
  }
867
867
  set options(options) {
868
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _options2, { ..._chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _options2), ...options });
868
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _options2, { ..._chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _options2), ...options });
869
869
  }
870
870
  };
871
871
  _options2 = new WeakMap();
872
872
  _context = new WeakMap();
873
873
 
874
874
  // src/PackageManager.ts
875
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
875
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
876
876
  var _module = require('module'); var _module2 = _interopRequireDefault(_module);
877
877
  var _os = require('os'); var _os2 = _interopRequireDefault(_os);
878
878
  var _url = require('url');
879
879
 
880
880
  // ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
881
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
881
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
882
882
 
883
883
 
884
884
  // ../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
885
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
885
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
886
886
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
887
887
 
888
888
  var _fs3 = require('fs'); var _fs4 = _interopRequireDefault(_fs3);
889
889
 
890
890
 
891
891
  // ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
892
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
892
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
893
893
 
894
894
  // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
895
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
895
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
896
896
 
897
897
  // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
898
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
898
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
899
899
  var Node = class {
900
900
  constructor(value) {
901
- _chunkTCFN5BZ6cjs.__publicField.call(void 0, this, "value");
902
- _chunkTCFN5BZ6cjs.__publicField.call(void 0, this, "next");
901
+ _chunkOCJ2ZNS2cjs.__publicField.call(void 0, this, "value");
902
+ _chunkOCJ2ZNS2cjs.__publicField.call(void 0, this, "next");
903
903
  this.value = value;
904
904
  }
905
905
  };
906
906
  var _head, _tail, _size;
907
907
  var Queue = class {
908
908
  constructor() {
909
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _head, void 0);
910
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _tail, void 0);
911
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _size, void 0);
909
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _head, void 0);
910
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _tail, void 0);
911
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _size, void 0);
912
912
  this.clear();
913
913
  }
914
914
  enqueue(value) {
915
915
  const node = new Node(value);
916
- if (_chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _head)) {
917
- _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _tail).next = node;
918
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _tail, node);
916
+ if (_chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _head)) {
917
+ _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _tail).next = node;
918
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _tail, node);
919
919
  } else {
920
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _head, node);
921
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _tail, node);
920
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _head, node);
921
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _tail, node);
922
922
  }
923
- _chunkTCFN5BZ6cjs.__privateWrapper.call(void 0, this, _size)._++;
923
+ _chunkOCJ2ZNS2cjs.__privateWrapper.call(void 0, this, _size)._++;
924
924
  }
925
925
  dequeue() {
926
- const current = _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _head);
926
+ const current = _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _head);
927
927
  if (!current) {
928
928
  return;
929
929
  }
930
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _head, _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _head).next);
931
- _chunkTCFN5BZ6cjs.__privateWrapper.call(void 0, this, _size)._--;
930
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _head, _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _head).next);
931
+ _chunkOCJ2ZNS2cjs.__privateWrapper.call(void 0, this, _size)._--;
932
932
  return current.value;
933
933
  }
934
934
  clear() {
935
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _head, void 0);
936
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _tail, void 0);
937
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _size, 0);
935
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _head, void 0);
936
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _tail, void 0);
937
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _size, 0);
938
938
  }
939
939
  get size() {
940
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _size);
940
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _size);
941
941
  }
942
942
  *[Symbol.iterator]() {
943
- let current = _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _head);
943
+ let current = _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _head);
944
944
  while (current) {
945
945
  yield current.value;
946
946
  current = current.next;
@@ -1091,14 +1091,14 @@ function locatePathSync(paths, {
1091
1091
  }
1092
1092
 
1093
1093
  // ../../node_modules/.pnpm/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
1094
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
1094
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
1095
1095
 
1096
1096
  function toPath2(urlOrPath) {
1097
1097
  return urlOrPath instanceof URL ? _url.fileURLToPath.call(void 0, urlOrPath) : urlOrPath;
1098
1098
  }
1099
1099
 
1100
1100
  // ../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js
1101
- _chunkTCFN5BZ6cjs.init_cjs_shims.call(void 0, );
1101
+ _chunkOCJ2ZNS2cjs.init_cjs_shims.call(void 0, );
1102
1102
 
1103
1103
 
1104
1104
  // ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
@@ -1182,30 +1182,30 @@ var _semver = require('semver');
1182
1182
  var _cache, _cwd, _SLASHES, _match, match_fn;
1183
1183
  var _PackageManager = class _PackageManager {
1184
1184
  constructor(workspace) {
1185
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _match);
1186
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _cwd, void 0);
1187
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
1185
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _match);
1186
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _cwd, void 0);
1187
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
1188
1188
  if (workspace) {
1189
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _cwd, workspace);
1189
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _cwd, workspace);
1190
1190
  }
1191
1191
  return this;
1192
1192
  }
1193
1193
  set workspace(workspace) {
1194
- _chunkTCFN5BZ6cjs.__privateSet.call(void 0, this, _cwd, workspace);
1194
+ _chunkOCJ2ZNS2cjs.__privateSet.call(void 0, this, _cwd, workspace);
1195
1195
  }
1196
1196
  get workspace() {
1197
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _cwd);
1197
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _cwd);
1198
1198
  }
1199
1199
  normalizeDirectory(directory) {
1200
- if (!_chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
1200
+ if (!_chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
1201
1201
  return `${directory}/`;
1202
1202
  }
1203
1203
  return directory;
1204
1204
  }
1205
1205
  getLocation(path4) {
1206
1206
  let location = path4;
1207
- if (_chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _cwd)) {
1208
- const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _cwd)));
1207
+ if (_chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _cwd)) {
1208
+ const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _cwd)));
1209
1209
  location = require2.resolve(path4);
1210
1210
  }
1211
1211
  return location;
@@ -1225,7 +1225,7 @@ var _PackageManager = class _PackageManager {
1225
1225
  }
1226
1226
  async getPackageJSON() {
1227
1227
  const pkgPath = await findUp(["package.json"], {
1228
- cwd: _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _cwd)
1228
+ cwd: _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _cwd)
1229
1229
  });
1230
1230
  if (!pkgPath) {
1231
1231
  return void 0;
@@ -1235,7 +1235,7 @@ var _PackageManager = class _PackageManager {
1235
1235
  }
1236
1236
  getPackageJSONSync() {
1237
1237
  const pkgPath = findUpSync(["package.json"], {
1238
- cwd: _chunkTCFN5BZ6cjs.__privateGet.call(void 0, this, _cwd)
1238
+ cwd: _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, this, _cwd)
1239
1239
  });
1240
1240
  if (!pkgPath) {
1241
1241
  return void 0;
@@ -1244,27 +1244,27 @@ var _PackageManager = class _PackageManager {
1244
1244
  return JSON.parse(json);
1245
1245
  }
1246
1246
  static setVersion(dependency, version) {
1247
- _chunkTCFN5BZ6cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency] = version;
1247
+ _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency] = version;
1248
1248
  }
1249
1249
  async getVersion(dependency) {
1250
- if (typeof dependency === "string" && _chunkTCFN5BZ6cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
1251
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
1250
+ if (typeof dependency === "string" && _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
1251
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
1252
1252
  }
1253
1253
  const packageJSON = await this.getPackageJSON();
1254
1254
  if (!packageJSON) {
1255
1255
  return void 0;
1256
1256
  }
1257
- return _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
1257
+ return _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
1258
1258
  }
1259
1259
  getVersionSync(dependency) {
1260
- if (typeof dependency === "string" && _chunkTCFN5BZ6cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
1261
- return _chunkTCFN5BZ6cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
1260
+ if (typeof dependency === "string" && _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
1261
+ return _chunkOCJ2ZNS2cjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
1262
1262
  }
1263
1263
  const packageJSON = this.getPackageJSONSync();
1264
1264
  if (!packageJSON) {
1265
1265
  return void 0;
1266
1266
  }
1267
- return _chunkTCFN5BZ6cjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
1267
+ return _chunkOCJ2ZNS2cjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
1268
1268
  }
1269
1269
  async isValid(dependency, version) {
1270
1270
  const packageVersion = await this.getVersion(dependency);
@@ -1307,7 +1307,7 @@ match_fn = function(packageJSON, dependency) {
1307
1307
  const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
1308
1308
  return matchedDependency ? dependencies[matchedDependency] : void 0;
1309
1309
  };
1310
- _chunkTCFN5BZ6cjs.__privateAdd.call(void 0, _PackageManager, _cache, {});
1310
+ _chunkOCJ2ZNS2cjs.__privateAdd.call(void 0, _PackageManager, _cache, {});
1311
1311
  var PackageManager = _PackageManager;
1312
1312
 
1313
1313
 
@@ -1322,5 +1322,5 @@ var PackageManager = _PackageManager;
1322
1322
 
1323
1323
 
1324
1324
 
1325
- exports.FileManager = _chunk7TB4GNKFcjs.FileManager; exports.Generator = Generator; exports.PackageManager = PackageManager; exports.PluginManager = PluginManager; exports.PromiseManager = PromiseManager; exports.Warning = Warning; exports.build = build; exports.createPlugin = createPlugin; exports.default = build; exports.defineConfig = defineConfig; exports.isInputPath = isInputPath; exports.safeBuild = safeBuild;
1325
+ exports.FileManager = _chunkOSQ5H5PEcjs.FileManager; exports.Generator = Generator; exports.PackageManager = PackageManager; exports.PluginManager = PluginManager; exports.PromiseManager = PromiseManager; exports.Warning = Warning; exports.build = build; exports.createPlugin = createPlugin; exports.default = build; exports.defineConfig = defineConfig; exports.isInputPath = isInputPath; exports.safeBuild = safeBuild;
1326
1326
  //# sourceMappingURL=index.cjs.map