@midwayjs/cos 3.0.0-beta.13 → 3.0.0-beta.14

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,17 @@
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
+ # [3.0.0-beta.14](https://github.com/midwayjs/midway/compare/v3.0.0-beta.13...v3.0.0-beta.14) (2022-01-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * cos config definition & 3.x doc update ([#1515](https://github.com/midwayjs/midway/issues/1515)) ([0ac7ac5](https://github.com/midwayjs/midway/commit/0ac7ac5805b7ab8873f8792fc1712a74e3223172))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
7
18
 
8
19
  **Note:** Version bump only for package @midwayjs/cos
package/dist/manager.d.ts CHANGED
@@ -4,7 +4,7 @@ export declare class COSServiceFactory extends ServiceFactory<COS> {
4
4
  cosConfig: any;
5
5
  init(): Promise<void>;
6
6
  logger: any;
7
- createClient(config: any): Promise<COS>;
7
+ createClient(config: COS.COSOptions): Promise<COS>;
8
8
  getName(): string;
9
9
  }
10
10
  export declare class COSService implements COS {
package/dist/manager.js CHANGED
@@ -19,12 +19,9 @@ 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
+ assert(config.SecretId && config.SecretId, '[@midwayjs/cos] secretId secretKey is required on config');
23
+ this.logger.info('[@midwayjs/cos] init %s', config.SecretKey);
24
+ return new COS(config);
28
25
  }
29
26
  getName() {
30
27
  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": "3.0.0-beta.13",
4
+ "version": "3.0.0-beta.14",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -10,10 +10,10 @@
10
10
  "index.d.ts"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.0.0-beta.13",
14
- "@midwayjs/decorator": "^3.0.0-beta.13",
15
- "@midwayjs/mock": "^3.0.0-beta.13",
16
- "dotenv": "^10.0.0"
13
+ "@midwayjs/core": "^3.0.0-beta.14",
14
+ "@midwayjs/decorator": "^3.0.0-beta.14",
15
+ "@midwayjs/mock": "^3.0.0-beta.14",
16
+ "dotenv": "10.0.0"
17
17
  },
18
18
  "dependencies": {
19
19
  "cos-nodejs-sdk-v5": "^2.10.0"
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "https://github.com/midwayjs/midway.git"
40
40
  },
41
- "gitHead": "d3c47770fee9dce33a8d148882173fd7782864ad"
41
+ "gitHead": "95695ada36190cf376e93a1a8866b3fb6dde06bc"
42
42
  }