@kubb/plugin-client 6.0.0 → 6.0.2
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/dist/{client-Dq0z61hu.d.ts → client-C-0-puI2.d.ts} +2 -2
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +10 -11
- package/dist/index.js.map +1 -1
- package/dist/templates/client.d.ts +2 -2
- package/dist/templates/core.d.ts +2 -2
- package/dist/templates/mediaTypes/formData.d.ts +1 -1
- package/dist/templates/mediaTypes/urlencoded.d.ts +1 -1
- package/dist/templates/mediaTypes.d.ts +1 -1
- package/dist/templates/serializers/cookies.d.ts +1 -1
- package/dist/templates/serializers/headers.d.ts +1 -1
- package/dist/templates/serializers/path.d.ts +1 -1
- package/dist/templates/serializers/pathStyles.d.ts +1 -1
- package/dist/templates/serializers/query.d.ts +1 -1
- package/dist/templates/serializers/queryStyles.d.ts +1 -1
- package/dist/templates/serializers.d.ts +118 -2
- package/dist/templates/sse.d.ts +1 -1
- package/dist/templates/standardSchema.d.ts +81 -2
- package/docs/guides/authentication.md +3 -1
- package/docs/guides/calling-operations.md +10 -6
- package/docs/guides/validate-requests-and-responses.md +5 -5
- package/docs/guides/write-your-client.md +1 -1
- package/docs/options.md +3 -1
- package/docs/overview.md +2 -0
- package/kubb-extension.json +20 -2
- package/package.json +5 -5
- package/src/clientTypes.ts +3 -3
- package/src/generators/sdkGenerator.tsx +2 -3
- package/dist/serializers-BRgfPGr1.d.ts +0 -119
- package/dist/standardSchema-CGuiSK7F.d.ts +0 -82
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HeadersInit, HttpMethod, RequestBody, Serializers, Styles } from "./templates/serializers.js";
|
|
2
|
+
import { StandardSchemaValidator, ValidateOption, ValidationErrorHandler } from "./templates/standardSchema.js";
|
|
3
3
|
/**
|
|
4
4
|
* What a media type handler gets next to the body.
|
|
5
5
|
*/
|
package/dist/index.cjs
CHANGED
|
@@ -37,7 +37,7 @@ var compatibility = {
|
|
|
37
37
|
"node": ">=22.22"
|
|
38
38
|
};
|
|
39
39
|
// package.json
|
|
40
|
-
var version = "6.0.
|
|
40
|
+
var version = "6.0.2";
|
|
41
41
|
// ../../internals/utils/src/reserved.ts
|
|
42
42
|
/**
|
|
43
43
|
* JavaScript and Java reserved words.
|
|
@@ -1669,8 +1669,7 @@ function collectImportsByFile(ops, pick) {
|
|
|
1669
1669
|
ops.forEach((op) => {
|
|
1670
1670
|
const { file, names } = pick(op);
|
|
1671
1671
|
if (!file || names.length === 0) return;
|
|
1672
|
-
|
|
1673
|
-
const set = namesByPath.get(file.path);
|
|
1672
|
+
const set = (0, _kubb_kit.memo)(namesByPath, file.path, () => /* @__PURE__ */ new Set());
|
|
1674
1673
|
names.forEach((n) => set.add(n));
|
|
1675
1674
|
filesByPath.set(file.path, file);
|
|
1676
1675
|
});
|