@midwayjs/oss 4.0.0-beta.7 → 4.0.0-beta.8
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 +5 -0
- package/package.json +4 -4
package/dist/manager.js
CHANGED
|
@@ -18,6 +18,7 @@ function checkBucketConfig(config) {
|
|
|
18
18
|
assert.ok(config.accessKeySecret && config.accessKeyId, "[midway:oss] Must set `accessKeyId` and `accessKeySecret` in oss's config");
|
|
19
19
|
}
|
|
20
20
|
let OSSServiceFactory = class OSSServiceFactory extends core_1.ServiceFactory {
|
|
21
|
+
ossConfig;
|
|
21
22
|
async init() {
|
|
22
23
|
await this.initClients(this.ossConfig, {
|
|
23
24
|
concurrent: true,
|
|
@@ -60,6 +61,8 @@ exports.OSSServiceFactory = OSSServiceFactory = __decorate([
|
|
|
60
61
|
(0, core_1.Scope)(core_1.ScopeEnum.Singleton)
|
|
61
62
|
], OSSServiceFactory);
|
|
62
63
|
let OSSService = class OSSService {
|
|
64
|
+
serviceFactory;
|
|
65
|
+
instance;
|
|
63
66
|
async init() {
|
|
64
67
|
this.instance = this.serviceFactory.get(this.serviceFactory.getDefaultClientName?.() || 'default');
|
|
65
68
|
if (!this.instance) {
|
|
@@ -84,6 +87,8 @@ exports.OSSService = OSSService = __decorate([
|
|
|
84
87
|
], OSSService);
|
|
85
88
|
(0, core_1.delegateTargetPrototypeMethod)(OSSService, [OSS]);
|
|
86
89
|
let OSSSTSService = class OSSSTSService {
|
|
90
|
+
serviceFactory;
|
|
91
|
+
instance;
|
|
87
92
|
async init() {
|
|
88
93
|
this.instance = this.serviceFactory.get(this.serviceFactory.getDefaultClientName?.() || 'default');
|
|
89
94
|
if (!this.instance) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/oss",
|
|
3
3
|
"description": "midway oss component",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.8",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
14
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
13
|
+
"@midwayjs/core": "^4.0.0-beta.8",
|
|
14
|
+
"@midwayjs/mock": "^4.0.0-beta.8",
|
|
15
15
|
"dotenv": "16.4.7"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"type": "git",
|
|
39
39
|
"url": "https://github.com/midwayjs/midway.git"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
|
|
42
42
|
}
|