whatsapp-web.js 1.16.0 → 1.16.1

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/index.d.ts CHANGED
@@ -260,6 +260,11 @@ declare namespace WAWebJS {
260
260
 
261
261
  /** Current connection information */
262
262
  export interface ClientInfo {
263
+ /**
264
+ * Current user ID
265
+ * @deprecated Use .wid instead
266
+ */
267
+ me: ContactId
263
268
  /** Current user ID */
264
269
  wid: ContactId
265
270
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-web.js",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Library for interacting with the WhatsApp Web API ",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -26,6 +26,12 @@ class ClientInfo extends Base {
26
26
  */
27
27
  this.wid = data.wid;
28
28
 
29
+ /**
30
+ * @type {object}
31
+ * @deprecated Use .wid instead
32
+ */
33
+ this.me = data.wid;
34
+
29
35
  /**
30
36
  * Information about the phone this client is connected to. Not available in multi-device.
31
37
  * @type {object}