@midwayjs/redis 3.4.0-beta.4 → 3.4.0-beta.7
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.
- package/dist/manager.js +1 -3
- package/package.json +5 -5
package/dist/manager.js
CHANGED
|
@@ -23,9 +23,7 @@ let RedisServiceFactory = class RedisServiceFactory extends core_1.ServiceFactor
|
|
|
23
23
|
if (config.cluster === true) {
|
|
24
24
|
assert(config.nodes && config.nodes.length !== 0, '[midway:redis] cluster nodes configuration is required when use cluster redis');
|
|
25
25
|
config.nodes.forEach(client => {
|
|
26
|
-
assert(client.host &&
|
|
27
|
-
client.port &&
|
|
28
|
-
`[midway:redis] 'host: ${client.host}', 'port: ${client.port}' are required on config`);
|
|
26
|
+
assert(client.host && client.port, `[midway:redis] 'host: ${client.host}', 'port: ${client.port}' are required on config`);
|
|
29
27
|
});
|
|
30
28
|
this.logger.info('[midway:redis] cluster connecting');
|
|
31
29
|
client = new ioredis_1.default.Cluster(config.nodes, config);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/redis",
|
|
3
3
|
"description": "midway redis component",
|
|
4
|
-
"version": "3.4.0-beta.
|
|
4
|
+
"version": "3.4.0-beta.7",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.4.0-beta.
|
|
14
|
-
"@midwayjs/decorator": "^3.4.0-beta.
|
|
15
|
-
"@midwayjs/mock": "^3.4.0-beta.
|
|
13
|
+
"@midwayjs/core": "^3.4.0-beta.7",
|
|
14
|
+
"@midwayjs/decorator": "^3.4.0-beta.7",
|
|
15
|
+
"@midwayjs/mock": "^3.4.0-beta.7"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"ioredis": "^5.0.0"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"type": "git",
|
|
37
37
|
"url": "https://github.com/midwayjs/midway.git"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4d5cc59a7a33e49beeaf20fcfaf766438649959c"
|
|
40
40
|
}
|