lambdaorm-base
Advanced tools
Comparing version 0.1.21 to 0.1.22
{ | ||
"name": "lambdaorm-base", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "ORM", | ||
@@ -24,3 +24,3 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>", | ||
"dependencies": { | ||
"h3lp": "^1.6.1", | ||
"h3lp": "^1.6.3", | ||
"typ3s": "^0.1.16", | ||
@@ -27,0 +27,0 @@ "3xpr": "^1.15.10", |
@@ -114,5 +114,9 @@ "use strict"; | ||
const parentPropertyName = this.helper.str.notation(entity.name, 'camel') + this.helper.str.capitalize(pk.name); | ||
const parentProperty = { name: parentPropertyName, type: pk.type.primitive, required: true }; | ||
const parentPropertyLength = this.getLength(pk.type); | ||
const parentPropertyType = pk.type.primitive === 'string' && parentPropertyLength === undefined ? 'text' : pk.type.primitive; | ||
const parentProperty = { name: parentPropertyName, type: parentPropertyType, length: parentPropertyLength, required: true }; | ||
const childPropertyName = this.helper.str.singular(this.helper.str.notation(relatedEntity.name, 'camel')) + this.helper.str.capitalize(rpk.name); | ||
const childProperty = { name: childPropertyName, type: rpk.type.primitive, required: true }; | ||
const childPropertyLength = this.getLength(rpk.type); | ||
const childPropertyType = rpk.type.primitive === 'string' && childPropertyLength === undefined ? 'text' : rpk.type.primitive; | ||
const childProperty = { name: childPropertyName, type: childPropertyType, length: childPropertyLength, required: true }; | ||
const intermediaEntityName = entity.name + this.helper.str.capitalize(prop.name); | ||
@@ -119,0 +123,0 @@ const intermediaPropertyPk = { name: 'id', type: 'integer', required: true, autoIncrement: true }; |
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
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
223728
3557
Updatedh3lp@^1.6.3