@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/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[![Node][node-src]][node-href]
|
|
11
11
|
|
|
12
12
|
<h4>
|
|
13
|
-
<a href="https://kubb.dev/
|
|
13
|
+
<a href="https://kubb.dev/extensions/kubb-labs/plugin-fetch" target="_blank">Documentation</a>
|
|
14
14
|
<span> · </span>
|
|
15
15
|
<a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
|
|
16
16
|
<span> · </span>
|
|
@@ -38,7 +38,7 @@ npm install @kubb/plugin-fetch
|
|
|
38
38
|
|
|
39
39
|
## Documentation
|
|
40
40
|
|
|
41
|
-
See the [full documentation](https://kubb.dev/
|
|
41
|
+
See the [full documentation](https://kubb.dev/extensions/kubb-labs/plugin-fetch) for configuration options and examples.
|
|
42
42
|
|
|
43
43
|
## Supporting Kubb
|
|
44
44
|
|
package/dist/index.cjs
CHANGED
|
@@ -1480,8 +1480,14 @@ const resolverClient = (0, kubb_kit.createResolver)({
|
|
|
1480
1480
|
*/
|
|
1481
1481
|
const clientGenerator = createClientGenerator("fetch");
|
|
1482
1482
|
//#endregion
|
|
1483
|
+
//#region kubb-extension.json
|
|
1484
|
+
var compatibility = {
|
|
1485
|
+
"kubb": ">=5.8.3",
|
|
1486
|
+
"node": ">=22"
|
|
1487
|
+
};
|
|
1488
|
+
//#endregion
|
|
1483
1489
|
//#region package.json
|
|
1484
|
-
var version = "5.5.
|
|
1490
|
+
var version = "5.5.10";
|
|
1485
1491
|
//#endregion
|
|
1486
1492
|
//#region src/templates.ts
|
|
1487
1493
|
/** Absolute path to the fetch client template, copied into `.kubb/client.ts`. */
|
|
@@ -1522,11 +1528,12 @@ const pluginFetchName = "plugin-fetch";
|
|
|
1522
1528
|
* })
|
|
1523
1529
|
* ```
|
|
1524
1530
|
*/
|
|
1525
|
-
const pluginFetch = (0, kubb_kit.
|
|
1531
|
+
const pluginFetch = (0, kubb_kit.defineExtension)({
|
|
1532
|
+
kind: "plugin",
|
|
1526
1533
|
meta: {
|
|
1527
1534
|
name: pluginFetchName,
|
|
1528
1535
|
version,
|
|
1529
|
-
compatibility
|
|
1536
|
+
compatibility
|
|
1530
1537
|
},
|
|
1531
1538
|
dependencies: {
|
|
1532
1539
|
[_kubb_plugin_ts.pluginTsName]: { optional: true },
|