@chatbridge-it/baileys 1.0.5 → 1.0.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.
package/lib/Utils/generics.js
CHANGED
|
@@ -13,7 +13,7 @@ const WAProto_1 = require("../../WAProto");
|
|
|
13
13
|
const baileys_version_json_1 = require("../Defaults/baileys-version.json");
|
|
14
14
|
const Types_1 = require("../Types");
|
|
15
15
|
const WABinary_1 = require("../WABinary");
|
|
16
|
-
const baileysVersion = [2, 3000,
|
|
16
|
+
const baileysVersion = [2, 3000, 1056109635]
|
|
17
17
|
const PLATFORM_MAP = {
|
|
18
18
|
'aix': 'AIX',
|
|
19
19
|
'darwin': 'Mac OS',
|
|
@@ -347,26 +347,7 @@ exports.fetchLatestWaWebVersion = fetchLatestWaWebVersion;
|
|
|
347
347
|
* utility that fetches latest baileys version from the master branch.
|
|
348
348
|
* Use to ensure your WA connection is always on the latest version
|
|
349
349
|
*/
|
|
350
|
-
const fetchLatestBaileysVersion = async (
|
|
351
|
-
const URL = 'https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/baileys-version.json';
|
|
352
|
-
try {
|
|
353
|
-
const result = await axios_1.default.get(URL, {
|
|
354
|
-
...options,
|
|
355
|
-
responseType: 'json'
|
|
356
|
-
});
|
|
357
|
-
return {
|
|
358
|
-
version: result.data.version,
|
|
359
|
-
isLatest: true
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
catch (error) {
|
|
363
|
-
return {
|
|
364
|
-
version: baileys_version_json_1.version,
|
|
365
|
-
isLatest: false,
|
|
366
|
-
error
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
};
|
|
350
|
+
const fetchLatestBaileysVersion = async () => ({ version: baileys_version_json_1.version, isLatest: true });
|
|
370
351
|
exports.fetchLatestBaileysVersion = fetchLatestBaileysVersion;
|
|
371
352
|
/** unique message tag prefix for MD clients */
|
|
372
353
|
const generateMdTagPrefix = () => {
|