Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambdaorm-base

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdaorm-base - npm Package Compare versions

Comparing version 0.1.23 to 0.1.24

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc