@cloudbase/types 2.19.7 → 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 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
@@ -35,6 +35,7 @@ export interface ICloudbaseConfig {
35
35
  LANG_HEADER_KEY: string;
36
36
  lang: LANGS;
37
37
  }
38
+ publishable_key?: string
38
39
  }
39
40
  // 可更新的配置字段
40
41
  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.19.7",
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": "96d36b989171037840b6f261c9c5753b0ae7476b"
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>;