im-ui-mobile 0.0.64 → 0.0.66

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.66",
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>>;
@@ -22,11 +22,12 @@ export default class Requester {
22
22
  ...options
23
23
  }
24
24
  this.header = {
25
+ ...this.header,
25
26
  ...options.header
26
27
  }
27
- this.options = this.baseURL + this.options.url
28
- this.options.timeout = this.timeout
28
+ this.options.url = this.baseURL + this.options.url
29
29
  this.options.header = this.header
30
+ this.options.timeout = this.timeout
30
31
  return new Promise((resolve, reject) => {
31
32
  uni.request({
32
33
  ...this.options,