New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.28 to 0.1.29

2

package.json
{
"name": "lambdaorm-base",
"version": "0.1.28",
"version": "0.1.29",
"description": "ORM",

@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>",

@@ -75,2 +75,6 @@ "use strict";

else {
const fkValue = value[fk.name];
if (fkValue !== undefined) {
row[propertyName] = fkValue;
}
const schemaEntityData = this.getSchemaEntityData(schemaData, relatedEntityName);

@@ -80,12 +84,7 @@ if (relatedPkName === '_id') {

}
else if (schemaEntityData.rows.some(p => p[relatedPkName] === value[relatedPkName])) {
// En el caso de que el id ya exista, no se añade la fila
continue;
else if (!schemaEntityData.rows.some(p => p[relatedPkName] === value[relatedPkName])) {
// En el caso que el registro no exista, se añade
const childRow = this.objectToRow(schemaData, prop.type.obj, value, relatedEntityName, relatedPkName);
schemaEntityData.rows.push(childRow);
}
const childRow = this.objectToRow(schemaData, prop.type.obj, value, relatedEntityName, relatedPkName);
const fkValue = value[fk.name];
if (fkValue !== undefined) {
row[propertyName] = fkValue;
}
schemaEntityData.rows.push(childRow);
}

@@ -92,0 +91,0 @@ }

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