Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-simple-collectionmodel

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-simple-collectionmodel - npm Package Compare versions

Comparing version 1.3.13 to 1.3.14

18

lib/collectionModel.js

@@ -326,2 +326,7 @@ 'use strict';

const dataObject = { ...$dataObject };
let debug;
if ($opts.debug) {
debug = $opts.debug;
delete $opts.debug;
}
// If dataObject is still empty, bail out

@@ -352,8 +357,11 @@ if (typeof dataObject === 'undefined') {

};
// console.log('collectionModel.dataObject:', dataObject);
// console.log('collectionModel.query:', query);
if (debug) {
console.log('collectionModel.dataObject:', dataObject);
console.log('collectionModel.query:', query);
}
this.Model.findOneAndUpdate(query, dataObject, opts, (err, document) => {
// console.log('collectionModel.findOneAndUpdate.err:', err);
// console.log('collectionModel.findOneAndUpdate.document:', document);
if (debug) {
console.log('collectionModel.findOneAndUpdate.err:', err);
console.log('collectionModel.findOneAndUpdate.document:', document);
}
if (err) {

@@ -360,0 +368,0 @@ return reject(err);

{
"name": "node-simple-collectionmodel",
"description": "A simpel and nice collection model for mongoose stuff.",
"version": "1.3.13",
"version": "1.3.14",
"homepage": "https://github.com/5orenso/node-simple-collectionmodel",

@@ -6,0 +6,0 @@ "repository": {

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