@kubb/agent 5.0.0-beta.13 → 5.0.0-beta.15
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +54 -55
- package/.output/server/node_modules/remeda/dist/hasProp.js +2 -0
- package/.output/server/node_modules/remeda/dist/index.js +1 -1
- package/.output/server/node_modules/remeda/package.json +12 -12
- package/.output/server/node_modules/ws/lib/sender.js +6 -1
- package/.output/server/node_modules/ws/package.json +1 -1
- package/.output/server/package.json +3 -3
- package/package.json +10 -10
package/.output/nitro.json
CHANGED
|
@@ -4752,41 +4752,38 @@ function createLimit(concurrency) {
|
|
|
4752
4752
|
});
|
|
4753
4753
|
};
|
|
4754
4754
|
}
|
|
4755
|
-
function getChildren(node, recurse) {
|
|
4756
|
-
var _a
|
|
4755
|
+
function* getChildren(node, recurse) {
|
|
4756
|
+
var _a;
|
|
4757
4757
|
switch (node.kind) {
|
|
4758
4758
|
case "Input":
|
|
4759
|
-
|
|
4759
|
+
yield* node.schemas;
|
|
4760
|
+
yield* node.operations;
|
|
4761
|
+
break;
|
|
4760
4762
|
case "Output":
|
|
4761
|
-
|
|
4763
|
+
break;
|
|
4762
4764
|
case "Operation":
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
if (!recurse)
|
|
4771
|
-
if ("properties" in node && node.properties.length > 0)
|
|
4772
|
-
if ("items" in node && node.items)
|
|
4773
|
-
if ("members" in node && node.members)
|
|
4774
|
-
if ("additionalProperties" in node && node.additionalProperties && node.additionalProperties !== true)
|
|
4775
|
-
|
|
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
|
-
|
|
4779
|
+
yield node.schema;
|
|
4780
|
+
break;
|
|
4779
4781
|
case "Parameter":
|
|
4780
|
-
|
|
4782
|
+
yield node.schema;
|
|
4783
|
+
break;
|
|
4781
4784
|
case "Response":
|
|
4782
|
-
|
|
4783
|
-
|
|
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
|
|
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)
|
|
4988
|
-
for (const child of getChildren(node, recurse))
|
|
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
|
-
})
|
|
4992
|
-
|
|
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;
|
|
@@ -5134,14 +5132,23 @@ function resolveRefName(node) {
|
|
|
5134
5132
|
if (node.ref) return (_d = (_c = (_a = extractRefName(node.ref)) != null ? _a : node.name) != null ? _c : (_b = node.schema) == null ? void 0 : _b.name) != null ? _d : void 0;
|
|
5135
5133
|
return (_g = (_f = node.name) != null ? _f : (_e = node.schema) == null ? void 0 : _e.name) != null ? _g : void 0;
|
|
5136
5134
|
}
|
|
5137
|
-
|
|
5138
|
-
|
|
5135
|
+
const schemaRefCache = /* @__PURE__ */ new WeakMap();
|
|
5136
|
+
function collectSchemaRefs(node) {
|
|
5137
|
+
const cached = schemaRefCache.get(node);
|
|
5138
|
+
if (cached) return cached;
|
|
5139
|
+
const refs = /* @__PURE__ */ new Set();
|
|
5139
5140
|
collect(node, { schema(child) {
|
|
5140
5141
|
if (child.type === "ref") {
|
|
5141
5142
|
const name = resolveRefName(child);
|
|
5142
|
-
if (name)
|
|
5143
|
+
if (name) refs.add(name);
|
|
5143
5144
|
}
|
|
5144
5145
|
} });
|
|
5146
|
+
schemaRefCache.set(node, refs);
|
|
5147
|
+
return refs;
|
|
5148
|
+
}
|
|
5149
|
+
function collectReferencedSchemaNames(node, out = /* @__PURE__ */ new Set()) {
|
|
5150
|
+
if (!node) return out;
|
|
5151
|
+
for (const name of collectSchemaRefs(node)) out.add(name);
|
|
5145
5152
|
return out;
|
|
5146
5153
|
}
|
|
5147
5154
|
function collectUsedSchemaNames(operations, schemas) {
|
|
@@ -5156,7 +5163,7 @@ function collectUsedSchemaNames(operations, schemas) {
|
|
|
5156
5163
|
if (namedSchema) visitSchema(namedSchema);
|
|
5157
5164
|
}
|
|
5158
5165
|
}
|
|
5159
|
-
for (const op of operations) for (const schema of
|
|
5166
|
+
for (const op of operations) for (const schema of collectLazy(op, {
|
|
5160
5167
|
depth: "shallow",
|
|
5161
5168
|
schema: (node) => node
|
|
5162
5169
|
})) visitSchema(schema);
|
|
@@ -6263,7 +6270,7 @@ eachParam_fn = function(fn) {
|
|
|
6263
6270
|
fn(raw, __privateMethod(this, _URLPath_instances, transformParam_fn).call(this, raw));
|
|
6264
6271
|
}
|
|
6265
6272
|
}, _b);
|
|
6266
|
-
var version$1 = "5.0.0-beta.
|
|
6273
|
+
var version$1 = "5.0.0-beta.15";
|
|
6267
6274
|
function createStorage(build2) {
|
|
6268
6275
|
return (options) => build2(options != null ? options : {});
|
|
6269
6276
|
}
|
|
@@ -6455,9 +6462,8 @@ const fsStorage = createStorage(() => ({
|
|
|
6455
6462
|
await rm(resolve(key), { force: true });
|
|
6456
6463
|
},
|
|
6457
6464
|
async getKeys(base) {
|
|
6458
|
-
const keys = [];
|
|
6459
6465
|
const resolvedBase = resolve(base != null ? base : process.cwd());
|
|
6460
|
-
async function walk2(dir, prefix) {
|
|
6466
|
+
async function* walk2(dir, prefix) {
|
|
6461
6467
|
let entries;
|
|
6462
6468
|
try {
|
|
6463
6469
|
entries = await readdir$1(dir, { withFileTypes: true });
|
|
@@ -6466,11 +6472,12 @@ const fsStorage = createStorage(() => ({
|
|
|
6466
6472
|
}
|
|
6467
6473
|
for (const entry of entries) {
|
|
6468
6474
|
const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
|
|
6469
|
-
if (entry.isDirectory())
|
|
6470
|
-
else
|
|
6475
|
+
if (entry.isDirectory()) yield* walk2(join(dir, entry.name), rel);
|
|
6476
|
+
else yield rel;
|
|
6471
6477
|
}
|
|
6472
6478
|
}
|
|
6473
|
-
|
|
6479
|
+
const keys = [];
|
|
6480
|
+
for await (const key of walk2(resolvedBase, "")) keys.push(key);
|
|
6474
6481
|
return keys;
|
|
6475
6482
|
},
|
|
6476
6483
|
async clear(base) {
|
|
@@ -6654,10 +6661,7 @@ async function runPluginAstHooks(plugin, context) {
|
|
|
6654
6661
|
...generatorContext,
|
|
6655
6662
|
options
|
|
6656
6663
|
};
|
|
6657
|
-
|
|
6658
|
-
if (!gen.schema) continue;
|
|
6659
|
-
await applyHookResult(await gen.schema(transformedNode, ctx), driver, resolveRenderer(gen));
|
|
6660
|
-
}
|
|
6664
|
+
await Promise.all(generators.filter((gen) => gen.schema).map((gen) => Promise.resolve(gen.schema(transformedNode, ctx)).then((result) => applyHookResult(result, driver, resolveRenderer(gen)))));
|
|
6661
6665
|
await driver.hooks.emit("kubb:generate:schema", transformedNode, ctx);
|
|
6662
6666
|
},
|
|
6663
6667
|
async operation(node) {
|
|
@@ -6674,10 +6678,7 @@ async function runPluginAstHooks(plugin, context) {
|
|
|
6674
6678
|
...generatorContext,
|
|
6675
6679
|
options
|
|
6676
6680
|
};
|
|
6677
|
-
|
|
6678
|
-
if (!gen.operation) continue;
|
|
6679
|
-
await applyHookResult(await gen.operation(transformedNode, ctx), driver, resolveRenderer(gen));
|
|
6680
|
-
}
|
|
6681
|
+
await Promise.all(generators.filter((gen) => gen.operation).map((gen) => Promise.resolve(gen.operation(transformedNode, ctx)).then((result) => applyHookResult(result, driver, resolveRenderer(gen)))));
|
|
6681
6682
|
await driver.hooks.emit("kubb:generate:operation", transformedNode, ctx);
|
|
6682
6683
|
}
|
|
6683
6684
|
}
|
|
@@ -6774,7 +6775,6 @@ async function safeBuild(setupResult) {
|
|
|
6774
6775
|
},
|
|
6775
6776
|
upsertFile: (...files2) => driver.fileManager.upsert(...files2)
|
|
6776
6777
|
});
|
|
6777
|
-
await flushPendingFiles();
|
|
6778
6778
|
await hooks.emit("kubb:debug", {
|
|
6779
6779
|
date: /* @__PURE__ */ new Date(),
|
|
6780
6780
|
logs: [`\u2713 Plugin started successfully (${formatMs(duration)})`]
|
|
@@ -6794,7 +6794,6 @@ async function safeBuild(setupResult) {
|
|
|
6794
6794
|
},
|
|
6795
6795
|
upsertFile: (...files2) => driver.fileManager.upsert(...files2)
|
|
6796
6796
|
});
|
|
6797
|
-
await flushPendingFiles();
|
|
6798
6797
|
await hooks.emit("kubb:debug", {
|
|
6799
6798
|
date: errorTimestamp,
|
|
6800
6799
|
logs: [
|
|
@@ -6954,7 +6953,7 @@ const memoryStorage = createStorage(() => {
|
|
|
6954
6953
|
};
|
|
6955
6954
|
});
|
|
6956
6955
|
|
|
6957
|
-
var version = "5.0.0-beta.
|
|
6956
|
+
var version = "5.0.0-beta.15";
|
|
6958
6957
|
|
|
6959
6958
|
function isCommandMessage(msg) {
|
|
6960
6959
|
return msg.type === "command";
|
|
@@ -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{
|
|
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.
|
|
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.
|
|
65
|
+
"@fast-check/vitest": "^0.4.1",
|
|
66
66
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
67
|
-
"@types/node": "^25.
|
|
68
|
-
"@vitest/coverage-v8": "^4.1.
|
|
69
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
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": "^
|
|
77
|
-
"pkg-pr-new": "^0.0.
|
|
78
|
-
"prettier": "^3.8.
|
|
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.
|
|
80
|
+
"prettier-plugin-sh": "^0.18.1",
|
|
81
81
|
"publint": "^0.3.18",
|
|
82
82
|
"semantic-release": "^25.0.3",
|
|
83
|
-
"tsdown": "^0.21.
|
|
83
|
+
"tsdown": "^0.21.10",
|
|
84
84
|
"type-fest": "^5.5.0",
|
|
85
85
|
"typescript": "^6.0.2",
|
|
86
|
-
"typescript-eslint": "^8.
|
|
87
|
-
"vitest": "^4.1.
|
|
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": "@kubb/agent-prod",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.15",
|
|
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.
|
|
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.
|
|
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.
|
|
3
|
+
"version": "5.0.0-beta.15",
|
|
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.
|
|
42
|
+
"remeda": "^2.34.1",
|
|
43
43
|
"tinyexec": "^1.1.2",
|
|
44
44
|
"unstorage": "^1.17.5",
|
|
45
|
-
"ws": "^8.20.
|
|
46
|
-
"@kubb/ast": "5.0.0-beta.
|
|
47
|
-
"@kubb/core": "5.0.0-beta.
|
|
45
|
+
"ws": "^8.20.1",
|
|
46
|
+
"@kubb/ast": "5.0.0-beta.15",
|
|
47
|
+
"@kubb/core": "5.0.0-beta.15"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/ws": "^8.18.1",
|
|
51
|
-
"msw": "^2.14.
|
|
51
|
+
"msw": "^2.14.6",
|
|
52
52
|
"nitropack": "^2.13.4",
|
|
53
|
-
"vite": "^8.0.
|
|
53
|
+
"vite": "^8.0.12",
|
|
54
54
|
"@internals/utils": "0.0.0",
|
|
55
|
-
"@kubb/adapter-oas": "5.0.0-beta.
|
|
56
|
-
"@kubb/parser-ts": "5.0.0-beta.
|
|
57
|
-
"@kubb/renderer-jsx": "5.0.0-beta.
|
|
55
|
+
"@kubb/adapter-oas": "5.0.0-beta.15",
|
|
56
|
+
"@kubb/parser-ts": "5.0.0-beta.15",
|
|
57
|
+
"@kubb/renderer-jsx": "5.0.0-beta.15"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=22"
|