@gooin/garmin-connect 1.6.1 → 1.6.3

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/README.md CHANGED
@@ -58,7 +58,7 @@ await GCClient.login();
58
58
  const userProfile = await GCClient.getUserProfile();
59
59
  ```
60
60
 
61
- Now you can check `userProfile.userName` (userName is your email address) to verify that your login was successful.
61
+ Now you can check `userProfile.userName` to verify that your login was successful.
62
62
 
63
63
  ## Reusing your session(since v1.6.0)
64
64
 
@@ -13,6 +13,7 @@ export declare class HttpClient {
13
13
  checkTokenVaild(): Promise<void>;
14
14
  get<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>;
15
15
  post<T>(url: string, data: any, config?: AxiosRequestConfig<any>): Promise<T>;
16
+ delete<T>(url: string, config?: AxiosRequestConfig<any>): Promise<T>;
16
17
  setCommonHeader(headers: RawAxiosRequestHeaders): void;
17
18
  handleError(response: AxiosResponse): void;
18
19
  handleHttpError(response: AxiosResponse): void;
@@ -25,6 +26,7 @@ export declare class HttpClient {
25
26
  login(username: string, password: string): Promise<HttpClient>;
26
27
  private getLoginTicket;
27
28
  handleMFA(htmlStr: string): void;
29
+ handlePageTitle(htmlStr: string): void;
28
30
  handleAccountLocked(htmlStr: string): void;
29
31
  refreshOauth2Token(): Promise<void>;
30
32
  getOauth1Token(ticket: string): Promise<IOauth1>;