@kubb/agent 5.0.0-alpha.10 → 5.0.0-alpha.11
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 +2 -2
- package/.output/server/chunks/nitro/nitro.mjs +143 -155
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/package.json +1 -1
- package/.output/server/package.json +2 -2
- package/package.json +17 -17
package/.output/nitro.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"date": "2026-03-
|
|
2
|
+
"date": "2026-03-20T19:53:13.308Z",
|
|
3
3
|
"preset": "node-server",
|
|
4
4
|
"framework": {
|
|
5
5
|
"name": "nitro",
|
|
6
6
|
"version": ""
|
|
7
7
|
},
|
|
8
8
|
"versions": {
|
|
9
|
-
"nitro": "2.13.
|
|
9
|
+
"nitro": "2.13.2"
|
|
10
10
|
},
|
|
11
11
|
"commands": {
|
|
12
12
|
"preview": "node server/index.mjs"
|
|
@@ -20,6 +20,7 @@ import { fsPlugin } from '@kubb/react-fabric/plugins';
|
|
|
20
20
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
21
21
|
import { deflateSync } from 'fflate';
|
|
22
22
|
import { x } from 'tinyexec';
|
|
23
|
+
import { jsx, jsxs, Fragment } from '@kubb/react-fabric/jsx-runtime';
|
|
23
24
|
import { sortBy, isFunction, mergeDeep, isPlainObject as isPlainObject$1, uniqueWith, isDeepEqual, isNumber, difference } from 'remeda';
|
|
24
25
|
import * as pkg from 'empathic/package';
|
|
25
26
|
import { coerce, satisfies } from 'semver';
|
|
@@ -33,7 +34,6 @@ import yaml from '@stoplight/yaml';
|
|
|
33
34
|
import { isRef } from 'oas/types';
|
|
34
35
|
import OASNormalize from 'oas-normalize';
|
|
35
36
|
import swagger2openapi from 'swagger2openapi';
|
|
36
|
-
import { jsx, jsxs, Fragment } from '@kubb/react-fabric/jsx-runtime';
|
|
37
37
|
import { safePrint } from '@kubb/fabric-core/parsers/typescript';
|
|
38
38
|
import * as fs from 'fs';
|
|
39
39
|
import * as path$1 from 'path';
|
|
@@ -120,6 +120,7 @@ const ENC_CARET_RE = /%5e/gi;
|
|
|
120
120
|
const ENC_BACKTICK_RE = /%60/gi;
|
|
121
121
|
const ENC_PIPE_RE = /%7c/gi;
|
|
122
122
|
const ENC_SPACE_RE = /%20/gi;
|
|
123
|
+
const ENC_SLASH_RE = /%2f/gi;
|
|
123
124
|
function encode(text) {
|
|
124
125
|
return encodeURI("" + text).replace(ENC_PIPE_RE, "|");
|
|
125
126
|
}
|
|
@@ -136,6 +137,9 @@ function decode(text = "") {
|
|
|
136
137
|
return "" + text;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
140
|
+
function decodePath(text) {
|
|
141
|
+
return decode(text.replace(ENC_SLASH_RE, "%252F"));
|
|
142
|
+
}
|
|
139
143
|
function decodeQueryKey(text) {
|
|
140
144
|
return decode(text.replace(PLUS_RE, " "));
|
|
141
145
|
}
|
|
@@ -1468,15 +1472,6 @@ function isEventHandler(input) {
|
|
|
1468
1472
|
return hasProp(input, "__is_handler__");
|
|
1469
1473
|
}
|
|
1470
1474
|
function toEventHandler(input, _, _route) {
|
|
1471
|
-
if (!isEventHandler(input)) {
|
|
1472
|
-
console.warn(
|
|
1473
|
-
"[h3] Implicit event handler conversion is deprecated. Use `eventHandler()` or `fromNodeMiddleware()` to define event handlers.",
|
|
1474
|
-
_route && _route !== "/" ? `
|
|
1475
|
-
Route: ${_route}` : "",
|
|
1476
|
-
`
|
|
1477
|
-
Handler: ${input}`
|
|
1478
|
-
);
|
|
1479
|
-
}
|
|
1480
1475
|
return input;
|
|
1481
1476
|
}
|
|
1482
1477
|
function defineLazyEventHandler(factory) {
|
|
@@ -1555,7 +1550,8 @@ function createAppEventHandler(stack, options) {
|
|
|
1555
1550
|
const spacing = options.debug ? 2 : void 0;
|
|
1556
1551
|
return eventHandler(async (event) => {
|
|
1557
1552
|
event.node.req.originalUrl = event.node.req.originalUrl || event.node.req.url || "/";
|
|
1558
|
-
const _reqPath = event._path || event.node.req.url || "/";
|
|
1553
|
+
const _reqPath = _decodePath(event._path || event.node.req.url || "/");
|
|
1554
|
+
event._path = _reqPath;
|
|
1559
1555
|
let _layerPath;
|
|
1560
1556
|
if (options.onRequest) {
|
|
1561
1557
|
await options.onRequest(event);
|
|
@@ -1705,6 +1701,13 @@ function cachedFn(fn) {
|
|
|
1705
1701
|
return cache;
|
|
1706
1702
|
};
|
|
1707
1703
|
}
|
|
1704
|
+
function _decodePath(url) {
|
|
1705
|
+
const qIndex = url.indexOf("?");
|
|
1706
|
+
const path = qIndex === -1 ? url : url.slice(0, qIndex);
|
|
1707
|
+
const query = qIndex === -1 ? "" : url.slice(qIndex);
|
|
1708
|
+
const decodedPath = path.includes("%25") ? decodePath(path.replace(/%25/g, "%2525")) : decodePath(path);
|
|
1709
|
+
return decodedPath + query;
|
|
1710
|
+
}
|
|
1708
1711
|
function websocketOptions(evResolver, appOptions) {
|
|
1709
1712
|
return {
|
|
1710
1713
|
...appOptions.websocket,
|
|
@@ -1744,7 +1747,7 @@ function createRouter(opts = {}) {
|
|
|
1744
1747
|
addRoute(path, handler, m);
|
|
1745
1748
|
}
|
|
1746
1749
|
} else {
|
|
1747
|
-
route.handlers[method] = toEventHandler(handler
|
|
1750
|
+
route.handlers[method] = toEventHandler(handler);
|
|
1748
1751
|
}
|
|
1749
1752
|
return router;
|
|
1750
1753
|
};
|
|
@@ -4806,6 +4809,7 @@ function getChildren(node, recurse) {
|
|
|
4806
4809
|
if ("properties" in node && node.properties.length > 0) children.push(...node.properties);
|
|
4807
4810
|
if ("items" in node && node.items) children.push(...node.items);
|
|
4808
4811
|
if ("members" in node && node.members) children.push(...node.members);
|
|
4812
|
+
if ("additionalProperties" in node && node.additionalProperties && node.additionalProperties !== true) children.push(node.additionalProperties);
|
|
4809
4813
|
return children;
|
|
4810
4814
|
}
|
|
4811
4815
|
case "Property":
|
|
@@ -5951,7 +5955,7 @@ const fsStorage = createStorage(() => ({
|
|
|
5951
5955
|
await clean(resolve(base));
|
|
5952
5956
|
}
|
|
5953
5957
|
}));
|
|
5954
|
-
var version$1 = "5.0.0-alpha.
|
|
5958
|
+
var version$1 = "5.0.0-alpha.11";
|
|
5955
5959
|
function getDiagnosticInfo() {
|
|
5956
5960
|
return {
|
|
5957
5961
|
nodeVersion: version$2,
|
|
@@ -6228,12 +6232,16 @@ function buildBarrelExports({ barrelFiles, rootDir, existingExports, config, dri
|
|
|
6228
6232
|
function inputToAdapterSource(config) {
|
|
6229
6233
|
if (Array.isArray(config.input)) return {
|
|
6230
6234
|
type: "paths",
|
|
6231
|
-
paths: config.input.map((i) => resolve(config.root, i.path))
|
|
6235
|
+
paths: config.input.map((i) => new URLPath$a(i.path).isURL ? i.path : resolve(config.root, i.path))
|
|
6232
6236
|
};
|
|
6233
6237
|
if ("data" in config.input) return {
|
|
6234
6238
|
type: "data",
|
|
6235
6239
|
data: config.input.data
|
|
6236
6240
|
};
|
|
6241
|
+
if (new URLPath$a(config.input.path).isURL) return {
|
|
6242
|
+
type: "path",
|
|
6243
|
+
path: config.input.path
|
|
6244
|
+
};
|
|
6237
6245
|
return {
|
|
6238
6246
|
type: "path",
|
|
6239
6247
|
path: resolve(config.root, config.input.path)
|
|
@@ -6330,6 +6338,46 @@ function defineResolver(build2) {
|
|
|
6330
6338
|
...build2()
|
|
6331
6339
|
};
|
|
6332
6340
|
}
|
|
6341
|
+
async function renderOperation$1(node, options) {
|
|
6342
|
+
const { config, fabric, plugin, Component, adapter, driver, mode } = options;
|
|
6343
|
+
if (!Component) return;
|
|
6344
|
+
const fabricChild = createReactFabric();
|
|
6345
|
+
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
6346
|
+
meta: {
|
|
6347
|
+
plugin,
|
|
6348
|
+
driver,
|
|
6349
|
+
mode
|
|
6350
|
+
},
|
|
6351
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
6352
|
+
config,
|
|
6353
|
+
adapter,
|
|
6354
|
+
node,
|
|
6355
|
+
options: options.options
|
|
6356
|
+
})
|
|
6357
|
+
}));
|
|
6358
|
+
fabric.context.fileManager.upsert(...fabricChild.files);
|
|
6359
|
+
fabricChild.unmount();
|
|
6360
|
+
}
|
|
6361
|
+
async function renderSchema$1(node, options) {
|
|
6362
|
+
const { config, fabric, plugin, Component, adapter, driver, mode } = options;
|
|
6363
|
+
if (!Component) return;
|
|
6364
|
+
const fabricChild = createReactFabric();
|
|
6365
|
+
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
6366
|
+
meta: {
|
|
6367
|
+
plugin,
|
|
6368
|
+
driver,
|
|
6369
|
+
mode
|
|
6370
|
+
},
|
|
6371
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
6372
|
+
config,
|
|
6373
|
+
adapter,
|
|
6374
|
+
node,
|
|
6375
|
+
options: options.options
|
|
6376
|
+
})
|
|
6377
|
+
}));
|
|
6378
|
+
fabric.context.fileManager.upsert(...fabricChild.files);
|
|
6379
|
+
fabricChild.unmount();
|
|
6380
|
+
}
|
|
6333
6381
|
const memoryStorage = createStorage(() => {
|
|
6334
6382
|
const store = /* @__PURE__ */ new Map();
|
|
6335
6383
|
return {
|
|
@@ -6694,7 +6742,7 @@ function satisfiesDependency(dependency, version2, cwd) {
|
|
|
6694
6742
|
return satisfies(semVer, version2);
|
|
6695
6743
|
}
|
|
6696
6744
|
|
|
6697
|
-
var version = "5.0.0-alpha.
|
|
6745
|
+
var version = "5.0.0-alpha.11";
|
|
6698
6746
|
|
|
6699
6747
|
function isCommandMessage(msg) {
|
|
6700
6748
|
return msg.type === "command";
|
|
@@ -7895,131 +7943,69 @@ function getSchemaFactory(oas) {
|
|
|
7895
7943
|
};
|
|
7896
7944
|
};
|
|
7897
7945
|
}
|
|
7898
|
-
function
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
}
|
|
7902
|
-
async function buildOperations(operationsOrNodes, options) {
|
|
7903
|
-
const { config, fabric, plugin } = options;
|
|
7904
|
-
if (!options.Component) return;
|
|
7946
|
+
async function renderOperations(operations, options) {
|
|
7947
|
+
const { config, fabric, plugin, Component, generator } = options;
|
|
7948
|
+
if (!Component) return;
|
|
7949
|
+
const { driver, oas, mode } = generator.context;
|
|
7905
7950
|
const fabricChild = createReactFabric();
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
plugin
|
|
7921
|
-
})
|
|
7922
|
-
}));
|
|
7923
|
-
} else {
|
|
7924
|
-
const { Component, adapter } = options;
|
|
7925
|
-
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
7926
|
-
meta: { plugin },
|
|
7927
|
-
children: /* @__PURE__ */ jsx(Component, {
|
|
7928
|
-
config,
|
|
7929
|
-
adapter,
|
|
7930
|
-
nodes: operationsOrNodes,
|
|
7931
|
-
options: options.options
|
|
7932
|
-
})
|
|
7933
|
-
}));
|
|
7934
|
-
}
|
|
7951
|
+
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
7952
|
+
meta: {
|
|
7953
|
+
driver,
|
|
7954
|
+
plugin,
|
|
7955
|
+
mode,
|
|
7956
|
+
oas
|
|
7957
|
+
},
|
|
7958
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
7959
|
+
config,
|
|
7960
|
+
operations,
|
|
7961
|
+
generator,
|
|
7962
|
+
plugin
|
|
7963
|
+
})
|
|
7964
|
+
}));
|
|
7935
7965
|
fabric.context.fileManager.upsert(...fabricChild.files);
|
|
7936
7966
|
fabricChild.unmount();
|
|
7937
7967
|
}
|
|
7938
|
-
function
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
}
|
|
7942
|
-
async function buildOperation(operationOrNode, options) {
|
|
7943
|
-
const { config, fabric, plugin } = options;
|
|
7944
|
-
if (!options.Component) return;
|
|
7968
|
+
async function renderOperation(operation, options) {
|
|
7969
|
+
const { config, fabric, plugin, Component, generator } = options;
|
|
7970
|
+
if (!Component) return;
|
|
7971
|
+
const { driver, oas, mode } = generator.context;
|
|
7945
7972
|
const fabricChild = createReactFabric();
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
generator
|
|
7961
|
-
})
|
|
7962
|
-
}));
|
|
7963
|
-
} else {
|
|
7964
|
-
const { Component, adapter, driver, mode } = options;
|
|
7965
|
-
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
7966
|
-
meta: {
|
|
7967
|
-
plugin,
|
|
7968
|
-
driver,
|
|
7969
|
-
mode
|
|
7970
|
-
},
|
|
7971
|
-
children: /* @__PURE__ */ jsx(Component, {
|
|
7972
|
-
config,
|
|
7973
|
-
adapter,
|
|
7974
|
-
node: operationOrNode,
|
|
7975
|
-
options: options.options
|
|
7976
|
-
})
|
|
7977
|
-
}));
|
|
7978
|
-
}
|
|
7973
|
+
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
7974
|
+
meta: {
|
|
7975
|
+
driver,
|
|
7976
|
+
plugin,
|
|
7977
|
+
mode,
|
|
7978
|
+
oas
|
|
7979
|
+
},
|
|
7980
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
7981
|
+
config,
|
|
7982
|
+
operation,
|
|
7983
|
+
plugin,
|
|
7984
|
+
generator
|
|
7985
|
+
})
|
|
7986
|
+
}));
|
|
7979
7987
|
fabric.context.fileManager.upsert(...fabricChild.files);
|
|
7980
7988
|
fabricChild.unmount();
|
|
7981
7989
|
}
|
|
7982
|
-
function
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
}
|
|
7986
|
-
async function buildSchema(schema, options) {
|
|
7987
|
-
const { config, fabric, plugin } = options;
|
|
7988
|
-
if (!options.Component) return;
|
|
7990
|
+
async function renderSchema(schema, options) {
|
|
7991
|
+
const { config, fabric, plugin, Component, generator } = options;
|
|
7992
|
+
if (!Component) return;
|
|
7993
|
+
const { driver, oas, mode } = generator.context;
|
|
7989
7994
|
const fabricChild = createReactFabric();
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
generator
|
|
8005
|
-
})
|
|
8006
|
-
}));
|
|
8007
|
-
} else {
|
|
8008
|
-
const { Component, adapter, driver, mode } = options;
|
|
8009
|
-
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
8010
|
-
meta: {
|
|
8011
|
-
plugin,
|
|
8012
|
-
driver,
|
|
8013
|
-
mode
|
|
8014
|
-
},
|
|
8015
|
-
children: /* @__PURE__ */ jsx(Component, {
|
|
8016
|
-
config,
|
|
8017
|
-
adapter,
|
|
8018
|
-
node: schema,
|
|
8019
|
-
options: options.options
|
|
8020
|
-
})
|
|
8021
|
-
}));
|
|
8022
|
-
}
|
|
7995
|
+
await fabricChild.render(/* @__PURE__ */ jsx(Fabric, {
|
|
7996
|
+
meta: {
|
|
7997
|
+
driver,
|
|
7998
|
+
plugin,
|
|
7999
|
+
mode,
|
|
8000
|
+
oas
|
|
8001
|
+
},
|
|
8002
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
8003
|
+
config,
|
|
8004
|
+
schema,
|
|
8005
|
+
plugin,
|
|
8006
|
+
generator
|
|
8007
|
+
})
|
|
8008
|
+
}));
|
|
8023
8009
|
fabric.context.fileManager.upsert(...fabricChild.files);
|
|
8024
8010
|
fabricChild.unmount();
|
|
8025
8011
|
}
|
|
@@ -8958,7 +8944,7 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
|
|
|
8958
8944
|
rootName: name
|
|
8959
8945
|
});
|
|
8960
8946
|
if (v1Generator.type === "react") {
|
|
8961
|
-
await
|
|
8947
|
+
await renderSchema({
|
|
8962
8948
|
name,
|
|
8963
8949
|
value: schemaObject,
|
|
8964
8950
|
tree
|
|
@@ -10058,7 +10044,7 @@ var OperationGenerator = (_a$7 = class {
|
|
|
10058
10044
|
var _a4, _b;
|
|
10059
10045
|
const options = this.getOptions(operation, method);
|
|
10060
10046
|
if (v1Generator.type === "react") {
|
|
10061
|
-
await
|
|
10047
|
+
await renderOperation(operation, {
|
|
10062
10048
|
config: this.context.driver.config,
|
|
10063
10049
|
fabric: this.context.fabric,
|
|
10064
10050
|
Component: v1Generator.Operation,
|
|
@@ -10088,7 +10074,7 @@ var OperationGenerator = (_a$7 = class {
|
|
|
10088
10074
|
}));
|
|
10089
10075
|
const opResultsFlat = (await Promise.all(operationTasks)).flat();
|
|
10090
10076
|
if (v1Generator.type === "react") {
|
|
10091
|
-
await
|
|
10077
|
+
await renderOperations(operations.map((op) => op.operation), {
|
|
10092
10078
|
fabric: this.context.fabric,
|
|
10093
10079
|
config: this.context.driver.config,
|
|
10094
10080
|
Component: v1Generator.Operations,
|
|
@@ -209620,7 +209606,8 @@ function useOas() {
|
|
|
209620
209606
|
function useOperationManager(generator) {
|
|
209621
209607
|
const plugin = usePlugin();
|
|
209622
209608
|
const driver = usePluginDriver();
|
|
209623
|
-
const
|
|
209609
|
+
const defaultPluginName = plugin.name;
|
|
209610
|
+
const getName = (operation, { prefix = "", suffix = "", pluginName = defaultPluginName, type }) => {
|
|
209624
209611
|
return driver.resolveName({
|
|
209625
209612
|
name: `${prefix} ${operation.getOperationId()} ${suffix}`,
|
|
209626
209613
|
pluginName,
|
|
@@ -209636,13 +209623,16 @@ function useOperationManager(generator) {
|
|
|
209636
209623
|
};
|
|
209637
209624
|
const getSchemas = (operation, params) => {
|
|
209638
209625
|
if (!generator) throw new Error(`useOperationManager: 'generator' parameter is required but was not provided`);
|
|
209639
|
-
return generator.getSchemas(operation, { resolveName: (name) =>
|
|
209640
|
-
|
|
209641
|
-
|
|
209642
|
-
|
|
209643
|
-
|
|
209626
|
+
return generator.getSchemas(operation, { resolveName: (name) => {
|
|
209627
|
+
var _a;
|
|
209628
|
+
return driver.resolveName({
|
|
209629
|
+
name,
|
|
209630
|
+
pluginName: (_a = params == null ? void 0 : params.pluginName) != null ? _a : defaultPluginName,
|
|
209631
|
+
type: params == null ? void 0 : params.type
|
|
209632
|
+
});
|
|
209633
|
+
} });
|
|
209644
209634
|
};
|
|
209645
|
-
const getFile = (operation, { prefix, suffix, pluginName =
|
|
209635
|
+
const getFile = (operation, { prefix, suffix, pluginName = defaultPluginName, extname = ".ts" } = {}) => {
|
|
209646
209636
|
const name = getName(operation, {
|
|
209647
209637
|
type: "file",
|
|
209648
209638
|
pluginName,
|
|
@@ -209670,10 +209660,10 @@ function useOperationManager(generator) {
|
|
|
209670
209660
|
}
|
|
209671
209661
|
};
|
|
209672
209662
|
};
|
|
209673
|
-
const groupSchemasByName = (operation, { pluginName =
|
|
209663
|
+
const groupSchemasByName = (operation, { pluginName = defaultPluginName, type }) => {
|
|
209674
209664
|
var _a, _b, _c, _d;
|
|
209675
209665
|
if (!generator) throw new Error(`useOperationManager: 'generator' parameter is required but was not provided`);
|
|
209676
|
-
const schemas =
|
|
209666
|
+
const schemas = getSchemas(operation);
|
|
209677
209667
|
const errors = (schemas.errors || []).reduce((prev, acc) => {
|
|
209678
209668
|
if (!acc.statusCode) return prev;
|
|
209679
209669
|
prev[acc.statusCode] = driver.resolveName({
|
|
@@ -210801,7 +210791,7 @@ const pluginTs = createPlugin((options) => {
|
|
|
210801
210791
|
override
|
|
210802
210792
|
});
|
|
210803
210793
|
if (options2 === null) return;
|
|
210804
|
-
await
|
|
210794
|
+
await renderSchema$1(schemaNode, {
|
|
210805
210795
|
options: options2,
|
|
210806
210796
|
adapter,
|
|
210807
210797
|
config,
|
|
@@ -210809,8 +210799,7 @@ const pluginTs = createPlugin((options) => {
|
|
|
210809
210799
|
Component: generator.Schema,
|
|
210810
210800
|
plugin,
|
|
210811
210801
|
driver,
|
|
210812
|
-
mode
|
|
210813
|
-
version: generator.version
|
|
210802
|
+
mode
|
|
210814
210803
|
});
|
|
210815
210804
|
}
|
|
210816
210805
|
});
|
|
@@ -210826,7 +210815,7 @@ const pluginTs = createPlugin((options) => {
|
|
|
210826
210815
|
override
|
|
210827
210816
|
});
|
|
210828
210817
|
if (options2 === null) return;
|
|
210829
|
-
await
|
|
210818
|
+
await renderOperation$1(operationNode, {
|
|
210830
210819
|
options: options2,
|
|
210831
210820
|
adapter,
|
|
210832
210821
|
config,
|
|
@@ -210834,8 +210823,7 @@ const pluginTs = createPlugin((options) => {
|
|
|
210834
210823
|
Component: generator.Operation,
|
|
210835
210824
|
plugin,
|
|
210836
210825
|
driver,
|
|
210837
|
-
mode
|
|
210838
|
-
version: generator.version
|
|
210826
|
+
mode
|
|
210839
210827
|
});
|
|
210840
210828
|
}
|
|
210841
210829
|
});
|
|
@@ -211321,7 +211309,7 @@ const classClientGenerator = createReactGenerator({
|
|
|
211321
211309
|
const driver = usePluginDriver();
|
|
211322
211310
|
const oas = useOas();
|
|
211323
211311
|
const { getName, getFile, getGroup, getSchemas } = useOperationManager(generator);
|
|
211324
|
-
function
|
|
211312
|
+
function renderOperationData(operation) {
|
|
211325
211313
|
const type = {
|
|
211326
211314
|
file: getFile(operation, { pluginName: pluginTsName }),
|
|
211327
211315
|
schemas: getSchemas(operation, {
|
|
@@ -211356,7 +211344,7 @@ const classClientGenerator = createReactGenerator({
|
|
|
211356
211344
|
extname: ".ts",
|
|
211357
211345
|
pluginName
|
|
211358
211346
|
});
|
|
211359
|
-
const operationData =
|
|
211347
|
+
const operationData = renderOperationData(operation);
|
|
211360
211348
|
const previousFile = acc.find((item) => item.file.path === file.path);
|
|
211361
211349
|
if (previousFile) previousFile.operations.push(operationData);
|
|
211362
211350
|
else acc.push({
|
|
@@ -211372,7 +211360,7 @@ const classClientGenerator = createReactGenerator({
|
|
|
211372
211360
|
pluginName,
|
|
211373
211361
|
options: { group }
|
|
211374
211362
|
});
|
|
211375
|
-
const operationData =
|
|
211363
|
+
const operationData = renderOperationData(operation);
|
|
211376
211364
|
const previousFile = acc.find((item) => item.file.path === file.path);
|
|
211377
211365
|
if (previousFile) previousFile.operations.push(operationData);
|
|
211378
211366
|
else acc.push({
|
|
@@ -211798,7 +211786,7 @@ const staticClassClientGenerator = createReactGenerator({
|
|
|
211798
211786
|
const driver = usePluginDriver();
|
|
211799
211787
|
const oas = useOas();
|
|
211800
211788
|
const { getName, getFile, getGroup, getSchemas } = useOperationManager(generator);
|
|
211801
|
-
function
|
|
211789
|
+
function renderOperationData(operation) {
|
|
211802
211790
|
const type = {
|
|
211803
211791
|
file: getFile(operation, { pluginName: pluginTsName }),
|
|
211804
211792
|
schemas: getSchemas(operation, {
|
|
@@ -211833,7 +211821,7 @@ const staticClassClientGenerator = createReactGenerator({
|
|
|
211833
211821
|
extname: ".ts",
|
|
211834
211822
|
pluginName
|
|
211835
211823
|
});
|
|
211836
|
-
const operationData =
|
|
211824
|
+
const operationData = renderOperationData(operation);
|
|
211837
211825
|
const previousFile = acc.find((item) => item.file.path === file.path);
|
|
211838
211826
|
if (previousFile) previousFile.operations.push(operationData);
|
|
211839
211827
|
else acc.push({
|
|
@@ -211849,7 +211837,7 @@ const staticClassClientGenerator = createReactGenerator({
|
|
|
211849
211837
|
pluginName,
|
|
211850
211838
|
options: { group }
|
|
211851
211839
|
});
|
|
211852
|
-
const operationData =
|
|
211840
|
+
const operationData = renderOperationData(operation);
|
|
211853
211841
|
const previousFile = acc.find((item) => item.file.path === file.path);
|
|
211854
211842
|
if (previousFile) previousFile.operations.push(operationData);
|
|
211855
211843
|
else acc.push({
|
|
@@ -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.5/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.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_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.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_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.1_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.1_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.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_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.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_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.1_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.1_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-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-gV_d8sCu.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-BjsINk-u.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-CRu8IKY3.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-BZkBwnEA.js","../../../../../plugin-zod/dist/generators-lTWPS6oN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BYUJaeZP.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-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-B3FWG2Ck.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-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-TtEOkDB1.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-CvyZTxOm.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-DkQwKTc2.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-BT0sdmbO.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-TJp_N4gT.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-CRSl6u2M.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-CR34GjVu.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.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_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.1_encoding@0.1.13_rolldown@1.0.0-rc.10/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_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","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","propertyName","applyParamsCasing$1","node","barrelFiles","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,108,109,110,111]}
|
|
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-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-BK5uH1dh.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-BjsINk-u.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-CRu8IKY3.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-D60XNJSD.js","../../../../../plugin-zod/dist/generators-lTWPS6oN.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BD0Kg3x9.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-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-B3FWG2Ck.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-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-TtEOkDB1.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-CvyZTxOm.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-DkQwKTc2.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-BT0sdmbO.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-TJp_N4gT.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-CRSl6u2M.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-CR34GjVu.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","propertyName","applyParamsCasing$1","node","barrelFiles","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,108,109,110,111]}
|
|
@@ -21,6 +21,7 @@ import '@kubb/react-fabric/plugins';
|
|
|
21
21
|
import 'node:perf_hooks';
|
|
22
22
|
import 'fflate';
|
|
23
23
|
import 'tinyexec';
|
|
24
|
+
import '@kubb/react-fabric/jsx-runtime';
|
|
24
25
|
import 'remeda';
|
|
25
26
|
import 'empathic/package';
|
|
26
27
|
import 'semver';
|
|
@@ -34,7 +35,6 @@ import '@stoplight/yaml';
|
|
|
34
35
|
import 'oas/types';
|
|
35
36
|
import 'oas-normalize';
|
|
36
37
|
import 'swagger2openapi';
|
|
37
|
-
import '@kubb/react-fabric/jsx-runtime';
|
|
38
38
|
import '@kubb/fabric-core/parsers/typescript';
|
|
39
39
|
import 'fs';
|
|
40
40
|
import 'path';
|
package/.output/server/index.mjs
CHANGED
|
@@ -21,6 +21,7 @@ import '@kubb/react-fabric/plugins';
|
|
|
21
21
|
import 'node:perf_hooks';
|
|
22
22
|
import 'fflate';
|
|
23
23
|
import 'tinyexec';
|
|
24
|
+
import '@kubb/react-fabric/jsx-runtime';
|
|
24
25
|
import 'remeda';
|
|
25
26
|
import 'empathic/package';
|
|
26
27
|
import 'semver';
|
|
@@ -34,7 +35,6 @@ import '@stoplight/yaml';
|
|
|
34
35
|
import 'oas/types';
|
|
35
36
|
import 'oas-normalize';
|
|
36
37
|
import 'swagger2openapi';
|
|
37
|
-
import '@kubb/react-fabric/jsx-runtime';
|
|
38
38
|
import '@kubb/fabric-core/parsers/typescript';
|
|
39
39
|
import 'fs';
|
|
40
40
|
import 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent-prod",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@readme/postman-to-openapi": "4.1.0",
|
|
26
26
|
"@redocly/ajv": "8.18.0",
|
|
27
27
|
"@redocly/config": "0.44.1",
|
|
28
|
-
"@redocly/openapi-core": "2.24.
|
|
28
|
+
"@redocly/openapi-core": "2.24.1",
|
|
29
29
|
"@stoplight/ordered-object-literal": "1.0.5",
|
|
30
30
|
"@stoplight/types": "14.1.1",
|
|
31
31
|
"@stoplight/yaml": "4.3.0",
|
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.11",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"tinyexec": "^1.0.4",
|
|
41
41
|
"unstorage": "^1.17.4",
|
|
42
42
|
"ws": "^8.19.0",
|
|
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.
|
|
43
|
+
"@kubb/core": "5.0.0-alpha.11",
|
|
44
|
+
"@kubb/plugin-client": "5.0.0-alpha.11",
|
|
45
|
+
"@kubb/plugin-cypress": "5.0.0-alpha.11",
|
|
46
|
+
"@kubb/plugin-faker": "5.0.0-alpha.11",
|
|
47
|
+
"@kubb/plugin-mcp": "5.0.0-alpha.11",
|
|
48
|
+
"@kubb/plugin-msw": "5.0.0-alpha.11",
|
|
49
|
+
"@kubb/plugin-oas": "5.0.0-alpha.11",
|
|
50
|
+
"@kubb/plugin-react-query": "5.0.0-alpha.11",
|
|
51
|
+
"@kubb/plugin-redoc": "5.0.0-alpha.11",
|
|
52
|
+
"@kubb/plugin-solid-query": "5.0.0-alpha.11",
|
|
53
|
+
"@kubb/plugin-svelte-query": "5.0.0-alpha.11",
|
|
54
|
+
"@kubb/plugin-swr": "5.0.0-alpha.11",
|
|
55
|
+
"@kubb/plugin-ts": "5.0.0-alpha.11",
|
|
56
|
+
"@kubb/plugin-vue-query": "5.0.0-alpha.11",
|
|
57
|
+
"@kubb/plugin-zod": "5.0.0-alpha.11"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
61
61
|
"msw": "^2.12.13",
|
|
62
|
-
"nitropack": "^2.13.
|
|
62
|
+
"nitropack": "^2.13.2",
|
|
63
63
|
"vite": "^7.3.1",
|
|
64
64
|
"@internals/utils": "0.0.0"
|
|
65
65
|
},
|