New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ioredis-mock

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ioredis-mock - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

lib/commands/brpoplpush.js

14

compat.md

@@ -16,3 +16,3 @@

|[brpop](http://redis.io/commands/BRPOP)|:white_check_mark:|:x:|
|[brpoplpush](http://redis.io/commands/BRPOPLPUSH)|:white_check_mark:|:x:|
|[brpoplpush](http://redis.io/commands/BRPOPLPUSH)|:white_check_mark:|:white_check_mark:|
|[client](http://redis.io/commands/CLIENT)|:white_check_mark:|:x:|

@@ -72,8 +72,8 @@ |[cluster](http://redis.io/commands/CLUSTER)|:white_check_mark:|:x:|

|[linsert](http://redis.io/commands/LINSERT)|:white_check_mark:|:x:|
|[llen](http://redis.io/commands/LLEN)|:white_check_mark:|:x:|
|[llen](http://redis.io/commands/LLEN)|:white_check_mark:|:white_check_mark:|
|[lpop](http://redis.io/commands/LPOP)|:white_check_mark:|:x:|
|[lpush](http://redis.io/commands/LPUSH)|:white_check_mark:|:x:|
|[lpush](http://redis.io/commands/LPUSH)|:white_check_mark:|:white_check_mark:|
|[lpushx](http://redis.io/commands/LPUSHX)|:white_check_mark:|:x:|
|[lrange](http://redis.io/commands/LRANGE)|:white_check_mark:|:x:|
|[lrem](http://redis.io/commands/LREM)|:white_check_mark:|:x:|
|[lrem](http://redis.io/commands/LREM)|:white_check_mark:|:white_check_mark:|
|[lset](http://redis.io/commands/LSET)|:white_check_mark:|:x:|

@@ -102,3 +102,3 @@ |[ltrim](http://redis.io/commands/LTRIM)|:white_check_mark:|:x:|

|[pttl](http://redis.io/commands/PTTL)|:white_check_mark:|:x:|
|[publish](http://redis.io/commands/PUBLISH)|:white_check_mark:|:x:|
|[publish](http://redis.io/commands/PUBLISH)|:white_check_mark:|:white_check_mark:|
|[pubsub](http://redis.io/commands/PUBSUB)|:white_check_mark:|:x:|

@@ -117,4 +117,4 @@ |[punsubscribe](http://redis.io/commands/PUNSUBSCRIBE)|:white_check_mark:|:x:|

|[rpop](http://redis.io/commands/RPOP)|:white_check_mark:|:x:|
|[rpoplpush](http://redis.io/commands/RPOPLPUSH)|:white_check_mark:|:x:|
|[rpush](http://redis.io/commands/RPUSH)|:white_check_mark:|:x:|
|[rpoplpush](http://redis.io/commands/RPOPLPUSH)|:white_check_mark:|:white_check_mark:|
|[rpush](http://redis.io/commands/RPUSH)|:white_check_mark:|:white_check_mark:|
|[rpushx](http://redis.io/commands/RPUSHX)|:white_check_mark:|:x:|

@@ -121,0 +121,0 @@ |[sadd](http://redis.io/commands/SADD)|:white_check_mark:|:white_check_mark:|

@@ -7,2 +7,9 @@ 'use strict';

exports.hmset = hmset;
var _objectAssign = require('object-assign');
var _objectAssign2 = _interopRequireDefault(_objectAssign);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function hmset(key) {

@@ -17,4 +24,10 @@ if (!{}.hasOwnProperty.call(this.data, key)) {

for (var i = 0; i < hmsetData.length; i += 2) {
this.data[key][hmsetData[i]] = hmsetData[i + 1];
if (hmsetData.length === 1) {
// assume object
this.data[key] = (0, _objectAssign2.default)({}, hmsetData[0]);
} else {
// assume array
for (var i = 0; i < hmsetData.length; i += 2) {
this.data[key][hmsetData[i]] = hmsetData[i + 1];
}
}

@@ -21,0 +34,0 @@

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

"use strict";
'use strict';

@@ -8,2 +8,5 @@ Object.defineProperty(exports, "__esModule", {

function incr(key) {
if (!this.data[key]) {
this.data[key] = '0';
}
var curVal = Number(this.data[key]);

@@ -10,0 +13,0 @@ this.data[key] = curVal + 1;

@@ -19,2 +19,14 @@ 'use strict';

var _brpoplpush = require('./brpoplpush');
Object.keys(_brpoplpush).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _brpoplpush[key];
}
});
});
var _decr = require('./decr');

@@ -260,2 +272,50 @@

var _llen = require('./llen');
Object.keys(_llen).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _llen[key];
}
});
});
var _lpush = require('./lpush');
Object.keys(_lpush).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _lpush[key];
}
});
});
var _lrem = require('./lrem');
Object.keys(_lrem).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _lrem[key];
}
});
});
var _publish = require('./publish');
Object.keys(_publish).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _publish[key];
}
});
});
var _rename = require('./rename');

@@ -273,2 +333,26 @@

var _rpoplpush = require('./rpoplpush');
Object.keys(_rpoplpush).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _rpoplpush[key];
}
});
});
var _rpush = require('./rpush');
Object.keys(_rpush).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _rpush[key];
}
});
});
var _sadd = require('./sadd');

@@ -275,0 +359,0 @@

@@ -38,2 +38,3 @@ 'use strict';

this.data = data;
this.channels = {};

@@ -40,0 +41,0 @@ Object.keys(commands).forEach(function (command) {

{
"name": "ioredis-mock",
"version": "1.7.0",
"version": "1.8.0",
"description": "This library emulates ioredis by performing all operations in-memory.",

@@ -39,15 +39,15 @@ "main": "./lib",

"babel-eslint": "6.1.2",
"babel-preset-es2015": "6.9.0",
"babel-preset-es2015": "6.13.2",
"babel-register": "6.11.6",
"codeclimate-test-reporter": "0.3.3",
"coveralls": "2.11.12",
"eslint": "3.2.2",
"eslint-config-airbnb-base": "5.0.1",
"eslint-plugin-import": "1.12.0",
"eslint": "3.3.0",
"eslint-config-airbnb-base": "5.0.2",
"eslint-plugin-import": "1.13.0",
"expect": "1.20.2",
"growl": "1.9.2",
"ioredis": "2.2.0",
"ioredis": "2.3.0",
"istanbul": "1.1.0-alpha.1",
"mkdirp": "0.5.1",
"mocha": "3.0.0",
"mocha": "3.0.2",
"rimraf": "2.5.4"

@@ -57,6 +57,7 @@ },

"bluebird": "3.4.1",
"lodash": "4.14.1",
"minimatch": "^3.0.2",
"lodash": "4.15.0",
"minimatch": "3.0.3",
"object-assign": "4.1.0",
"redis-commands": "1.2.0"
}
}
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