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

mongo-control

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-control - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

9

mongo.control.js

@@ -380,3 +380,3 @@ var MongoClient = require('mongodb').MongoClient;

return new Promise(function(res, err) {
if (!params.db || !params.collection || !params.field) return err("!params.db || !params.collection || !params.field");
if (!params.db || !params.collection || (!params.field && !params.fields)) return err("!params.db || !params.collection || !params.field(s)");

@@ -398,4 +398,9 @@ if (params.query) {

var unsetObj = {};
unsetObj[params.field] = "";
if(params.fields) {
params.fields.forEach(function (a) {
unsetObj[a] = "";
});
} else unsetObj[params.field] = "";
db.collection(params.collection).updateMany(params.query, {

@@ -402,0 +407,0 @@ "$unset": unsetObj

{
"name": "mongo-control",
"version": "1.0.11",
"version": "1.0.12",
"description": "Simple functions to control mongo",

@@ -5,0 +5,0 @@ "main": "mongo.control.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