ioredis-mock
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -128,3 +128,3 @@ | ||
|[setex](http://redis.io/commands/SETEX)|:white_check_mark:|:x:| | ||
|[setnx](http://redis.io/commands/SETNX)|:white_check_mark:|:x:| | ||
|[setnx](http://redis.io/commands/SETNX)|:white_check_mark:|:white_check_mark:| | ||
|[setrange](http://redis.io/commands/SETRANGE)|:white_check_mark:|:x:| | ||
@@ -131,0 +131,0 @@ |[shutdown](http://redis.io/commands/SHUTDOWN)|:white_check_mark:|:x:| |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -11,6 +11,10 @@ Object.defineProperty(exports, "__esModule", { | ||
} | ||
var exists = this.data[key].hasOwnProperty(hashKey); | ||
this.data[key][hashKey] = hashVal; | ||
return !exists; | ||
if (!this.data[key].hasOwnProperty(hashKey)) { | ||
this.data[key][hashKey] = hashVal; | ||
return '1'; | ||
} | ||
return '0'; | ||
} |
@@ -283,2 +283,14 @@ 'use strict'; | ||
var _setnx = require('./setnx'); | ||
Object.keys(_setnx).forEach(function (key) { | ||
if (key === "default") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _setnx[key]; | ||
} | ||
}); | ||
}); | ||
var _sismember = require('./sismember'); | ||
@@ -285,0 +297,0 @@ |
{ | ||
"name": "ioredis-mock", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "This library emulates ioredis by performing all operations in-memory.", | ||
@@ -43,13 +43,12 @@ "main": "./lib", | ||
"coveralls": "2.11.9", | ||
"eslint": "2.13.1", | ||
"eslint": "3.0.0", | ||
"eslint-config-airbnb-base": "3.0.1", | ||
"eslint-config-xo-space": "0.14.0", | ||
"eslint-plugin-import": "1.9.2", | ||
"expect": "1.20.1", | ||
"eslint-plugin-import": "1.10.1", | ||
"expect": "1.20.2", | ||
"growl": "1.9.2", | ||
"ioredis": "2.1.0", | ||
"ioredis": "2.2.0", | ||
"istanbul": "1.1.0-alpha.1", | ||
"mkdirp": "0.5.1", | ||
"mocha": "2.5.3", | ||
"rimraf": "2.5.2" | ||
"rimraf": "2.5.3" | ||
}, | ||
@@ -56,0 +55,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39773
16
44
707