uniapp-request-sdk 1.3.6 → 1.3.7

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ interface IParams {
22
22
  /** 传入的token前缀,默认Bearer ,注意Bearer有个空字符串*/
23
23
  tokenPrefix?: string;
24
24
  /** 自定义得到token的函数,默认使用从客户端获取token的方式 */
25
- getTokenFun: () => Promise<string>;
25
+ getTokenFun?: () => Promise<string>;
26
26
  }
27
27
  declare class UniRequest {
28
28
  /** 基准路径 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniapp-request-sdk",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "用于uniapp小程序的请求库的sdk",
5
5
  "main": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",