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.5.6 to 1.5.7

18

lib/databases/redis.js

@@ -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

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