im-ui-mobile 0.0.64 → 0.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "A Vue3.0 + typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -4,8 +4,7 @@ declare class Requester {
4
4
  private baseURL;
5
5
  private options;
6
6
  private timeout;
7
- private headers;
8
- private accessToken;
7
+ private header;
9
8
  constructor(baseURL: string, options?: Partial<UniApp.RequestOptions>);
10
9
  setToken(token: string): void;
11
10
  request<T = any>(options: Partial<UniApp.RequestOptions>): Promise<Response<T>>;
@@ -24,11 +24,11 @@ export default class Requester {
24
24
  this.header = {
25
25
  ...options.header
26
26
  }
27
- this.options = this.baseURL + this.options.url
28
- this.options.timeout = this.timeout
27
+ this.options.url = this.baseURL + this.options.url
29
28
  this.options.header = this.header
30
29
  return new Promise((resolve, reject) => {
31
30
  uni.request({
31
+ timeout: this.timeout,
32
32
  ...this.options,
33
33
  success: (res) => {
34
34
  const data = res.data;