@midwayjs/cos 3.5.3 → 3.7.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/configuration.js +2 -2
- package/dist/manager.js +9 -10
- package/package.json +5 -6
package/dist/configuration.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.COSConfiguration = void 0;
|
|
10
|
-
const
|
|
10
|
+
const core_1 = require("@midwayjs/core");
|
|
11
11
|
const manager_1 = require("./manager");
|
|
12
12
|
const defaultConfig = require("./config.default");
|
|
13
13
|
let COSConfiguration = class COSConfiguration {
|
|
@@ -16,7 +16,7 @@ let COSConfiguration = class COSConfiguration {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
COSConfiguration = __decorate([
|
|
19
|
-
(0,
|
|
19
|
+
(0, core_1.Configuration)({
|
|
20
20
|
namespace: 'cos',
|
|
21
21
|
importConfigs: [
|
|
22
22
|
{
|
package/dist/manager.js
CHANGED
|
@@ -10,7 +10,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.COSService = exports.COSServiceFactory = void 0;
|
|
13
|
-
const decorator_1 = require("@midwayjs/decorator");
|
|
14
13
|
const core_1 = require("@midwayjs/core");
|
|
15
14
|
const assert = require("assert");
|
|
16
15
|
const COS = require("cos-nodejs-sdk-v5");
|
|
@@ -28,22 +27,22 @@ let COSServiceFactory = class COSServiceFactory extends core_1.ServiceFactory {
|
|
|
28
27
|
}
|
|
29
28
|
};
|
|
30
29
|
__decorate([
|
|
31
|
-
(0,
|
|
30
|
+
(0, core_1.Config)('cos'),
|
|
32
31
|
__metadata("design:type", Object)
|
|
33
32
|
], COSServiceFactory.prototype, "cosConfig", void 0);
|
|
34
33
|
__decorate([
|
|
35
|
-
(0,
|
|
34
|
+
(0, core_1.Init)(),
|
|
36
35
|
__metadata("design:type", Function),
|
|
37
36
|
__metadata("design:paramtypes", []),
|
|
38
37
|
__metadata("design:returntype", Promise)
|
|
39
38
|
], COSServiceFactory.prototype, "init", null);
|
|
40
39
|
__decorate([
|
|
41
|
-
(0,
|
|
40
|
+
(0, core_1.Logger)('coreLogger'),
|
|
42
41
|
__metadata("design:type", Object)
|
|
43
42
|
], COSServiceFactory.prototype, "logger", void 0);
|
|
44
43
|
COSServiceFactory = __decorate([
|
|
45
|
-
(0,
|
|
46
|
-
(0,
|
|
44
|
+
(0, core_1.Provide)(),
|
|
45
|
+
(0, core_1.Scope)(core_1.ScopeEnum.Singleton)
|
|
47
46
|
], COSServiceFactory);
|
|
48
47
|
exports.COSServiceFactory = COSServiceFactory;
|
|
49
48
|
let COSService = class COSService {
|
|
@@ -55,18 +54,18 @@ let COSService = class COSService {
|
|
|
55
54
|
}
|
|
56
55
|
};
|
|
57
56
|
__decorate([
|
|
58
|
-
(0,
|
|
57
|
+
(0, core_1.Inject)(),
|
|
59
58
|
__metadata("design:type", COSServiceFactory)
|
|
60
59
|
], COSService.prototype, "serviceFactory", void 0);
|
|
61
60
|
__decorate([
|
|
62
|
-
(0,
|
|
61
|
+
(0, core_1.Init)(),
|
|
63
62
|
__metadata("design:type", Function),
|
|
64
63
|
__metadata("design:paramtypes", []),
|
|
65
64
|
__metadata("design:returntype", Promise)
|
|
66
65
|
], COSService.prototype, "init", null);
|
|
67
66
|
COSService = __decorate([
|
|
68
|
-
(0,
|
|
69
|
-
(0,
|
|
67
|
+
(0, core_1.Provide)(),
|
|
68
|
+
(0, core_1.Scope)(core_1.ScopeEnum.Singleton)
|
|
70
69
|
], COSService);
|
|
71
70
|
exports.COSService = COSService;
|
|
72
71
|
(0, core_1.delegateTargetPrototypeMethod)(COSService, [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.
|
|
4
|
+
"version": "3.7.0",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,10 +10,9 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.
|
|
14
|
-
"@midwayjs/
|
|
15
|
-
"
|
|
16
|
-
"dotenv": "16.0.2"
|
|
13
|
+
"@midwayjs/core": "^3.7.0",
|
|
14
|
+
"@midwayjs/mock": "^3.7.0",
|
|
15
|
+
"dotenv": "16.0.3"
|
|
17
16
|
},
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"cos-nodejs-sdk-v5": "^2.10.0"
|
|
@@ -38,5 +37,5 @@
|
|
|
38
37
|
"type": "git",
|
|
39
38
|
"url": "https://github.com/midwayjs/midway.git"
|
|
40
39
|
},
|
|
41
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "99386083ee26b386fd508b9c892091c914e77535"
|
|
42
41
|
}
|