@kubb/plugin-ts 3.4.0 → 3.4.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/{chunk-ERXICOY4.js → chunk-2YTCTJWU.js} +3 -3
- package/dist/{chunk-ERXICOY4.js.map → chunk-2YTCTJWU.js.map} +1 -1
- package/dist/{chunk-FW6ZCHXE.cjs → chunk-NKFTP2AF.cjs} +3 -3
- package/dist/{chunk-FW6ZCHXE.cjs.map → chunk-NKFTP2AF.cjs.map} +1 -1
- package/dist/{chunk-EN5U6PAU.js → chunk-Q4ZWQVCK.js} +13 -6
- package/dist/chunk-Q4ZWQVCK.js.map +1 -0
- package/dist/{chunk-X34DKP5X.cjs → chunk-YYI2WXOY.cjs} +21 -14
- package/dist/chunk-YYI2WXOY.cjs.map +1 -0
- package/dist/components.cjs +3 -3
- package/dist/components.js +1 -1
- package/dist/generators.cjs +4 -4
- package/dist/generators.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.js +2 -2
- package/package.json +9 -9
- package/src/generators/typeGenerator.tsx +1 -1
- package/src/parser.ts +1 -1
- package/src/plugin.ts +9 -2
- package/dist/chunk-EN5U6PAU.js.map +0 -1
- package/dist/chunk-X34DKP5X.cjs.map +0 -1
|
@@ -2375,7 +2375,7 @@ function parse({ parent, current, siblings }, options) {
|
|
|
2375
2375
|
const minSchema = schemas.find((schema) => schema.keyword === schemaKeywords.min);
|
|
2376
2376
|
const maxSchema = schemas.find((schema) => schema.keyword === schemaKeywords.max);
|
|
2377
2377
|
const matchesSchema = schemas.find((schema) => schema.keyword === schemaKeywords.matches);
|
|
2378
|
-
let type = schemas.map((schema) => parse({ parent: current, current: schema, siblings }, options)).filter(Boolean)[0];
|
|
2378
|
+
let type = schemas.map((schema) => parse({ parent: current, current: schema, siblings: schemas }, options)).filter(Boolean)[0];
|
|
2379
2379
|
if (isNullable) {
|
|
2380
2380
|
type = factory.createUnionDeclaration({
|
|
2381
2381
|
nodes: [type, factory.keywordTypeNodes.null]
|
|
@@ -2556,5 +2556,5 @@ react/cjs/react.development.js:
|
|
|
2556
2556
|
*/
|
|
2557
2557
|
|
|
2558
2558
|
export { OasType, Type2 as Type, init_esm_shims };
|
|
2559
|
-
//# sourceMappingURL=chunk-
|
|
2560
|
-
//# sourceMappingURL=chunk-
|
|
2559
|
+
//# sourceMappingURL=chunk-2YTCTJWU.js.map
|
|
2560
|
+
//# sourceMappingURL=chunk-2YTCTJWU.js.map
|