ioredis-mock
Advanced tools
Comparing version 5.5.0 to 5.5.1
@@ -87,2 +87,3 @@ "use strict"; | ||
if (Array.isArray(result)) { | ||
// fix for one-based indices | ||
result.unshift(null); | ||
@@ -89,0 +90,0 @@ } |
@@ -86,3 +86,12 @@ "use strict"; | ||
if (!isArray) { | ||
return _fengariInterop.default.tojs(L, -1); | ||
const retVal = _fengariInterop.default.tojs(L, -1); | ||
if (Array.isArray(retVal)) { | ||
// we push 'null' into position 0 in Arrays because in lua Arrays are one-based | ||
// see src/commands/defineCommand:callToRedisCommand | ||
// this removes the null element before returning | ||
return retVal.slice(1); | ||
} | ||
return retVal; | ||
} | ||
@@ -89,0 +98,0 @@ |
@@ -127,3 +127,3 @@ { | ||
"runkitExampleFilename": "example.js", | ||
"version": "5.5.0" | ||
"version": "5.5.1" | ||
} |
Sorry, the diff of this file is too big to display
482257
15722