Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generated and updated #26

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions bin/argumentTypes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const typeMaps = require("./typeMaps");

module.exports = {
Expand Down
10 changes: 6 additions & 4 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"use strict";

const returnTypes = require("./returnTypes");
const argumentTypes = require("./argumentTypes");
const sortArguments = require("./sortArguments");
const typeMaps = require("./typeMaps");
const overrides = require("./overrides");
const { getCommanderInterface } = require("@ioredis/interface-generator");
const { getCommanderInterface } = require("@iovalkey/interface-generator");

const HEADER = `/**
* This file is generated by @ioredis/interface-generator.
Expand All @@ -13,7 +15,7 @@ const HEADER = `/**

`;

const ignoredCommands = ["monitor", "multi"];
const ignoredCommands = ["monitor", "multi", "function"];
const commands = require("@iovalkey/commands")
.list.filter((name) => !ignoredCommands.includes(name))
.sort();
Expand All @@ -24,7 +26,7 @@ const path = require("path");
const template = fs.readFileSync(path.join(__dirname, "/template.ts"), "utf8");

async function main() {
const interface = await getCommanderInterface({
const i = await getCommanderInterface({
commands,
complexityLimit: 50,
redisOpts: {
Expand All @@ -49,7 +51,7 @@ async function main() {

fs.writeFileSync(
path.join(__dirname, "..", "lib/utils/RedisCommander.ts"),
HEADER + template.replace("////", () => interface)
HEADER + template.replace("////", () => i)
);
}

Expand Down
2 changes: 2 additions & 0 deletions bin/overrides.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const msetOverrides = {
overwrite: false,
defs: [
Expand Down
2 changes: 2 additions & 0 deletions bin/returnTypes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

const hasToken = (types, token) => {
if (Array.isArray(token)) return token.some((t) => hasToken(types, t));
return types.find((type) => type.includes(token));
Expand Down
2,240 changes: 2,238 additions & 2 deletions docs/assets/main.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { exists, getKeyIndexes } from "@ioredis/commands";
import { exists, getKeyIndexes } from "@iovalkey/commands";
import * as calculateSlot from "cluster-key-slot";
import asCallback from "standard-as-callback";
import {
Expand Down
2 changes: 1 addition & 1 deletion lib/Pipeline.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as calculateSlot from "cluster-key-slot";
import { exists, hasFlag } from "@ioredis/commands";
import { exists, hasFlag } from "@iovalkey/commands";
import asCallback from "standard-as-callback";
import { deprecate } from "util";
import Redis from "./Redis";
Expand Down
18 changes: 10 additions & 8 deletions lib/Redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@
ScanStreamOptions,
WriteableStream,
} from "./types";
import {
CONNECTION_CLOSED_ERROR_MSG,
Debug,
isInt,
parseURL,
} from "./utils";
import { CONNECTION_CLOSED_ERROR_MSG, Debug, isInt, parseURL } from "./utils";
import applyMixin from "./utils/applyMixin";
import Commander from "./utils/Commander";
import { defaults, noop } from "./utils/lodash";
Expand Down Expand Up @@ -524,7 +519,10 @@
this.manuallyClosing = true;
}

if (this.options.socketTimeout !== undefined && this.socketTimeoutTimer === undefined) {
if (
this.options.socketTimeout !== undefined &&
this.socketTimeoutTimer === undefined
) {
this.setSocketTimeout();
}
}
Expand All @@ -543,7 +541,11 @@

private setSocketTimeout() {
this.socketTimeoutTimer = setTimeout(() => {
this.stream.destroy(new Error(`Socket timeout. Expecting data, but didn't receive any in ${this.options.socketTimeout}ms.`));
this.stream.destroy(
new Error(
`Socket timeout. Expecting data, but didn't receive any in ${this.options.socketTimeout}ms.`
)
);
this.socketTimeoutTimer = undefined;
}, this.options.socketTimeout);

Expand All @@ -557,35 +559,35 @@
});
}

scanStream(options?: ScanStreamOptions) {

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member scanStream should be declared before all private instance method definitions

Check warning on line 562 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member scanStream should be declared before all private instance method definitions
return this.createScanStream("scan", { options });
}

scanBufferStream(options?: ScanStreamOptions) {

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member scanBufferStream should be declared before all private instance method definitions

Check warning on line 566 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member scanBufferStream should be declared before all private instance method definitions
return this.createScanStream("scanBuffer", { options });
}

sscanStream(key: string, options?: ScanStreamOptions) {

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member sscanStream should be declared before all private instance method definitions

Check warning on line 570 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member sscanStream should be declared before all private instance method definitions
return this.createScanStream("sscan", { key, options });
}

sscanBufferStream(key: string, options?: ScanStreamOptions) {

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member sscanBufferStream should be declared before all private instance method definitions

Check warning on line 574 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member sscanBufferStream should be declared before all private instance method definitions
return this.createScanStream("sscanBuffer", { key, options });
}

hscanStream(key: string, options?: ScanStreamOptions) {

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member hscanStream should be declared before all private instance method definitions

Check warning on line 578 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member hscanStream should be declared before all private instance method definitions
return this.createScanStream("hscan", { key, options });
}

hscanBufferStream(key: string, options?: ScanStreamOptions) {

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member hscanBufferStream should be declared before all private instance method definitions

Check warning on line 582 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member hscanBufferStream should be declared before all private instance method definitions
return this.createScanStream("hscanBuffer", { key, options });
}

zscanStream(key: string, options?: ScanStreamOptions) {

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member zscanStream should be declared before all private instance method definitions

Check warning on line 586 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member zscanStream should be declared before all private instance method definitions
return this.createScanStream("zscan", { key, options });
}

zscanBufferStream(key: string, options?: ScanStreamOptions) {

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member zscanBufferStream should be declared before all private instance method definitions

Check warning on line 590 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member zscanBufferStream should be declared before all private instance method definitions
return this.createScanStream("zscanBuffer", { key, options });
}

Expand All @@ -594,7 +596,7 @@
*
* @ignore
*/
silentEmit(eventName: string, arg?: unknown): boolean {

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member silentEmit should be declared before all private instance method definitions

Check warning on line 599 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member silentEmit should be declared before all private instance method definitions
let error: unknown;
if (eventName === "error") {
error = arg;
Expand Down Expand Up @@ -629,7 +631,7 @@
/**
* @ignore
*/
recoverFromFatalError(

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (20.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (18.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-valkey (22.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (20.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (22.x)

Member recoverFromFatalError should be declared before all private instance method definitions

Check warning on line 634 in lib/Redis.ts

View workflow job for this annotation

GitHub Actions / test-redis (18.x)

Member recoverFromFatalError should be declared before all private instance method definitions
_commandError: Error,
err: Error,
options: FlushQueueOptions
Expand Down
5 changes: 4 additions & 1 deletion lib/connectors/SentinelConnector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ export default class SentinelConnector extends AbstractConnector {
if (this.options.enableTLSForSentinelMode && this.options.tls) {
Object.assign(resolved, this.options.tls);
this.stream = createTLSConnection(resolved);
this.stream.once("secureConnect", this.initFailoverDetector.bind(this));
this.stream.once(
"secureConnect",
this.initFailoverDetector.bind(this)
);
} else {
this.stream = createConnection(resolved);
this.stream.once("connect", this.initFailoverDetector.bind(this));
Expand Down
Loading
Loading