@xnestjs/redisess 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Redis from 'ioredis';
|
|
1
|
+
import Redis, { Cluster } from 'ioredis';
|
|
2
2
|
import { SessionManager } from 'redisess';
|
|
3
3
|
import { Type } from '@nestjs/common';
|
|
4
4
|
import { ModuleMetadata } from '@nestjs/common/interfaces';
|
|
@@ -7,7 +7,7 @@ export interface RedisessModuleOptions extends SessionManager.Options {
|
|
|
7
7
|
* Connection name
|
|
8
8
|
*/
|
|
9
9
|
name?: string;
|
|
10
|
-
client: Redis;
|
|
10
|
+
client: Redis | Cluster;
|
|
11
11
|
}
|
|
12
12
|
export interface RedisessModuleOptionsFactory {
|
|
13
13
|
createOptions(connectionName?: string): Promise<RedisessModuleOptions> | RedisessModuleOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xnestjs/redisess",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "NestJS extension library for redisess",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@nestjs/common": ">=8.0.0",
|
|
29
|
-
"redisess": "^2.
|
|
29
|
+
"redisess": "^2.2.0"
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"types": "types/index.d.ts",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Redis from 'ioredis';
|
|
1
|
+
import Redis, { Cluster } from 'ioredis';
|
|
2
2
|
import { SessionManager } from 'redisess';
|
|
3
3
|
import { Type } from '@nestjs/common';
|
|
4
4
|
import { ModuleMetadata } from '@nestjs/common/interfaces';
|
|
@@ -7,7 +7,7 @@ export interface RedisessModuleOptions extends SessionManager.Options {
|
|
|
7
7
|
* Connection name
|
|
8
8
|
*/
|
|
9
9
|
name?: string;
|
|
10
|
-
client: Redis;
|
|
10
|
+
client: Redis | Cluster;
|
|
11
11
|
}
|
|
12
12
|
export interface RedisessModuleOptionsFactory {
|
|
13
13
|
createOptions(connectionName?: string): Promise<RedisessModuleOptions> | RedisessModuleOptions;
|