@midwayjs/oss 3.7.3 → 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.
Files changed (2) hide show
  1. package/dist/manager.js +4 -2
  2. package/package.json +6 -6
package/dist/manager.js CHANGED
@@ -59,7 +59,8 @@ OSSServiceFactory = __decorate([
59
59
  exports.OSSServiceFactory = OSSServiceFactory;
60
60
  let OSSService = class OSSService {
61
61
  async init() {
62
- this.instance = this.serviceFactory.get('default');
62
+ var _a, _b;
63
+ this.instance = this.serviceFactory.get(((_b = (_a = this.serviceFactory).getDefaultClientName) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default');
63
64
  if (!this.instance) {
64
65
  throw new core_1.MidwayCommonError('oss default instance not found.');
65
66
  }
@@ -83,7 +84,8 @@ exports.OSSService = OSSService;
83
84
  (0, core_1.delegateTargetPrototypeMethod)(OSSService, [OSS]);
84
85
  let OSSSTSService = class OSSSTSService {
85
86
  async init() {
86
- this.instance = this.serviceFactory.get('default');
87
+ var _a, _b;
88
+ this.instance = this.serviceFactory.get(((_b = (_a = this.serviceFactory).getDefaultClientName) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'default');
87
89
  if (!this.instance) {
88
90
  throw new core_1.MidwayCommonError('oss sts default instance not found.');
89
91
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midwayjs/oss",
3
3
  "description": "midway oss component",
4
- "version": "3.7.3",
4
+ "version": "3.8.0",
5
5
  "main": "dist/index",
6
6
  "typings": "index.d.ts",
7
7
  "files": [
@@ -10,13 +10,13 @@
10
10
  "index.d.ts"
11
11
  ],
12
12
  "devDependencies": {
13
- "@midwayjs/core": "^3.7.0",
14
- "@midwayjs/mock": "^3.7.3",
15
- "@types/ali-oss": "6.16.6",
13
+ "@midwayjs/core": "^3.8.0",
14
+ "@midwayjs/mock": "^3.8.0",
16
15
  "dotenv": "16.0.3"
17
16
  },
18
17
  "dependencies": {
19
- "ali-oss": "^6.16.0"
18
+ "@types/ali-oss": "6.16.6",
19
+ "ali-oss": "6.17.1"
20
20
  },
21
21
  "keywords": [
22
22
  "aliyun",
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "https://github.com/midwayjs/midway.git"
40
40
  },
41
- "gitHead": "8e6c830bca52818e0086873b542423d16e609aef"
41
+ "gitHead": "5c640c7182923587139f9f9c0aecf50585798e1e"
42
42
  }