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

senter-mongo-repository

Package Overview
Dependencies
Maintainers
1
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.0.8 to 1.0.9

24

mongoReposotory.js

@@ -123,5 +123,5 @@ const MongoClient = require('mongodb').MongoClient;

if (response.insertedCount !== 1) {
throw Error(`Insert operation on '${this.dbName}'.'${this.collectionName}' failed`);
}
// if (response.insertedCount !== 1) {
// throw Error(`Insert operation on '${this.dbName}'.'${this.collectionName}' failed`);
// }

@@ -170,5 +170,5 @@ document.id = document._id;

if (response.modifiedCount !== 1) {
throw Error(`Update operation on '${this.dbName}'.'${this.collectionName}' failed`);
}
// if (response.modifiedCount !== 1) {
// throw Error(`Update operation on '${this.dbName}'.'${this.collectionName}' failed`);
// }

@@ -204,5 +204,5 @@ } catch (err) {

if (response.modifiedCount !== 1) {
throw Error(`Mark deleted operation on '${this.dbName}'.'${this.collectionName}' failed`);
}
// if (response.modifiedCount !== 1) {
// throw Error(`Mark deleted operation on '${this.dbName}'.'${this.collectionName}' failed`);
// }
} catch (err) {

@@ -231,5 +231,5 @@ console.log(err.stack);

if (response.deletedCount !== 1) {
throw Error(`Delete operation on '${this.dbName}'.'${this.collectionName}' failed`);
}
// if (response.deletedCount !== 1) {
// throw Error(`Delete operation on '${this.dbName}'.'${this.collectionName}' failed`);
// }
} catch (err) {

@@ -236,0 +236,0 @@ console.log(err.stack);

{
"name": "senter-mongo-repository",
"version": "1.0.8",
"version": "1.0.9",
"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