ioredis-mock
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -108,3 +108,3 @@ | ||
|[rename](http://redis.io/commands/RENAME)|:white_check_mark:|:white_check_mark:| | ||
|[renamenx](http://redis.io/commands/RENAMENX)|:white_check_mark:|:x:| | ||
|[renamenx](http://redis.io/commands/RENAMENX)|:white_check_mark:|:white_check_mark:| | ||
|[replconf](http://redis.io/commands/REPLCONF)|:white_check_mark:|:x:| | ||
@@ -111,0 +111,0 @@ |[restore](http://redis.io/commands/RESTORE)|:white_check_mark:|:x:| |
@@ -8,3 +8,3 @@ "use strict"; | ||
function decrby(key) { | ||
var decrement = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1]; | ||
var decrement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
@@ -11,0 +11,0 @@ var curVal = Number(this.data[key]); |
@@ -11,3 +11,3 @@ "use strict"; | ||
function hincrby(key, field) { | ||
var increment = arguments.length <= 2 || arguments[2] === undefined ? 0 : arguments[2]; | ||
var increment = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
@@ -14,0 +14,0 @@ if (!{}.hasOwnProperty.call(this.data, key)) { |
@@ -8,3 +8,3 @@ "use strict"; | ||
function incrby(key) { | ||
var increment = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1]; | ||
var increment = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
@@ -11,0 +11,0 @@ var curVal = Number(this.data[key]); |
@@ -343,2 +343,14 @@ 'use strict'; | ||
var _renamenx = require('./renamenx'); | ||
Object.keys(_renamenx).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _renamenx[key]; | ||
} | ||
}); | ||
}); | ||
var _rpoplpush = require('./rpoplpush'); | ||
@@ -345,0 +357,0 @@ |
@@ -31,3 +31,3 @@ 'use strict'; | ||
var _ref = arguments.length <= 0 || arguments[0] === undefined ? { data: {} } : arguments[0]; | ||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { data: {} }; | ||
@@ -34,0 +34,0 @@ var data = _ref.data; |
{ | ||
"name": "ioredis-mock", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "This library emulates ioredis by performing all operations in-memory.", | ||
@@ -9,3 +9,3 @@ "main": "./lib", | ||
"prepublish": "npm run clean && npm run build", | ||
"preversion": "node scripts/update-compat", | ||
"preversion": "node scripts/update-compat && git add . && git commit --allow-empty -m \"chore(compat): update feature table\"", | ||
"build": "mkdirp lib && babel src --out-dir lib", | ||
@@ -39,11 +39,11 @@ "build:watch": "npm run build -- --watch", | ||
"devDependencies": { | ||
"babel-cli": "6.14.0", | ||
"babel-eslint": "6.1.2", | ||
"babel-preset-es2015": "6.14.0", | ||
"babel-register": "6.14.0", | ||
"babel-cli": "6.16.0", | ||
"babel-eslint": "7.0.0", | ||
"babel-preset-es2015": "6.16.0", | ||
"babel-register": "6.16.3", | ||
"codeclimate-test-reporter": "0.3.3", | ||
"coveralls": "2.11.14", | ||
"eslint": "3.6.0", | ||
"eslint": "3.6.1", | ||
"eslint-config-airbnb-base": "8.0.0", | ||
"eslint-plugin-import": "1.16.0", | ||
"eslint-plugin-import": "2.0.0", | ||
"expect": "1.20.2", | ||
@@ -54,3 +54,3 @@ "growl": "1.9.2", | ||
"mkdirp": "0.5.1", | ||
"mocha": "3.0.2", | ||
"mocha": "3.1.0", | ||
"rimraf": "2.5.4" | ||
@@ -57,0 +57,0 @@ }, |
ioredis-mock | ||
============ | ||
[![AppVeyor branch](https://img.shields.io/appveyor/ci/stipsan/ioredis-mock.svg?label=windows)](https://ci.appveyor.com/project/stipsan/ioredis-mock) | ||
[![Travis branch](https://img.shields.io/travis/stipsan/ioredis-mock.svg?label=linux)](https://travis-ci.org/stipsan/ioredis-mock) | ||
[![CircleCI](https://img.shields.io/circleci/project/stipsan/ioredis-mock.svg?label=node+matrix)](https://circleci.com/gh/stipsan/ioredis-mock) | ||
[![AppVeyor branch](https://img.shields.io/appveyor/ci/stipsan/ioredis-mock/master.svg?label=windows)](https://ci.appveyor.com/project/stipsan/ioredis-mock) | ||
[![Travis branch](https://img.shields.io/travis/stipsan/ioredis-mock/master.svg?label=linux)](https://travis-ci.org/stipsan/ioredis-mock) | ||
[![CircleCI](https://img.shields.io/circleci/project/stipsan/ioredis-mock/master.svg?label=node+matrix)](https://circleci.com/gh/stipsan/ioredis-mock) | ||
[![Code Climate](https://codeclimate.com/github/stipsan/ioredis-mock/badges/gpa.svg)](https://codeclimate.com/github/stipsan/ioredis-mock) | ||
@@ -8,0 +8,0 @@ [![Coverage Status](https://coveralls.io/repos/github/stipsan/ioredis-mock/badge.svg)](https://coveralls.io/github/stipsan/ioredis-mock) |
48938
55
954