@kubb/plugin-swr 5.2.2 → 5.2.4
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/README.md +2 -2
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/docs/guides/calling-operations.md +81 -0
- package/docs/options.md +164 -0
- package/docs/overview.md +39 -0
- package/kubb-extension.json +200 -0
- package/package.json +9 -6
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { Resolver, Url, addGenerator, ast, createResolver,
|
|
2
|
+
import { Resolver, Url, addGenerator, ast, createResolver, defineExtension, defineGenerator, setMacros, setResolver, useConfig } from "kubb/kit";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createFunctionParameter, createFunctionParameters, createObjectBindingPattern, createTypeLiteral, functionPrinter, pluginTsName } from "@kubb/plugin-ts";
|
|
5
5
|
import { File, Function, Type, jsxRenderer } from "kubb/jsx";
|
|
@@ -305,8 +305,14 @@ function createGroupConfig(group) {
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
//#endregion
|
|
308
|
+
//#region kubb-extension.json
|
|
309
|
+
var compatibility = {
|
|
310
|
+
"kubb": ">=5.8.3",
|
|
311
|
+
"node": ">=22"
|
|
312
|
+
};
|
|
313
|
+
//#endregion
|
|
308
314
|
//#region package.json
|
|
309
|
-
var version = "5.2.
|
|
315
|
+
var version = "5.2.4";
|
|
310
316
|
//#endregion
|
|
311
317
|
//#region ../../internals/client/src/resolveClient.ts
|
|
312
318
|
/**
|
|
@@ -1270,11 +1276,12 @@ const pluginSwrName = "plugin-swr";
|
|
|
1270
1276
|
* })
|
|
1271
1277
|
* ```
|
|
1272
1278
|
*/
|
|
1273
|
-
const pluginSwr =
|
|
1279
|
+
const pluginSwr = defineExtension({
|
|
1280
|
+
kind: "plugin",
|
|
1274
1281
|
meta: {
|
|
1275
1282
|
name: pluginSwrName,
|
|
1276
1283
|
version,
|
|
1277
|
-
compatibility
|
|
1284
|
+
compatibility
|
|
1278
1285
|
},
|
|
1279
1286
|
dependencies: { [pluginTsName]: {} },
|
|
1280
1287
|
setup(options) {
|