@kubb/agent 5.0.0-beta.12 → 5.0.0-beta.14

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-05-15T20:51:10.123Z",
2
+ "date": "2026-05-16T20:00:25.445Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -4752,41 +4752,38 @@ function createLimit(concurrency) {
4752
4752
  });
4753
4753
  };
4754
4754
  }
4755
- function getChildren(node, recurse) {
4756
- var _a, _b, _c;
4755
+ function* getChildren(node, recurse) {
4756
+ var _a;
4757
4757
  switch (node.kind) {
4758
4758
  case "Input":
4759
- return [...node.schemas, ...node.operations];
4759
+ yield* node.schemas;
4760
+ yield* node.operations;
4761
+ break;
4760
4762
  case "Output":
4761
- return [];
4763
+ break;
4762
4764
  case "Operation":
4763
- return [
4764
- ...node.parameters,
4765
- ...(_c = (_b = (_a = node.requestBody) == null ? void 0 : _a.content) == null ? void 0 : _b.flatMap((c) => c.schema ? [c.schema] : [])) != null ? _c : [],
4766
- ...node.responses
4767
- ];
4768
- case "Schema": {
4769
- const children = [];
4770
- if (!recurse) return [];
4771
- if ("properties" in node && node.properties.length > 0) children.push(...node.properties);
4772
- if ("items" in node && node.items) children.push(...node.items);
4773
- if ("members" in node && node.members) children.push(...node.members);
4774
- if ("additionalProperties" in node && node.additionalProperties && node.additionalProperties !== true) children.push(node.additionalProperties);
4775
- return children;
4776
- }
4765
+ yield* node.parameters;
4766
+ if ((_a = node.requestBody) == null ? void 0 : _a.content) {
4767
+ for (const c of node.requestBody.content) if (c.schema) yield c.schema;
4768
+ }
4769
+ yield* node.responses;
4770
+ break;
4771
+ case "Schema":
4772
+ if (!recurse) break;
4773
+ if ("properties" in node && node.properties.length > 0) yield* node.properties;
4774
+ if ("items" in node && node.items) yield* node.items;
4775
+ if ("members" in node && node.members) yield* node.members;
4776
+ if ("additionalProperties" in node && node.additionalProperties && node.additionalProperties !== true) yield node.additionalProperties;
4777
+ break;
4777
4778
  case "Property":
4778
- return [node.schema];
4779
+ yield node.schema;
4780
+ break;
4779
4781
  case "Parameter":
4780
- return [node.schema];
4782
+ yield node.schema;
4783
+ break;
4781
4784
  case "Response":
4782
- return node.schema ? [node.schema] : [];
4783
- case "FunctionParameter":
4784
- case "ParameterGroup":
4785
- case "FunctionParameters":
4786
- case "Type":
4787
- return [];
4788
- default:
4789
- return [];
4785
+ if (node.schema) yield node.schema;
4786
+ break;
4790
4787
  }
4791
4788
  }
4792
4789
  async function walk(node, options) {
@@ -4955,11 +4952,10 @@ function transform(node, options) {
4955
4952
  return node;
4956
4953
  }
4957
4954
  }
4958
- function collect(node, options) {
4955
+ function* collectLazy(node, options) {
4959
4956
  var _a, _b, _c, _d, _e, _f, _g;
4960
4957
  const { depth, parent, ...visitor } = options;
4961
4958
  const recurse = (depth != null ? depth : visitorDepths.deep) === visitorDepths.deep;
4962
- const results = [];
4963
4959
  let v;
4964
4960
  switch (node.kind) {
4965
4961
  case "Input":
@@ -4984,12 +4980,14 @@ function collect(node, options) {
4984
4980
  v = (_g = visitor.response) == null ? void 0 : _g.call(visitor, node, { parent });
4985
4981
  break;
4986
4982
  }
4987
- if (v !== void 0) results.push(v);
4988
- for (const child of getChildren(node, recurse)) for (const item of collect(child, {
4983
+ if (v !== void 0) yield v;
4984
+ for (const child of getChildren(node, recurse)) yield* collectLazy(child, {
4989
4985
  ...options,
4990
4986
  parent: node
4991
- })) results.push(item);
4992
- return results;
4987
+ });
4988
+ }
4989
+ function collect(node, options) {
4990
+ return Array.from(collectLazy(node, options));
4993
4991
  }
4994
4992
  function sourceKey(source) {
4995
4993
  var _a, _b, _c;
@@ -5156,7 +5154,7 @@ function collectUsedSchemaNames(operations, schemas) {
5156
5154
  if (namedSchema) visitSchema(namedSchema);
5157
5155
  }
5158
5156
  }
5159
- for (const op of operations) for (const schema of collect(op, {
5157
+ for (const op of operations) for (const schema of collectLazy(op, {
5160
5158
  depth: "shallow",
5161
5159
  schema: (node) => node
5162
5160
  })) visitSchema(schema);
@@ -6263,7 +6261,7 @@ eachParam_fn = function(fn) {
6263
6261
  fn(raw, __privateMethod(this, _URLPath_instances, transformParam_fn).call(this, raw));
6264
6262
  }
6265
6263
  }, _b);
6266
- var version$1 = "5.0.0-beta.12";
6264
+ var version$1 = "5.0.0-beta.14";
6267
6265
  function createStorage(build2) {
6268
6266
  return (options) => build2(options != null ? options : {});
6269
6267
  }
@@ -6570,9 +6568,13 @@ async function setup(userConfig, options = {}) {
6570
6568
  });
6571
6569
  await config.storage.clear(resolve(config.root, config.output.path));
6572
6570
  }
6571
+ const middlewareListeners = [];
6573
6572
  function registerMiddlewareHook(event, middlewareHooks) {
6574
6573
  const handler = middlewareHooks[event];
6575
- if (handler) hooks.on(event, handler);
6574
+ if (handler) {
6575
+ hooks.on(event, handler);
6576
+ middlewareListeners.push([event, handler]);
6577
+ }
6576
6578
  }
6577
6579
  for (const middleware of (_i = config.middleware) != null ? _i : []) for (const event of Object.keys(middleware.hooks)) registerMiddlewareHook(event, middleware.hooks);
6578
6580
  if (config.adapter) {
@@ -6596,7 +6598,11 @@ async function setup(userConfig, options = {}) {
6596
6598
  config,
6597
6599
  hooks,
6598
6600
  driver,
6599
- storage
6601
+ storage,
6602
+ dispose: () => {
6603
+ driver.dispose();
6604
+ for (const [event, handler] of middlewareListeners) hooks.off(event, handler);
6605
+ }
6600
6606
  };
6601
6607
  }
6602
6608
  async function runPluginAstHooks(plugin, context) {
@@ -6834,7 +6840,7 @@ async function safeBuild(setupResult) {
6834
6840
  storage
6835
6841
  };
6836
6842
  } finally {
6837
- driver.dispose();
6843
+ setupResult.dispose();
6838
6844
  }
6839
6845
  }
6840
6846
  async function build(setupResult) {
@@ -6946,7 +6952,7 @@ const memoryStorage = createStorage(() => {
6946
6952
  };
6947
6953
  });
6948
6954
 
6949
- var version = "5.0.0-beta.12";
6955
+ var version = "5.0.0-beta.14";
6950
6956
 
6951
6957
  function isCommandMessage(msg) {
6952
6958
  return msg.type === "command";
@@ -0,0 +1,2 @@
1
+ import{purry as e}from"./purry.js";function t(...t){return e(n,t)}function n(e,t){return Object.hasOwn(e,t)}export{t as hasProp};
2
+ //# sourceMappingURL=hasProp.js.map
@@ -1 +1 @@
1
- import{purry as e}from"./purry.js";import{add as t}from"./add.js";import{addProp as n}from"./addProp.js";import{allPass as r}from"./allPass.js";import{anyPass as i}from"./anyPass.js";import{capitalize as a}from"./capitalize.js";import{ceil as o}from"./ceil.js";import{chunk as s}from"./chunk.js";import{clamp as c}from"./clamp.js";import{clone as l}from"./clone.js";import{concat as u}from"./concat.js";import{t as d}from"./conditional-CTEJD5TX.js";import{constant as f}from"./constant.js";import{countBy as p}from"./countBy.js";import{debounce as m}from"./debounce.js";import{defaultTo as h}from"./defaultTo.js";import{pipe as g}from"./pipe.js";import{difference as _}from"./difference.js";import{differenceWith as v}from"./differenceWith.js";import{divide as y}from"./divide.js";import{doNothing as b}from"./doNothing.js";import{drop as x}from"./drop.js";import{hasAtLeast as S}from"./hasAtLeast.js";import{dropFirstBy as C}from"./dropFirstBy.js";import{dropLast as w}from"./dropLast.js";import{dropLastWhile as T}from"./dropLastWhile.js";import{dropWhile as E}from"./dropWhile.js";import{endsWith as D}from"./endsWith.js";import{entries as O}from"./entries.js";import{evolve as k}from"./evolve.js";import{filter as A}from"./filter.js";import{find as j}from"./find.js";import{findIndex as M}from"./findIndex.js";import{findLast as N}from"./findLast.js";import{findLastIndex as P}from"./findLastIndex.js";import{first as F}from"./first.js";import{firstBy as I}from"./firstBy.js";import{flat as L}from"./flat.js";import{flatMap as R}from"./flatMap.js";import{floor as z}from"./floor.js";import{forEach as B}from"./forEach.js";import{forEachObj as V}from"./forEachObj.js";import{fromEntries as H}from"./fromEntries.js";import{fromKeys as U}from"./fromKeys.js";import{funnel as W}from"./funnel.js";import{groupBy as G}from"./groupBy.js";import{groupByProp as K}from"./groupByProp.js";import{isDeepEqual as q}from"./isDeepEqual.js";import{hasSubObject as J}from"./hasSubObject.js";import{identity as Y}from"./identity.js";import{indexBy as X}from"./indexBy.js";import{intersection as Z}from"./intersection.js";import{intersectionWith as Q}from"./intersectionWith.js";import{invert as $}from"./invert.js";import{isArray as ee}from"./isArray.js";import{isBigInt as te}from"./isBigInt.js";import{isBoolean as ne}from"./isBoolean.js";import{isDate as re}from"./isDate.js";import{isDefined as ie}from"./isDefined.js";import{isEmpty as ae}from"./isEmpty.js";import{isEmptyish as oe}from"./isEmptyish.js";import{isError as se}from"./isError.js";import{isFunction as ce}from"./isFunction.js";import{isIncludedIn as le}from"./isIncludedIn.js";import{isNonNull as ue}from"./isNonNull.js";import{isNonNullish as de}from"./isNonNullish.js";import{isNot as fe}from"./isNot.js";import{isNullish as pe}from"./isNullish.js";import{isNumber as me}from"./isNumber.js";import{isObjectType as he}from"./isObjectType.js";import{isPlainObject as ge}from"./isPlainObject.js";import{isPromise as _e}from"./isPromise.js";import{isShallowEqual as ve}from"./isShallowEqual.js";import{isStrictEqual as ye}from"./isStrictEqual.js";import{isString as be}from"./isString.js";import{isSymbol as xe}from"./isSymbol.js";import{isTruthy as Se}from"./isTruthy.js";import{join as Ce}from"./join.js";import{keys as we}from"./keys.js";import{last as Te}from"./last.js";import{length as Ee}from"./length.js";import{map as De}from"./map.js";import{mapKeys as Oe}from"./mapKeys.js";import{mapToObj as ke}from"./mapToObj.js";import{mapValues as Ae}from"./mapValues.js";import{mapWithFeedback as je}from"./mapWithFeedback.js";import{sum as Me}from"./sum.js";import{mean as Ne}from"./mean.js";import{meanBy as Pe}from"./meanBy.js";import{median as Fe}from"./median.js";import{merge as Ie}from"./merge.js";import{mergeAll as Le}from"./mergeAll.js";import{mergeDeep as Re}from"./mergeDeep.js";import{multiply as ze}from"./multiply.js";import{t as Be}from"./nthBy-DCn3SK1l.js";import{objOf as Ve}from"./objOf.js";import{omit as He}from"./omit.js";import{omitBy as Ue}from"./omitBy.js";import{once as We}from"./once.js";import{only as Ge}from"./only.js";import{partialBind as Ke}from"./partialBind.js";import{partialLastBind as qe}from"./partialLastBind.js";import{partition as Je}from"./partition.js";import{pathOr as Ye}from"./pathOr.js";import{pick as Xe}from"./pick.js";import{pickBy as Ze}from"./pickBy.js";import{piped as Qe}from"./piped.js";import{product as $e}from"./product.js";import{prop as et}from"./prop.js";import{pullObject as tt}from"./pullObject.js";import{randomBigInt as nt}from"./randomBigInt.js";import{randomInteger as rt}from"./randomInteger.js";import{randomString as it}from"./randomString.js";import{range as at}from"./range.js";import{rankBy as ot}from"./rankBy.js";import{reduce as st}from"./reduce.js";import{reverse as ct}from"./reverse.js";import{round as lt}from"./round.js";import{sample as ut}from"./sample.js";import{set as dt}from"./set.js";import{setPath as ft}from"./setPath.js";import{shuffle as pt}from"./shuffle.js";import{sliceString as mt}from"./sliceString.js";import{sort as ht}from"./sort.js";import{sortBy as gt}from"./sortBy.js";import{sortedIndex as _t}from"./sortedIndex.js";import{sortedIndexBy as vt}from"./sortedIndexBy.js";import{sortedIndexWith as yt}from"./sortedIndexWith.js";import{sortedLastIndex as bt}from"./sortedLastIndex.js";import{sortedLastIndexBy as xt}from"./sortedLastIndexBy.js";import{splice as St}from"./splice.js";import{split as Ct}from"./split.js";import{splitAt as wt}from"./splitAt.js";import{splitWhen as Tt}from"./splitWhen.js";import{startsWith as Et}from"./startsWith.js";import{stringToPath as Dt}from"./stringToPath.js";import{subtract as Ot}from"./subtract.js";import{sumBy as kt}from"./sumBy.js";import{swapIndices as At}from"./swapIndices.js";import{swapProps as jt}from"./swapProps.js";import{take as Mt}from"./take.js";import{takeFirstBy as Nt}from"./takeFirstBy.js";import{takeLast as Pt}from"./takeLast.js";import{takeLastWhile as Ft}from"./takeLastWhile.js";import{takeWhile as It}from"./takeWhile.js";import{tap as Lt}from"./tap.js";import{times as Rt}from"./times.js";import{toCamelCase as zt}from"./toCamelCase.js";import{toKebabCase as Bt}from"./toKebabCase.js";import{toLowerCase as Vt}from"./toLowerCase.js";import{toSnakeCase as Ht}from"./toSnakeCase.js";import{toTitleCase as Ut}from"./toTitleCase.js";import{toUpperCase as Wt}from"./toUpperCase.js";import{truncate as Gt}from"./truncate.js";import{uncapitalize as Kt}from"./uncapitalize.js";import{unique as qt}from"./unique.js";import{uniqueBy as Jt}from"./uniqueBy.js";import{uniqueWith as Yt}from"./uniqueWith.js";import{values as Xt}from"./values.js";import{when as Zt}from"./when.js";import{zip as Qt}from"./zip.js";import{zipWith as $t}from"./zipWith.js";export{t as add,n as addProp,r as allPass,i as anyPass,a as capitalize,o as ceil,s as chunk,c as clamp,l as clone,u as concat,d as conditional,f as constant,p as countBy,m as debounce,h as defaultTo,_ as difference,v as differenceWith,y as divide,b as doNothing,x as drop,C as dropFirstBy,w as dropLast,T as dropLastWhile,E as dropWhile,D as endsWith,O as entries,k as evolve,A as filter,j as find,M as findIndex,N as findLast,P as findLastIndex,F as first,I as firstBy,L as flat,R as flatMap,z as floor,B as forEach,V as forEachObj,H as fromEntries,U as fromKeys,W as funnel,G as groupBy,K as groupByProp,S as hasAtLeast,J as hasSubObject,Y as identity,X as indexBy,Z as intersection,Q as intersectionWith,$ as invert,ee as isArray,te as isBigInt,ne as isBoolean,re as isDate,q as isDeepEqual,ie as isDefined,ae as isEmpty,oe as isEmptyish,se as isError,ce as isFunction,le as isIncludedIn,ue as isNonNull,de as isNonNullish,fe as isNot,pe as isNullish,me as isNumber,he as isObjectType,ge as isPlainObject,_e as isPromise,ve as isShallowEqual,ye as isStrictEqual,be as isString,xe as isSymbol,Se as isTruthy,Ce as join,we as keys,Te as last,Ee as length,De as map,Oe as mapKeys,ke as mapToObj,Ae as mapValues,je as mapWithFeedback,Ne as mean,Pe as meanBy,Fe as median,Ie as merge,Le as mergeAll,Re as mergeDeep,ze as multiply,Be as nthBy,Ve as objOf,He as omit,Ue as omitBy,We as once,Ge as only,Ke as partialBind,qe as partialLastBind,Je as partition,Ye as pathOr,Xe as pick,Ze as pickBy,g as pipe,Qe as piped,$e as product,et as prop,tt as pullObject,e as purry,nt as randomBigInt,rt as randomInteger,it as randomString,at as range,ot as rankBy,st as reduce,ct as reverse,lt as round,ut as sample,dt as set,ft as setPath,pt as shuffle,mt as sliceString,ht as sort,gt as sortBy,_t as sortedIndex,vt as sortedIndexBy,yt as sortedIndexWith,bt as sortedLastIndex,xt as sortedLastIndexBy,St as splice,Ct as split,wt as splitAt,Tt as splitWhen,Et as startsWith,Dt as stringToPath,Ot as subtract,Me as sum,kt as sumBy,At as swapIndices,jt as swapProps,Mt as take,Nt as takeFirstBy,Pt as takeLast,Ft as takeLastWhile,It as takeWhile,Lt as tap,Rt as times,zt as toCamelCase,Bt as toKebabCase,Vt as toLowerCase,Ht as toSnakeCase,Ut as toTitleCase,Wt as toUpperCase,Gt as truncate,Kt as uncapitalize,qt as unique,Jt as uniqueBy,Yt as uniqueWith,Xt as values,Zt as when,Qt as zip,$t as zipWith};
1
+ import{purry as e}from"./purry.js";import{add as t}from"./add.js";import{addProp as n}from"./addProp.js";import{allPass as r}from"./allPass.js";import{anyPass as i}from"./anyPass.js";import{capitalize as a}from"./capitalize.js";import{ceil as o}from"./ceil.js";import{chunk as s}from"./chunk.js";import{clamp as c}from"./clamp.js";import{clone as l}from"./clone.js";import{concat as u}from"./concat.js";import{t as d}from"./conditional-CTEJD5TX.js";import{constant as f}from"./constant.js";import{countBy as p}from"./countBy.js";import{debounce as m}from"./debounce.js";import{defaultTo as h}from"./defaultTo.js";import{pipe as g}from"./pipe.js";import{difference as _}from"./difference.js";import{differenceWith as v}from"./differenceWith.js";import{divide as y}from"./divide.js";import{doNothing as b}from"./doNothing.js";import{drop as x}from"./drop.js";import{hasAtLeast as S}from"./hasAtLeast.js";import{dropFirstBy as C}from"./dropFirstBy.js";import{dropLast as w}from"./dropLast.js";import{dropLastWhile as T}from"./dropLastWhile.js";import{dropWhile as E}from"./dropWhile.js";import{endsWith as D}from"./endsWith.js";import{entries as O}from"./entries.js";import{evolve as k}from"./evolve.js";import{filter as A}from"./filter.js";import{find as j}from"./find.js";import{findIndex as M}from"./findIndex.js";import{findLast as N}from"./findLast.js";import{findLastIndex as P}from"./findLastIndex.js";import{first as F}from"./first.js";import{firstBy as I}from"./firstBy.js";import{flat as L}from"./flat.js";import{flatMap as R}from"./flatMap.js";import{floor as z}from"./floor.js";import{forEach as B}from"./forEach.js";import{forEachObj as V}from"./forEachObj.js";import{fromEntries as H}from"./fromEntries.js";import{fromKeys as U}from"./fromKeys.js";import{funnel as W}from"./funnel.js";import{groupBy as G}from"./groupBy.js";import{groupByProp as K}from"./groupByProp.js";import{hasProp as q}from"./hasProp.js";import{isDeepEqual as J}from"./isDeepEqual.js";import{hasSubObject as Y}from"./hasSubObject.js";import{identity as X}from"./identity.js";import{indexBy as Z}from"./indexBy.js";import{intersection as Q}from"./intersection.js";import{intersectionWith as $}from"./intersectionWith.js";import{invert as ee}from"./invert.js";import{isArray as te}from"./isArray.js";import{isBigInt as ne}from"./isBigInt.js";import{isBoolean as re}from"./isBoolean.js";import{isDate as ie}from"./isDate.js";import{isDefined as ae}from"./isDefined.js";import{isEmpty as oe}from"./isEmpty.js";import{isEmptyish as se}from"./isEmptyish.js";import{isError as ce}from"./isError.js";import{isFunction as le}from"./isFunction.js";import{isIncludedIn as ue}from"./isIncludedIn.js";import{isNonNull as de}from"./isNonNull.js";import{isNonNullish as fe}from"./isNonNullish.js";import{isNot as pe}from"./isNot.js";import{isNullish as me}from"./isNullish.js";import{isNumber as he}from"./isNumber.js";import{isObjectType as ge}from"./isObjectType.js";import{isPlainObject as _e}from"./isPlainObject.js";import{isPromise as ve}from"./isPromise.js";import{isShallowEqual as ye}from"./isShallowEqual.js";import{isStrictEqual as be}from"./isStrictEqual.js";import{isString as xe}from"./isString.js";import{isSymbol as Se}from"./isSymbol.js";import{isTruthy as Ce}from"./isTruthy.js";import{join as we}from"./join.js";import{keys as Te}from"./keys.js";import{last as Ee}from"./last.js";import{length as De}from"./length.js";import{map as Oe}from"./map.js";import{mapKeys as ke}from"./mapKeys.js";import{mapToObj as Ae}from"./mapToObj.js";import{mapValues as je}from"./mapValues.js";import{mapWithFeedback as Me}from"./mapWithFeedback.js";import{sum as Ne}from"./sum.js";import{mean as Pe}from"./mean.js";import{meanBy as Fe}from"./meanBy.js";import{median as Ie}from"./median.js";import{merge as Le}from"./merge.js";import{mergeAll as Re}from"./mergeAll.js";import{mergeDeep as ze}from"./mergeDeep.js";import{multiply as Be}from"./multiply.js";import{t as Ve}from"./nthBy-DCn3SK1l.js";import{objOf as He}from"./objOf.js";import{omit as Ue}from"./omit.js";import{omitBy as We}from"./omitBy.js";import{once as Ge}from"./once.js";import{only as Ke}from"./only.js";import{partialBind as qe}from"./partialBind.js";import{partialLastBind as Je}from"./partialLastBind.js";import{partition as Ye}from"./partition.js";import{pathOr as Xe}from"./pathOr.js";import{pick as Ze}from"./pick.js";import{pickBy as Qe}from"./pickBy.js";import{piped as $e}from"./piped.js";import{product as et}from"./product.js";import{prop as tt}from"./prop.js";import{pullObject as nt}from"./pullObject.js";import{randomBigInt as rt}from"./randomBigInt.js";import{randomInteger as it}from"./randomInteger.js";import{randomString as at}from"./randomString.js";import{range as ot}from"./range.js";import{rankBy as st}from"./rankBy.js";import{reduce as ct}from"./reduce.js";import{reverse as lt}from"./reverse.js";import{round as ut}from"./round.js";import{sample as dt}from"./sample.js";import{set as ft}from"./set.js";import{setPath as pt}from"./setPath.js";import{shuffle as mt}from"./shuffle.js";import{sliceString as ht}from"./sliceString.js";import{sort as gt}from"./sort.js";import{sortBy as _t}from"./sortBy.js";import{sortedIndex as vt}from"./sortedIndex.js";import{sortedIndexBy as yt}from"./sortedIndexBy.js";import{sortedIndexWith as bt}from"./sortedIndexWith.js";import{sortedLastIndex as xt}from"./sortedLastIndex.js";import{sortedLastIndexBy as St}from"./sortedLastIndexBy.js";import{splice as Ct}from"./splice.js";import{split as wt}from"./split.js";import{splitAt as Tt}from"./splitAt.js";import{splitWhen as Et}from"./splitWhen.js";import{startsWith as Dt}from"./startsWith.js";import{stringToPath as Ot}from"./stringToPath.js";import{subtract as kt}from"./subtract.js";import{sumBy as At}from"./sumBy.js";import{swapIndices as jt}from"./swapIndices.js";import{swapProps as Mt}from"./swapProps.js";import{take as Nt}from"./take.js";import{takeFirstBy as Pt}from"./takeFirstBy.js";import{takeLast as Ft}from"./takeLast.js";import{takeLastWhile as It}from"./takeLastWhile.js";import{takeWhile as Lt}from"./takeWhile.js";import{tap as Rt}from"./tap.js";import{times as zt}from"./times.js";import{toCamelCase as Bt}from"./toCamelCase.js";import{toKebabCase as Vt}from"./toKebabCase.js";import{toLowerCase as Ht}from"./toLowerCase.js";import{toSnakeCase as Ut}from"./toSnakeCase.js";import{toTitleCase as Wt}from"./toTitleCase.js";import{toUpperCase as Gt}from"./toUpperCase.js";import{truncate as Kt}from"./truncate.js";import{uncapitalize as qt}from"./uncapitalize.js";import{unique as Jt}from"./unique.js";import{uniqueBy as Yt}from"./uniqueBy.js";import{uniqueWith as Xt}from"./uniqueWith.js";import{values as Zt}from"./values.js";import{when as Qt}from"./when.js";import{zip as $t}from"./zip.js";import{zipWith as en}from"./zipWith.js";export{t as add,n as addProp,r as allPass,i as anyPass,a as capitalize,o as ceil,s as chunk,c as clamp,l as clone,u as concat,d as conditional,f as constant,p as countBy,m as debounce,h as defaultTo,_ as difference,v as differenceWith,y as divide,b as doNothing,x as drop,C as dropFirstBy,w as dropLast,T as dropLastWhile,E as dropWhile,D as endsWith,O as entries,k as evolve,A as filter,j as find,M as findIndex,N as findLast,P as findLastIndex,F as first,I as firstBy,L as flat,R as flatMap,z as floor,B as forEach,V as forEachObj,H as fromEntries,U as fromKeys,W as funnel,G as groupBy,K as groupByProp,S as hasAtLeast,q as hasProp,Y as hasSubObject,X as identity,Z as indexBy,Q as intersection,$ as intersectionWith,ee as invert,te as isArray,ne as isBigInt,re as isBoolean,ie as isDate,J as isDeepEqual,ae as isDefined,oe as isEmpty,se as isEmptyish,ce as isError,le as isFunction,ue as isIncludedIn,de as isNonNull,fe as isNonNullish,pe as isNot,me as isNullish,he as isNumber,ge as isObjectType,_e as isPlainObject,ve as isPromise,ye as isShallowEqual,be as isStrictEqual,xe as isString,Se as isSymbol,Ce as isTruthy,we as join,Te as keys,Ee as last,De as length,Oe as map,ke as mapKeys,Ae as mapToObj,je as mapValues,Me as mapWithFeedback,Pe as mean,Fe as meanBy,Ie as median,Le as merge,Re as mergeAll,ze as mergeDeep,Be as multiply,Ve as nthBy,He as objOf,Ue as omit,We as omitBy,Ge as once,Ke as only,qe as partialBind,Je as partialLastBind,Ye as partition,Xe as pathOr,Ze as pick,Qe as pickBy,g as pipe,$e as piped,et as product,tt as prop,nt as pullObject,e as purry,rt as randomBigInt,it as randomInteger,at as randomString,ot as range,st as rankBy,ct as reduce,lt as reverse,ut as round,dt as sample,ft as set,pt as setPath,mt as shuffle,ht as sliceString,gt as sort,_t as sortBy,vt as sortedIndex,yt as sortedIndexBy,bt as sortedIndexWith,xt as sortedLastIndex,St as sortedLastIndexBy,Ct as splice,wt as split,Tt as splitAt,Et as splitWhen,Dt as startsWith,Ot as stringToPath,kt as subtract,Ne as sum,At as sumBy,jt as swapIndices,Mt as swapProps,Nt as take,Pt as takeFirstBy,Ft as takeLast,It as takeLastWhile,Lt as takeWhile,Rt as tap,zt as times,Bt as toCamelCase,Vt as toKebabCase,Ht as toLowerCase,Ut as toSnakeCase,Wt as toTitleCase,Gt as toUpperCase,Kt as truncate,qt as uncapitalize,Jt as unique,Yt as uniqueBy,Xt as uniqueWith,Zt as values,Qt as when,$t as zip,en as zipWith};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remeda",
3
- "version": "2.34.0",
3
+ "version": "2.34.1",
4
4
  "type": "module",
5
5
  "description": "A utility library for JavaScript and Typescript.",
6
6
  "repository": {
@@ -62,29 +62,29 @@
62
62
  "devDependencies": {
63
63
  "@arethetypeswrong/core": "^0.18.2",
64
64
  "@eslint/js": "^10.0.1",
65
- "@fast-check/vitest": "^0.4.0",
65
+ "@fast-check/vitest": "^0.4.1",
66
66
  "@types/eslint-config-prettier": "^6.11.3",
67
- "@types/node": "^25.5.2",
68
- "@vitest/coverage-v8": "^4.1.2",
69
- "@vitest/eslint-plugin": "^1.6.14",
67
+ "@types/node": "^25.6.0",
68
+ "@vitest/coverage-v8": "^4.1.5",
69
+ "@vitest/eslint-plugin": "^1.6.16",
70
70
  "eslint": "~10.2.0",
71
71
  "eslint-config-prettier": "^10.1.8",
72
72
  "eslint-plugin-jsdoc": "^62.9.0",
73
73
  "eslint-plugin-unicorn": "^64.0.0",
74
74
  "jiti": "^2.6.1",
75
75
  "jsr": "^0.14.3",
76
- "lint-staged": "^16.4.0",
77
- "pkg-pr-new": "^0.0.66",
78
- "prettier": "^3.8.1",
76
+ "lint-staged": "^17.0.2",
77
+ "pkg-pr-new": "^0.0.69",
78
+ "prettier": "^3.8.3",
79
79
  "prettier-plugin-pkg": "^0.22.1",
80
- "prettier-plugin-sh": "^0.18.0",
80
+ "prettier-plugin-sh": "^0.18.1",
81
81
  "publint": "^0.3.18",
82
82
  "semantic-release": "^25.0.3",
83
- "tsdown": "^0.21.7",
83
+ "tsdown": "^0.21.10",
84
84
  "type-fest": "^5.5.0",
85
85
  "typescript": "^6.0.2",
86
- "typescript-eslint": "^8.58.0",
87
- "vitest": "^4.1.2"
86
+ "typescript-eslint": "^8.59.1",
87
+ "vitest": "^4.1.5"
88
88
  },
89
89
  "sideEffects": false
90
90
  }
@@ -4,6 +4,9 @@
4
4
 
5
5
  const { Duplex } = require('stream');
6
6
  const { randomFillSync } = require('crypto');
7
+ const {
8
+ types: { isUint8Array }
9
+ } = require('util');
7
10
 
8
11
  const PerMessageDeflate = require('./permessage-deflate');
9
12
  const { EMPTY_BUFFER, kWebSocket, NOOP } = require('./constants');
@@ -200,8 +203,10 @@ class Sender {
200
203
 
201
204
  if (typeof data === 'string') {
202
205
  buf.write(data, 2);
203
- } else {
206
+ } else if (isUint8Array(data)) {
204
207
  buf.set(data, 2);
208
+ } else {
209
+ throw new TypeError('Second argument must be a string or a Uint8Array');
205
210
  }
206
211
  }
207
212
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws",
3
- "version": "8.20.0",
3
+ "version": "8.20.1",
4
4
  "description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
5
5
  "keywords": [
6
6
  "HyBi",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-beta.12",
3
+ "version": "5.0.0-beta.14",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
@@ -17,10 +17,10 @@
17
17
  "normalize-path": "3.0.0",
18
18
  "picomatch": "2.3.2",
19
19
  "readdirp": "5.0.0",
20
- "remeda": "2.34.0",
20
+ "remeda": "2.34.1",
21
21
  "serialize-error": "8.1.0",
22
22
  "stack-trace": "0.0.10",
23
23
  "tinyexec": "1.1.2",
24
- "ws": "8.20.0"
24
+ "ws": "8.20.1"
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "5.0.0-beta.12",
3
+ "version": "5.0.0-beta.14",
4
4
  "description": "HTTP agent server for Kubb. Exposes code generation via REST API and WebSocket with real-time Kubb Studio integration, machine binding, and Docker support.",
5
5
  "keywords": [
6
6
  "agent",
@@ -39,22 +39,22 @@
39
39
  "@logtail/node": "^0.5.8",
40
40
  "consola": "^3.4.2",
41
41
  "jiti": "^2.7.0",
42
- "remeda": "^2.34.0",
42
+ "remeda": "^2.34.1",
43
43
  "tinyexec": "^1.1.2",
44
44
  "unstorage": "^1.17.5",
45
- "ws": "^8.20.0",
46
- "@kubb/ast": "5.0.0-beta.12",
47
- "@kubb/core": "5.0.0-beta.12"
45
+ "ws": "^8.20.1",
46
+ "@kubb/ast": "5.0.0-beta.14",
47
+ "@kubb/core": "5.0.0-beta.14"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/ws": "^8.18.1",
51
- "msw": "^2.14.5",
51
+ "msw": "^2.14.6",
52
52
  "nitropack": "^2.13.4",
53
- "vite": "^8.0.11",
53
+ "vite": "^8.0.12",
54
54
  "@internals/utils": "0.0.0",
55
- "@kubb/adapter-oas": "5.0.0-beta.12",
56
- "@kubb/parser-ts": "5.0.0-beta.12",
57
- "@kubb/renderer-jsx": "5.0.0-beta.12"
55
+ "@kubb/adapter-oas": "5.0.0-beta.14",
56
+ "@kubb/parser-ts": "5.0.0-beta.14",
57
+ "@kubb/renderer-jsx": "5.0.0-beta.14"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=22"