@kubb/plugin-fetch 5.5.8 → 5.5.10
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/authentication.md +77 -0
- package/docs/guides/base-url.md +63 -0
- package/docs/guides/calling-operations.md +147 -0
- package/docs/guides/error-handling.md +124 -0
- package/docs/guides/interceptors.md +78 -0
- package/docs/guides/serialization.md +120 -0
- package/docs/guides/server-sent-events.md +99 -0
- package/docs/guides/transport.md +71 -0
- package/docs/options.md +200 -0
- package/docs/overview.md +41 -0
- package/kubb-extension.json +198 -0
- package/package.json +9 -6
- package/src/plugin.ts +5 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { Diagnostics, Resolver, Url, addGenerator, ast, createResolver,
|
|
2
|
+
import { Diagnostics, Resolver, Url, addGenerator, ast, createResolver, defineExtension, defineGenerator, injectFile, macroSimplifyUnion, setMacros, setResolver, useConfig } from "kubb/kit";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createFunctionParameter, createFunctionParameters, functionPrinter, pluginTsName } from "@kubb/plugin-ts";
|
|
5
5
|
import { File, Function, jsxRenderer } from "kubb/jsx";
|
|
@@ -1454,8 +1454,14 @@ const resolverClient = createResolver({
|
|
|
1454
1454
|
*/
|
|
1455
1455
|
const clientGenerator = createClientGenerator("fetch");
|
|
1456
1456
|
//#endregion
|
|
1457
|
+
//#region kubb-extension.json
|
|
1458
|
+
var compatibility = {
|
|
1459
|
+
"kubb": ">=5.8.3",
|
|
1460
|
+
"node": ">=22"
|
|
1461
|
+
};
|
|
1462
|
+
//#endregion
|
|
1457
1463
|
//#region package.json
|
|
1458
|
-
var version = "5.5.
|
|
1464
|
+
var version = "5.5.10";
|
|
1459
1465
|
//#endregion
|
|
1460
1466
|
//#region src/templates.ts
|
|
1461
1467
|
/** Absolute path to the fetch client template, copied into `.kubb/client.ts`. */
|
|
@@ -1496,11 +1502,12 @@ const pluginFetchName = "plugin-fetch";
|
|
|
1496
1502
|
* })
|
|
1497
1503
|
* ```
|
|
1498
1504
|
*/
|
|
1499
|
-
const pluginFetch =
|
|
1505
|
+
const pluginFetch = defineExtension({
|
|
1506
|
+
kind: "plugin",
|
|
1500
1507
|
meta: {
|
|
1501
1508
|
name: pluginFetchName,
|
|
1502
1509
|
version,
|
|
1503
|
-
compatibility
|
|
1510
|
+
compatibility
|
|
1504
1511
|
},
|
|
1505
1512
|
dependencies: {
|
|
1506
1513
|
[pluginTsName]: { optional: true },
|