@kubb/plugin-zod 3.0.0-alpha.7 → 3.0.0-alpha.8
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/{chunk-VSAW3SUC.js → chunk-CD3EZWBX.js} +12 -12
- package/dist/chunk-CD3EZWBX.js.map +1 -0
- package/dist/{chunk-PXJ5ZGKW.cjs → chunk-TSJ74266.cjs} +12 -12
- package/dist/chunk-TSJ74266.cjs.map +1 -0
- package/dist/components.cjs +3 -3
- package/dist/components.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +1 -1
- package/package.json +12 -12
- package/src/components/Operations.tsx +2 -2
- package/src/components/Schema.tsx +3 -3
- package/dist/chunk-PXJ5ZGKW.cjs.map +0 -1
- package/dist/chunk-VSAW3SUC.js.map +0 -1
package/dist/components.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTSJ74266cjs = require('./chunk-TSJ74266.cjs');
|
|
7
7
|
|
|
8
8
|
// src/components/index.ts
|
|
9
|
-
|
|
9
|
+
_chunkTSJ74266cjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.OperationSchema =
|
|
14
|
+
exports.OperationSchema = _chunkTSJ74266cjs.OperationSchema; exports.Operations = _chunkTSJ74266cjs.Operations; exports.Schema = _chunkTSJ74266cjs.Schema;
|
|
15
15
|
//# sourceMappingURL=components.cjs.map
|
package/dist/components.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTSJ74266cjs = require('./chunk-TSJ74266.cjs');
|
|
6
6
|
|
|
7
7
|
// src/index.ts
|
|
8
|
-
|
|
8
|
+
_chunkTSJ74266cjs.init_cjs_shims.call(void 0, );
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.pluginZod =
|
|
12
|
+
exports.pluginZod = _chunkTSJ74266cjs.pluginZod; exports.pluginZodName = _chunkTSJ74266cjs.pluginZodName;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-zod",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.8",
|
|
4
4
|
"description": "Generator plugin-zod",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -56,25 +56,25 @@
|
|
|
56
56
|
"!/**/__tests__/**"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@kubb/core": "3.0.0-alpha.
|
|
60
|
-
"@kubb/fs": "3.0.0-alpha.
|
|
61
|
-
"@kubb/oas": "3.0.0-alpha.
|
|
62
|
-
"@kubb/parser-ts": "3.0.0-alpha.
|
|
63
|
-
"@kubb/plugin-oas": "3.0.0-alpha.
|
|
64
|
-
"@kubb/react": "3.0.0-alpha.
|
|
65
|
-
"@kubb/types": "3.0.0-alpha.
|
|
59
|
+
"@kubb/core": "3.0.0-alpha.8",
|
|
60
|
+
"@kubb/fs": "3.0.0-alpha.8",
|
|
61
|
+
"@kubb/oas": "3.0.0-alpha.8",
|
|
62
|
+
"@kubb/parser-ts": "3.0.0-alpha.8",
|
|
63
|
+
"@kubb/plugin-oas": "3.0.0-alpha.8",
|
|
64
|
+
"@kubb/react": "3.0.0-alpha.8",
|
|
65
|
+
"@kubb/types": "3.0.0-alpha.8"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/react": "^18.3.4",
|
|
69
69
|
"prettier": "^3.3.3",
|
|
70
70
|
"react": "^18.3.1",
|
|
71
71
|
"tsup": "^8.2.4",
|
|
72
|
-
"@kubb/config-biome": "3.0.0-alpha.
|
|
73
|
-
"@kubb/config-ts": "3.0.0-alpha.
|
|
74
|
-
"@kubb/config-tsup": "3.0.0-alpha.
|
|
72
|
+
"@kubb/config-biome": "3.0.0-alpha.8",
|
|
73
|
+
"@kubb/config-ts": "3.0.0-alpha.8",
|
|
74
|
+
"@kubb/config-tsup": "3.0.0-alpha.8"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@kubb/react": "3.0.0-alpha.
|
|
77
|
+
"@kubb/react": "3.0.0-alpha.8"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=20"
|
|
@@ -46,12 +46,12 @@ function Template({ operationsName, pathsName, operations }: TemplateProps): Kub
|
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
48
|
<>
|
|
49
|
-
<File.Source name={operationsName} isExportable>
|
|
49
|
+
<File.Source name={operationsName} isExportable isIndexable>
|
|
50
50
|
<Const export name={operationsName} asConst>
|
|
51
51
|
{`{${transformers.stringifyObject(operationsJSON)}}`}
|
|
52
52
|
</Const>
|
|
53
53
|
</File.Source>
|
|
54
|
-
<File.Source name={pathsName} isExportable>
|
|
54
|
+
<File.Source name={pathsName} isExportable isIndexable>
|
|
55
55
|
<Const export name={pathsName} asConst>
|
|
56
56
|
{`{${transformers.stringifyObject(pathsJSON)}}`}
|
|
57
57
|
</Const>
|
|
@@ -46,7 +46,7 @@ export function Schema(props: Props): ReactNode {
|
|
|
46
46
|
|
|
47
47
|
if (!tree.length) {
|
|
48
48
|
return (
|
|
49
|
-
<File.Source name={resolvedName} isExportable>
|
|
49
|
+
<File.Source name={resolvedName} isExportable isIndexable>
|
|
50
50
|
<Const
|
|
51
51
|
name={resolvedName}
|
|
52
52
|
export
|
|
@@ -79,7 +79,7 @@ export function Schema(props: Props): ReactNode {
|
|
|
79
79
|
|
|
80
80
|
return (
|
|
81
81
|
<>
|
|
82
|
-
<File.Source name={resolvedName} isExportable>
|
|
82
|
+
<File.Source name={resolvedName} isExportable isIndexable>
|
|
83
83
|
<Const
|
|
84
84
|
export
|
|
85
85
|
name={resolvedName}
|
|
@@ -97,7 +97,7 @@ export function Schema(props: Props): ReactNode {
|
|
|
97
97
|
</Const>
|
|
98
98
|
</File.Source>
|
|
99
99
|
{typedSchema && (
|
|
100
|
-
<File.Source name={resolvedTypeName} isExportable isTypeOnly>
|
|
100
|
+
<File.Source name={resolvedTypeName} isExportable isIndexable isTypeOnly>
|
|
101
101
|
<Type export name={resolvedTypeName}>
|
|
102
102
|
{`z.infer<typeof ${resolvedName}>`}
|
|
103
103
|
</Type>
|