@midwayjs/cos 3.0.0-beta.6 → 3.0.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.
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.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.6",
4
+ "version": "3.0.0",
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.6",
14
- "@midwayjs/decorator": "^3.0.0-beta.6",
15
- "@midwayjs/mock": "^3.0.0-beta.6",
16
- "dotenv": "^10.0.0"
13
+ "@midwayjs/core": "^3.0.0",
14
+ "@midwayjs/decorator": "^3.0.0",
15
+ "@midwayjs/mock": "^3.0.0",
16
+ "dotenv": "14.2.0"
17
17
  },
18
18
  "dependencies": {
19
19
  "cos-nodejs-sdk-v5": "^2.10.0"
@@ -26,8 +26,8 @@
26
26
  "license": "MIT",
27
27
  "scripts": {
28
28
  "build": "tsc",
29
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest",
30
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
29
+ "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
30
+ "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
31
31
  "ci": "npm run test",
32
32
  "lint": "mwts check"
33
33
  },
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "https://github.com/midwayjs/midway.git"
40
40
  },
41
- "gitHead": "e4595d30b369e36bef21b36f2b3737d8bc2f802d"
41
+ "gitHead": "55c26029bccf7bbb739fa1597e8f418dafa2caa0"
42
42
  }
package/CHANGELOG.md DELETED
@@ -1,54 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
7
-
8
- **Note:** Version bump only for package @midwayjs/cos
9
-
10
-
11
-
12
-
13
-
14
- # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
15
-
16
- **Note:** Version bump only for package @midwayjs/cos
17
-
18
-
19
-
20
-
21
-
22
- # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
23
-
24
- **Note:** Version bump only for package @midwayjs/cos
25
-
26
-
27
-
28
-
29
-
30
- # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
31
-
32
-
33
- ### Features
34
-
35
- * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
36
-
37
-
38
-
39
-
40
-
41
- # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
42
-
43
- **Note:** Version bump only for package @midwayjs/cos
44
-
45
-
46
-
47
-
48
-
49
- # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
50
-
51
-
52
- ### Features
53
-
54
- * add cos component ([#1271](https://github.com/midwayjs/midway/issues/1271)) ([c18e597](https://github.com/midwayjs/midway/commit/c18e597d55a6452188cc7daecd0062bf161028cc))