@kubb/agent 5.0.0-alpha.12 → 5.0.0-alpha.13
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 +77 -59
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/permessage-deflate.js +6 -6
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/websocket-server.js +5 -5
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/websocket.js +6 -6
- package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/package.json +4 -3
- package/.output/server/node_modules/.nitro/ws@8.20.0/wrapper.mjs +21 -0
- package/.output/server/package.json +2 -2
- package/package.json +18 -18
- package/.output/server/node_modules/.nitro/ws@8.19.0/wrapper.mjs +0 -8
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/buffer-util.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/constants.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/event-target.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/extension.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/limiter.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/receiver.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/sender.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/stream.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/subprotocol.js +0 -0
- /package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/validation.js +0 -0
package/.output/nitro.json
CHANGED
|
@@ -6029,7 +6029,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6029
6029
|
await clean(resolve(base));
|
|
6030
6030
|
}
|
|
6031
6031
|
}));
|
|
6032
|
-
var version$1 = "5.0.0-alpha.
|
|
6032
|
+
var version$1 = "5.0.0-alpha.13";
|
|
6033
6033
|
function getDiagnosticInfo() {
|
|
6034
6034
|
return {
|
|
6035
6035
|
nodeVersion: version$2,
|
|
@@ -6816,7 +6816,7 @@ function satisfiesDependency(dependency, version2, cwd) {
|
|
|
6816
6816
|
return satisfies(semVer, version2);
|
|
6817
6817
|
}
|
|
6818
6818
|
|
|
6819
|
-
var version = "5.0.0-alpha.
|
|
6819
|
+
var version = "5.0.0-alpha.13";
|
|
6820
6820
|
|
|
6821
6821
|
function isCommandMessage(msg) {
|
|
6822
6822
|
return msg.type === "command";
|
|
@@ -11102,6 +11102,41 @@ function Zod({ name, typeName, tree, schema, inferTypeName, mapper, coercion, ke
|
|
|
11102
11102
|
})] });
|
|
11103
11103
|
}
|
|
11104
11104
|
|
|
11105
|
+
function toCamelOrPascal$a(text, pascal) {
|
|
11106
|
+
return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
|
|
11107
|
+
if (word.length > 1 && word === word.toUpperCase()) return word;
|
|
11108
|
+
if (i === 0 && !pascal) return word.charAt(0).toLowerCase() + word.slice(1);
|
|
11109
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
11110
|
+
}).join("").replace(/[^a-zA-Z0-9]/g, "");
|
|
11111
|
+
}
|
|
11112
|
+
function applyToFileParts$a(text, transformPart) {
|
|
11113
|
+
const parts = text.split(/\.(?=[a-zA-Z])/);
|
|
11114
|
+
return parts.map((part, i) => transformPart(part, i === parts.length - 1)).join("/");
|
|
11115
|
+
}
|
|
11116
|
+
function camelCase$a(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
11117
|
+
if (isFile) return applyToFileParts$a(text, (part, isLast) => camelCase$a(part, isLast ? {
|
|
11118
|
+
prefix,
|
|
11119
|
+
suffix
|
|
11120
|
+
} : {}));
|
|
11121
|
+
return toCamelOrPascal$a(`${prefix} ${text} ${suffix}`, false);
|
|
11122
|
+
}
|
|
11123
|
+
function pascalCase$6(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
11124
|
+
if (isFile) return applyToFileParts$a(text, (part, isLast) => isLast ? pascalCase$6(part, {
|
|
11125
|
+
prefix,
|
|
11126
|
+
suffix
|
|
11127
|
+
}) : camelCase$a(part));
|
|
11128
|
+
return toCamelOrPascal$a(`${prefix} ${text} ${suffix}`, true);
|
|
11129
|
+
}
|
|
11130
|
+
function snakeCase(text, { prefix = "", suffix = "" } = {}) {
|
|
11131
|
+
return `${prefix} ${text} ${suffix}`.trim().replace(/([a-z])([A-Z])/g, "$1_$2").replace(/[\s\-.]+/g, "_").replace(/[^a-zA-Z0-9_]/g, "").toLowerCase().split("_").filter(Boolean).join("_");
|
|
11132
|
+
}
|
|
11133
|
+
function screamingSnakeCase(text, { prefix = "", suffix = "" } = {}) {
|
|
11134
|
+
return snakeCase(text, {
|
|
11135
|
+
prefix,
|
|
11136
|
+
suffix
|
|
11137
|
+
}).toUpperCase();
|
|
11138
|
+
}
|
|
11139
|
+
|
|
11105
11140
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : "undefined" !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
11106
11141
|
|
|
11107
11142
|
function getDefaultExportFromCjs (x) {
|
|
@@ -208986,40 +209021,6 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
208986
209021
|
var typescriptExports = typescript.exports;
|
|
208987
209022
|
const ts = /*@__PURE__*/getDefaultExportFromCjs(typescriptExports);
|
|
208988
209023
|
|
|
208989
|
-
function toCamelOrPascal$a(text, pascal) {
|
|
208990
|
-
return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
|
|
208991
|
-
if (word.length > 1 && word === word.toUpperCase()) return word;
|
|
208992
|
-
if (i === 0 && !pascal) return word.charAt(0).toLowerCase() + word.slice(1);
|
|
208993
|
-
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
208994
|
-
}).join("").replace(/[^a-zA-Z0-9]/g, "");
|
|
208995
|
-
}
|
|
208996
|
-
function applyToFileParts$a(text, transformPart) {
|
|
208997
|
-
const parts = text.split(/\.(?=[a-zA-Z])/);
|
|
208998
|
-
return parts.map((part, i) => transformPart(part, i === parts.length - 1)).join("/");
|
|
208999
|
-
}
|
|
209000
|
-
function camelCase$a(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
209001
|
-
if (isFile) return applyToFileParts$a(text, (part, isLast) => camelCase$a(part, isLast ? {
|
|
209002
|
-
prefix,
|
|
209003
|
-
suffix
|
|
209004
|
-
} : {}));
|
|
209005
|
-
return toCamelOrPascal$a(`${prefix} ${text} ${suffix}`, false);
|
|
209006
|
-
}
|
|
209007
|
-
function pascalCase$6(text, { isFile, prefix = "", suffix = "" } = {}) {
|
|
209008
|
-
if (isFile) return applyToFileParts$a(text, (part, isLast) => isLast ? pascalCase$6(part, {
|
|
209009
|
-
prefix,
|
|
209010
|
-
suffix
|
|
209011
|
-
}) : camelCase$a(part));
|
|
209012
|
-
return toCamelOrPascal$a(`${prefix} ${text} ${suffix}`, true);
|
|
209013
|
-
}
|
|
209014
|
-
function snakeCase(text, { prefix = "", suffix = "" } = {}) {
|
|
209015
|
-
return `${prefix} ${text} ${suffix}`.trim().replace(/([a-z])([A-Z])/g, "$1_$2").replace(/[\s\-.]+/g, "_").replace(/[^a-zA-Z0-9_]/g, "").toLowerCase().split("_").filter(Boolean).join("_");
|
|
209016
|
-
}
|
|
209017
|
-
function screamingSnakeCase(text, { prefix = "", suffix = "" } = {}) {
|
|
209018
|
-
return snakeCase(text, {
|
|
209019
|
-
prefix,
|
|
209020
|
-
suffix
|
|
209021
|
-
}).toUpperCase();
|
|
209022
|
-
}
|
|
209023
209024
|
function trimQuotes$1(text) {
|
|
209024
209025
|
if (text.length >= 2) {
|
|
209025
209026
|
const first = text[0];
|
|
@@ -209305,11 +209306,12 @@ function buildPropertyType(schema, baseType, optionalType) {
|
|
|
209305
209306
|
return type;
|
|
209306
209307
|
}
|
|
209307
209308
|
function buildPropertyJSDocComments(schema) {
|
|
209309
|
+
const isArray = schema.type === "array";
|
|
209308
209310
|
return [
|
|
209309
209311
|
"description" in schema && schema.description ? `@description ${jsStringEscape$1(schema.description)}` : void 0,
|
|
209310
209312
|
"deprecated" in schema && schema.deprecated ? "@deprecated" : void 0,
|
|
209311
|
-
"min" in schema && schema.min !== void 0 ? `@minLength ${schema.min}` : void 0,
|
|
209312
|
-
"max" in schema && schema.max !== void 0 ? `@maxLength ${schema.max}` : void 0,
|
|
209313
|
+
!isArray && "min" in schema && schema.min !== void 0 ? `@minLength ${schema.min}` : void 0,
|
|
209314
|
+
!isArray && "max" in schema && schema.max !== void 0 ? `@maxLength ${schema.max}` : void 0,
|
|
209313
209315
|
"pattern" in schema && schema.pattern ? `@pattern ${schema.pattern}` : void 0,
|
|
209314
209316
|
"default" in schema && schema.default !== void 0 ? `@default ${"primitive" in schema && schema.primitive === "string" ? stringify$1(schema.default) : schema.default}` : void 0,
|
|
209315
209317
|
"example" in schema && schema.example !== void 0 ? `@example ${schema.example}` : void 0,
|
|
@@ -209800,7 +209802,7 @@ function buildLegacyResponsesSchemaNode({ node, resolver }) {
|
|
|
209800
209802
|
name: resolver.resolveDataTypedName(node)
|
|
209801
209803
|
})
|
|
209802
209804
|
}));
|
|
209803
|
-
|
|
209805
|
+
if (node.parameters.some((p) => p.in === "query") && resolver.resolveQueryParamsTypedName) properties.push(createProperty({
|
|
209804
209806
|
name: "QueryParams",
|
|
209805
209807
|
schema: createSchema({
|
|
209806
209808
|
type: "ref",
|
|
@@ -209876,8 +209878,8 @@ const typeGenerator = defineGenerator({
|
|
|
209876
209878
|
name: "typescript",
|
|
209877
209879
|
type: "react",
|
|
209878
209880
|
Operation({ node, adapter, options }) {
|
|
209879
|
-
var _a, _b;
|
|
209880
|
-
const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, resolver, legacy } = options;
|
|
209881
|
+
var _a, _b, _c;
|
|
209882
|
+
const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, resolver, baseResolver, legacy } = options;
|
|
209881
209883
|
const { mode, getFile, resolveBanner, resolveFooter } = useKubb();
|
|
209882
209884
|
const file = getFile({
|
|
209883
209885
|
name: node.operationId,
|
|
@@ -209916,13 +209918,15 @@ const typeGenerator = defineGenerator({
|
|
|
209916
209918
|
arrayType,
|
|
209917
209919
|
syntaxType,
|
|
209918
209920
|
resolver,
|
|
209919
|
-
keysToOmit
|
|
209921
|
+
keysToOmit,
|
|
209922
|
+
legacy
|
|
209920
209923
|
})] });
|
|
209921
209924
|
}
|
|
209922
209925
|
const responseTypes = legacy ? node.responses.map((res) => {
|
|
209923
209926
|
const responseName = resolver.resolveResponseStatusName(node, res.statusCode);
|
|
209927
|
+
const baseResponseName = (baseResolver != null ? baseResolver : resolver).resolveResponseStatusName(node, res.statusCode);
|
|
209924
209928
|
return renderSchemaType({
|
|
209925
|
-
node: res.schema ? nameUnnamedEnums(res.schema,
|
|
209929
|
+
node: res.schema ? nameUnnamedEnums(res.schema, baseResponseName) : res.schema,
|
|
209926
209930
|
name: responseName,
|
|
209927
209931
|
typedName: resolver.resolveResponseStatusTypedName(node, res.statusCode),
|
|
209928
209932
|
description: res.description,
|
|
@@ -209936,10 +209940,10 @@ const typeGenerator = defineGenerator({
|
|
|
209936
209940
|
keysToOmit: res.keysToOmit
|
|
209937
209941
|
}));
|
|
209938
209942
|
const requestType = ((_b = node.requestBody) == null ? void 0 : _b.schema) ? renderSchemaType({
|
|
209939
|
-
node: legacy ? nameUnnamedEnums(node.requestBody.schema, resolver.resolveDataName(node)) : node.requestBody.schema,
|
|
209943
|
+
node: legacy ? nameUnnamedEnums(node.requestBody.schema, (baseResolver != null ? baseResolver : resolver).resolveDataName(node)) : node.requestBody.schema,
|
|
209940
209944
|
name: resolver.resolveDataName(node),
|
|
209941
209945
|
typedName: resolver.resolveDataTypedName(node),
|
|
209942
|
-
description: node.requestBody.schema.description,
|
|
209946
|
+
description: (_c = node.requestBody.description) != null ? _c : node.requestBody.schema.description,
|
|
209943
209947
|
keysToOmit: node.requestBody.keysToOmit
|
|
209944
209948
|
}) : null;
|
|
209945
209949
|
if (legacy) {
|
|
@@ -209950,7 +209954,7 @@ const typeGenerator = defineGenerator({
|
|
|
209950
209954
|
pathParams.length > 0 ? renderSchemaType({
|
|
209951
209955
|
node: buildGroupedParamsSchema({
|
|
209952
209956
|
params: pathParams,
|
|
209953
|
-
parentName: resolver.resolvePathParamsName(node)
|
|
209957
|
+
parentName: (baseResolver != null ? baseResolver : resolver).resolvePathParamsName(node)
|
|
209954
209958
|
}),
|
|
209955
209959
|
name: resolver.resolvePathParamsName(node),
|
|
209956
209960
|
typedName: resolver.resolvePathParamsTypedName(node)
|
|
@@ -209958,7 +209962,7 @@ const typeGenerator = defineGenerator({
|
|
|
209958
209962
|
queryParams.length > 0 ? renderSchemaType({
|
|
209959
209963
|
node: buildGroupedParamsSchema({
|
|
209960
209964
|
params: queryParams,
|
|
209961
|
-
parentName: resolver.resolveQueryParamsName(node)
|
|
209965
|
+
parentName: (baseResolver != null ? baseResolver : resolver).resolveQueryParamsName(node)
|
|
209962
209966
|
}),
|
|
209963
209967
|
name: resolver.resolveQueryParamsName(node),
|
|
209964
209968
|
typedName: resolver.resolveQueryParamsTypedName(node)
|
|
@@ -209966,7 +209970,7 @@ const typeGenerator = defineGenerator({
|
|
|
209966
209970
|
headerParams.length > 0 ? renderSchemaType({
|
|
209967
209971
|
node: buildGroupedParamsSchema({
|
|
209968
209972
|
params: headerParams,
|
|
209969
|
-
parentName: resolver.resolveHeaderParamsName(node)
|
|
209973
|
+
parentName: (baseResolver != null ? baseResolver : resolver).resolveHeaderParamsName(node)
|
|
209970
209974
|
}),
|
|
209971
209975
|
name: resolver.resolveHeaderParamsName(node),
|
|
209972
209976
|
typedName: resolver.resolveHeaderParamsTypedName(node)
|
|
@@ -209998,8 +210002,8 @@ const typeGenerator = defineGenerator({
|
|
|
209998
210002
|
legacyParamTypes,
|
|
209999
210003
|
responseTypes,
|
|
210000
210004
|
requestType,
|
|
210001
|
-
|
|
210002
|
-
|
|
210005
|
+
legacyResponseType,
|
|
210006
|
+
legacyResponsesType
|
|
210003
210007
|
]
|
|
210004
210008
|
});
|
|
210005
210009
|
}
|
|
@@ -210008,6 +210012,16 @@ const typeGenerator = defineGenerator({
|
|
|
210008
210012
|
name: resolver.resolveParamName(node, param),
|
|
210009
210013
|
typedName: resolver.resolveParamTypedName(node, param)
|
|
210010
210014
|
}));
|
|
210015
|
+
const queryParamsList = params.filter((p) => p.in === "query");
|
|
210016
|
+
const queryParamsType = queryParamsList.length > 0 ? renderSchemaType({
|
|
210017
|
+
node: buildParamsSchema({
|
|
210018
|
+
params: queryParamsList,
|
|
210019
|
+
node,
|
|
210020
|
+
resolver
|
|
210021
|
+
}),
|
|
210022
|
+
name: resolver.resolveQueryParamsName(node),
|
|
210023
|
+
typedName: resolver.resolveQueryParamsTypedName(node)
|
|
210024
|
+
}) : null;
|
|
210011
210025
|
const dataType = renderSchemaType({
|
|
210012
210026
|
node: buildDataSchemaNode({
|
|
210013
210027
|
node: {
|
|
@@ -210044,6 +210058,7 @@ const typeGenerator = defineGenerator({
|
|
|
210044
210058
|
footer: resolveFooter(),
|
|
210045
210059
|
children: [
|
|
210046
210060
|
paramTypes,
|
|
210061
|
+
queryParamsType,
|
|
210047
210062
|
responseTypes,
|
|
210048
210063
|
requestType,
|
|
210049
210064
|
dataType,
|
|
@@ -210053,7 +210068,7 @@ const typeGenerator = defineGenerator({
|
|
|
210053
210068
|
});
|
|
210054
210069
|
},
|
|
210055
210070
|
Schema({ node, adapter, options }) {
|
|
210056
|
-
const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType, resolver } = options;
|
|
210071
|
+
const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType, resolver, legacy } = options;
|
|
210057
210072
|
const { mode, getFile, resolveBanner, resolveFooter } = useKubb();
|
|
210058
210073
|
if (!node.name) return;
|
|
210059
210074
|
const imports = adapter.getImports(node, (schemaName) => ({
|
|
@@ -210099,7 +210114,8 @@ const typeGenerator = defineGenerator({
|
|
|
210099
210114
|
optionalType,
|
|
210100
210115
|
arrayType,
|
|
210101
210116
|
syntaxType,
|
|
210102
|
-
resolver
|
|
210117
|
+
resolver,
|
|
210118
|
+
legacy
|
|
210103
210119
|
})]
|
|
210104
210120
|
});
|
|
210105
210121
|
}
|
|
@@ -210168,11 +210184,11 @@ const resolverTs = defineResolver(() => {
|
|
|
210168
210184
|
resolvePathParamsTypedName(_node) {
|
|
210169
210185
|
throw new Error("resolvePathParamsTypedName is only available in legacy mode (legacy: true). Use resolveParamTypedName per individual parameter instead.");
|
|
210170
210186
|
},
|
|
210171
|
-
resolveQueryParamsName(
|
|
210172
|
-
|
|
210187
|
+
resolveQueryParamsName(node) {
|
|
210188
|
+
return this.resolveName(`${node.operationId} QueryParams`);
|
|
210173
210189
|
},
|
|
210174
|
-
resolveQueryParamsTypedName(
|
|
210175
|
-
|
|
210190
|
+
resolveQueryParamsTypedName(node) {
|
|
210191
|
+
return this.resolveTypedName(`${node.operationId} QueryParams`);
|
|
210176
210192
|
},
|
|
210177
210193
|
resolveHeaderParamsName(_node) {
|
|
210178
210194
|
throw new Error("resolveHeaderParamsName is only available in legacy mode (legacy: true). Use resolveParamName per individual parameter instead.");
|
|
@@ -210203,11 +210219,11 @@ const resolverTsLegacy = defineResolver(() => {
|
|
|
210203
210219
|
},
|
|
210204
210220
|
resolveResponsesName(node) {
|
|
210205
210221
|
const suffix = node.method === "GET" ? "Query" : "Mutation";
|
|
210206
|
-
return this.
|
|
210222
|
+
return `${this.default(node.operationId, "function")}${suffix}`;
|
|
210207
210223
|
},
|
|
210208
210224
|
resolveResponsesTypedName(node) {
|
|
210209
210225
|
const suffix = node.method === "GET" ? "Query" : "Mutation";
|
|
210210
|
-
return this.
|
|
210226
|
+
return `${this.default(node.operationId, "type")}${suffix}`;
|
|
210211
210227
|
},
|
|
210212
210228
|
resolveResponseName(node) {
|
|
210213
210229
|
const suffix = node.method === "GET" ? "QueryResponse" : "MutationResponse";
|
|
@@ -210237,6 +210253,7 @@ const resolverTsLegacy = defineResolver(() => {
|
|
|
210237
210253
|
}
|
|
210238
210254
|
};
|
|
210239
210255
|
});
|
|
210256
|
+
|
|
210240
210257
|
const pluginTsName = "plugin-ts";
|
|
210241
210258
|
const pluginTs = createPlugin((options) => {
|
|
210242
210259
|
const { output = {
|
|
@@ -210266,7 +210283,8 @@ const pluginTs = createPlugin((options) => {
|
|
|
210266
210283
|
override,
|
|
210267
210284
|
paramsCasing,
|
|
210268
210285
|
legacy,
|
|
210269
|
-
resolver
|
|
210286
|
+
resolver,
|
|
210287
|
+
baseResolver
|
|
210270
210288
|
},
|
|
210271
210289
|
resolvePath(baseName, pathMode, options2) {
|
|
210272
210290
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.9/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-BFqabdAx.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-Cp2XF1Sa.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-CX1HRooG.js","../../../../../core/dist/hooks.js","../../../../../plugin-ts/dist/generators-CLuCmfUz.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-Dc5k6ZRg.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C7Uz42d2.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-C6qvavJ4.js","../../../../../plugin-cypress/dist/generators-CsddWitM.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-zYi6bZ4D.js","../../../../../plugin-mcp/dist/generators-B8MpQcFC.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-skQTekfZ.js","../../../../../plugin-msw/dist/generators-Cx8YEtI4.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CFTdrzdu.js","../../../../../plugin-react-query/dist/generators-D5XRpAur.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DhF2y62B.js","../../../../../plugin-solid-query/dist/generators-Bjt_pqc2.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-gSKB93uB.js","../../../../../plugin-svelte-query/dist/generators-BnlHq9qP.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-dWefgCqh.js","../../../../../plugin-swr/dist/generators-h6SrQ3Gr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components--op2hxIJ.js","../../../../../plugin-vue-query/dist/generators-B6cv10kw.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","applyParamsCasing","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","item","trimExtName","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","node","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,109,110,111,112]}
|
|
1
|
+
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.9/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-BFqabdAx.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-Cp2XF1Sa.js","../../../../../plugin-ts/dist/casing-Cp-jbC_k.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-C8EHVKjc.js","../../../../../core/dist/hooks.js","../../../../../plugin-ts/dist/generators-dCqW0ECC.js","../../../../../plugin-ts/dist/resolvers-CH7hINyz.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-Dc5k6ZRg.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C7Uz42d2.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-C6qvavJ4.js","../../../../../plugin-cypress/dist/generators-CsddWitM.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-zYi6bZ4D.js","../../../../../plugin-mcp/dist/generators-B8MpQcFC.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-skQTekfZ.js","../../../../../plugin-msw/dist/generators-Cx8YEtI4.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CFTdrzdu.js","../../../../../plugin-react-query/dist/generators-D5XRpAur.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DhF2y62B.js","../../../../../plugin-solid-query/dist/generators-Bjt_pqc2.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-gSKB93uB.js","../../../../../plugin-svelte-query/dist/generators-BnlHq9qP.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-dWefgCqh.js","../../../../../plugin-swr/dist/generators-h6SrQ3Gr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components--op2hxIJ.js","../../../../../plugin-vue-query/dist/generators-B6cv10kw.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","applyParamsCasing","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","item","trimExtName","error","__defProp","__name","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","node","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,56,111,112,113,114]}
|
package/.output/server/node_modules/.nitro/{ws@8.19.0 → ws@8.20.0}/lib/permessage-deflate.js
RENAMED
|
@@ -37,6 +37,9 @@ class PerMessageDeflate {
|
|
|
37
37
|
* acknowledge disabling of client context takeover
|
|
38
38
|
* @param {Number} [options.concurrencyLimit=10] The number of concurrent
|
|
39
39
|
* calls to zlib
|
|
40
|
+
* @param {Boolean} [options.isServer=false] Create the instance in either
|
|
41
|
+
* server or client mode
|
|
42
|
+
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
40
43
|
* @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
|
|
41
44
|
* use of a custom server window size
|
|
42
45
|
* @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
|
|
@@ -47,16 +50,13 @@ class PerMessageDeflate {
|
|
|
47
50
|
* deflate
|
|
48
51
|
* @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
|
|
49
52
|
* inflate
|
|
50
|
-
* @param {Boolean} [isServer=false] Create the instance in either server or
|
|
51
|
-
* client mode
|
|
52
|
-
* @param {Number} [maxPayload=0] The maximum allowed message length
|
|
53
53
|
*/
|
|
54
|
-
constructor(options
|
|
55
|
-
this._maxPayload = maxPayload | 0;
|
|
54
|
+
constructor(options) {
|
|
56
55
|
this._options = options || {};
|
|
57
56
|
this._threshold =
|
|
58
57
|
this._options.threshold !== undefined ? this._options.threshold : 1024;
|
|
59
|
-
this.
|
|
58
|
+
this._maxPayload = this._options.maxPayload | 0;
|
|
59
|
+
this._isServer = !!this._options.isServer;
|
|
60
60
|
this._deflate = null;
|
|
61
61
|
this._inflate = null;
|
|
62
62
|
|
|
@@ -293,11 +293,11 @@ class WebSocketServer extends EventEmitter {
|
|
|
293
293
|
this.options.perMessageDeflate &&
|
|
294
294
|
secWebSocketExtensions !== undefined
|
|
295
295
|
) {
|
|
296
|
-
const perMessageDeflate = new PerMessageDeflate(
|
|
297
|
-
this.options.perMessageDeflate,
|
|
298
|
-
true,
|
|
299
|
-
this.options.maxPayload
|
|
300
|
-
);
|
|
296
|
+
const perMessageDeflate = new PerMessageDeflate({
|
|
297
|
+
...this.options.perMessageDeflate,
|
|
298
|
+
isServer: true,
|
|
299
|
+
maxPayload: this.options.maxPayload
|
|
300
|
+
});
|
|
301
301
|
|
|
302
302
|
try {
|
|
303
303
|
const offers = extension.parse(secWebSocketExtensions);
|
|
@@ -693,7 +693,7 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
693
693
|
} else {
|
|
694
694
|
try {
|
|
695
695
|
parsedUrl = new URL(address);
|
|
696
|
-
} catch
|
|
696
|
+
} catch {
|
|
697
697
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
@@ -755,11 +755,11 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
755
755
|
opts.timeout = opts.handshakeTimeout;
|
|
756
756
|
|
|
757
757
|
if (opts.perMessageDeflate) {
|
|
758
|
-
perMessageDeflate = new PerMessageDeflate(
|
|
759
|
-
opts.perMessageDeflate
|
|
760
|
-
false,
|
|
761
|
-
opts.maxPayload
|
|
762
|
-
);
|
|
758
|
+
perMessageDeflate = new PerMessageDeflate({
|
|
759
|
+
...opts.perMessageDeflate,
|
|
760
|
+
isServer: false,
|
|
761
|
+
maxPayload: opts.maxPayload
|
|
762
|
+
});
|
|
763
763
|
opts.headers['Sec-WebSocket-Extensions'] = format({
|
|
764
764
|
[PerMessageDeflate.extensionName]: perMessageDeflate.offer()
|
|
765
765
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ws",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.20.0",
|
|
4
4
|
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HyBi",
|
|
@@ -55,12 +55,13 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
+
"@eslint/js": "^10.0.1",
|
|
58
59
|
"benchmark": "^2.1.4",
|
|
59
60
|
"bufferutil": "^4.0.1",
|
|
60
|
-
"eslint": "^
|
|
61
|
+
"eslint": "^10.0.1",
|
|
61
62
|
"eslint-config-prettier": "^10.0.1",
|
|
62
63
|
"eslint-plugin-prettier": "^5.0.0",
|
|
63
|
-
"globals": "^
|
|
64
|
+
"globals": "^17.0.0",
|
|
64
65
|
"mocha": "^8.4.0",
|
|
65
66
|
"nyc": "^15.0.0",
|
|
66
67
|
"prettier": "^3.0.0",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import createWebSocketStream from './lib/stream.js';
|
|
2
|
+
import extension from './lib/extension.js';
|
|
3
|
+
import PerMessageDeflate from './lib/permessage-deflate.js';
|
|
4
|
+
import Receiver from './lib/receiver.js';
|
|
5
|
+
import Sender from './lib/sender.js';
|
|
6
|
+
import subprotocol from './lib/subprotocol.js';
|
|
7
|
+
import WebSocket from './lib/websocket.js';
|
|
8
|
+
import WebSocketServer from './lib/websocket-server.js';
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
createWebSocketStream,
|
|
12
|
+
extension,
|
|
13
|
+
PerMessageDeflate,
|
|
14
|
+
Receiver,
|
|
15
|
+
Sender,
|
|
16
|
+
subprotocol,
|
|
17
|
+
WebSocket,
|
|
18
|
+
WebSocketServer
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default WebSocket;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent-prod",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"validate.io-integer": "1.0.5",
|
|
109
109
|
"validate.io-integer-array": "1.0.0",
|
|
110
110
|
"validate.io-number": "1.0.3",
|
|
111
|
-
"ws": "8.
|
|
111
|
+
"ws": "8.20.0",
|
|
112
112
|
"yaml": "1.10.2",
|
|
113
113
|
"yaml-ast-parser": "0.0.43",
|
|
114
114
|
"yocto-queue": "1.2.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.13",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"remeda": "^2.33.6",
|
|
40
40
|
"tinyexec": "^1.0.4",
|
|
41
41
|
"unstorage": "^1.17.4",
|
|
42
|
-
"ws": "^8.
|
|
43
|
-
"@kubb/core": "5.0.0-alpha.
|
|
44
|
-
"@kubb/plugin-client": "5.0.0-alpha.
|
|
45
|
-
"@kubb/plugin-cypress": "5.0.0-alpha.
|
|
46
|
-
"@kubb/plugin-faker": "5.0.0-alpha.
|
|
47
|
-
"@kubb/plugin-mcp": "5.0.0-alpha.
|
|
48
|
-
"@kubb/plugin-msw": "5.0.0-alpha.
|
|
49
|
-
"@kubb/plugin-oas": "5.0.0-alpha.
|
|
50
|
-
"@kubb/plugin-react-query": "5.0.0-alpha.
|
|
51
|
-
"@kubb/plugin-redoc": "5.0.0-alpha.
|
|
52
|
-
"@kubb/plugin-solid-query": "5.0.0-alpha.
|
|
53
|
-
"@kubb/plugin-svelte-query": "5.0.0-alpha.
|
|
54
|
-
"@kubb/plugin-swr": "5.0.0-alpha.
|
|
55
|
-
"@kubb/plugin-ts": "5.0.0-alpha.
|
|
56
|
-
"@kubb/plugin-vue-query": "5.0.0-alpha.
|
|
57
|
-
"@kubb/plugin-zod": "5.0.0-alpha.
|
|
42
|
+
"ws": "^8.20.0",
|
|
43
|
+
"@kubb/core": "5.0.0-alpha.13",
|
|
44
|
+
"@kubb/plugin-client": "5.0.0-alpha.13",
|
|
45
|
+
"@kubb/plugin-cypress": "5.0.0-alpha.13",
|
|
46
|
+
"@kubb/plugin-faker": "5.0.0-alpha.13",
|
|
47
|
+
"@kubb/plugin-mcp": "5.0.0-alpha.13",
|
|
48
|
+
"@kubb/plugin-msw": "5.0.0-alpha.13",
|
|
49
|
+
"@kubb/plugin-oas": "5.0.0-alpha.13",
|
|
50
|
+
"@kubb/plugin-react-query": "5.0.0-alpha.13",
|
|
51
|
+
"@kubb/plugin-redoc": "5.0.0-alpha.13",
|
|
52
|
+
"@kubb/plugin-solid-query": "5.0.0-alpha.13",
|
|
53
|
+
"@kubb/plugin-svelte-query": "5.0.0-alpha.13",
|
|
54
|
+
"@kubb/plugin-swr": "5.0.0-alpha.13",
|
|
55
|
+
"@kubb/plugin-ts": "5.0.0-alpha.13",
|
|
56
|
+
"@kubb/plugin-vue-query": "5.0.0-alpha.13",
|
|
57
|
+
"@kubb/plugin-zod": "5.0.0-alpha.13"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
61
|
-
"msw": "^2.12.
|
|
61
|
+
"msw": "^2.12.14",
|
|
62
62
|
"nitropack": "^2.13.2",
|
|
63
63
|
"vite": "^7.3.1",
|
|
64
64
|
"@internals/utils": "0.0.0"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import createWebSocketStream from './lib/stream.js';
|
|
2
|
-
import Receiver from './lib/receiver.js';
|
|
3
|
-
import Sender from './lib/sender.js';
|
|
4
|
-
import WebSocket from './lib/websocket.js';
|
|
5
|
-
import WebSocketServer from './lib/websocket-server.js';
|
|
6
|
-
|
|
7
|
-
export { createWebSocketStream, Receiver, Sender, WebSocket, WebSocketServer };
|
|
8
|
-
export default WebSocket;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|