@kubb/plugin-fetch 5.5.9 → 5.5.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/README.md +2 -2
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -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 +173 -0
- package/docs/overview.md +40 -0
- package/kubb-extension.json +9 -2
- package/package.json +7 -7
- package/src/plugin.ts +3 -2
- package/OVERVIEW.md +0 -19
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";
|
|
@@ -1456,12 +1456,12 @@ const clientGenerator = createClientGenerator("fetch");
|
|
|
1456
1456
|
//#endregion
|
|
1457
1457
|
//#region kubb-extension.json
|
|
1458
1458
|
var compatibility = {
|
|
1459
|
-
"kubb": ">=5.8.
|
|
1459
|
+
"kubb": ">=5.8.3",
|
|
1460
1460
|
"node": ">=22"
|
|
1461
1461
|
};
|
|
1462
1462
|
//#endregion
|
|
1463
1463
|
//#region package.json
|
|
1464
|
-
var version = "5.5.
|
|
1464
|
+
var version = "5.5.11";
|
|
1465
1465
|
//#endregion
|
|
1466
1466
|
//#region src/templates.ts
|
|
1467
1467
|
/** Absolute path to the fetch client template, copied into `.kubb/client.ts`. */
|
|
@@ -1502,7 +1502,8 @@ const pluginFetchName = "plugin-fetch";
|
|
|
1502
1502
|
* })
|
|
1503
1503
|
* ```
|
|
1504
1504
|
*/
|
|
1505
|
-
const pluginFetch =
|
|
1505
|
+
const pluginFetch = defineExtension({
|
|
1506
|
+
kind: "plugin",
|
|
1506
1507
|
meta: {
|
|
1507
1508
|
name: pluginFetchName,
|
|
1508
1509
|
version,
|