@midwayjs/oss 3.0.0-beta.1 → 3.0.0-beta.5

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 CHANGED
@@ -3,6 +3,41 @@
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.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
7
+
8
+ **Note:** Version bump only for package @midwayjs/oss
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
15
+
16
+ **Note:** Version bump only for package @midwayjs/oss
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
23
+
24
+
25
+ ### Features
26
+
27
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
34
+
35
+ **Note:** Version bump only for package @midwayjs/oss
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
42
 
8
43
 
@@ -8,7 +8,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
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
12
  let OSSConfiguration = class OSSConfiguration {
14
13
  async onReady(container) {
@@ -18,7 +17,17 @@ let OSSConfiguration = class OSSConfiguration {
18
17
  OSSConfiguration = __decorate([
19
18
  (0, decorator_1.Configuration)({
20
19
  namespace: 'oss',
21
- importConfigs: [(0, path_1.join)(__dirname, './config.default')],
20
+ importConfigs: [
21
+ {
22
+ default: {
23
+ oss: {
24
+ default: {
25
+ timeout: '60s',
26
+ },
27
+ },
28
+ },
29
+ },
30
+ ],
22
31
  })
23
32
  ], OSSConfiguration);
24
33
  exports.OSSConfiguration = OSSConfiguration;
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import * as OSS from 'ali-oss';
2
+
3
+ declare module '@midwayjs/core/dist/interface' {
4
+ interface MidwayConfig {
5
+ oss?: ServiceFactoryConfigOption<OSS.STSOptions | OSS.Options>;
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@midwayjs/oss",
3
3
  "description": "midway oss component",
4
- "version": "3.0.0-beta.1",
4
+ "version": "3.0.0-beta.5",
5
5
  "main": "dist/index",
6
- "typings": "dist/index.d.ts",
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-beta.1",
13
- "@midwayjs/decorator": "^3.0.0-beta.1",
14
- "@midwayjs/mock": "^3.0.0-beta.1",
13
+ "@midwayjs/core": "^3.0.0-beta.5",
14
+ "@midwayjs/decorator": "^3.0.0-beta.5",
15
+ "@midwayjs/mock": "^3.0.0-beta.5",
15
16
  "@types/ali-oss": "^6.0.10",
16
17
  "dotenv": "^10.0.0"
17
18
  },
@@ -38,5 +39,5 @@
38
39
  "type": "git",
39
40
  "url": "https://github.com/midwayjs/midway.git"
40
41
  },
41
- "gitHead": "72e4d20c678e65a5440c4e9a6d3b70046daa497c"
42
+ "gitHead": "ab0bf05ae6d13f6435db2f7223202be61d585a1b"
42
43
  }
@@ -1,6 +0,0 @@
1
- export declare const oss: {
2
- default: {
3
- timeout: string;
4
- };
5
- };
6
- //# sourceMappingURL=config.default.d.ts.map
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.oss = void 0;
4
- exports.oss = {
5
- default: {
6
- timeout: '60s',
7
- },
8
- };
9
- //# sourceMappingURL=config.default.js.map