@midwayjs/oss 3.9.0 → 3.10.1
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/interface.d.ts +4 -4
- package/package.json +5 -5
package/dist/interface.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as OSS from 'ali-oss';
|
|
2
|
-
export
|
|
2
|
+
export type Without<T, U> = {
|
|
3
3
|
[P in Exclude<keyof T, keyof U>]?: never;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type XOR<T, U> = (Without<T, U> & U) | (Without<U, T> & T);
|
|
6
6
|
export interface MWOSSOptions extends OSS.Options {
|
|
7
7
|
}
|
|
8
8
|
export interface MWOSSClusterOptions extends OSS.ClusterOptions {
|
|
@@ -14,6 +14,6 @@ export interface MWOSSClusterOptions extends OSS.ClusterOptions {
|
|
|
14
14
|
export interface MWOSSSTSOptions extends OSS.STSOptions {
|
|
15
15
|
sts: boolean;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type OSSServiceFactoryReturnType = XOR<XOR<OSS, OSS.STS>, OSS.ClusterClient>;
|
|
18
|
+
export type OSSServiceFactoryCreateClientConfigType = XOR<XOR<MWOSSOptions, MWOSSClusterOptions>, MWOSSSTSOptions>;
|
|
19
19
|
//# sourceMappingURL=interface.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/oss",
|
|
3
3
|
"description": "midway oss component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.10.1",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"index.d.ts"
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.
|
|
14
|
-
"@midwayjs/mock": "^3.
|
|
13
|
+
"@midwayjs/core": "^3.10.1",
|
|
14
|
+
"@midwayjs/mock": "^3.10.1",
|
|
15
15
|
"dotenv": "16.0.3"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@types/ali-oss": "6.16.
|
|
18
|
+
"@types/ali-oss": "6.16.7",
|
|
19
19
|
"ali-oss": "6.17.1"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"type": "git",
|
|
39
39
|
"url": "https://github.com/midwayjs/midway.git"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "6bc9f7a97e4188399d2406f5a38bad5aeb983e07"
|
|
42
42
|
}
|