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.13 to 1.0.14

20

mongo.control.js

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

db.collection(params.collection).insert(params.data, {keepGoing: params.keepGoing}, function(e, r) {
db.collection(params.collection).insert(params.data, {
keepGoing: params.keepGoing
}, function(e, r) {
if (e) return err(e);

@@ -394,2 +396,12 @@

if (params.id) {
if (reMongoId.test(params.id)) {
try {
params.query._id = new ObjectID(params.id);
} catch (idErr) {
console.warn(idErr);
}
} else params.query._id = params.id;
}
MongoClient.connect(params.db, function(e, db) {

@@ -400,7 +412,7 @@ if (e) return err(e);

if(params.fields) {
if(typeof params.fields == "string")
if (params.fields) {
if (typeof params.fields == "string")
params.fields = JSON.parse(params.fields);
params.fields.forEach(function (a) {
params.fields.forEach(function(a) {
unsetObj[a] = "";

@@ -407,0 +419,0 @@ });

2

package.json
{
"name": "mongo-control",
"version": "1.0.13",
"version": "1.0.14",
"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