@ovotech/laminar-cli
Advanced tools
Comparing version 0.13.20 to 0.13.21
@@ -15,3 +15,3 @@ "use strict"; | ||
.createCommand('laminar') | ||
.version('0.13.20') | ||
.version('0.13.21') | ||
.description(`Laminar CLI - a tool for converting OpenApi and Avro Schemas to appropriate typescript types | ||
@@ -18,0 +18,0 @@ |
@@ -111,3 +111,3 @@ "use strict"; | ||
}); | ||
return (0, ts_compose_1.document)(props.context, ts_compose_1.Type.TypeLiteral({ | ||
const type = ts_compose_1.Type.TypeLiteral({ | ||
props: props.items, | ||
@@ -117,3 +117,4 @@ index: additional.type === ts_compose_1.Type.Void | ||
: ts_compose_1.Type.Index({ name: 'key', nameType: ts_compose_1.Type.String, type: additional.type }), | ||
})); | ||
}); | ||
return (0, ts_compose_1.document)(props.context, schema.nullable ? ts_compose_1.Type.Union([type, ts_compose_1.Type.Undefined]) : type); | ||
} | ||
@@ -120,0 +121,0 @@ else { |
{ | ||
"name": "@ovotech/laminar-cli", | ||
"version": "0.13.20", | ||
"version": "0.13.21", | ||
"main": "dist/index.js", | ||
@@ -13,3 +13,3 @@ "types": "dist/index.d.ts", | ||
"@ikerin/build-readme": "^1.1.1", | ||
"@ovotech/laminar": "0.13.13", | ||
"@ovotech/laminar": "0.13.16", | ||
"@types/jest": "^27.4.0", | ||
@@ -16,0 +16,0 @@ "@types/node": "^14.18.9", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108920
1835