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

mysql-records

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

mysql-records - npm Package Compare versions

Comparing version

to
0.5.3

5

lib/index.js

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

case 4:
this[key2null] = [];
this[keysToNullSymbol] = [];
return [4 /*yield*/, this.processLinks()];

@@ -436,2 +436,3 @@ case 5:

var pk = db.primaryKey;
var self = this;
if (pk == null)

@@ -441,3 +442,3 @@ return new Promise(function (t, f) { f(new Error("This operation is not available for models without primary key")); });

filter[pk] = id;
return Model.findOne(filter);
return self.findOne(filter);
};

@@ -444,0 +445,0 @@ Model.remove = function (filter) {

6

lib/index.ts

@@ -282,3 +282,3 @@ import * as mysqlconn from 'mysql';

}
this[key2null] = [];
this[keysToNullSymbol] = [];
await this.processLinks();

@@ -290,6 +290,6 @@ }

var pk = db.primaryKey;
var self: any = this;
if (pk == null) return new Promise((t, f) => { f(new Error("This operation is not available for models without primary key")) });
var filter = {}; filter[pk] = id;
return Model.findOne(filter);
return self.findOne(filter);
}

@@ -296,0 +296,0 @@

{
"name": "mysql-records",
"version": "0.5.2",
"version": "0.5.3",
"description": "Simple MySQL ORM",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",