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.74 to 1.0.75

10

mongo.control.js

@@ -1083,2 +1083,3 @@ var MongoClient = require('mongodb').MongoClient

objId = new ObjectID(params.id)
params.query._id = objId
} catch (idErr) {

@@ -1105,5 +1106,3 @@ console.warn(idErr)

db.collection(params.collection).updateMany({
_id: objId || params.id
}, {
db.collection(params.collection).updateMany(params.query, {
'$unset': unsetObj

@@ -1117,5 +1116,4 @@ }, function (e, r) {

} else {
db.collection(params.collection).updateMany({
_id: params.id
}, {
params.query._id = params.id
db.collection(params.collection).updateMany(params.query, {
'$unset': unsetObj

@@ -1122,0 +1120,0 @@ }, function (e, r) {

2

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