ioredis-mock
Advanced tools
Comparing version 4.21.3 to 4.21.4
@@ -9,2 +9,6 @@ "use strict"; | ||
function decr(key) { | ||
if (!this.data.has(key)) { | ||
this.data.set(key, '0'); | ||
} | ||
var curVal = Number(this.data.get(key)); | ||
@@ -11,0 +15,0 @@ var nextVal = curVal - 1; |
@@ -10,2 +10,7 @@ "use strict"; | ||
var decrement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
if (!this.data.has(key)) { | ||
this.data.set(key, '0'); | ||
} | ||
var curVal = Number(this.data.get(key)); | ||
@@ -12,0 +17,0 @@ var nextVal = curVal - parseInt(decrement, 10); |
@@ -45,23 +45,23 @@ { | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.11.1", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/register": "^7.10.5", | ||
"@babel/cli": "^7.11.6", | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/register": "^7.11.5", | ||
"babel-eslint": "^10.1.0", | ||
"bluebird": "^3.7.2", | ||
"chance": "^1.1.6", | ||
"chance": "^1.1.7", | ||
"codeclimate-test-reporter": "^0.5.1", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.7.0", | ||
"eslint": "^7.10.0", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"expect": "^1.20.2", | ||
"husky": "^4.2.5", | ||
"husky": "^4.3.0", | ||
"ioredis": "^4.17.3", | ||
"lint-staged": "^10.2.11", | ||
"mocha": "^8.1.1", | ||
"lint-staged": "^10.4.0", | ||
"mocha": "^8.1.3", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.0.5", | ||
"prettier": "^2.1.2", | ||
"prettier-package-json": "^2.1.3", | ||
@@ -124,3 +124,3 @@ "redis-commands": "^1.5.0", | ||
"runkitExampleFilename": "example.js", | ||
"version": "4.21.3" | ||
"version": "4.21.4" | ||
} |
209311
4897