@nexustechpro/baileys 1.0.2 → 1.0.3
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/Defaults/index.js +1 -1
- package/lib/Socket/Client/websocket.js +116 -85
- package/lib/Socket/socket.js +375 -530
- package/lib/Store/index.js +2 -1
- package/lib/index.js +53 -7
- package/package.json +1 -1
package/lib/Store/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
export { default as makeInMemoryStore } from './make-in-memory-store.js';
|
|
1
3
|
export * from './make-cache-manager-store.js';
|
|
2
|
-
export * from './make-in-memory-store.js';
|
|
3
4
|
export * from './make-ordered-dictionary.js';
|
|
4
5
|
export * from './object-repository.js';
|
package/lib/index.js
CHANGED
|
@@ -1,22 +1,68 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import gradient from 'gradient-string';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const banner = `
|
|
5
|
+
╔══════════════════════════════════════════════════════════════════╗
|
|
6
|
+
║ ║
|
|
7
|
+
║ ███╗ ██╗███████╗██╗ ██╗██╗ ██╗███████╗ ║
|
|
8
|
+
║ ████╗ ██║██╔════╝╚██╗██╔╝██║ ██║██╔════╝ ║
|
|
9
|
+
║ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║███████╗ ║
|
|
10
|
+
║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║╚════██║ ║
|
|
11
|
+
║ ██║ ╚████║███████╗██╔╝ ██╗╚██████╔╝███████║ ║
|
|
12
|
+
║ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ║
|
|
13
|
+
║ ║
|
|
14
|
+
║ ████████╗███████╗ ██████╗██╗ ██╗ ║
|
|
15
|
+
║ ╚══██╔══╝██╔════╝██╔════╝██║ ██║ ║
|
|
16
|
+
║ ██║ █████╗ ██║ ███████║ ║
|
|
17
|
+
║ ██║ ██╔══╝ ██║ ██╔══██║ ║
|
|
18
|
+
║ ██║ ███████╗╚██████╗██║ ██║ ║
|
|
19
|
+
║ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝ ║
|
|
20
|
+
║ ║
|
|
21
|
+
║ ██████╗ ██████╗ ██████╗ ║
|
|
22
|
+
║ ██╔══██╗██╔══██╗██╔═══██╗ ║
|
|
23
|
+
║ ██████╔╝██████╔╝██║ ██║ ║
|
|
24
|
+
║ ██╔═══╝ ██╔══██╗██║ ██║ ║
|
|
25
|
+
║ ██║ ██║ ██║╚██████╔╝ ║
|
|
26
|
+
║ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ║
|
|
27
|
+
║ ║
|
|
28
|
+
╚══════════════════════════════════════════════════════════════════╝
|
|
29
|
+
`;
|
|
5
30
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
31
|
+
const info = `
|
|
32
|
+
┌───────────────────────────────────────────────────────────────────────┐
|
|
33
|
+
│ 📦 Package: @nexus/baileys │
|
|
34
|
+
│ 🔖 Version: 2.0.0 │
|
|
35
|
+
│ ⚡ Status: Production Ready │
|
|
36
|
+
├───────────────────────────────────────────────────────────────────────┤
|
|
37
|
+
│ 🚀 Advanced WhatsApp Web API Client │
|
|
38
|
+
│ ✨ Interactive Buttons • Products • Events • Media │
|
|
39
|
+
│ 🔐 End-to-End Encryption • Multi-Device Support │
|
|
40
|
+
│ 📱 Business API • Channels • Status Updates │
|
|
41
|
+
├───────────────────────────────────────────────────────────────────────┤
|
|
42
|
+
│ 💡 Built by NexusTech Pro Team │
|
|
43
|
+
│ 📚 Docs: github.com/nexustechpro/baileys │
|
|
44
|
+
│ 💬 Support: Join our community for updates & assistance │
|
|
45
|
+
└───────────────────────────────────────────────────────────────────────┘
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
// Print banner with gradient
|
|
49
|
+
console.log(gradient(['#00D4FF', '#0099FF', '#00D4FF'])(banner));
|
|
50
|
+
|
|
51
|
+
// Print info with gradient
|
|
52
|
+
console.log(gradient(['#FFD700', '#FF6B6B', '#4ECDC4'])(info));
|
|
53
|
+
|
|
54
|
+
// Startup message
|
|
55
|
+
console.log(gradient(['#00FF88', '#FFFFFF'])('\n🎯 Initializing Baileys Socket Connection...\n'));
|
|
11
56
|
|
|
12
57
|
import makeWASocket from './Socket/index.js';
|
|
13
58
|
import NexusHandler from './Socket/nexus-handler.js';
|
|
14
59
|
export * from '../WAProto/index.js';
|
|
15
60
|
export * from './Utils/index.js';
|
|
61
|
+
export * from './Store/index.js';
|
|
16
62
|
export * from './Types/index.js';
|
|
17
63
|
export * from './Defaults/index.js';
|
|
18
64
|
export * from './WABinary/index.js';
|
|
19
65
|
export * from './WAM/index.js';
|
|
20
66
|
export * from './WAUSync/index.js';
|
|
21
67
|
export { NexusHandler, makeWASocket };
|
|
22
|
-
export default makeWASocket;
|
|
68
|
+
export default makeWASocket;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexustechpro/baileys",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"description": "Advanced WhatsApp Web API client with interactive messages, product catalogs, carousels, events, payments, and polls.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"whatsapp",
|