Socket
Socket
Sign inDemoInstall

viewmodel

Package Overview
Dependencies
8
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.10.1 to 1.10.2

34

lib/databases/mongodb.js

@@ -106,18 +106,2 @@ var util = require('util'),

self.db.admin().serverStatus(function(err, info) {
if (err) {
delete self.bulkCommit;
return;
}
var splittedVersion = info.version.split('.');
var major = parseInt(splittedVersion[0], 10);
var minor = parseInt(splittedVersion[1], 10);
if (major < 3 || (major === 3 && minor < 2)) {
delete self.bulkCommit;
return;
}
});
var finish = function (err) {

@@ -135,3 +119,19 @@ self.isConnected = true;

finish();
self.db.admin().serverStatus(function(err, info) {
if (err) {
// self.bulkCommit = null;
return finish();
}
var splittedVersion = info.version.split('.');
var major = parseInt(splittedVersion[0], 10);
var minor = parseInt(splittedVersion[1], 10);
if (major < 3 || (major === 3 && minor < 2)) {
self.bulkCommit = null;
return finish();
}
finish();
});
}

@@ -138,0 +138,0 @@ },

{
"author": "adrai",
"name": "viewmodel",
"version": "1.10.1",
"version": "1.10.2",
"private": false,

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -1,2 +0,5 @@

## [v1.10.0](https://github.com/adrai/node-viewmodel/compare/v1.10.0...v1.10.1)
## [v1.10.2](https://github.com/adrai/node-viewmodel/compare/v1.10.1...v1.10.2)
- bulkCommit: mongodb wait for serverStatus call
## [v1.10.1](https://github.com/adrai/node-viewmodel/compare/v1.10.0...v1.10.1)
- bulkCommit: check for empty vms

@@ -3,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc