@kubb/core 5.0.0-beta.34 → 5.0.0-beta.36

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.
@@ -1289,7 +1289,7 @@ var FileProcessor = class {
1289
1289
  }
1290
1290
  };
1291
1291
  //#endregion
1292
- //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
1292
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/usingCtx.js
1293
1293
  function _usingCtx() {
1294
1294
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
1295
1295
  var n = Error();
@@ -1883,7 +1883,7 @@ var KubbDriver = class KubbDriver {
1883
1883
  flush: flushPending
1884
1884
  });
1885
1885
  await forBatches(operations, (nodes) => {
1886
- if (needsCollectedOperations) collectedOperations.push(...nodes);
1886
+ if (needsCollectedOperations) collectedOperations?.push(...nodes);
1887
1887
  return Promise.all(nodes.flatMap((n) => states.map((state) => dispatchNode(state, n, operationDispatch))));
1888
1888
  }, {
1889
1889
  concurrency: 8,
@@ -1896,7 +1896,8 @@ var KubbDriver = class KubbDriver {
1896
1896
  ...generatorContext,
1897
1897
  options: plugin.options
1898
1898
  };
1899
- const pluginOperations = state.optionsAreStatic ? collectedOperations : collectedOperations.filter((node) => {
1899
+ const ops = collectedOperations ?? [];
1900
+ const pluginOperations = state.optionsAreStatic ? ops : ops.filter((node) => {
1900
1901
  const transformed = plugin.transformer ? transform(node, plugin.transformer) : node;
1901
1902
  const { exclude, include, override } = plugin.options;
1902
1903
  return generatorContext.resolver.resolveOptions(transformed, {
@@ -2126,4 +2127,4 @@ function inputToAdapterSource(config) {
2126
2127
  //#endregion
2127
2128
  export { FileManager as a, DEFAULT_BANNER as c, logLevel as d, URLPath as f, FileProcessor as i, DEFAULT_EXTENSION as l, BuildError as m, applyHookResult as n, defineResolver as o, AsyncEventEmitter as p, _usingCtx as r, definePlugin as s, KubbDriver as t, DEFAULT_STUDIO_URL as u };
2128
2129
 
2129
- //# sourceMappingURL=KubbDriver-YQElGGhh.js.map
2130
+ //# sourceMappingURL=KubbDriver-DrG5-FFe.js.map