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

modli-nedb

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modli-nedb - npm Package Compare versions

Comparing version

to
2.0.1

24

build/index.js

@@ -48,12 +48,4 @@ 'use strict';

// Test validation
var validationErrors = this.validate(body, version);
// Return promise
return new Promise(function (resolve, reject) {
/* istanbul ignore if */
if (validationErrors) {
reject(validationErrors);
} else {
resolve(_this.db.insertAsync(body));
}
return this.validate(body, version).then(function (data) {
return _this.db.insertAsync(data);
});

@@ -102,12 +94,4 @@ }

// Test validation
var validationErrors = this.validate(body, version);
// Return promise
return new Promise(function (resolve, reject) {
/* istanbul ignore if */
if (validationErrors) {
reject(validationErrors);
} else {
resolve(_this3.db.updateAsync(query, { $set: body }, { multi: true }));
}
return this.validate(body, version).then(function (data) {
return _this3.db.updateAsync(query, { $set: data }, { multi: true });
});

@@ -114,0 +98,0 @@ }

4

package.json
{
"name": "modli-nedb",
"version": "2.0.0",
"version": "2.0.1",
"description": "Modli adapter for NeDB",

@@ -31,3 +31,3 @@ "main": "build/index.js",

"babel": "^5.6.14",
"babel-eslint": "^4.0.5",
"babel-eslint": "~4.1.7",
"babel-istanbul": "^0.3.17",

@@ -34,0 +34,0 @@ "body-parser": "^1.13.3",