• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 22575363049

02 Mar 2026 12:09PM UTC coverage: 56.52% (-32.9%) from 89.388%
22575363049

push

github

web-flow
build(deps): bump @nestjs/swagger from 11.2.0 to 11.2.6 (#2957)

Bumps [@nestjs/swagger](https://github.com/nestjs/swagger) from 11.2.0 to 11.2.6.
- [Release notes](https://github.com/nestjs/swagger/releases)
- [Commits](https://github.com/nestjs/swagger/compare/11.2.0...11.2.6)

---
updated-dependencies:
- dependency-name: "@nestjs/swagger"
  dependency-version: 11.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

1979 of 3720 branches covered (53.2%)

Branch coverage included in aggregate %.

8406 of 14654 relevant lines covered (57.36%)

132.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

35.71
/src/datasources/cache/cache.module.ts
1
import { Global, Module } from '@nestjs/common';
2✔
2
import { createClient } from 'redis';
2✔
3
import { IConfigurationService } from '@/config/configuration.service.interface';
2✔
4
import { CacheService } from '@/datasources/cache/cache.service.interface';
2✔
5
import { RedisCacheService } from '@/datasources/cache/redis.cache.service';
2✔
6
import { CacheReadiness } from '@/domain/interfaces/cache-readiness.interface';
2✔
7
import { ILoggingService, LoggingService } from '@/logging/logging.interface';
2✔
8
import { CacheKeyPrefix } from '@/datasources/cache/constants';
2✔
9
import { LogType } from '@/domain/common/entities/log-type.entity';
2✔
10

11
export type RedisClientType = ReturnType<typeof createClient>;
12

13
async function redisClientFactory(
14
  configurationService: IConfigurationService,
15
  loggingService: ILoggingService,
16
): Promise<RedisClientType> {
17
  const redisUser = configurationService.get<string>('redis.user');
×
18
  const redisPass = configurationService.get<string>('redis.pass');
×
19
  const redisHost = configurationService.getOrThrow<string>('redis.host');
×
20
  const redisPort = configurationService.getOrThrow<string>('redis.port');
×
21
  const redisConnectTimeout = configurationService.getOrThrow<number>(
×
22
    'redis.connectTimeout',
23
  );
24
  const redisKeepAlive =
25
    configurationService.getOrThrow<number>('redis.keepAlive');
×
26
  const redisDisableOfflineQueue = configurationService.getOrThrow<boolean>(
×
27
    'redis.disableOfflineQueue',
28
  );
29
  const client: RedisClientType = createClient({
×
30
    socket: {
31
      host: redisHost,
32
      port: Number(redisPort),
33
      keepAliveInitialDelay: redisKeepAlive,
34
      connectTimeout: redisConnectTimeout,
35
    },
36
    username: redisUser,
37
    password: redisPass,
38
    disableOfflineQueue: redisDisableOfflineQueue,
39
  });
40
  client.on('error', (err) =>
×
41
    loggingService.error({
×
42
      type: LogType.CacheError,
43
      source: 'CacheModule',
44
      event: err.code ?? err.message,
×
45
    }),
46
  );
47
  client.on('reconnecting', () =>
×
48
    loggingService.warn({
×
49
      type: LogType.CacheEvent,
50
      source: 'CacheModule',
51
      event: 'Reconnecting to Redis',
52
    }),
53
  );
54
  client.on('end', () =>
×
55
    loggingService.warn({
×
56
      type: LogType.CacheEvent,
57
      source: 'CacheModule',
58
      event: 'Redis connection closed',
59
    }),
60
  );
61
  await client.connect();
×
62
  return client;
×
63
}
64

65
@Global()
66
@Module({
67
  providers: [
68
    {
69
      provide: 'RedisClient',
70
      useFactory: redisClientFactory,
71
      inject: [IConfigurationService, LoggingService],
72
    },
73
    { provide: CacheService, useClass: RedisCacheService },
74
    { provide: CacheReadiness, useExisting: CacheService },
75
    { provide: CacheKeyPrefix, useValue: '' },
76
  ],
77
  exports: [CacheService, CacheReadiness],
78
})
79
export class CacheModule {}
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc