@open-wa/wa-automate 4.28.5 → 4.28.6

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.
@@ -799,6 +799,12 @@ export declare class Client {
799
799
  * @returns Boolean
800
800
  */
801
801
  isConnected(): Promise<boolean>;
802
+ /**
803
+ * Logs out from the session.
804
+ *
805
+ * Please be careful when using this as it can exit the whole process depending on your config
806
+ */
807
+ logout(): Promise<boolean>;
802
808
  /**
803
809
  * Retrieves Battery Level
804
810
  * @returns Number
@@ -1810,6 +1810,16 @@ class Client {
1810
1810
  return yield this.pup(() => WAPI.isConnected());
1811
1811
  });
1812
1812
  }
1813
+ /**
1814
+ * Logs out from the session.
1815
+ *
1816
+ * Please be careful when using this as it can exit the whole process depending on your config
1817
+ */
1818
+ logout() {
1819
+ return __awaiter(this, void 0, void 0, function* () {
1820
+ return yield this.pup(() => WAPI.logout());
1821
+ });
1822
+ }
1813
1823
  /**
1814
1824
  * Retrieves Battery Level
1815
1825
  * @returns Number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.28.5",
3
+ "version": "4.28.6",
4
4
  "licenseCheckUrl": "https://openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",