viewmodel
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -29,3 +29,3 @@ 'use strict'; | ||
if (url.auth) { | ||
var userparts = url.auth.split(":"); | ||
var userparts = url.auth.split(':'); | ||
options.user = userparts[0]; | ||
@@ -39,3 +39,3 @@ if (userparts.length === 2) { | ||
if (url.pathname) { | ||
options.db = url.pathname.replace("/", "", 1); | ||
options.db = url.pathname.replace('/', '', 1); | ||
} | ||
@@ -342,3 +342,3 @@ } | ||
var currentHash = savedVm.get('_hash'); | ||
if (currentHash && vm.has('_hash') && vm.get('_hash') != currentHash) { | ||
if (currentHash && vm.has('_hash') && vm.get('_hash') !== currentHash) { | ||
self.client.unwatch(function (err) { | ||
@@ -356,3 +356,3 @@ err = new ConcurrencyError(); | ||
} | ||
if (!replies || replies.length === 0 || replies[0] !== 'OK') { | ||
if (!replies || replies.length === 0 || (replies[0] !== 'OK' && replies[0] !== 1)) { | ||
return callback(new ConcurrencyError()); | ||
@@ -380,3 +380,3 @@ } | ||
var currentHash = savedVm.get('_hash'); | ||
if (currentHash && vm.has('_hash') && vm.get('_hash') != currentHash) { | ||
if (currentHash && vm.has('_hash') && vm.get('_hash') !== currentHash) { | ||
return callback(new ConcurrencyError()); | ||
@@ -409,3 +409,3 @@ } | ||
var currentHash = savedVm.get('_hash'); | ||
if (currentHash && vm.has('_hash') && vm.get('_hash') != currentHash) { | ||
if (currentHash && vm.has('_hash') && vm.get('_hash') !== currentHash) { | ||
self.client.unwatch(function (err) { | ||
@@ -429,3 +429,3 @@ err = new ConcurrencyError(); | ||
} | ||
if (!replies || replies.length === 0 || replies[0] !== 'OK') { | ||
if (!replies || replies.length === 0 || (replies[0] !== 'OK' && replies[0] !== 1)) { | ||
return callback(new ConcurrencyError()); | ||
@@ -452,3 +452,3 @@ } | ||
if (collections.indexOf(this.collectionName) < 0) { | ||
collections.push(this.collectionName) | ||
collections.push(this.collectionName); | ||
} | ||
@@ -472,3 +472,3 @@ | ||
if (callback) callback(err); | ||
return | ||
return; | ||
} | ||
@@ -475,0 +475,0 @@ async.each(keys, function (key, callback) { |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"private": false, | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"parent-require": "1.0.0", | ||
"sift": "2.0.8", | ||
"sift": "2.0.9", | ||
"tolerance": "1.0.0" | ||
@@ -23,0 +23,0 @@ }, |
@@ -0,1 +1,4 @@ | ||
## [v1.5.7](https://github.com/adrai/node-viewmodel/compare/v1.5.6...v1.5.7) | ||
- redis: fix wrong multi response handling | ||
## [v1.5.6](https://github.com/adrai/node-viewmodel/compare/v1.5.5...v1.5.6) | ||
@@ -2,0 +5,0 @@ - speed up mongodb and inmemory commits |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102875
+ Addedsift@2.0.9(transitive)
- Removedsift@2.0.8(transitive)
Updatedsift@2.0.9