🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

unimapperjs

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unimapperjs - npm Package Compare versions

Comparing version

to
1.1.4

2

package.json
{
"name": "unimapperjs",
"version": "1.1.3",
"version": "1.1.4",
"description": "Universal node.js (native ES6/ES7) LINQ-like object mapper (ORM/ODM) for all types of databases (SQL, NoSQL).",

@@ -5,0 +5,0 @@ "author": {

@@ -125,7 +125,7 @@ "use strict";

}
await this.domain.__adapter.remove(this, {
field: "id",
func: "=",
arg: entity.__properties[ID_FIELD_NAME]
}, connection);
await this.domain.__adapter.remove(this, [{
field: ID_FIELD_NAME,
func: "=",
arg: entity.__properties[ID_FIELD_NAME]
}], connection);
entity.__isRemoved = true;

@@ -286,3 +286,4 @@ }

for (let field in data) {
if (data.hasOwnProperty(field)) {
if (data.hasOwnProperty(field)
&& field in this.constructor._description) {
if (this[field] !== data[field] && field != ID_FIELD_NAME) {

@@ -289,0 +290,0 @@ this.__changedProps[field] = data[field];

@@ -208,7 +208,7 @@ import {Query} from "./Query";

await (<any>this.domain).__adapter.remove(this, {
field: "id",
await (<any>this.domain).__adapter.remove(this, [{
field: ID_FIELD_NAME,
func: "=",
arg: entity.__properties[ID_FIELD_NAME]
}, connection);
}], connection);
entity.__isRemoved = true;

@@ -429,3 +429,4 @@ }

{
if (data.hasOwnProperty(field))
if (data.hasOwnProperty(field)
&& field in (<typeof Entity>this.constructor)._description)
{

@@ -432,0 +433,0 @@ if (this[field] !== data[field] && field != ID_FIELD_NAME)

Sorry, the diff of this file is not supported yet