ioredis-mock
Advanced tools
Comparing version 4.21.7 to 4.21.8
@@ -65,3 +65,3 @@ "use strict"; | ||
if (isNotConnected(RedisMock)) { | ||
if (commandName !== 'connect') { | ||
if (commandName !== 'connect' && commandName !== 'defineCommand') { | ||
throw new Error("Stream isn't writeable and enableOfflineQueue options is false"); | ||
@@ -137,2 +137,6 @@ } | ||
if (commandName === 'defineCommand') { | ||
return safelyExecuteCommand.apply(void 0, [commandEmulator, commandName, RedisMock].concat(_toConsumableArray(commandArgs))); | ||
} | ||
var Promise = _promiseContainer.default.get(); | ||
@@ -139,0 +143,0 @@ |
@@ -123,3 +123,3 @@ { | ||
"runkitExampleFilename": "example.js", | ||
"version": "4.21.7" | ||
"version": "4.21.8" | ||
} |
211229
4909