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.42 to 1.0.43

15

mongo.control.js

@@ -173,5 +173,5 @@ var MongoClient = require('mongodb').MongoClient

if(doc.field) {
if(uniq[doc.field]) nonUniq[doc.field] = true
else uniq[doc.field] = true
if(params.field) {
if(uniq[doc[params.field]]) nonUniq[doc[params.field]] = true
else uniq[doc[params.field]] = true
}

@@ -219,7 +219,7 @@ })

if(doc.field === undefined) doc.field = 'undefined'
if(doc.field === null) doc.field = 'null'
if(doc[params.field] === undefined) doc[params.field] = 'undefined'
if(doc[params.field] === null) doc[params.field] = 'null'
if(uniq[doc.field]) uniq[doc.field]++
else uniq[doc.field] = 1
if(uniq[doc[params.field]]) uniq[doc[params.field]]++
else uniq[doc[params.field]] = 1
})

@@ -230,2 +230,3 @@ })

MC.each = function (params) {

@@ -232,0 +233,0 @@ return new Promise(function (res, err) {

{
"name": "mongo-control",
"version": "1.0.42",
"version": "1.0.43",
"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