ioredis-mock
Advanced tools
Comparing version 5.6.0 to 5.6.1
@@ -88,3 +88,8 @@ "use strict"; | ||
// fix for one-based indices | ||
result.unshift(null); | ||
result.unshift(null); // https://github.com/fengari-lua/fengari-interop/blob/1626687fb15452cdd82ee522955dd1f144ea7a68/src/js.js#L845 | ||
result[Symbol.for('__len')] = function () { | ||
const arr = this; | ||
return arr.length - 1; | ||
}; | ||
} | ||
@@ -91,0 +96,0 @@ |
@@ -24,4 +24,4 @@ "use strict"; | ||
const list = this.data.get(stream); | ||
const min = start === '-' ? -Infinity : start; | ||
const max = end === '+' ? Infinity : end; | ||
const min = start === '-' ? -Infinity : parseInt(start.split('-')[0], 10); | ||
const max = end === '+' ? Infinity : parseInt(end.split('-')[0], 10); | ||
const result = list.filter(([eventId]) => min <= parseInt(eventId, 10) && max >= parseInt(eventId, 10)); | ||
@@ -28,0 +28,0 @@ if (count) return result.slice(0, count); |
@@ -128,3 +128,3 @@ { | ||
"runkitExampleFilename": "example.js", | ||
"version": "5.6.0" | ||
"version": "5.6.1" | ||
} |
Sorry, the diff of this file is too big to display
505578
16238