@midwayjs/redis 3.7.3 → 3.9.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.
Files changed (2) hide show
  1. package/dist/manager.js +3 -2
  2. package/package.json +5 -5
package/dist/manager.js CHANGED
@@ -37,7 +37,7 @@ let RedisServiceFactory = class RedisServiceFactory extends core_1.ServiceFactor
37
37
  }
38
38
  else {
39
39
  assert(config.host && config.port, `[midway:redis] 'host: ${config.host}', 'port: ${config.port}' are required on config`);
40
- this.logger.info('[midway:redis] server connecting redis://:***@%s:%s/%s', config.host, config.port);
40
+ this.logger.info('[midway:redis] server connecting redis://:***@%s:%s', config.host, config.port);
41
41
  client = new ioredis_1.default(config);
42
42
  }
43
43
  await new Promise((resolve, reject) => {
@@ -85,7 +85,8 @@ RedisServiceFactory = __decorate([
85
85
  exports.RedisServiceFactory = RedisServiceFactory;
86
86
  let RedisService = class RedisService {
87
87
  async init() {
88
- this.instance = this.serviceFactory.get('default');
88
+ var _a, _b;
89
+ this.instance = this.serviceFactory.get(((_b = (_a = this.serviceFactory).getDefaultClientName) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default');
89
90
  if (!this.instance) {
90
91
  throw new core_1.MidwayCommonError('redis default instance not found.');
91
92
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/redis",
3
3
  "description": "midway redis component",
4
- "version": "3.7.3",
4
+ "version": "3.9.0",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -10,11 +10,11 @@
10
10
  "index.d.ts"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.7.0",
14
- "@midwayjs/mock": "^3.7.3"
13
+ "@midwayjs/core": "^3.9.0",
14
+ "@midwayjs/mock": "^3.9.0"
15
15
  },
16
16
  "dependencies": {
17
- "ioredis": "^5.0.0"
17
+ "ioredis": "5.2.4"
18
18
  },
19
19
  "keywords": [
20
20
  "redis"
@@ -35,5 +35,5 @@
35
35
  "type": "git",
36
36
  "url": "https://github.com/midwayjs/midway.git"
37
37
  },
38
- "gitHead": "8e6c830bca52818e0086873b542423d16e609aef"
38
+ "gitHead": "5f6603d2c9606fc6fc7ece71f956e89e394efeee"
39
39
  }