lambdaorm-base
Advanced tools
Comparing version 0.1.23 to 0.1.24
{ | ||
"name": "lambdaorm-base", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"description": "ORM", | ||
@@ -24,3 +24,3 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>", | ||
"dependencies": { | ||
"h3lp": "^1.6.3", | ||
"h3lp": "^1.7.0", | ||
"typ3s": "^0.1.16", | ||
@@ -27,0 +27,0 @@ "3xpr": "^1.15.10", |
@@ -13,2 +13,3 @@ import { AppPathsConfig, ApplicationSchema, InfrastructureSchema, DomainSchema, Schema, EntityType } from '../../domain'; | ||
private typeToEntities; | ||
private getEntityName; | ||
private objTypeToEntities; | ||
@@ -15,0 +16,0 @@ private getLength; |
@@ -58,2 +58,6 @@ "use strict"; | ||
} | ||
getEntityName(name) { | ||
const plural = this.helper.str.plural(name); | ||
return this.helper.str.capitalize(plural); | ||
} | ||
objTypeToEntities(name, objType) { | ||
@@ -64,3 +68,4 @@ var _a, _b; | ||
const primaryKey = pk ? [pk.name] : []; | ||
const entity = { name, primaryKey, properties: [], uniqueKey: [], required: [], indexes: [], relations: [], dependents: [] }; | ||
const entityName = this.getEntityName(name); | ||
const entity = { name: entityName, primaryKey, properties: [], uniqueKey: [], required: [], indexes: [], relations: [], dependents: [] }; | ||
for (const prop of objType.properties) { | ||
@@ -67,0 +72,0 @@ if (prop.type && typ3s_1.Type.isPrimitive(prop.type)) { |
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
224235
3561
Updatedh3lp@^1.7.0