@midwayjs/cos 3.7.1 → 3.8.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/dist/manager.js +2 -1
- package/package.json +5 -5
package/dist/manager.js
CHANGED
|
@@ -47,7 +47,8 @@ COSServiceFactory = __decorate([
|
|
|
47
47
|
exports.COSServiceFactory = COSServiceFactory;
|
|
48
48
|
let COSService = class COSService {
|
|
49
49
|
async init() {
|
|
50
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
this.instance = this.serviceFactory.get(((_b = (_a = this.serviceFactory).getDefaultClientName) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default');
|
|
51
52
|
if (!this.instance) {
|
|
52
53
|
throw new core_1.MidwayCommonError('cos default instance not found.');
|
|
53
54
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/cos",
|
|
3
3
|
"description": "midway cos component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.
|
|
14
|
-
"@midwayjs/mock": "^3.
|
|
13
|
+
"@midwayjs/core": "^3.8.0",
|
|
14
|
+
"@midwayjs/mock": "^3.8.0",
|
|
15
15
|
"dotenv": "16.0.3"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"cos-nodejs-sdk-v5": "
|
|
18
|
+
"cos-nodejs-sdk-v5": "2.11.15"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"tencent",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"type": "git",
|
|
38
38
|
"url": "https://github.com/midwayjs/midway.git"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "5c640c7182923587139f9f9c0aecf50585798e1e"
|
|
41
41
|
}
|