@midwayjs/oss 3.0.0-alpha.6 → 3.0.0-beta.11
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 +104 -0
- package/README.md +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +17 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/manager.js +13 -13
- package/index.d.ts +9 -0
- package/package.json +13 -8
- package/dist/config.default.d.ts +0 -6
- package/dist/config.default.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,110 @@
|
|
|
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.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Features
|
|
77
|
+
|
|
78
|
+
* add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @midwayjs/oss
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Bug Fixes
|
|
96
|
+
|
|
97
|
+
* serverless local dev bodyparser limit ([#1245](https://github.com/midwayjs/midway/issues/1245)) ([6bdf378](https://github.com/midwayjs/midway/commit/6bdf37841260b1f77e20d913ee85a45ae41ca559))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Features
|
|
101
|
+
|
|
102
|
+
* add cos component ([#1271](https://github.com/midwayjs/midway/issues/1271)) ([c18e597](https://github.com/midwayjs/midway/commit/c18e597d55a6452188cc7daecd0062bf161028cc))
|
|
103
|
+
* add ctx.throw for serverless app ([#1262](https://github.com/midwayjs/midway/issues/1262)) ([70008b3](https://github.com/midwayjs/midway/commit/70008b32157286708ec01390b0bf8233ba5a84dd))
|
|
104
|
+
* add redis component ([#1270](https://github.com/midwayjs/midway/issues/1270)) ([09c993a](https://github.com/midwayjs/midway/commit/09c993ac308d26fa9c742a659471c3f4cf5c5782))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
6
110
|
## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
|
|
7
111
|
|
|
8
112
|
|
package/README.md
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -6,20 +6,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.OSSConfiguration = void 0;
|
|
10
10
|
const decorator_1 = require("@midwayjs/decorator");
|
|
11
|
-
const path_1 = require("path");
|
|
12
11
|
const manager_1 = require("./manager");
|
|
13
|
-
let
|
|
12
|
+
let OSSConfiguration = class OSSConfiguration {
|
|
14
13
|
async onReady(container) {
|
|
15
14
|
await container.getAsync(manager_1.OSSServiceFactory);
|
|
16
15
|
}
|
|
17
16
|
};
|
|
18
|
-
|
|
19
|
-
decorator_1.Configuration({
|
|
17
|
+
OSSConfiguration = __decorate([
|
|
18
|
+
(0, decorator_1.Configuration)({
|
|
20
19
|
namespace: 'oss',
|
|
21
|
-
importConfigs: [
|
|
20
|
+
importConfigs: [
|
|
21
|
+
{
|
|
22
|
+
default: {
|
|
23
|
+
oss: {
|
|
24
|
+
default: {
|
|
25
|
+
timeout: '60s',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
],
|
|
22
31
|
})
|
|
23
|
-
],
|
|
24
|
-
exports.
|
|
32
|
+
], OSSConfiguration);
|
|
33
|
+
exports.OSSConfiguration = OSSConfiguration;
|
|
25
34
|
//# sourceMappingURL=configuration.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -12,6 +12,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Configuration = void 0;
|
|
14
14
|
var configuration_1 = require("./configuration");
|
|
15
|
-
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.
|
|
15
|
+
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.OSSConfiguration; } });
|
|
16
16
|
__exportStar(require("./manager"), exports);
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
package/dist/manager.js
CHANGED
|
@@ -38,18 +38,18 @@ let OSSServiceFactory = class OSSServiceFactory extends core_1.ServiceFactory {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
__decorate([
|
|
41
|
-
decorator_1.Config('oss'),
|
|
41
|
+
(0, decorator_1.Config)('oss'),
|
|
42
42
|
__metadata("design:type", Object)
|
|
43
43
|
], OSSServiceFactory.prototype, "ossConfig", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
decorator_1.Init(),
|
|
45
|
+
(0, decorator_1.Init)(),
|
|
46
46
|
__metadata("design:type", Function),
|
|
47
47
|
__metadata("design:paramtypes", []),
|
|
48
48
|
__metadata("design:returntype", Promise)
|
|
49
49
|
], OSSServiceFactory.prototype, "init", null);
|
|
50
50
|
OSSServiceFactory = __decorate([
|
|
51
|
-
decorator_1.Provide(),
|
|
52
|
-
decorator_1.Scope(decorator_1.ScopeEnum.Singleton)
|
|
51
|
+
(0, decorator_1.Provide)(),
|
|
52
|
+
(0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
|
|
53
53
|
], OSSServiceFactory);
|
|
54
54
|
exports.OSSServiceFactory = OSSServiceFactory;
|
|
55
55
|
let OSSService = class OSSService {
|
|
@@ -58,21 +58,21 @@ let OSSService = class OSSService {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
__decorate([
|
|
61
|
-
decorator_1.Inject(),
|
|
61
|
+
(0, decorator_1.Inject)(),
|
|
62
62
|
__metadata("design:type", OSSServiceFactory)
|
|
63
63
|
], OSSService.prototype, "serviceFactory", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
decorator_1.Init(),
|
|
65
|
+
(0, decorator_1.Init)(),
|
|
66
66
|
__metadata("design:type", Function),
|
|
67
67
|
__metadata("design:paramtypes", []),
|
|
68
68
|
__metadata("design:returntype", Promise)
|
|
69
69
|
], OSSService.prototype, "init", null);
|
|
70
70
|
OSSService = __decorate([
|
|
71
|
-
decorator_1.Provide(),
|
|
72
|
-
decorator_1.Scope(decorator_1.ScopeEnum.Singleton)
|
|
71
|
+
(0, decorator_1.Provide)(),
|
|
72
|
+
(0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
|
|
73
73
|
], OSSService);
|
|
74
74
|
exports.OSSService = OSSService;
|
|
75
|
-
core_1.delegateTargetPrototypeMethod(OSSService, [OSS]);
|
|
75
|
+
(0, core_1.delegateTargetPrototypeMethod)(OSSService, [OSS]);
|
|
76
76
|
let OSSSTSService = class OSSSTSService {
|
|
77
77
|
async init() {
|
|
78
78
|
this.instance = this.serviceFactory.get('default');
|
|
@@ -82,18 +82,18 @@ let OSSSTSService = class OSSSTSService {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
__decorate([
|
|
85
|
-
decorator_1.Inject(),
|
|
85
|
+
(0, decorator_1.Inject)(),
|
|
86
86
|
__metadata("design:type", OSSServiceFactory)
|
|
87
87
|
], OSSSTSService.prototype, "serviceFactory", void 0);
|
|
88
88
|
__decorate([
|
|
89
|
-
decorator_1.Init(),
|
|
89
|
+
(0, decorator_1.Init)(),
|
|
90
90
|
__metadata("design:type", Function),
|
|
91
91
|
__metadata("design:paramtypes", []),
|
|
92
92
|
__metadata("design:returntype", Promise)
|
|
93
93
|
], OSSSTSService.prototype, "init", null);
|
|
94
94
|
OSSSTSService = __decorate([
|
|
95
|
-
decorator_1.Provide(),
|
|
96
|
-
decorator_1.Scope(decorator_1.ScopeEnum.Singleton)
|
|
95
|
+
(0, decorator_1.Provide)(),
|
|
96
|
+
(0, decorator_1.Scope)(decorator_1.ScopeEnum.Singleton)
|
|
97
97
|
], OSSSTSService);
|
|
98
98
|
exports.OSSSTSService = OSSSTSService;
|
|
99
99
|
//# sourceMappingURL=manager.js.map
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/oss",
|
|
3
3
|
"description": "midway oss component",
|
|
4
|
-
"version": "3.0.0-
|
|
4
|
+
"version": "3.0.0-beta.11",
|
|
5
5
|
"main": "dist/index",
|
|
6
|
-
"typings": "
|
|
6
|
+
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*.js",
|
|
9
|
-
"dist/**/*.d.ts"
|
|
9
|
+
"dist/**/*.d.ts",
|
|
10
|
+
"index.d.ts"
|
|
10
11
|
],
|
|
11
12
|
"devDependencies": {
|
|
12
|
-
"@midwayjs/core": "^3.0.0-
|
|
13
|
-
"@midwayjs/decorator": "^3.0.0-
|
|
14
|
-
"@midwayjs/mock": "^3.0.0-
|
|
15
|
-
"@types/ali-oss": "^6.0.10"
|
|
13
|
+
"@midwayjs/core": "^3.0.0-beta.11",
|
|
14
|
+
"@midwayjs/decorator": "^3.0.0-beta.11",
|
|
15
|
+
"@midwayjs/mock": "^3.0.0-beta.11",
|
|
16
|
+
"@types/ali-oss": "^6.0.10",
|
|
17
|
+
"dotenv": "^10.0.0"
|
|
16
18
|
},
|
|
17
19
|
"dependencies": {
|
|
18
20
|
"ali-oss": "^6.16.0"
|
|
@@ -30,9 +32,12 @@
|
|
|
30
32
|
"ci": "npm run test",
|
|
31
33
|
"lint": "mwts check"
|
|
32
34
|
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=12"
|
|
37
|
+
},
|
|
33
38
|
"repository": {
|
|
34
39
|
"type": "git",
|
|
35
40
|
"url": "https://github.com/midwayjs/midway.git"
|
|
36
41
|
},
|
|
37
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a2b066fd500e815e799e7f421cd216f12e0e9f8e"
|
|
38
43
|
}
|
package/dist/config.default.d.ts
DELETED