@midwayjs/cos 2.13.3 → 2.14.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.14.6](https://github.com/midwayjs/midway/compare/v2.14.5...v2.14.6) (2022-02-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * cos config ([#1635](https://github.com/midwayjs/midway/issues/1635)) ([83877dd](https://github.com/midwayjs/midway/commit/83877ddfc065577ffe38a09807302ab249c1dd99))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.14.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([5d5f299](https://github.com/midwayjs/midway/commit/5d5f2992be116ca71b21f01fd782e3a2ac072496))
23
+
24
+
25
+
26
+
27
+
28
+ ## [2.13.4](https://github.com/midwayjs/midway/compare/v2.13.3...v2.13.4) (2021-10-21)
29
+
30
+ **Note:** Version bump only for package @midwayjs/cos
31
+
32
+
33
+
34
+
35
+
6
36
  ## [2.13.3](https://github.com/midwayjs/midway/compare/v2.13.2...v2.13.3) (2021-09-28)
7
37
 
8
38
  **Note:** Version bump only for package @midwayjs/cos
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  this is a sub package for midway.
7
7
 
8
- Document: [https://midwayjs.org/midway](https://midwayjs.org/midway)
8
+ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
package/dist/manager.js CHANGED
@@ -19,12 +19,12 @@ let COSServiceFactory = class COSServiceFactory extends core_1.ServiceFactory {
19
19
  await this.initClients(this.cosConfig);
20
20
  }
21
21
  async createClient(config) {
22
- assert(config.secretId && config.secretKey, '[@midwayjs/cos] secretId secretKey is required on config');
23
- this.logger.info('[@midwayjs/cos] init %s', config.secretId);
24
- return new COS({
25
- SecretId: config.secretId,
26
- SecretKey: config.secretKey,
27
- });
22
+ var _a, _b;
23
+ config.SecretId = (_a = config.secretId) !== null && _a !== void 0 ? _a : config.SecretId;
24
+ config.SecretKey = (_b = config.secretKey) !== null && _b !== void 0 ? _b : config.SecretKey;
25
+ assert(config.SecretId && config.SecretKey, '[@midwayjs/cos] SecretId SecretKey is required on config');
26
+ this.logger.info('[@midwayjs/cos] init %s', config.SecretId);
27
+ return new COS(config);
28
28
  }
29
29
  getName() {
30
30
  return 'cos';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/cos",
3
3
  "description": "midway cos component",
4
- "version": "2.13.3",
4
+ "version": "2.14.6",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
7
7
  "files": [
@@ -9,9 +9,9 @@
9
9
  "dist/**/*.d.ts"
10
10
  ],
11
11
  "devDependencies": {
12
- "@midwayjs/core": "^2.13.3",
13
- "@midwayjs/decorator": "^2.13.2",
14
- "@midwayjs/mock": "^2.13.3",
12
+ "@midwayjs/core": "^2.14.6",
13
+ "@midwayjs/decorator": "^2.14.0",
14
+ "@midwayjs/mock": "^2.14.6",
15
15
  "dotenv": "^10.0.0"
16
16
  },
17
17
  "dependencies": {
@@ -34,5 +34,5 @@
34
34
  "type": "git",
35
35
  "url": "https://github.com/midwayjs/midway.git"
36
36
  },
37
- "gitHead": "30f63af0d6560421b36f31064cb20b13a53b5afb"
37
+ "gitHead": "9041633a98444568643bb5a1e8f10bb58e1f1b19"
38
38
  }