Socket
Socket
Sign inDemoInstall

viewmodel

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viewmodel - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

10

lib/databases/mongodb.js

@@ -211,4 +211,10 @@ 'use strict';

this.collection.update(query, obj, { safe: true, upsert: !currentHash }, function(err, modifiedCount) {
if (modifiedCount === 0) {
return callback(new ConcurrencyError());
if (isNew) {
if (modifiedCount && modifiedCount.result && modifiedCount.result.n === 0) {
return callback(new ConcurrencyError());
}
} else {
if (modifiedCount === 0) {
return callback(new ConcurrencyError());
}
}

@@ -215,0 +221,0 @@ vm.actionOnCommit = 'update';

2

package.json
{
"author": "adrai",
"name": "viewmodel",
"version": "1.3.1",
"version": "1.3.2",
"private": false,

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

@@ -0,1 +1,4 @@

## [v1.3.2](https://github.com/adrai/node-viewmodel/compare/v1.3.1...v1.3.2)
- added mongodb driver 2.x support
## [v1.3.1](https://github.com/adrai/node-viewmodel/compare/v1.3.0...v1.3.1)

@@ -2,0 +5,0 @@ - fix errors in azureTable implementation [#12](https://github.com/adrai/node-viewmodel/pull/12) thanks to [rvin100](https://github.com/rvin100)

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