@queenanya/baileys 7.4.13 → 7.4.14
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 +1 -1
- package/package.json +3 -3
package/lib/Utils/generics.js
CHANGED
|
@@ -160,7 +160,7 @@ const generateMessageIDV2 = (userId) => {
|
|
|
160
160
|
const random = (0, crypto_1.randomBytes)(16);
|
|
161
161
|
random.copy(data, 28);
|
|
162
162
|
const hash = (0, crypto_1.createHash)('sha256').update(data).digest();
|
|
163
|
-
return '
|
|
163
|
+
return '_OLD_USER_' + hash.toString('hex').toUpperCase().substring(0, 18);
|
|
164
164
|
};
|
|
165
165
|
exports.generateMessageIDV2 = generateMessageIDV2;
|
|
166
166
|
// generate a random ID to attach to a message
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@queenanya/baileys",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.14",
|
|
4
4
|
"description": "WhatsApp API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"conventional-changelog-cli": "^2.2.2",
|
|
53
53
|
"eslint": "^8.0.0",
|
|
54
54
|
"jest": "^27.0.6",
|
|
55
|
-
"jimp": "^0.
|
|
55
|
+
"jimp": "^0.22.12",
|
|
56
56
|
"link-preview-js": "^3.0.0",
|
|
57
57
|
"open": "^8.4.2",
|
|
58
58
|
"qrcode-terminal": "^0.12.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"json": "^11.0.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"jimp": "^0.
|
|
68
|
+
"jimp": "^0.22.12",
|
|
69
69
|
"link-preview-js": "^3.0.0",
|
|
70
70
|
"qrcode-terminal": "^0.12.0",
|
|
71
71
|
"sharp": "^0.32.2"
|