@tsed/ioredis 8.19.5 → 8.20.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 {
|
|
1
|
+
import { Provider } from "@tsed/di";
|
|
2
2
|
import { IOREDIS_CONNECTIONS } from "./registerConnectionProvider.js";
|
|
3
3
|
export async function mockConnection(token, name) {
|
|
4
4
|
const { default: RealIORedis } = await import("ioredis-mock");
|
|
@@ -10,7 +10,7 @@ export async function mockConnection(token, name) {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export function mockConnections() {
|
|
13
|
-
return Promise.all([...
|
|
13
|
+
return Promise.all([...Provider.Registry.values()]
|
|
14
14
|
.filter((provider) => provider.type === IOREDIS_CONNECTIONS)
|
|
15
15
|
.map((provider) => mockConnection(provider.token, provider.connectionName)));
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/ioredis",
|
|
3
3
|
"description": "IO Redis connection for Ts.ED",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.20.0",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"tslib": "2.7.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@tsed/barrels": "8.
|
|
36
|
-
"@tsed/core": "8.
|
|
37
|
-
"@tsed/di": "8.
|
|
38
|
-
"@tsed/typescript": "8.
|
|
35
|
+
"@tsed/barrels": "8.20.0",
|
|
36
|
+
"@tsed/core": "8.20.0",
|
|
37
|
+
"@tsed/di": "8.20.0",
|
|
38
|
+
"@tsed/typescript": "8.20.0",
|
|
39
39
|
"@types/ioredis-mock": "^8.2.5",
|
|
40
40
|
"eslint": "9.12.0",
|
|
41
41
|
"ioredis": "5.4.1",
|