Socket
Socket
Sign inDemoInstall

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.21 to 0.1.22

4

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

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