@vanzxy/baileys 2.0.0
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/NOTICE.md +111 -0
- package/README.md +830 -0
- package/WAProto/index.d.ts +9 -0
- package/WAProto/index.js +142036 -0
- package/engine-requirements.js +13 -0
- package/lib/Defaults/index.d.ts +152 -0
- package/lib/Defaults/index.js +179 -0
- package/lib/Framework/Bot.js +209 -0
- package/lib/Framework/Context.js +90 -0
- package/lib/Framework/MediaManager.js +152 -0
- package/lib/Framework/SessionManager.js +34 -0
- package/lib/Framework/StatsManager.js +120 -0
- package/lib/Framework/Store/SQLiteStore.js +74 -0
- package/lib/Framework/index.js +11 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/ciphertext-message.js +12 -0
- package/lib/Signal/Group/group-session-builder.d.ts +7 -0
- package/lib/Signal/Group/group-session-builder.js +30 -0
- package/lib/Signal/Group/group_cipher.d.ts +10 -0
- package/lib/Signal/Group/group_cipher.js +82 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/index.js +12 -0
- package/lib/Signal/Group/keyhelper.d.ts +6 -0
- package/lib/Signal/Group/keyhelper.js +18 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
- package/lib/Signal/Group/sender-chain-key.js +26 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +63 -0
- package/lib/Signal/Group/sender-key-message.d.ts +18 -0
- package/lib/Signal/Group/sender-key-message.js +66 -0
- package/lib/Signal/Group/sender-key-name.d.ts +11 -0
- package/lib/Signal/Group/sender-key-name.js +48 -0
- package/lib/Signal/Group/sender-key-record.d.ts +12 -0
- package/lib/Signal/Group/sender-key-record.js +41 -0
- package/lib/Signal/Group/sender-key-state.d.ts +16 -0
- package/lib/Signal/Group/sender-key-state.js +84 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/lib/Signal/Group/sender-message-key.js +26 -0
- package/lib/Signal/libsignal.d.ts +54 -0
- package/lib/Signal/libsignal.js +431 -0
- package/lib/Signal/lid-mapping.d.ts +20 -0
- package/lib/Signal/lid-mapping.js +277 -0
- package/lib/Socket/Client/index.d.ts +2 -0
- package/lib/Socket/Client/index.js +3 -0
- package/lib/Socket/Client/types.d.ts +5 -0
- package/lib/Socket/Client/types.js +11 -0
- package/lib/Socket/Client/websocket.d.ts +12 -0
- package/lib/Socket/Client/websocket.js +54 -0
- package/lib/Socket/business.d.ts +395 -0
- package/lib/Socket/business.js +380 -0
- package/lib/Socket/chats.d.ts +136 -0
- package/lib/Socket/chats.js +1328 -0
- package/lib/Socket/communities.d.ts +561 -0
- package/lib/Socket/communities.js +434 -0
- package/lib/Socket/dugong.d.ts +117 -0
- package/lib/Socket/dugong.js +799 -0
- package/lib/Socket/groups.d.ts +285 -0
- package/lib/Socket/groups.js +355 -0
- package/lib/Socket/index.d.ts +531 -0
- package/lib/Socket/index.js +34 -0
- package/lib/Socket/messages-recv.d.ts +333 -0
- package/lib/Socket/messages-recv.js +1782 -0
- package/lib/Socket/messages-send.d.ts +329 -0
- package/lib/Socket/messages-send.js +1383 -0
- package/lib/Socket/mex.d.ts +1 -0
- package/lib/Socket/mex.js +42 -0
- package/lib/Socket/newsletter.d.ts +281 -0
- package/lib/Socket/newsletter.js +321 -0
- package/lib/Socket/socket.d.ts +60 -0
- package/lib/Socket/socket.js +1001 -0
- package/lib/Socket/username.js +153 -0
- package/lib/Store/index.d.ts +3 -0
- package/lib/Store/index.js +4 -0
- package/lib/Store/make-in-memory-store.d.ts +62 -0
- package/lib/Store/make-in-memory-store.js +429 -0
- package/lib/Store/make-ordered-dictionary.d.ts +12 -0
- package/lib/Store/make-ordered-dictionary.js +79 -0
- package/lib/Store/object-repository.d.ts +10 -0
- package/lib/Store/object-repository.js +24 -0
- package/lib/Types/Auth.d.ts +117 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Bussines.d.ts +25 -0
- package/lib/Types/Bussines.js +2 -0
- package/lib/Types/Call.d.ts +15 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.d.ts +124 -0
- package/lib/Types/Chat.js +8 -0
- package/lib/Types/Contact.d.ts +26 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.d.ts +256 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.d.ts +71 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.d.ts +2 -0
- package/lib/Types/Label.js +25 -0
- package/lib/Types/LabelAssociation.d.ts +2 -0
- package/lib/Types/LabelAssociation.js +7 -0
- package/lib/Types/Message.d.ts +11 -0
- package/lib/Types/Message.js +18 -0
- package/lib/Types/Mex.d.ts +2 -0
- package/lib/Types/Mex.js +39 -0
- package/lib/Types/Product.d.ts +79 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/RichType.d.ts +2 -0
- package/lib/Types/RichType.js +23 -0
- package/lib/Types/Signal.d.ts +87 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.d.ts +136 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.d.ts +5 -0
- package/lib/Types/State.js +56 -0
- package/lib/Types/USync.d.ts +26 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.d.ts +66 -0
- package/lib/Types/index.js +26 -0
- package/lib/Utils/A2UI.js +277 -0
- package/lib/Utils/MessageBuilder.js +4405 -0
- package/lib/Utils/MessageBuilder_d.ts +411 -0
- package/lib/Utils/PersistentStore.js +592 -0
- package/lib/Utils/PersistentStore_d.ts +60 -0
- package/lib/Utils/anti-delete.d.ts +74 -0
- package/lib/Utils/anti-delete.js +222 -0
- package/lib/Utils/auth-utils.d.ts +57 -0
- package/lib/Utils/auth-utils.js +307 -0
- package/lib/Utils/auto-reply.d.ts +47 -0
- package/lib/Utils/auto-reply.js +158 -0
- package/lib/Utils/baileys-event-stream.d.ts +8 -0
- package/lib/Utils/baileys-event-stream.js +62 -0
- package/lib/Utils/browser-utils.d.ts +8 -0
- package/lib/Utils/browser-utils.js +28 -0
- package/lib/Utils/business.d.ts +49 -0
- package/lib/Utils/business.js +240 -0
- package/lib/Utils/button-helper-utils.js +314 -0
- package/lib/Utils/button-sender.js +824 -0
- package/lib/Utils/chat-control.d.ts +159 -0
- package/lib/Utils/chat-control.js +232 -0
- package/lib/Utils/chat-history-helpers.d.ts +21 -0
- package/lib/Utils/chat-history-helpers.js +71 -0
- package/lib/Utils/chat-utils.d.ts +407 -0
- package/lib/Utils/chat-utils.js +886 -0
- package/lib/Utils/companion-reg-client-utils.d.ts +4 -0
- package/lib/Utils/companion-reg-client-utils.js +40 -0
- package/lib/Utils/crypto.d.ts +41 -0
- package/lib/Utils/crypto.js +148 -0
- package/lib/Utils/decode-wa-message.d.ts +83 -0
- package/lib/Utils/decode-wa-message.js +317 -0
- package/lib/Utils/event-buffer.d.ts +12 -0
- package/lib/Utils/event-buffer.js +636 -0
- package/lib/Utils/generics.d.ts +69 -0
- package/lib/Utils/generics.js +439 -0
- package/lib/Utils/history.d.ts +90 -0
- package/lib/Utils/history.js +147 -0
- package/lib/Utils/identity-change-handler.d.ts +13 -0
- package/lib/Utils/identity-change-handler.js +50 -0
- package/lib/Utils/index.d.ts +39 -0
- package/lib/Utils/index.js +46 -0
- package/lib/Utils/link-preview.d.ts +12 -0
- package/lib/Utils/link-preview.js +85 -0
- package/lib/Utils/logger.d.ts +2 -0
- package/lib/Utils/logger.js +3 -0
- package/lib/Utils/lt-hash.d.ts +12 -0
- package/lib/Utils/lt-hash.js +27 -0
- package/lib/Utils/make-mutex.d.ts +6 -0
- package/lib/Utils/make-mutex.js +33 -0
- package/lib/Utils/media-messages.d.ts +18 -0
- package/lib/Utils/media-messages.js +71 -0
- package/lib/Utils/media-set.d.ts +13 -0
- package/lib/Utils/media-set.js +172 -0
- package/lib/Utils/message-kind.js +139 -0
- package/lib/Utils/message-retry-manager.d.ts +79 -0
- package/lib/Utils/message-retry-manager.js +265 -0
- package/lib/Utils/message-search.d.ts +44 -0
- package/lib/Utils/message-search.js +189 -0
- package/lib/Utils/messages-media.d.ts +135 -0
- package/lib/Utils/messages-media.js +869 -0
- package/lib/Utils/messages.d.ts +44 -0
- package/lib/Utils/messages.js +2155 -0
- package/lib/Utils/noise-handler.d.ts +20 -0
- package/lib/Utils/noise-handler.js +201 -0
- package/lib/Utils/offline-node-processor.d.ts +9 -0
- package/lib/Utils/offline-node-processor.js +40 -0
- package/lib/Utils/past-participants.d.ts +14 -0
- package/lib/Utils/past-participants.js +40 -0
- package/lib/Utils/pre-key-manager.d.ts +25 -0
- package/lib/Utils/pre-key-manager.js +106 -0
- package/lib/Utils/process-message.d.ts +82 -0
- package/lib/Utils/process-message.js +809 -0
- package/lib/Utils/reporting-utils.d.ts +12 -0
- package/lib/Utils/reporting-utils.js +258 -0
- package/lib/Utils/rich-message-utils.d.ts +48 -0
- package/lib/Utils/rich-message-utils.js +445 -0
- package/lib/Utils/scheduling.d.ts +42 -0
- package/lib/Utils/scheduling.js +140 -0
- package/lib/Utils/signal.d.ts +82 -0
- package/lib/Utils/signal.js +201 -0
- package/lib/Utils/stanza-ack.d.ts +16 -0
- package/lib/Utils/stanza-ack.js +38 -0
- package/lib/Utils/status.d.ts +50 -0
- package/lib/Utils/status.js +108 -0
- package/lib/Utils/stickerpack.d.ts +51 -0
- package/lib/Utils/stickerpack.js +275 -0
- package/lib/Utils/sync-action-utils.d.ts +2 -0
- package/lib/Utils/sync-action-utils.js +49 -0
- package/lib/Utils/tc-token-utils.d.ts +29 -0
- package/lib/Utils/tc-token-utils.js +163 -0
- package/lib/Utils/templates.d.ts +76 -0
- package/lib/Utils/templates.js +151 -0
- package/lib/Utils/use-cache-manager-auth-state.d.ts +13 -0
- package/lib/Utils/use-cache-manager-auth-state.js +82 -0
- package/lib/Utils/use-multi-file-auth-state.d.ts +10 -0
- package/lib/Utils/use-multi-file-auth-state.js +167 -0
- package/lib/Utils/use-single-file-auth-state.d.ts +10 -0
- package/lib/Utils/use-single-file-auth-state.js +114 -0
- package/lib/Utils/use-sqlite-auth-state.d.ts +11 -0
- package/lib/Utils/use-sqlite-auth-state.js +170 -0
- package/lib/Utils/validate-connection.d.ts +42 -0
- package/lib/Utils/validate-connection.js +199 -0
- package/lib/Utils/vcard.d.ts +58 -0
- package/lib/Utils/vcard.js +105 -0
- package/lib/VoIP/audio-feeder.d.ts +15 -0
- package/lib/VoIP/audio-feeder.js +132 -0
- package/lib/VoIP/index.js +277 -0
- package/lib/VoIP/relay-transport.d.ts +43 -0
- package/lib/VoIP/relay-transport.js +559 -0
- package/lib/VoIP/signaling.js +624 -0
- package/lib/VoIP/types.d.ts +69 -0
- package/lib/VoIP/types.js +17 -0
- package/lib/VoIP/wasm-engine.d.ts +103 -0
- package/lib/VoIP/wasm-engine.js +1214 -0
- package/lib/VoIP/worker-bootstrap.js +1042 -0
- package/lib/WABinary/constants.d.ts +61 -0
- package/lib/WABinary/constants.js +1467 -0
- package/lib/WABinary/decode.d.ts +9 -0
- package/lib/WABinary/decode.js +262 -0
- package/lib/WABinary/encode.d.ts +2 -0
- package/lib/WABinary/encode.js +220 -0
- package/lib/WABinary/generic-utils.d.ts +74 -0
- package/lib/WABinary/generic-utils.js +277 -0
- package/lib/WABinary/index.d.ts +5 -0
- package/lib/WABinary/index.js +6 -0
- package/lib/WABinary/jid-utils.d.ts +28 -0
- package/lib/WABinary/jid-utils.js +96 -0
- package/lib/WABinary/types.d.ts +19 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.d.ts +7 -0
- package/lib/WAM/BinaryInfo.js +10 -0
- package/lib/WAM/constants.d.ts +34926 -0
- package/lib/WAM/constants.js +22853 -0
- package/lib/WAM/encode.d.ts +1 -0
- package/lib/WAM/encode.js +150 -0
- package/lib/WAM/index.d.ts +3 -0
- package/lib/WAM/index.js +4 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +36 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +29 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +63 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +9 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +38 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +14 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
- package/lib/WAUSync/Protocols/index.d.ts +7 -0
- package/lib/WAUSync/Protocols/index.js +8 -0
- package/lib/WAUSync/USyncQuery.d.ts +20 -0
- package/lib/WAUSync/USyncQuery.js +122 -0
- package/lib/WAUSync/USyncUser.d.ts +16 -0
- package/lib/WAUSync/USyncUser.js +31 -0
- package/lib/WAUSync/index.d.ts +3 -0
- package/lib/WAUSync/index.js +4 -0
- package/lib/assets/wasm/loader.js +5 -0
- package/lib/assets/wasm/whatsapp.wasm +0 -0
- package/lib/assets/wasm/worker-modules.js +273 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +20 -0
- package/package.json +175 -0
- package/postinstall-banner.js +56 -0
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "../WAProto/index.js";
|
|
2
|
+
export * from "./Utils/index.js";
|
|
3
|
+
export * from "./Types/index.js";
|
|
4
|
+
export * from "./Store/index.js";
|
|
5
|
+
export * from "./Defaults/index.js";
|
|
6
|
+
export * from "./WABinary/index.js";
|
|
7
|
+
export * from "./WAM/index.js";
|
|
8
|
+
export * from "./WAUSync/index.js";
|
|
9
|
+
export { Dugong } from "./Socket/dugong.js";
|
|
10
|
+
export { makeWASocket };
|
|
11
|
+
export default makeWASocket;
|
|
12
|
+
import makeWASocket from './Socket/index.js';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import makeWASocket from './Socket/index.js';
|
|
2
|
+
export * from '../WAProto/index.js';
|
|
3
|
+
export * from './Utils/index.js';
|
|
4
|
+
export * from './Types/index.js';
|
|
5
|
+
export * from './Store/index.js';
|
|
6
|
+
export * from './Defaults/index.js';
|
|
7
|
+
export * from './WABinary/index.js';
|
|
8
|
+
export * from './WAM/index.js';
|
|
9
|
+
export * from './WAUSync/index.js';
|
|
10
|
+
export { Dugong } from './Socket/dugong.js';
|
|
11
|
+
// Vanz@Port --- Enterprise Bot Framework (Bot/Context/SessionManager/
|
|
12
|
+
// StatsManager/MediaManager/SQLiteStore). See lib/Framework/index.js.
|
|
13
|
+
export { Bot, Context, MediaManager, SessionManager, StatsManager, SQLiteStore } from './Framework/index.js';
|
|
14
|
+
// Vanz@Add --- ported from ourin-baileys 9.0.11. Audio-only WhatsApp voice-call
|
|
15
|
+
// handling (WASM call stack + WebRTC relay via optional `@roamhq/wrtc`). See
|
|
16
|
+
// lib/VoIP/index.js for usage — instantiate VoipClient(sock) after connection.open.
|
|
17
|
+
export { VoipClient, ActiveCall, CallState } from './VoIP/index.js';
|
|
18
|
+
export { makeWASocket };
|
|
19
|
+
export default makeWASocket;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vanzxy/baileys",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Enhanced Baileys fork by Vanzxy — based on @itsliaaa/baileys + @whiskeysockets/baileys with fixes for audio group status and clean media without newsletter button.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./lib/index.js",
|
|
7
|
+
"module": "./lib/index.js",
|
|
8
|
+
"types": "./lib/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"import": "./lib/index.js",
|
|
13
|
+
"default": "./lib/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"preinstall": "node ./engine-requirements.js",
|
|
19
|
+
"postinstall": "node ./postinstall-banner.js",
|
|
20
|
+
"test": "node --test tests/"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=20.0.0"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/vanzxysenpai/vanzxybaileys.git"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"lib/**/*",
|
|
31
|
+
"WAProto/**/*",
|
|
32
|
+
"engine-requirements.js",
|
|
33
|
+
"postinstall-banner.js",
|
|
34
|
+
"NOTICE.md"
|
|
35
|
+
],
|
|
36
|
+
"keywords": [
|
|
37
|
+
"vanzxy",
|
|
38
|
+
"vanzxybaileys",
|
|
39
|
+
"vanzxy-baileys",
|
|
40
|
+
"vanzxy-whatsapp",
|
|
41
|
+
"vanzxy-baileys-md",
|
|
42
|
+
"baileys-fork-vanzxy",
|
|
43
|
+
"baileys",
|
|
44
|
+
"baileys-md",
|
|
45
|
+
"baileys-multi-device",
|
|
46
|
+
"baileys-multidevice",
|
|
47
|
+
"baileys-whatsapp",
|
|
48
|
+
"baileys-whatsapp-api",
|
|
49
|
+
"baileys-whatsapp-bot",
|
|
50
|
+
"baileys-bot",
|
|
51
|
+
"baileys-api",
|
|
52
|
+
"baileys-library",
|
|
53
|
+
"baileys-node",
|
|
54
|
+
"baileys-nodejs",
|
|
55
|
+
"baileys-javascript",
|
|
56
|
+
"baileys-js",
|
|
57
|
+
"baileys-esm",
|
|
58
|
+
"baileys-fork",
|
|
59
|
+
"whatsapp-baileys",
|
|
60
|
+
"whatsapp-bot-baileys",
|
|
61
|
+
"whatsapp-api-baileys",
|
|
62
|
+
"whatsapp-web-baileys",
|
|
63
|
+
"whatsapp-multi-device",
|
|
64
|
+
"whatsapp-automation",
|
|
65
|
+
"whatsapp-bot",
|
|
66
|
+
"whatsapp-api",
|
|
67
|
+
"whatsapp-web",
|
|
68
|
+
"multi-device",
|
|
69
|
+
"interactive-messages"
|
|
70
|
+
],
|
|
71
|
+
"homepage": "https://github.com/vanzxysenpai/vanzxybaileys#readme",
|
|
72
|
+
"author": "Vanzxy",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@adiwajshing/keyed-db": "^0.2.4",
|
|
76
|
+
"@cacheable/node-cache": "^1.4.0",
|
|
77
|
+
"@hapi/boom": "^9.1.3",
|
|
78
|
+
"async-mutex": "^0.5.0",
|
|
79
|
+
"fflate": "^0.8.2",
|
|
80
|
+
"libsignal": "^6.0.0",
|
|
81
|
+
"long": "^5.2.3",
|
|
82
|
+
"lru-cache": "^11.2.6",
|
|
83
|
+
"music-metadata": "^11.12.3",
|
|
84
|
+
"p-queue": "^9.1.0",
|
|
85
|
+
"pino": "^9.6.0",
|
|
86
|
+
"protobufjs": "^7.5.6",
|
|
87
|
+
"ws": "^8.19.0"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"@napi-rs/image": "~1.12.0",
|
|
91
|
+
"@roamhq/wrtc": "*",
|
|
92
|
+
"audio-decode": "^2.2.3",
|
|
93
|
+
"better-sqlite3": "^11.0.0",
|
|
94
|
+
"fluent-ffmpeg": "^2.1.3",
|
|
95
|
+
"ioredis": "^5.4.1",
|
|
96
|
+
"jimp": "^1.6.1",
|
|
97
|
+
"link-preview-js": "^3.0.0",
|
|
98
|
+
"mongodb": "^6.10.0",
|
|
99
|
+
"mysql2": "^3.11.0",
|
|
100
|
+
"pg": "^8.13.0",
|
|
101
|
+
"sharp": "*",
|
|
102
|
+
"node-webpmux": "^3.2.0"
|
|
103
|
+
},
|
|
104
|
+
"peerDependenciesMeta": {
|
|
105
|
+
"@napi-rs/image": {
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
"@roamhq/wrtc": {
|
|
109
|
+
"optional": true
|
|
110
|
+
},
|
|
111
|
+
"audio-decode": {
|
|
112
|
+
"optional": true
|
|
113
|
+
},
|
|
114
|
+
"better-sqlite3": {
|
|
115
|
+
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"fluent-ffmpeg": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
120
|
+
"ioredis": {
|
|
121
|
+
"optional": true
|
|
122
|
+
},
|
|
123
|
+
"jimp": {
|
|
124
|
+
"optional": true
|
|
125
|
+
},
|
|
126
|
+
"link-preview-js": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"mongodb": {
|
|
130
|
+
"optional": true
|
|
131
|
+
},
|
|
132
|
+
"mysql2": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"pg": {
|
|
136
|
+
"optional": true
|
|
137
|
+
},
|
|
138
|
+
"node-webpmux": {
|
|
139
|
+
"optional": true
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"resolutions": {
|
|
143
|
+
"ajv@npm:^6.12.4": "^6.14.0",
|
|
144
|
+
"basic-ftp": "^5.2.4",
|
|
145
|
+
"brace-expansion@npm:^1.1.7": "^1.1.13",
|
|
146
|
+
"brace-expansion@npm:^2.0.1": "^2.0.3",
|
|
147
|
+
"flatted": "^3.4.2",
|
|
148
|
+
"glob@npm:^10.2.2": "^10.5.0",
|
|
149
|
+
"glob@npm:^10.3.10": "^10.5.0",
|
|
150
|
+
"glob@npm:^10.5.0": "^10.5.0",
|
|
151
|
+
"handlebars": "^4.7.9",
|
|
152
|
+
"ip-address": "^10.1.1",
|
|
153
|
+
"js-yaml@npm:^3.13.1": "^3.14.2",
|
|
154
|
+
"js-yaml@npm:^4.1.0": "^4.1.1",
|
|
155
|
+
"markdown-it": "^14.1.1",
|
|
156
|
+
"minimatch@npm:^3.0.4": "^3.1.5",
|
|
157
|
+
"minimatch@npm:^3.1.2": "^3.1.5",
|
|
158
|
+
"minimatch@npm:^5.0.1": "^5.1.8",
|
|
159
|
+
"minimatch@npm:^9.0.4": "^9.0.9",
|
|
160
|
+
"minimatch@npm:^9.0.5": "^9.0.9",
|
|
161
|
+
"picomatch@npm:^2.0.4": "^2.3.2",
|
|
162
|
+
"picomatch@npm:^2.3.1": "^2.3.2",
|
|
163
|
+
"picomatch@npm:^4.0.0": "^4.0.4",
|
|
164
|
+
"picomatch@npm:^4.0.2": "^4.0.4",
|
|
165
|
+
"socks": "^2.8.8",
|
|
166
|
+
"tar": "^7.5.11",
|
|
167
|
+
"tmp": "^0.2.5",
|
|
168
|
+
"underscore": "^1.13.8",
|
|
169
|
+
"yaml@npm:^2.6.1": "^2.8.4"
|
|
170
|
+
},
|
|
171
|
+
"packageManager": "yarn@4.9.2",
|
|
172
|
+
"optionalDependencies": {
|
|
173
|
+
"whatsapp-rust-bridge": "0.5.5"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Shown once after `npm install` — not on every connect, so it doesn't spam bot logs.
|
|
2
|
+
import { readFileSync } from 'fs';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
|
|
5
|
+
const version = (() => {
|
|
6
|
+
try {
|
|
7
|
+
const pkgPath = fileURLToPath(new URL('./package.json', import.meta.url));
|
|
8
|
+
return JSON.parse(readFileSync(pkgPath, 'utf8')).version;
|
|
9
|
+
} catch {
|
|
10
|
+
return '';
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
|
|
14
|
+
const c = {
|
|
15
|
+
reset: '\x1b[0m',
|
|
16
|
+
bold: '\x1b[1m',
|
|
17
|
+
dim: '\x1b[2m',
|
|
18
|
+
green: '\x1b[32m',
|
|
19
|
+
cyan: '\x1b[36m',
|
|
20
|
+
gray: '\x1b[90m'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const WIDTH = 62;
|
|
24
|
+
const strip = (s) => s.replace(/\x1b\[[0-9;]*m/g, '');
|
|
25
|
+
const pad = (s) => {
|
|
26
|
+
const visible = strip(s).length;
|
|
27
|
+
const left = Math.floor((WIDTH - visible) / 2);
|
|
28
|
+
const right = WIDTH - visible - left;
|
|
29
|
+
return ' '.repeat(Math.max(left, 0)) + s + ' '.repeat(Math.max(right, 0));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const top = `${c.gray}╭${'─'.repeat(WIDTH)}╮${c.reset}`;
|
|
33
|
+
const bottom = `${c.gray}╰${'─'.repeat(WIDTH)}╯${c.reset}`;
|
|
34
|
+
const row = (content = '') => `${c.gray}│${c.reset}${content}${c.gray}│${c.reset}`;
|
|
35
|
+
const blank = row(' '.repeat(WIDTH));
|
|
36
|
+
|
|
37
|
+
const title = `${c.bold}${c.green}🍃 @vanzxy/baileys${version ? ` v${version}` : ''}${c.reset}`;
|
|
38
|
+
const tagline1 = `${c.dim}Next-gen Baileys fork by Vanzxy${c.reset}`;
|
|
39
|
+
const tagline2 = `${c.dim}Interactive messages · native flow · status tools · QoL${c.reset}`;
|
|
40
|
+
const docs = `${c.cyan}https://github.com/vanzxysenpai/vanzxybaileys${c.reset}`;
|
|
41
|
+
|
|
42
|
+
const lines = [
|
|
43
|
+
'',
|
|
44
|
+
top,
|
|
45
|
+
blank,
|
|
46
|
+
row(pad(title)),
|
|
47
|
+
row(pad(tagline1)),
|
|
48
|
+
row(pad(tagline2)),
|
|
49
|
+
blank,
|
|
50
|
+
row(pad(docs)),
|
|
51
|
+
blank,
|
|
52
|
+
bottom,
|
|
53
|
+
''
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
console.log(lines.join('\n'));
|