@cloudbase/types 2.21.0 → 2.21.2
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/auth.d.ts +1 -1
- package/index.d.ts +2 -1
- package/package.json +2 -2
- package/request.d.ts +1 -1
package/auth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ICloudbaseConfig, KV, ICloudbase } from '.'
|
|
2
2
|
|
|
3
|
-
export type ICloudbaseAuthConfig = Pick<ICloudbaseConfig, 'env' | 'clientId' | 'region' | 'persistence' | 'debug' | '_fromApp' | 'oauthInstance' | 'wxCloud' | 'i18n' | 'accessKey'>;
|
|
3
|
+
export type ICloudbaseAuthConfig = Pick<ICloudbaseConfig, 'env' | 'clientId' | 'region' | 'persistence' | 'debug' | '_fromApp' | 'oauthInstance' | 'wxCloud' | 'i18n' | 'accessKey' | 'useWxCloud'>;
|
|
4
4
|
|
|
5
5
|
export interface IAccessTokenInfo {
|
|
6
6
|
accessToken: string;
|
package/index.d.ts
CHANGED
|
@@ -38,7 +38,8 @@ export interface ICloudbaseConfig {
|
|
|
38
38
|
lang: LANGS;
|
|
39
39
|
}
|
|
40
40
|
accessKey?: string
|
|
41
|
-
|
|
41
|
+
endPointMode?: EndPointKey // auth请求域名模式,默认CLOUD_API
|
|
42
|
+
useWxCloud?: boolean // 是否使用微信云开发链路
|
|
42
43
|
}
|
|
43
44
|
// 可更新的配置字段
|
|
44
45
|
export type ICloudbaseUpgradedConfig = Pick<ICloudbaseConfig, 'persistence' | 'region' | 'debug'>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/types",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.2",
|
|
4
4
|
"description": "cloudbase javascript sdk types",
|
|
5
5
|
"files": [
|
|
6
6
|
"index.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"lint": "eslint --fix \"./**/*.ts\"",
|
|
44
44
|
"precommit": "npm run lint"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "fdea3b2ed4be4126f24588f3a59f91235f28bc1e"
|
|
47
47
|
}
|
package/request.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface IGetAccessTokenResult {
|
|
|
10
10
|
accessTokenExpire: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export type ICloudbaseRequestConfig = Pick<ICloudbaseConfig, 'env' | 'region' | 'timeout' | 'oauthClient' | '_fromApp' | 'i18n'>;
|
|
13
|
+
export type ICloudbaseRequestConfig = Pick<ICloudbaseConfig, 'env' | 'region' | 'timeout' | 'oauthClient' | '_fromApp' | 'i18n' | 'endPointMode'>;
|
|
14
14
|
|
|
15
15
|
export interface IAppendedRequestInfo {
|
|
16
16
|
data: KV<any>;
|