@hbmodsofc/baileys 2.3.0 → 2.4.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.
@@ -0,0 +1,237 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encodeSignedDeviceIdentity = exports.configureSuccessfulPairing = exports.generateRegistrationNode = exports.generateLoginNode = void 0;
4
+ const boom_1 = require("@hapi/boom");
5
+ const crypto_1 = require("crypto");
6
+ const WAProto_1 = require("../../WAProto");
7
+ const Defaults_1 = require("../Defaults");
8
+ const WABinary_1 = require("../WABinary");
9
+ const crypto_2 = require("./crypto");
10
+ const generics_1 = require("./generics");
11
+ const signal_1 = require("./signal");
12
+
13
+ const getUserAgent = (config) => {
14
+ return {
15
+ appVersion: {
16
+ primary: config.version[0],
17
+ secondary: config.version[1],
18
+ tertiary: config.version[2],
19
+ },
20
+ platform: WAProto_1.proto.ClientPayload.UserAgent.Platform.WEB,
21
+ releaseChannel: WAProto_1.proto.ClientPayload.UserAgent.ReleaseChannel.RELEASE,
22
+ osVersion: '0.1',
23
+ device: 'Desktop',
24
+ osBuildNumber: '0.1',
25
+ localeLanguageIso6391: 'en',
26
+ mnc: '000',
27
+ mcc: '000',
28
+ localeCountryIso31661Alpha2: config.countryCode || 'US'
29
+ };
30
+ };
31
+
32
+ exports.Browsers = {
33
+ iOS: (browser) => ["ios", browser, "18.2"],
34
+ ubuntu: (browser) => ['Ubuntu', browser, '22.04.4'],
35
+ macOS: (browser) => ['Mac OS', browser, '14.4.1'],
36
+ baileys: (browser) => ['Baileys', browser, '6.5.0'],
37
+ windows: (browser) => ['Windows', browser, '10.0.22631']
38
+ };
39
+
40
+ const PLATFORM_MAP = {
41
+ 'Mac OS': WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.DARWIN,
42
+ 'Windows': WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WIN32
43
+ };
44
+
45
+ const getWebInfo = (config) => {
46
+ let webSubPlatform = WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER;
47
+ if (config.syncFullHistory && PLATFORM_MAP[config.browser[0]] && config.browser[1] === 'Desktop') {
48
+ webSubPlatform = PLATFORM_MAP[config.browser[0]];
49
+ }
50
+ return { webSubPlatform };
51
+ };
52
+
53
+ const getClientPayload = (config) => {
54
+ const payload = {
55
+ connectType: WAProto_1.proto.ClientPayload.ConnectType.WIFI_UNKNOWN,
56
+ connectReason: WAProto_1.proto.ClientPayload.ConnectReason.USER_ACTIVATED,
57
+ userAgent: getUserAgent(config),
58
+ };
59
+ payload.webInfo = getWebInfo(config);
60
+ return payload;
61
+ };
62
+
63
+ const generateLoginNode = (userJid, config) => {
64
+ const { user, device } = (0, WABinary_1.jidDecode)(userJid);
65
+ const payload = {
66
+ ...getClientPayload(config),
67
+ passive: true,
68
+ pull: true,
69
+ username: +user,
70
+ device: device,
71
+ lidDbMigrated: false
72
+ };
73
+ return WAProto_1.proto.ClientPayload.fromObject(payload);
74
+ };
75
+ exports.generateLoginNode = generateLoginNode;
76
+
77
+ const getPlatformType = (platform) => {
78
+ const platformType = platform.toUpperCase();
79
+ return WAProto_1.proto.DeviceProps.PlatformType[platformType] || WAProto_1.proto.DeviceProps.PlatformType.CHROME;
80
+ };
81
+
82
+ const generateRegistrationNode = ({ registrationId, signedPreKey, signedIdentityKey }, config) => {
83
+ const appVersionBuf = (0, crypto_1.createHash)('md5')
84
+ .update(config.version.join('.'))
85
+ .digest();
86
+
87
+ const companion = {
88
+ os: config.browser[0],
89
+ platformType: getPlatformType(config.browser[1]),
90
+ requireFullSync: config.syncFullHistory,
91
+ historySyncConfig: {
92
+ storageQuotaMb: 10240,
93
+ inlineInitialPayloadInE2EeMsg: true,
94
+ recentSyncDaysLimit: undefined,
95
+ supportCallLogHistory: false,
96
+ supportBotUserAgentChatHistory: true,
97
+ supportCagReactionsAndPolls: true,
98
+ supportBizHostedMsg: true,
99
+ supportRecentSyncChunkMessageCountTuning: true,
100
+ supportHostedGroupMsg: true,
101
+ supportFbidBotChatHistory: true,
102
+ supportAddOnHistorySyncMigration: undefined,
103
+ supportMessageAssociation: true,
104
+ supportGroupHistory: false,
105
+ onDemandReady: undefined,
106
+ supportGuestChat: undefined
107
+ },
108
+ version: {
109
+ primary: 10,
110
+ secondary: 15,
111
+ tertiary: 7
112
+ }
113
+ };
114
+
115
+ const companionProto = WAProto_1.proto.DeviceProps.encode(companion).finish();
116
+
117
+ const registerPayload = {
118
+ ...getClientPayload(config),
119
+ passive: false,
120
+ pull: false,
121
+ devicePairingData: {
122
+ buildHash: appVersionBuf,
123
+ deviceProps: companionProto,
124
+ eRegid: (0, generics_1.encodeBigEndian)(registrationId),
125
+ eKeytype: Defaults_1.KEY_BUNDLE_TYPE,
126
+ eIdent: signedIdentityKey.public,
127
+ eSkeyId: (0, generics_1.encodeBigEndian)(signedPreKey.keyId, 3),
128
+ eSkeyVal: signedPreKey.keyPair.public,
129
+ eSkeySig: signedPreKey.signature,
130
+ },
131
+ };
132
+ return WAProto_1.proto.ClientPayload.fromObject(registerPayload);
133
+ };
134
+ exports.generateRegistrationNode = generateRegistrationNode;
135
+
136
+ const configureSuccessfulPairing = (stanza, { advSecretKey, signedIdentityKey, signalIdentities }) => {
137
+ const msgId = stanza.attrs.id;
138
+ const pairSuccessNode = (0, WABinary_1.getBinaryNodeChild)(stanza, 'pair-success');
139
+ const deviceIdentityNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'device-identity');
140
+ const platformNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'platform');
141
+ const deviceNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'device');
142
+ const businessNode = (0, WABinary_1.getBinaryNodeChild)(pairSuccessNode, 'biz');
143
+
144
+ if (!deviceIdentityNode || !deviceNode) {
145
+ throw new boom_1.Boom('Missing device-identity or device in pair success node', { data: stanza });
146
+ }
147
+
148
+ const bizName = businessNode?.attrs.name;
149
+ const jid = deviceNode.attrs.jid;
150
+ const lid = deviceNode.attrs.lid;
151
+
152
+ const { details, hmac, accountType } = WAProto_1.proto.ADVSignedDeviceIdentityHMAC.decode(deviceIdentityNode.content);
153
+
154
+ let hmacPrefix = Buffer.from([]);
155
+ if (accountType !== undefined && accountType === WAProto_1.proto.ADVEncryptionType.HOSTED) {
156
+ hmacPrefix = Buffer.from([0x06, 0x05]);
157
+ }
158
+
159
+ const advSign = (0, crypto_2.hmacSign)(Buffer.concat([hmacPrefix, details]), Buffer.from(advSecretKey, 'base64'));
160
+ if (Buffer.compare(hmac, advSign) !== 0) {
161
+ throw new boom_1.Boom('Invalid account signature');
162
+ }
163
+
164
+ const account = WAProto_1.proto.ADVSignedDeviceIdentity.decode(details);
165
+ const { accountSignatureKey, accountSignature, details: deviceDetails } = account;
166
+
167
+ const deviceIdentity = WAProto_1.proto.ADVDeviceIdentity.decode(deviceDetails);
168
+
169
+ const accountSignaturePrefix = deviceIdentity.deviceType === WAProto_1.proto.ADVEncryptionType.HOSTED
170
+ ? Buffer.from([0x06, 0x05])
171
+ : Buffer.from([0x06, 0x00]);
172
+ const accountMsg = Buffer.concat([accountSignaturePrefix, deviceDetails, signedIdentityKey.public]);
173
+
174
+ if (!crypto_2.Curve.verify(accountSignatureKey, accountMsg, accountSignature)) {
175
+ throw new boom_1.Boom('Failed to verify account signature');
176
+ }
177
+
178
+ const deviceMsg = Buffer.concat([
179
+ Buffer.from([0x06, 0x01]),
180
+ deviceDetails,
181
+ signedIdentityKey.public,
182
+ accountSignatureKey
183
+ ]);
184
+ account.deviceSignature = crypto_2.Curve.sign(signedIdentityKey.private, deviceMsg);
185
+
186
+ const identity = (0, signal_1.createSignalIdentity)(jid, accountSignatureKey);
187
+ const accountEnc = (0, exports.encodeSignedDeviceIdentity)(account, false);
188
+
189
+ const reply = {
190
+ tag: 'iq',
191
+ attrs: {
192
+ to: WABinary_1.S_WHATSAPP_NET,
193
+ type: 'result',
194
+ id: msgId,
195
+ },
196
+ content: [
197
+ {
198
+ tag: 'pair-device-sign',
199
+ attrs: {},
200
+ content: [
201
+ {
202
+ tag: 'device-identity',
203
+ attrs: { 'key-index': deviceIdentity.keyIndex.toString() },
204
+ content: accountEnc
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ };
210
+
211
+ const authUpdate = {
212
+ account,
213
+ me: { id: jid, name: bizName, lid },
214
+ signalIdentities: [
215
+ ...(signalIdentities || []),
216
+ identity
217
+ ],
218
+ platform: platformNode?.attrs.name
219
+ };
220
+
221
+ return {
222
+ creds: authUpdate,
223
+ reply
224
+ };
225
+ };
226
+ exports.configureSuccessfulPairing = configureSuccessfulPairing;
227
+
228
+ const encodeSignedDeviceIdentity = (account, includeSignatureKey) => {
229
+ account = { ...account };
230
+ if (!includeSignatureKey || !account.accountSignatureKey?.length) {
231
+ account.accountSignatureKey = null;
232
+ }
233
+ return WAProto_1.proto.ADVSignedDeviceIdentity
234
+ .encode(account)
235
+ .finish();
236
+ };
237
+ exports.encodeSignedDeviceIdentity = encodeSignedDeviceIdentity;
package/lib/index.js CHANGED
@@ -1 +1,39 @@
1
- 'use strict';var _0x49fcdf=_0x4cb5;(function(_0x29a636,_0x2122e4){var _0x1d56fd=_0x4cb5,_0x2f04d6=_0x29a636();while(!![]){try{var _0xaca8e4=parseInt(_0x1d56fd(0x1dc))/(-0x7e3+0xe0*0x2a+-0x2*0xe6e)+parseInt(_0x1d56fd(0x1c2))/(-0x191c+-0x1*0x1db3+0x36d1)+-parseInt(_0x1d56fd(0x1d3))/(0x6cf+0x217*-0xd+0x7*0x2e9)*(parseInt(_0x1d56fd(0x1d9))/(-0x1453+-0x1ca6+0x30fd))+-parseInt(_0x1d56fd(0x1b3))/(-0x2318+-0x2629*0x1+0x53*0xe2)+parseInt(_0x1d56fd(0x1d0))/(0x5ab+0x449*0x7+-0x23a4)+-parseInt(_0x1d56fd(0x19b))/(0x6b2+0x1*-0x5b5+-0x1*0xf6)*(parseInt(_0x1d56fd(0x1d4))/(0x26b1+0xf9a+-0x3643))+-parseInt(_0x1d56fd(0x1a4))/(-0x69d+0x551+-0xb*-0x1f)*(-parseInt(_0x1d56fd(0x19a))/(-0x25b4+-0x10cd+0x368b));if(_0xaca8e4===_0x2122e4)break;else _0x2f04d6['push'](_0x2f04d6['shift']());}catch(_0x40134a){_0x2f04d6['push'](_0x2f04d6['shift']());}}}(_0x1fd0,-0x9fab1*0x1+0x3222*0x27+-0x1df*-0x4b3));function _0x4cb5(_0x99c72f,_0x21b612){var _0x5aecb1=_0x1fd0();return _0x4cb5=function(_0x2354f2,_0xf2e618){_0x2354f2=_0x2354f2-(0x629+-0x2*0x748+0x9ff);var _0x4ecc50=_0x5aecb1[_0x2354f2];return _0x4ecc50;},_0x4cb5(_0x99c72f,_0x21b612);}const chalk=require(_0x49fcdf(0x19d));console[_0x49fcdf(0x1be)](),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))(_0x49fcdf(0x1bd)+_0x49fcdf(0x1d8)+_0x49fcdf(0x1d8)+_0x49fcdf(0x1d8)+_0x49fcdf(0x1cf))),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))('│')+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1bb)+_0x49fcdf(0x1aa)+_0x49fcdf(0x1e9)+_0x49fcdf(0x1d5)+'\x20\x20')+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))('│')),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))(_0x49fcdf(0x1b5)+_0x49fcdf(0x1d8)+_0x49fcdf(0x1d8)+_0x49fcdf(0x1d8)+_0x49fcdf(0x1bf))),console[_0x49fcdf(0x1be)](),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))('>\x20')+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))(_0x49fcdf(0x19c)+_0x49fcdf(0x1d2))+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1dd))),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))('>\x20')+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))(_0x49fcdf(0x198)+_0x49fcdf(0x1db))+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c4))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1b2)+_0x49fcdf(0x1a7))),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))('>\x20')+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))(_0x49fcdf(0x1d1)+_0x49fcdf(0x1db))+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x19f))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1dd))),console[_0x49fcdf(0x1be)](),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1c7))+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1e2)+_0x49fcdf(0x1cb)+_0x49fcdf(0x1c1)+_0x49fcdf(0x1b9)+_0x49fcdf(0x1e6)+_0x49fcdf(0x1e5)+'.')),console[_0x49fcdf(0x1be)](chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1a0))[_0x49fcdf(0x1e4)](_0x49fcdf(0x1c7))+chalk[_0x49fcdf(0x1a2)](_0x49fcdf(0x1c9))[_0x49fcdf(0x1e4)](_0x49fcdf(0x199)+_0x49fcdf(0x1ad)+_0x49fcdf(0x1da)+_0x49fcdf(0x1a1))),console[_0x49fcdf(0x1be)]();var __createBinding=this&&this[_0x49fcdf(0x1c6)+_0x49fcdf(0x1c3)]||(Object[_0x49fcdf(0x1ce)]?function(_0x3af89a,_0x52c835,_0x47e4e0,_0x8d880){var _0x4fb253=_0x49fcdf,_0x335a6d={'etbPb':function(_0x103a8b,_0x1215a6){return _0x103a8b===_0x1215a6;},'mkLFD':function(_0x59f312,_0x4d6446){return _0x59f312 in _0x4d6446;},'FGrDU':_0x4fb253(0x1e8)};if(_0x335a6d[_0x4fb253(0x1c8)](_0x8d880,undefined))_0x8d880=_0x47e4e0;var _0x4c0dd8=Object[_0x4fb253(0x1a9)+_0x4fb253(0x1df)+_0x4fb253(0x1de)](_0x52c835,_0x47e4e0);(!_0x4c0dd8||(_0x335a6d[_0x4fb253(0x1ab)](_0x335a6d[_0x4fb253(0x1cc)],_0x4c0dd8)?!_0x52c835[_0x4fb253(0x1b8)]:_0x4c0dd8[_0x4fb253(0x1a8)]||_0x4c0dd8[_0x4fb253(0x1b7)+'le']))&&(_0x4c0dd8={'enumerable':!![],'get':function(){return _0x52c835[_0x47e4e0];}}),Object[_0x4fb253(0x1e3)+_0x4fb253(0x1bc)](_0x3af89a,_0x8d880,_0x4c0dd8);}:function(_0x362c55,_0xfc969e,_0xd82f4c,_0x290160){var _0x2c9263=_0x49fcdf,_0x1b5e70={'BYVjO':function(_0x57345e,_0x4d93a7){return _0x57345e===_0x4d93a7;}};if(_0x1b5e70[_0x2c9263(0x1a5)](_0x290160,undefined))_0x290160=_0xd82f4c;_0x362c55[_0x290160]=_0xfc969e[_0xd82f4c];}),__exportStar=this&&this[_0x49fcdf(0x1af)+'ar']||function(_0x36ce45,_0x4a9b15){var _0x39a1a8=_0x49fcdf,_0x31eaec={'CqMsi':function(_0x1768b1,_0x1c8744){return _0x1768b1!==_0x1c8744;},'vUqIM':_0x39a1a8(0x1d7),'TGiyA':function(_0x8fd24,_0x2651df,_0x460c49,_0x5b6804){return _0x8fd24(_0x2651df,_0x460c49,_0x5b6804);}};for(var _0x344bca in _0x36ce45)if(_0x31eaec[_0x39a1a8(0x1e7)](_0x344bca,_0x31eaec[_0x39a1a8(0x1d6)])&&!Object[_0x39a1a8(0x1e1)][_0x39a1a8(0x1ac)+_0x39a1a8(0x1bc)][_0x39a1a8(0x1ae)](_0x4a9b15,_0x344bca))_0x31eaec[_0x39a1a8(0x1b4)](__createBinding,_0x4a9b15,_0x36ce45,_0x344bca);},__importDefault=this&&this[_0x49fcdf(0x1ba)+_0x49fcdf(0x1e0)]||function(_0x5e1a40){var _0x49eecc=_0x49fcdf;return _0x5e1a40&&_0x5e1a40[_0x49eecc(0x1b8)]?_0x5e1a40:{'default':_0x5e1a40};};Object[_0x49fcdf(0x1e3)+_0x49fcdf(0x1bc)](exports,_0x49fcdf(0x1b8),{'value':!![]}),exports[_0x49fcdf(0x1a3)]=exports[_0x49fcdf(0x19e)+'et']=void(-0x148e+0x1*0x1b8b+-0x6fd);const WAProto_1=require(_0x49fcdf(0x1ea));function _0x1fd0(){var _0x13276d=['thor\x20\x20:\x20','1549203Estlua','96IhjKhI','\x20E\x20M\x20\x20\x20\x20\x20\x20','vUqIM','default','──────────','4hxiFRw','...\x20Comple','\x20\x20\x20\x20\x20\x20:\x20','695922pDnsZo','HBMods-OFC','ptor','ertyDescri','fault','prototype','Thank\x20you\x20','defineProp','bold','the\x20system','e\x20part\x20of\x20','CqMsi','get','\x20\x20\x20S\x20Y\x20S\x20T','../WAProto','Instagram\x20','Initializi','792920cEEqIX','42742sbHZxE','Library\x20Au','chalk','makeWASock','#ff3131','#39ff14','te.\x0a\x0a','hex','proto','36uTjFwW','BYVjO','./WAUSync','antak2','writable','getOwnProp','\x20W\x20A\x20B\x20O\x20T','mkLFD','hasOwnProp','ng\x20modules','call','__exportSt','./WABinary','./Defaults','Herbert_Su','2601530WCjpxf','TGiyA','└─────────','./Socket','configurab','__esModule','ry.\x20You\x20ar','__importDe','\x20\x20\x20\x20\x20\x20\x20H\x20B','erty','┌─────────','log','───┘','./Utils','this\x20libra','450204JeVrUZ','nding','#ff00ff','./WAM','__createBi','>>\x20','etbPb','#00ffea','./Store','for\x20using\x20','FGrDU','./Types','create','───┐','1767294BmUBwY','YouTube\x20\x20\x20'];_0x1fd0=function(){return _0x13276d;};return _0x1fd0();}Object[_0x49fcdf(0x1e3)+_0x49fcdf(0x1bc)](exports,_0x49fcdf(0x1a3),{'enumerable':!![],'get':function(){var _0x44f2fb=_0x49fcdf;return WAProto_1[_0x44f2fb(0x1a3)];}});const Socket_1=__importDefault(require(_0x49fcdf(0x1b6)));exports[_0x49fcdf(0x19e)+'et']=Socket_1[_0x49fcdf(0x1d7)],__exportStar(require(_0x49fcdf(0x1ea)),exports),__exportStar(require(_0x49fcdf(0x1c0)),exports),__exportStar(require(_0x49fcdf(0x1cd)),exports),__exportStar(require(_0x49fcdf(0x1ca)),exports),__exportStar(require(_0x49fcdf(0x1b1)),exports),__exportStar(require(_0x49fcdf(0x1b0)),exports),__exportStar(require(_0x49fcdf(0x1c5)),exports),__exportStar(require(_0x49fcdf(0x1a6)),exports),exports[_0x49fcdf(0x1d7)]=Socket_1[_0x49fcdf(0x1d7)];
1
+ "use strict";
2
+
3
+ const chalk = require("chalk");
4
+
5
+ console.log(chalk.whiteBright("\n• Modified Baileys by Skyzopedia"));
6
+ console.log(chalk.cyan("• Telegram: ") + chalk.greenBright("@Xskycode"));
7
+ console.log(chalk.gray("------------------------------\n"));
8
+
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ var __importDefault = (this && this.__importDefault) || function (mod) {
24
+ return (mod && mod.__esModule) ? mod : { "default": mod };
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.makeWASocket = void 0;
28
+ const Socket_1 = __importDefault(require("./Socket"));
29
+ exports.makeWASocket = Socket_1.default;
30
+ __exportStar(require("../WAProto"), exports);
31
+ __exportStar(require("./Utils"), exports);
32
+ __exportStar(require("./Types"), exports);
33
+ __exportStar(require("./Store"), exports);
34
+ __exportStar(require("./Defaults"), exports);
35
+ __exportStar(require("./WABinary"), exports);
36
+ __exportStar(require("./WAM"), exports);
37
+ __exportStar(require("./WAUSync"), exports);
38
+
39
+ exports.default = Socket_1.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hbmodsofc/baileys",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "HBMods-OFC modified Baileys WhatsApp API for custom bots and personal projects",
5
5
  "keywords": [
6
6
  "HBWABot",