nestjs-redis-cluster
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -1,5 +0,5 @@ | ||
import { DynamicModule, OnModuleDestroy } from '@nestjs/common'; | ||
import { DynamicModule, OnApplicationShutdown } from '@nestjs/common'; | ||
import { RedisClusterModuleAsyncOptions, RedisClusterModuleOptions } from './cluster.interface'; | ||
import { RedisClusterProvider } from './cluster.provider'; | ||
export declare class ClusterCoreModule implements OnModuleDestroy { | ||
export declare class ClusterCoreModule implements OnApplicationShutdown { | ||
private readonly options; | ||
@@ -10,3 +10,3 @@ private readonly provider; | ||
static forRootAsync(options: RedisClusterModuleAsyncOptions): DynamicModule; | ||
onModuleDestroy(): void; | ||
onApplicationShutdown(): void; | ||
} |
@@ -44,3 +44,3 @@ "use strict"; | ||
} | ||
onModuleDestroy() { | ||
onApplicationShutdown() { | ||
const closeConnection = ({ clusters, defaultKey, }) => options => { | ||
@@ -47,0 +47,0 @@ const name = options.name || defaultKey; |
@@ -1,5 +0,5 @@ | ||
import { DynamicModule, OnModuleDestroy } from '@nestjs/common'; | ||
import { DynamicModule, OnApplicationShutdown } from '@nestjs/common'; | ||
import { RedisModuleAsyncOptions, RedisModuleOptions } from './redis.interface'; | ||
import { RedisClient } from './redis.provider'; | ||
export declare class RedisCoreModule implements OnModuleDestroy { | ||
export declare class RedisCoreModule implements OnApplicationShutdown { | ||
private readonly options; | ||
@@ -10,3 +10,3 @@ private readonly redisClient; | ||
static forRootAsync(options: RedisModuleAsyncOptions): DynamicModule; | ||
onModuleDestroy(): void; | ||
onApplicationShutdown(): void; | ||
} |
@@ -44,3 +44,3 @@ "use strict"; | ||
} | ||
onModuleDestroy() { | ||
onApplicationShutdown() { | ||
const closeConnection = ({ clients, defaultKey }) => options => { | ||
@@ -47,0 +47,0 @@ const name = options.name || defaultKey; |
{ | ||
"name": "nestjs-redis-cluster", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "A nestjs redis module w/ cluster support", | ||
@@ -5,0 +5,0 @@ "author": "Ishmael Samuel (useparagon.com)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41105
34
1