Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

senter-mongo-repository

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

senter-mongo-repository - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

14

mongoReposotory.js

@@ -131,3 +131,3 @@ const MongoClient = require('mongodb').MongoClient;

let response = await this._collection.insertOne(document);
let response = await this._collection.insertOne(document, {w:1});

@@ -173,3 +173,3 @@ // if (response.insertedCount !== 1) {

let response = await this._collection.insertMany(documents);
let response = await this._collection.insertMany(documents, {w:"majority"});

@@ -218,3 +218,3 @@ documents.forEach(document => {

const response = await this._collection.updateMany(filter, update);
const response = await this._collection.updateMany(filter, update, {w:"majority"});

@@ -252,3 +252,3 @@ // if (response.modifiedCount !== 1) {

}
});
}, {w:1});

@@ -286,3 +286,3 @@ // if (response.modifiedCount !== 1) {

}
});
}, {w: "majority"});

@@ -313,3 +313,3 @@ // if (response.modifiedCount !== 1) {

userId: userId
});
}, {w:1});

@@ -372,3 +372,3 @@ // if (response.deletedCount !== 1) {

upsert: upsert === true
});
}, {w:1});

@@ -375,0 +375,0 @@ // if (response.modifiedCount !== 1) {

{
"name": "senter-mongo-repository",
"version": "1.2.0",
"version": "1.3.0",
"description": "Contain methods to work with mongo db",

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