Huge News!Announcing our $40M Series B led by Abstract Ventures.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.17 to 0.0.18

19

lib/model.js

@@ -1527,2 +1527,3 @@ 'use strict';

Model[methodName] = function (id, options, callback) {
if (callback === undefined) {

@@ -1541,2 +1542,8 @@ callback = options;

var includeNotFound = true;
if (options.unique !== undefined && options.unique === true) {
includeNotFound = false;
}
var _id;

@@ -1559,3 +1566,7 @@ var directObject = extractOption('directObject', options);

if (cachedDocument === null) {
return callback(null, null);
if (includeNotFound) {
return callback(null, null);
} else {
return callback(mongoCollection + ' ' + _id + ' not found');
}
}

@@ -1592,3 +1603,7 @@

if (documentLoaded === null) {
return callback(null, null);
if (includeNotFound) {
return callback(null, null);
} else {
return callback(mongoCollection + ' ' + _id + ' not found');
}
}

@@ -1595,0 +1610,0 @@

2

package.json

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

],
"version": "0.0.17",
"version": "0.0.18",
"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