@contember/schema-utils
Advanced tools
Comparing version 1.2.0-beta.1 to 1.2.0-beta.2
import { Schema } from '@contember/schema'; | ||
import * as Typesafe from '@contember/typesafe'; | ||
export * from './definition-generator'; | ||
export * from './lax'; | ||
export * from './model'; | ||
@@ -4,0 +6,0 @@ export * from './acl'; |
@@ -33,2 +33,4 @@ "use strict"; | ||
const type_schema_1 = require("./type-schema"); | ||
__exportStar(require("./definition-generator"), exports); | ||
__exportStar(require("./lax"), exports); | ||
__exportStar(require("./model"), exports); | ||
@@ -35,0 +37,0 @@ __exportStar(require("./acl"), exports); |
export * from './modelUtils'; | ||
export * from './NamingHelper'; | ||
export * from './resolveDefaultColumnType'; | ||
export * from './NamingConventions'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -19,2 +19,4 @@ "use strict"; | ||
__exportStar(require("./NamingHelper"), exports); | ||
__exportStar(require("./resolveDefaultColumnType"), exports); | ||
__exportStar(require("./NamingConventions"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -120,3 +120,3 @@ "use strict"; | ||
const columnSchemaCheck = true; | ||
const fieldSchema = Typesafe.discriminatedUnion('type', oneHasOneInverseRelationSchema, oneHasOneOwningRelationSchema, oneHasManyRelationSchema, manyHasOneRelationSchema, manyHasManyInverseRelationSchema, manyHasManyOwningRelationSchema, columnSchema); | ||
const fieldSchema = Typesafe.partiallyDiscriminatedUnion('type', oneHasOneInverseRelationSchema, oneHasOneOwningRelationSchema, oneHasManyRelationSchema, manyHasOneRelationSchema, manyHasManyInverseRelationSchema, manyHasManyOwningRelationSchema, columnSchema); | ||
const viewSchemaInner = Typesafe.intersection(Typesafe.object({ | ||
@@ -123,0 +123,0 @@ sql: Typesafe.string, |
{ | ||
"name": "@contember/schema-utils", | ||
"version": "1.2.0-beta.1", | ||
"version": "1.2.0-beta.2", | ||
"license": "Apache-2.0", | ||
@@ -11,4 +11,4 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@contember/schema": "^1.2.0-beta.1", | ||
"@contember/typesafe": "^1.2.0-beta.1" | ||
"@contember/schema": "^1.2.0-beta.2", | ||
"@contember/typesafe": "^1.2.0-beta.2" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
@@ -6,2 +6,4 @@ import { Schema } from '@contember/schema' | ||
export * from './definition-generator' | ||
export * from './lax' | ||
export * from './model' | ||
@@ -8,0 +10,0 @@ export * from './acl' |
export * from './modelUtils' | ||
export * from './NamingHelper' | ||
export * from './resolveDefaultColumnType' | ||
export * from './NamingConventions' |
@@ -128,3 +128,3 @@ import * as Typesafe from '@contember/typesafe' | ||
const fieldSchema: Typesafe.Type<Model.AnyField> = Typesafe.discriminatedUnion( | ||
const fieldSchema: Typesafe.Type<Model.AnyField> = Typesafe.partiallyDiscriminatedUnion( | ||
'type', | ||
@@ -131,0 +131,0 @@ oneHasOneInverseRelationSchema, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
492692
230
6996
2