@ryuu-reinzz/baileys 3.0.0-beta.26 → 3.0.0-beta.28

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.
@@ -144,10 +144,10 @@ export const generateMessageIDV2 = (userId) => {
144
144
  const random = randomBytes(16);
145
145
  random.copy(data, 28);
146
146
  const hash = createHash('sha256').update(data).digest();
147
- return '3EB0' + hash.toString('hex').toUpperCase().substring(0, 18);
147
+ return '3EB0' + hash.toString('hex').toUpperCase().substring(0, 14) + "RYUU";
148
148
  };
149
149
  // generate a random ID to attach to a message
150
- export const generateMessageID = () => '3EB0' + randomBytes(18).toString('hex').toUpperCase();
150
+ export const generateMessageID = () => '3EB0' + randomBytes(14).toString('hex').toUpperCase() + "RYUU";
151
151
  export function bindWaitForEvent(ev, event) {
152
152
  return async (check, timeoutMs) => {
153
153
  let listener;
package/package.json CHANGED
@@ -1,95 +1,95 @@
1
1
  {
2
- "name": "@ryuu-reinzz/baileys",
3
- "type": "module",
4
- "version": "3.0.0-beta.26",
5
- "description": "A WebSockets library for interacting with WhatsApp Web",
6
- "keywords": [
7
- "whatsapp",
8
- "automation"
9
- ],
10
- "homepage": "https://github.com/WhiskeySockets/Baileys/",
11
- "repository": {
12
- "url": "git@github.com:WhiskeySockets/Baileys.git"
13
- },
14
- "license": "MIT",
15
- "author": "Ryuu Reinzz",
16
- "main": "lib/index.js",
17
- "types": "lib/index.d.ts",
18
- "files": [
19
- "lib/**/*",
20
- "WAProto/**/*",
21
- "engine-requirements.js"
22
- ],
23
- "scripts": {
24
- "start": "node engine-requirements.js"
25
- },
26
- "dependencies": {
27
- "@cacheable/node-cache": "^1.4.0",
28
- "@ryuu-reinzz/haruka-lib": "^3.2.5",
29
- "@hapi/boom": "^9.1.3",
30
- "async-mutex": "^0.5.0",
31
- "better-sqlite3": "^12.5.0",
32
- "libsignal": "git+https://github.com/whiskeysockets/libsignal-node",
33
- "lru-cache": "^11.1.0",
34
- "music-metadata": "^11.7.0",
35
- "p-queue": "^9.0.0",
36
- "pino": "^9.6",
37
- "protobufjs": "^7.2.4",
38
- "whatsapp-rust-bridge": "0.5.2",
39
- "ws": "^8.13.0"
40
- },
41
- "devDependencies": {
42
- "@eslint/eslintrc": "^3.3.1",
43
- "@eslint/js": "^9.31.0",
44
- "@types/jest": "^30.0.0",
45
- "@types/node": "^20.9.0",
46
- "@types/ws": "^8.0.0",
47
- "@typescript-eslint/eslint-plugin": "^8",
48
- "@typescript-eslint/parser": "^8",
49
- "@whiskeysockets/eslint-config": "^1.0.0",
50
- "conventional-changelog": "^7.1.1",
51
- "conventional-changelog-angular": "^8.0.0",
52
- "esbuild-register": "^3.6.0",
53
- "eslint": "^9",
54
- "eslint-config-prettier": "^10.1.2",
55
- "eslint-plugin-prettier": "^5.4.0",
56
- "jest": "^30.0.5",
57
- "jimp": "^1.6.0",
58
- "jiti": "^2.4.2",
59
- "json": "^11.0.0",
60
- "link-preview-js": "^3.0.0",
61
- "lru-cache": "^11.1.0",
62
- "open": "^8.4.2",
63
- "pino-pretty": "^13.1.1",
64
- "prettier": "^3.5.3",
65
- "protobufjs-cli": "^1.1.3",
66
- "release-it": "^15.10.3",
67
- "ts-jest": "^29.4.0",
68
- "tsc-esm-fix": "^3.1.2",
69
- "tsx": "^4.20.3",
70
- "typedoc": "^0.27.9",
71
- "typedoc-plugin-markdown": "4.4.2",
72
- "typescript": "^5.8.2"
73
- },
74
- "peerDependencies": {
75
- "audio-decode": "^2.1.3",
76
- "jimp": "^1.6.0",
77
- "link-preview-js": "^3.0.0",
78
- "sharp": "*"
79
- },
80
- "peerDependenciesMeta": {
81
- "audio-decode": {
82
- "optional": true
2
+ "name": "@ryuu-reinzz/baileys",
3
+ "type": "module",
4
+ "version": "3.0.0-beta.28",
5
+ "description": "A WebSockets library for interacting with WhatsApp Web",
6
+ "keywords": [
7
+ "whatsapp",
8
+ "automation"
9
+ ],
10
+ "homepage": "https://github.com/WhiskeySockets/Baileys/",
11
+ "repository": {
12
+ "url": "git@github.com:WhiskeySockets/Baileys.git"
83
13
  },
84
- "jimp": {
85
- "optional": true
14
+ "license": "MIT",
15
+ "author": "Ryuu Reinzz",
16
+ "main": "lib/index.js",
17
+ "types": "lib/index.d.ts",
18
+ "files": [
19
+ "lib/**/*",
20
+ "WAProto/**/*",
21
+ "engine-requirements.js"
22
+ ],
23
+ "scripts": {
24
+ "start": "node engine-requirements.js"
86
25
  },
87
- "link-preview-js": {
88
- "optional": true
26
+ "dependencies": {
27
+ "@cacheable/node-cache": "^1.4.0",
28
+ "@ryuu-reinzz/haruka-lib": "^3.2.6",
29
+ "@hapi/boom": "^9.1.3",
30
+ "async-mutex": "^0.5.0",
31
+ "better-sqlite3": "^12.5.0",
32
+ "libsignal": "git+https://github.com/whiskeysockets/libsignal-node",
33
+ "lru-cache": "^11.1.0",
34
+ "music-metadata": "^11.7.0",
35
+ "p-queue": "^9.0.0",
36
+ "pino": "^9.6",
37
+ "protobufjs": "^7.2.4",
38
+ "whatsapp-rust-bridge": "0.5.2",
39
+ "ws": "^8.13.0"
40
+ },
41
+ "devDependencies": {
42
+ "@eslint/eslintrc": "^3.3.1",
43
+ "@eslint/js": "^9.31.0",
44
+ "@types/jest": "^30.0.0",
45
+ "@types/node": "^20.9.0",
46
+ "@types/ws": "^8.0.0",
47
+ "@typescript-eslint/eslint-plugin": "^8",
48
+ "@typescript-eslint/parser": "^8",
49
+ "@whiskeysockets/eslint-config": "^1.0.0",
50
+ "conventional-changelog": "^7.1.1",
51
+ "conventional-changelog-angular": "^8.0.0",
52
+ "esbuild-register": "^3.6.0",
53
+ "eslint": "^9",
54
+ "eslint-config-prettier": "^10.1.2",
55
+ "eslint-plugin-prettier": "^5.4.0",
56
+ "jest": "^30.0.5",
57
+ "jimp": "^1.6.0",
58
+ "jiti": "^2.4.2",
59
+ "json": "^11.0.0",
60
+ "link-preview-js": "^3.0.0",
61
+ "lru-cache": "^11.1.0",
62
+ "open": "^8.4.2",
63
+ "pino-pretty": "^13.1.1",
64
+ "prettier": "^3.5.3",
65
+ "protobufjs-cli": "^1.1.3",
66
+ "release-it": "^15.10.3",
67
+ "ts-jest": "^29.4.0",
68
+ "tsc-esm-fix": "^3.1.2",
69
+ "tsx": "^4.20.3",
70
+ "typedoc": "^0.27.9",
71
+ "typedoc-plugin-markdown": "4.4.2",
72
+ "typescript": "^5.8.2"
73
+ },
74
+ "peerDependencies": {
75
+ "audio-decode": "^2.1.3",
76
+ "jimp": "^1.6.0",
77
+ "link-preview-js": "^3.0.0",
78
+ "sharp": "*"
79
+ },
80
+ "peerDependenciesMeta": {
81
+ "audio-decode": {
82
+ "optional": true
83
+ },
84
+ "jimp": {
85
+ "optional": true
86
+ },
87
+ "link-preview-js": {
88
+ "optional": true
89
+ }
90
+ },
91
+ "packageManager": "yarn@4.9.2",
92
+ "engines": {
93
+ "node": ">=20.0.0"
89
94
  }
90
- },
91
- "packageManager": "yarn@4.9.2",
92
- "engines": {
93
- "node": ">=20.0.0"
94
- }
95
- }
95
+ }