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.1 to 1.0.2

31

mongo.control.js

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

var MH = module.exports = {};
var MC = module.exports = {};
MH.count = function(params) {
MC.count = function(params) {
return new Promise(function(res, err) {

@@ -36,3 +37,3 @@ if (!params.db || !params.collection) return err("!params.db || !params.collection");

MH.find = function(params) {
MC.find = function(params) {
return new Promise(function(res, err) {

@@ -67,3 +68,3 @@ if (!params.db || !params.collection) return err("!params.db || !params.collection");

MH.insert = function(params) {
MC.insert = function(params) {
return new Promise(function(res, err) {

@@ -104,3 +105,3 @@

MH.updateById = function(params) {
MC.updateById = function(params) {

@@ -162,3 +163,3 @@ return new Promise(function(res, err) {

MH.removeById = function(params) {
MC.removeById = function(params) {
return new Promise(function(res, err) {

@@ -215,3 +216,3 @@ if (!params.db || !params.collection || !params.id) return err("!params.db || !params.collection || !params.id");

MH.dropCollection = function(params) {
MC.dropCollection = function(params) {
return new Promise(function(res, err) {

@@ -234,3 +235,3 @@ if (!params.db || !params.collection) return err("!params.db || !params.collection");

MH.distinct = function(params) {
MC.distinct = function(params) {
return new Promise(function(res, err) {

@@ -253,3 +254,3 @@ if (!params.db || !params.collection || !params.field) return err("!params.db || !params.collection || !params.field");

MH.remove = function(params) {
MC.remove = function(params) {
return new Promise(function(res, err) {

@@ -281,3 +282,3 @@ if (!params.db || !params.collection) return err("!params.db || !params.collection");

MH.rename = function(params) {
MC.rename = function(params) {
return new Promise(function(res, err) {

@@ -316,3 +317,3 @@ if (!params.db || !params.collection || !params.old || !params.new) return err("!params.db || !params.collection || !params.old || !params.new");

MH.unsetField = function(params) {
MC.unsetField = function(params) {
return new Promise(function(res, err) {

@@ -351,3 +352,3 @@ if (!params.db || !params.collection || !params.field) return err("!params.db || !params.collection || !params.field");

MH.listCollections = function(params) {
MC.listCollections = function(params) {
return new Promise(function(res, err) {

@@ -368,3 +369,3 @@ MongoClient.connect(params.db, function(e, db) {

MH.dbStats = function(params) {
MC.dbStats = function(params) {
return new Promise(function(res, err) {

@@ -385,3 +386,3 @@ MongoClient.connect(params.db, function(e, db) {

MH.collectionStats = function(params) {
MC.collectionStats = function(params) {
return new Promise(function(res, err) {

@@ -402,3 +403,3 @@ MongoClient.connect(params.db, function(e, db) {

MH.listDatabases = function(params) {
MC.listDatabases = function(params) {
return new Promise(function(res, err) {

@@ -405,0 +406,0 @@ MongoClient.connect(params.db, function(e, db) {

{
"name": "mongo-control",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple functions to controll mongo",

@@ -5,0 +5,0 @@ "main": "mongo.control.js",

# mongo-control
simple functions for most usual tasks
simple functions for most usual tasks with mongo
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