@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.
@@ -1315,7 +1315,7 @@ var FileProcessor = class {
1315
1315
  }
1316
1316
  };
1317
1317
  //#endregion
1318
- //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
1318
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/usingCtx.js
1319
1319
  function _usingCtx() {
1320
1320
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
1321
1321
  var n = Error();
@@ -1909,7 +1909,7 @@ var KubbDriver = class KubbDriver {
1909
1909
  flush: flushPending
1910
1910
  });
1911
1911
  await forBatches(operations, (nodes) => {
1912
- if (needsCollectedOperations) collectedOperations.push(...nodes);
1912
+ if (needsCollectedOperations) collectedOperations?.push(...nodes);
1913
1913
  return Promise.all(nodes.flatMap((n) => states.map((state) => dispatchNode(state, n, operationDispatch))));
1914
1914
  }, {
1915
1915
  concurrency: 8,
@@ -1922,7 +1922,8 @@ var KubbDriver = class KubbDriver {
1922
1922
  ...generatorContext,
1923
1923
  options: plugin.options
1924
1924
  };
1925
- const pluginOperations = state.optionsAreStatic ? collectedOperations : collectedOperations.filter((node) => {
1925
+ const ops = collectedOperations ?? [];
1926
+ const pluginOperations = state.optionsAreStatic ? ops : ops.filter((node) => {
1926
1927
  const transformed = plugin.transformer ? (0, _kubb_ast.transform)(node, plugin.transformer) : node;
1927
1928
  const { exclude, include, override } = plugin.options;
1928
1929
  return generatorContext.resolver.resolveOptions(transformed, {
@@ -2247,4 +2248,4 @@ Object.defineProperty(exports, "logLevel", {
2247
2248
  }
2248
2249
  });
2249
2250
 
2250
- //# sourceMappingURL=KubbDriver-BWDPDAys.cjs.map
2251
+ //# sourceMappingURL=KubbDriver-Dil5m3NF.cjs.map