Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -3326,15 +3326,15 @@
});
return _this3.connection.__scriptFn__(name).apply(void 0, _toConsumableArray(arr));
})["catch"](function (e) {
if (e.message === "SETTINGS_KEY_NOT_FOUND") {
if (e.message.match(/^(.*\s)?SETTINGS_KEY_NOT_FOUND$/) !== null) {
if (name === "heartbeat") {
return _this3.Promise.resolve();
} else {
return _this3.runScript("init", _this3.prepareInitSettings(false)).then(function () {
return _this3.runScript(name, args);
});
}
} else if (e.message === "UNKNOWN_CLIENT") {
} else if (e.message.match(/^(.*\s)?UNKNOWN_CLIENT$/) !== null) {
return _this3.runScript("register_client", [_this3.instance.queued()]).then(function () {
return _this3.runScript(name, args);
});
Expand Down Expand Up @@ -3900,7 +3900,7 @@

var Sync_1 = Sync;

var version = "2.19.5";
var version = "2.19.6";
var version$1 = {
version: version
};
Expand Down
4 changes: 2 additions & 2 deletions lib/RedisDatastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ RedisDatastore = class RedisDatastore {
});
return _this3.connection.__scriptFn__(name)(...arr);
}).catch(e => {
if (e.message === "SETTINGS_KEY_NOT_FOUND") {
if (e.message.match(/^(.*\s)?SETTINGS_KEY_NOT_FOUND$/) !== null) {
if (name === "heartbeat") {
return _this3.Promise.resolve();
} else {
return _this3.runScript("init", _this3.prepareInitSettings(false)).then(() => {
return _this3.runScript(name, args);
});
}
} else if (e.message === "UNKNOWN_CLIENT") {
} else if (e.message.match(/^(.*\s)?UNKNOWN_CLIENT$/) !== null) {
return _this3.runScript("register_client", [_this3.instance.queued()]).then(() => {
return _this3.runScript(name, args);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"2.19.5"}
{"version":"2.19.6"}
2 changes: 1 addition & 1 deletion light.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@

var Sync_1 = Sync;

var version = "2.19.5";
var version = "2.19.6";
var version$1 = {
version: version
};
Expand Down
Loading