@wppconnect/wa-js 2.18.3 → 2.18.4

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/CHANGELOG.md CHANGED
@@ -1 +1,5 @@
1
- ## 2.18.3 (2023-01-20)
1
+ ## 2.18.4 (2023-01-23)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Fixed WPP.conn.getAuthCode function for WhatsApp >= 2.2301.5 ([357b62b](https://github.com/wppconnect-team/wa-js/commit/357b62bb9a06a868cc416e203b655088c469a6c4))
@@ -17,6 +17,12 @@ import { AuthCode } from '..';
17
17
  /**
18
18
  * Return the current auth code
19
19
  *
20
+ * @example
21
+ * ```javascript
22
+ * const authCode = await WPP.conn.getAuthCode();
23
+ * console.log(authCode.fullCode); // Output: a long string to generate a QRCode
24
+ * ```
25
+ *
20
26
  * @return {Promise<AuthCode>}[return description]
21
27
  */
22
28
  export declare function getAuthCode(): Promise<AuthCode | null>;
@@ -19,7 +19,7 @@
19
19
  */
20
20
  export declare namespace adv {
21
21
  function generateADVSecretKey(): string;
22
- function getADVSecretKey(): string;
22
+ function getADVSecretKey(): string | Promise<string>;
23
23
  function setADVSignedIdentity(e: any): string;
24
24
  function getADVEncodedIdentity(): any;
25
25
  function verifyDeviceIdentityAccountSignature(): any;