Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 1.0.1 to 1.1.0

16

build/index.js

@@ -52,6 +52,20 @@ 'use strict';

* @param {Object} query Specific id or query to construct read
* @param {Number|String} version The version of the model to match
* @returns {Object} promise
*/
nedb.read = function (query) {
return nedb.db.findAsync(query);
var version = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
var sanitize = this.sanitize;
return new Promise(function (resolve, reject) {
nedb.db.findAsync(query).then(function (results) {
var tmp = [];
results.forEach(function (r) {
tmp.push(sanitize(r, version));
});
resolve(tmp);
})['catch'](function (err) {
return reject(err);
});
});
};

@@ -58,0 +72,0 @@

2

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

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

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