davexbaileys 2.5.20 → 2.5.22

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
@@ -1,8 +1,11 @@
1
1
  # davexbaileys
2
+ [![npm version](https://img.shields.io/npm/v/davexbaileys?style=flat-square&color=blue)](https://www.npmjs.com/package/davexbaileys)
3
+ [![npm downloads](https://img.shields.io/npm/dm/davexbaileys?style=flat-square&color=green)](https://www.npmjs.com/package/davexbaileys)
4
+ [![npm total](https://img.shields.io/npm/dt/davexbaileys?style=flat-square&color=orange&label=total+downloads)](https://www.npmjs.com/package/davexbaileys)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)
6
+ [![Node.js >=20](https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen?style=flat-square)](https://nodejs.org)
2
7
 
3
- [![npm version](https://img.shields.io/npm/v/davexbaileys.svg)](https://www.npmjs.com/package/davexbaileys)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
-
8
+
6
9
  A lightweight, full-featured WhatsApp Web API library for Node.js — maintained by **Dave Tech**.
7
10
 
8
11
  ## Installation
@@ -808,23 +808,6 @@ const makeChatsSocket = (config) => {
808
808
  const updateStatusResharePrivacy = (isDisabled) => {
809
809
  return chatModify({ disableStatusReshare: { isDisabled } }, '');
810
810
  };
811
- /**
812
- * Fetch disappearing message duration for contacts
813
- */
814
- const fetchDisappearingDuration = async (...jids) => {
815
- const { WAUSync_1 } = (() => {
816
- try { return { WAUSync_1: require('../WAUSync') }; } catch { return { WAUSync_1: null }; }
817
- })();
818
- if (!WAUSync_1) return null;
819
- try {
820
- const usyncQuery = new WAUSync_1.USyncQuery().withDisappearingModeProtocol();
821
- for (const jid of jids) {
822
- usyncQuery.withUser(new WAUSync_1.USyncUser().withId(jid));
823
- }
824
- const result = await sock.executeUSyncQuery(usyncQuery);
825
- return result ? result.list : null;
826
- } catch { return null; }
827
- };
828
811
  /**
829
812
  * Star or Unstar a message
830
813
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davexbaileys",
3
- "version": "2.5.20",
3
+ "version": "2.5.22",
4
4
  "description": "A lightweight, full-featured WhatsApp Web API library for Node.js — maintained by Dave Tech",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -34,5 +34,8 @@
34
34
  "pino": "^9.6",
35
35
  "protobufjs": "^7.2.4",
36
36
  "ws": "^8.13.0"
37
+ },
38
+ "engines": {
39
+ "node": ">=20.0.0"
37
40
  }
38
41
  }