New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

p-odm

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-odm - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

22

lib/model.js

@@ -1397,26 +1397,16 @@ 'use strict';

var i;
var _ids = ids;
var pluck = extractOption('pluck', options);
if (pluck !== undefined) {
_ids = [];
for (i = 0; i < ids.length; i++) {
_ids[i] = ids[i][pluck];
}
}
for (i = 0; i < _ids.length; i++) {
if (!(_ids[i] instanceof ObjectID)) {
for (i = 0; i < ids.length; i++) {
if (!(ids[i] instanceof ObjectID)) {
return callback('Non ObjectId in the array');
}
if (index[_ids[i].toHexString()] === undefined) {
index[_ids[i].toHexString()] = [i];
if (index[ids[i].toHexString()] === undefined) {
index[ids[i].toHexString()] = [i];
} else {
index[_ids[i].toHexString()].push(i);
index[ids[i].toHexString()].push(i);
}
}
this.find({_id: {'$in': _ids}}, fields, options, function (err, models) {
this.find({_id: {'$in': ids}}, fields, options, function (err, models) {
if (err) {

@@ -1423,0 +1413,0 @@ return callback(err);

@@ -8,3 +8,3 @@ {

],
"version": "0.0.14",
"version": "0.0.15",
"engines": {

@@ -11,0 +11,0 @@ "node": ">=0.4.12"

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