Skip to content

Commit 8436922

Browse files
committed
#RI-4325 - Fix dependabot alert
1 parent 49542c4 commit 8436922

File tree

6 files changed

+1735
-1922
lines changed

6 files changed

+1735
-1922
lines changed

redisinsight/api/src/modules/browser/services/keys-business/keys-business.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ describe('KeysBusinessService', () => {
105105
databaseService = module.get(DatabaseService);
106106
browserTool = module.get<BrowserToolService>(BrowserToolService);
107107
browserHistory = module.get<BrowserHistoryService>(BrowserHistoryService);
108-
const scannerManager = get(service, 'scanner');
109-
const keyInfoManager = get(service, 'keyInfoManager');
108+
const scannerManager: any = get(service, 'scanner');
109+
const keyInfoManager: any = get(service, 'keyInfoManager');
110110
standaloneScanner = scannerManager.getStrategy(ConnectionType.STANDALONE);
111111
clusterScanner = scannerManager.getStrategy(ConnectionType.CLUSTER);
112112
stringTypeInfoManager = keyInfoManager.getStrategy(RedisDataType.String);

redisinsight/api/src/modules/profiler/profiler.gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ export class ProfilerGateway implements OnGatewayConnection, OnGatewayDisconnect
6969
}
7070

7171
static getInstanceId(client: Socket): string {
72-
return get(client, 'handshake.query.instanceId');
72+
return get(client, 'handshake.query.instanceId') as string;
7373
}
7474
}

redisinsight/api/src/modules/profiler/providers/profiler-client.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ProfilerClientProvider {
2828

2929
// set database alias as part of the log file name
3030
const alias = (await this.databaseService.get(
31-
get(socket, 'handshake.query.instanceId'),
31+
get(socket, 'handshake.query.instanceId') as string,
3232
)).name;
3333
profilerLogFile.setAlias(alias);
3434

redisinsight/api/src/modules/pub-sub/model/redis-client.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('RedisClient', () => {
8686
});
8787
it('should emit message event (message source)', async () => {
8888
await redisClient['connect']();
89-
const [id, message] = await new Promise((res) => {
89+
const [id, message] = await new Promise((res: (value: any[]) => void) => {
9090
redisClient.on('message', (i, m) => res([i, m]));
9191
nodeClient.emit('message', 'channel-a', 'message-a');
9292
});
@@ -97,7 +97,7 @@ describe('RedisClient', () => {
9797
});
9898
it('should emit message event (pmessage source)', async () => {
9999
await redisClient['connect']();
100-
const [id, message] = await new Promise((res) => {
100+
const [id, message] = await new Promise((res: (value: any[]) => void) => {
101101
redisClient.on('message', (i, m) => res([i, m]));
102102
nodeClient.emit('pmessage', '*', 'channel-aa', 'message-aa');
103103
});

redisinsight/api/src/modules/recommendation/recommendation.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class RecommendationService {
3939
exclude,
4040
} = dto;
4141

42-
const recommendations = new Map([
42+
const recommendations = new Map<string, () => Promise<Recommendation | null>>([
4343
[
4444
RECOMMENDATION_NAMES.LUA_SCRIPT,
4545
async () => await this.recommendationProvider.determineLuaScriptRecommendation(client),

0 commit comments

Comments
 (0)