ioredis-mock
Advanced tools
Comparing version 5.6.1 to 5.7.0
@@ -1255,2 +1255,15 @@ "use strict"; | ||
var _smismember = require("./smismember"); | ||
Object.keys(_smismember).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _smismember[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _smismember[key]; | ||
} | ||
}); | ||
}); | ||
var _smembers = require("./smembers"); | ||
@@ -1257,0 +1270,0 @@ |
@@ -24,4 +24,4 @@ "use strict"; | ||
const list = this.data.get(stream); | ||
const min = start === '-' ? -Infinity : parseInt(start.split('-')[0], 10); | ||
const max = end === '+' ? Infinity : parseInt(end.split('-')[0], 10); | ||
const min = start === '-' ? -Infinity : start; | ||
const max = end === '+' ? Infinity : end; | ||
const result = list.filter(([eventId]) => min <= parseInt(eventId, 10) && max >= parseInt(eventId, 10)); | ||
@@ -28,0 +28,0 @@ if (count) return result.slice(0, count); |
@@ -63,4 +63,4 @@ { | ||
"ioredis": "^4.19.2", | ||
"jest": "^26.6.3", | ||
"jest-circus": "^26.6.3", | ||
"jest": "^27.0.0", | ||
"jest-circus": "^27.0.0", | ||
"lint-staged": "^11.0.0", | ||
@@ -129,3 +129,3 @@ "prettier": "^2.2.1", | ||
"runkitExampleFilename": "example.js", | ||
"version": "5.6.1" | ||
"version": "5.7.0" | ||
} |
Sorry, the diff of this file is too big to display
506361
162
16269