@cloudbase/types 2.19.6 → 3.0.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/auth.d.ts +1 -1
- package/index.d.ts +1 -4
- 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'>;
|
|
3
|
+
export type ICloudbaseAuthConfig = Pick<ICloudbaseConfig, 'env' | 'clientId' | 'region' | 'persistence' | 'debug' | '_fromApp' | 'oauthInstance' | 'wxCloud' | 'i18n' | 'publishable_key'>;
|
|
4
4
|
|
|
5
5
|
export interface IAccessTokenInfo {
|
|
6
6
|
accessToken: string;
|
package/index.d.ts
CHANGED
|
@@ -30,12 +30,12 @@ export interface ICloudbaseConfig {
|
|
|
30
30
|
clientId?: string
|
|
31
31
|
oauthInstance?: any
|
|
32
32
|
wxCloud?: any
|
|
33
|
-
lang?: LANGS
|
|
34
33
|
i18n?: {
|
|
35
34
|
t: (text: string) => string;
|
|
36
35
|
LANG_HEADER_KEY: string;
|
|
37
36
|
lang: LANGS;
|
|
38
37
|
}
|
|
38
|
+
publishable_key?: string
|
|
39
39
|
}
|
|
40
40
|
// 可更新的配置字段
|
|
41
41
|
export type ICloudbaseUpgradedConfig = Pick<ICloudbaseConfig, 'persistence' | 'region' | 'debug'>
|
|
@@ -82,10 +82,7 @@ export interface ICallApiOptions {
|
|
|
82
82
|
path?: string
|
|
83
83
|
method?: string
|
|
84
84
|
headers?: KV<any>
|
|
85
|
-
data?: KV<any>
|
|
86
85
|
/** 请求体,根据content-type可以是不同类型 */
|
|
87
86
|
body?: KV<any> | string
|
|
88
|
-
/** 自定义配置,可以覆盖其他配置 */
|
|
89
|
-
config?: KV<any>
|
|
90
87
|
token?: string;
|
|
91
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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": "a70e7266db7be901d909b1fa63c1651e2a7943e4"
|
|
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' | 'publishable_key'>;
|
|
14
14
|
|
|
15
15
|
export interface IAppendedRequestInfo {
|
|
16
16
|
data: KV<any>;
|