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

@spinajs/orm

Package Overview
Dependencies
Maintainers
1
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/orm - npm Package Compare versions

Comparing version 1.2.121 to 1.2.122

6

lib/relations.js

@@ -528,3 +528,3 @@ "use strict";

const driver = this.Orm.Connections.get(this.TargetModelDescriptor.Connection);
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.map((x) => x.PrimaryKeyValue));
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.filter((x) => x.PrimaryKeyValue).map((x) => x.PrimaryKeyValue));
this.empty();

@@ -535,3 +535,3 @@ await this.add(result);

const driver = this.Orm.Connections.get(this.TargetModelDescriptor.Connection);
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, obj.map((x) => x.PrimaryKeyValue));
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, obj.filter((x) => x.PrimaryKeyValue).map((x) => x.PrimaryKeyValue));
this.empty();

@@ -543,3 +543,3 @@ await this.add(obj);

const driver = this.Orm.Connections.get(this.TargetModelDescriptor.Connection);
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.map((x) => x.PrimaryKeyValue));
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.filter((x) => x.PrimaryKeyValue).map((x) => x.PrimaryKeyValue));
this.empty();

@@ -546,0 +546,0 @@ await this.add(result);

{
"name": "@spinajs/orm",
"version": "1.2.121",
"version": "1.2.122",
"description": "framework orm module",

@@ -55,3 +55,3 @@ "main": "lib/index.js",

},
"gitHead": "1242eec47ba5d4a5d9efec1250ce5080106376a8"
"gitHead": "a76edeab563930be0f850424f37fb88f47a8e667"
}

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