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

node-redis-mock

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-redis-mock - npm Package Compare versions

Comparing version 0.2.15 to 0.2.16

7

lib/hash.js

@@ -206,3 +206,8 @@ /*!

for (var i = 0; i < keys.length; i++) {
values.push(hash[keys[i]]);
if(hash[keys[i]]){
values.push(hash[keys[i]]);
}
else{
values.push(null);
}
}

@@ -209,0 +214,0 @@

5

lib/transactions.js

@@ -6,2 +6,3 @@ /*!

exports.multi = function (mockInstance, RedisClient) {
var self = this;

@@ -22,3 +23,3 @@ var multiqueue = {

});
command.fn.apply(null, command.args);
command.fn.apply(self, command.args);
}

@@ -42,3 +43,3 @@ }

_fnAndNames(RedisClient.prototype, function(fn, fnName) {
if(fnName !== 'multi' || fnName !== 'MULTI') {
if(fnName !== 'multi' && fnName !== 'MULTI') {
multiqueue[fnName] = function() {

@@ -45,0 +46,0 @@ var args = Array.prototype.slice.call(arguments);

{
"name": "node-redis-mock",
"version": "0.2.15",
"version": "0.2.16",
"description": "Redis client mock object for unit testing",

@@ -12,3 +12,3 @@ "author": "Kristian Faeldt <kristian.faeldt@gmail.com>",

"devDependencies": {
"should": "*",
"should": "3.3.2",
"mocha": "*",

@@ -15,0 +15,0 @@ "redis": "*"

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