riftcore 1.4.5 → 1.4.6

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.
Files changed (117) hide show
  1. package/README.md +421 -0
  2. package/WAProto/fix-import.js +29 -0
  3. package/WAProto/index.js +65432 -137443
  4. package/engine-requirements.js +10 -0
  5. package/lib/Defaults/baileys-version.json +2 -2
  6. package/lib/Defaults/index.d.ts +7 -16
  7. package/lib/Defaults/index.js +124 -94
  8. package/lib/Defaults/phonenumber-mcc.json +223 -0
  9. package/lib/Socket/Client/{types.d.ts → abstract-socket-client.d.ts} +2 -1
  10. package/lib/Socket/Client/index.d.ts +3 -2
  11. package/lib/Socket/Client/index.js +3 -2
  12. package/lib/Socket/Client/mobile-socket-client.d.ts +13 -0
  13. package/lib/Socket/Client/mobile-socket-client.js +65 -0
  14. package/lib/Socket/Client/{websocket.d.ts → web-socket-client.d.ts} +1 -2
  15. package/lib/Socket/Client/{websocket.js → web-socket-client.js} +5 -54
  16. package/lib/Socket/business.d.ts +58 -59
  17. package/lib/Socket/chats.d.ts +230 -45
  18. package/lib/Socket/chats.js +238 -139
  19. package/lib/Socket/groups.d.ts +32 -41
  20. package/lib/Socket/groups.js +87 -38
  21. package/lib/Socket/index.d.ts +64 -63
  22. package/lib/Socket/index.js +3 -2
  23. package/lib/Socket/luxu.d.ts +287 -0
  24. package/lib/Socket/luxu.js +607 -0
  25. package/lib/Socket/messages-recv.js +65 -9
  26. package/lib/Socket/messages-send.d.ts +47 -49
  27. package/lib/Socket/messages-send.js +475 -543
  28. package/lib/Socket/newsletter.d.ts +37 -39
  29. package/lib/Socket/newsletter.js +134 -88
  30. package/lib/Socket/registration.d.ts +267 -0
  31. package/lib/Socket/registration.js +166 -0
  32. package/lib/Socket/socket.d.ts +44 -270
  33. package/lib/Socket/socket.js +90 -8
  34. package/lib/Socket/usync.d.ts +3 -3
  35. package/lib/Store/index.d.ts +2 -1
  36. package/lib/Store/index.js +3 -1
  37. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  38. package/lib/Store/make-cache-manager-store.js +83 -0
  39. package/lib/Store/make-in-memory-store.d.ts +24 -24
  40. package/lib/Store/make-in-memory-store.js +14 -26
  41. package/lib/Store/make-ordered-dictionary.d.ts +1 -1
  42. package/lib/Store/make-ordered-dictionary.js +2 -2
  43. package/lib/Types/Auth.d.ts +7 -0
  44. package/lib/Types/Call.d.ts +1 -1
  45. package/lib/Types/Chat.d.ts +7 -14
  46. package/lib/Types/Contact.d.ts +1 -5
  47. package/lib/Types/Events.d.ts +2 -44
  48. package/lib/Types/GroupMetadata.d.ts +2 -11
  49. package/lib/Types/Label.js +1 -1
  50. package/lib/Types/LabelAssociation.js +1 -1
  51. package/lib/Types/Message.d.ts +21 -148
  52. package/lib/Types/Message.js +2 -0
  53. package/lib/Types/Newsletter.d.ts +97 -73
  54. package/lib/Types/Newsletter.js +38 -18
  55. package/lib/Types/Socket.d.ts +9 -17
  56. package/lib/Types/index.d.ts +1 -8
  57. package/lib/Types/index.js +2 -2
  58. package/lib/Utils/auth-utils.d.ts +3 -3
  59. package/lib/Utils/auth-utils.js +13 -6
  60. package/lib/Utils/business.js +2 -2
  61. package/lib/Utils/chat-utils.d.ts +16 -15
  62. package/lib/Utils/chat-utils.js +35 -36
  63. package/lib/Utils/crypto.d.ts +16 -15
  64. package/lib/Utils/crypto.js +29 -71
  65. package/lib/Utils/decode-wa-message.d.ts +6 -22
  66. package/lib/Utils/decode-wa-message.js +56 -65
  67. package/lib/Utils/event-buffer.d.ts +2 -2
  68. package/lib/Utils/event-buffer.js +7 -11
  69. package/lib/Utils/generics.d.ts +20 -17
  70. package/lib/Utils/generics.js +84 -102
  71. package/lib/Utils/history.d.ts +0 -4
  72. package/lib/Utils/history.js +6 -4
  73. package/lib/Utils/link-preview.d.ts +2 -2
  74. package/lib/Utils/link-preview.js +1 -34
  75. package/lib/Utils/logger.d.ts +3 -10
  76. package/lib/Utils/lt-hash.d.ts +2 -2
  77. package/lib/Utils/lt-hash.js +6 -6
  78. package/lib/Utils/make-mutex.d.ts +2 -2
  79. package/lib/Utils/messages-media.d.ts +24 -28
  80. package/lib/Utils/messages-media.js +111 -272
  81. package/lib/Utils/messages.d.ts +10 -13
  82. package/lib/Utils/messages.js +53 -338
  83. package/lib/Utils/noise-handler.d.ts +12 -10
  84. package/lib/Utils/noise-handler.js +23 -18
  85. package/lib/Utils/process-message.d.ts +4 -5
  86. package/lib/Utils/process-message.js +25 -108
  87. package/lib/Utils/signal.d.ts +1 -2
  88. package/lib/Utils/signal.js +26 -26
  89. package/lib/Utils/use-multi-file-auth-state.d.ts +1 -0
  90. package/lib/Utils/use-multi-file-auth-state.js +0 -6
  91. package/lib/Utils/validate-connection.d.ts +4 -3
  92. package/lib/Utils/validate-connection.js +3 -3
  93. package/lib/WABinary/constants.d.ts +27 -24
  94. package/lib/WABinary/constants.js +13 -1276
  95. package/lib/WABinary/decode.d.ts +4 -3
  96. package/lib/WABinary/decode.js +13 -26
  97. package/lib/WABinary/encode.d.ts +2 -1
  98. package/lib/WABinary/encode.js +152 -137
  99. package/lib/WABinary/generic-utils.d.ts +4 -1
  100. package/lib/WABinary/generic-utils.js +125 -37
  101. package/lib/WABinary/jid-utils.d.ts +5 -11
  102. package/lib/WABinary/jid-utils.js +5 -28
  103. package/lib/WAM/BinaryInfo.d.ts +11 -2
  104. package/lib/WAM/encode.d.ts +2 -1
  105. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  106. package/lib/index.d.ts +2 -6
  107. package/lib/index.js +15 -31
  108. package/package.json +101 -95
  109. package/WAProto/GenerateStatics.sh +0 -4
  110. package/WAProto/WAProto.proto +0 -4775
  111. package/WAProto/index.d.ts +0 -55057
  112. package/WAProto/index.ts.ts +0 -53473
  113. package/lib/Socket/setup.js +0 -481
  114. package/lib/Socket/setup.ts +0 -623
  115. package/lib/WABinary/jid-utils.js.bak +0 -83
  116. package/lib/WAUSync/index.d.ts +0 -3
  117. /package/lib/Socket/Client/{types.js → abstract-socket-client.js} +0 -0
package/README.md ADDED
@@ -0,0 +1,421 @@
1
+ # <div align='center'>Baileys Modification</div>
2
+
3
+ <div align="center">
4
+
5
+ <img src="https://files.catbox.moe/qhl7st.png" />
6
+
7
+ <a href="https://www.npmjs.com/package/riftcore">
8
+ <img src="https://img.shields.io/npm/v/riftcore?color=red&label=Version&logo=npm" alt="npm version" />
9
+ </a>
10
+
11
+ <a href="https://www.npmjs.com/package/riftcore">
12
+ <img src="https://img.shields.io/npm/dt/riftcore?color=red&label=Downloads&logo=npm" alt="npm downloads" />
13
+ </a>
14
+
15
+ <a href="https://whatsapp.com/channel/0029Vb73EYZFXUujAoHFor1i">
16
+ <img src="https://img.shields.io/badge/WhatsApp-Channel-25D366?logo=whatsapp&logoColor=white" alt="WhatsApp Channel" />
17
+ </a>
18
+
19
+ </div>
20
+
21
+ ## 📖 Table of Contents
22
+
23
+ - [Important Note](#important-note)
24
+ - [Install](#install)
25
+ - [Added Features and Improvements](#-added-features-and-improvements)
26
+ - [Feature Examples](#feature-examples)
27
+ - [Newsletter Management](#newsletter-management)
28
+ - [Button and Interactive Message Management](#button-and-interactive-message-management)
29
+ - [Send Album Message](#send-album-message)
30
+ - [AI Message Icon Customization](#ai-message-icon-customization)
31
+ - [Custom Pairing Code Generation](#custom-pairing-code-generation)
32
+ - [Reporting Issues](#reporting-issues)
33
+ - [Notes](#notes)
34
+ ---
35
+
36
+ ## Important Note
37
+
38
+ The original repository was initially removed by its creator and subsequently taken over by [WhiskeySockets](https://github.com/WhiskeySockets). Building upon this foundation, I have implemented several enhancements and introduced new features that were not present in the original repository. These improvements aim to elevate functionality and provide a more robust and versatile experience.
39
+
40
+ ## Install
41
+
42
+ Install in package.json:
43
+ ```json
44
+ "dependencies": {
45
+ "@whiskeysockets/baileys": "npm:riftcore"
46
+ }
47
+ ````
48
+ or install in terminal:
49
+ ```
50
+ npm install i riftcore
51
+ ```
52
+
53
+ Then import the default function in your code:
54
+ ```ts
55
+ // type esm
56
+ import makeWASocket from ' WhiskeySockets/baileys'
57
+ ```
58
+
59
+ ```js
60
+ // type cjs
61
+ const { default: makeWASocket } = require(" WhiskeySockets/baileys")
62
+ ```
63
+
64
+ ## Added Features and Improvements
65
+
66
+ | Feature | Description |
67
+ | :------------------------------------ | :---------------------------------------------------------------------------------------------------------------------------------------- |
68
+ | 💬 **Send Messages to Channels** | Supports sending text and media messages to channels. |
69
+ | 🔘 **Button & Interactive Messages** | Supports sending button messages and interactive messages on WhatsApp Messenger and WhatsApp Business. |
70
+ | 🖼️ **Send Album Messages** | Supports sending multiple images as an album (grouped media message), enabling richer and more organized media sharing. |
71
+ | 👥 **Group with LID Support** | Full support for group using `@lid`, ensuring compatibility with the latest WhatsApp group addressing format. |
72
+ | 🤖 **AI Message Icon** | Customize message appearances with an optional AI icon, adding a modern touch. |
73
+ | 🖼️ **Full-Size Profile Pictures** | Allows users to upload profile pictures in their original size without cropping, ensuring better quality and visual presentation. |
74
+ | 🔑 **Custom Pairing Codes** | Users can now create and customize pairing codes as they wish, enhancing convenience and security when connecting devices. |
75
+ | 🛠️ **Libsignal Fixes** | Enjoy a cleaner development experience with refined logs, providing more informative and less cluttered output from the libsignal library.|
76
+
77
+ More features and improvements will be added in the future.
78
+
79
+ ## Feature Examples
80
+
81
+ Here are some examples of features that have been added:
82
+
83
+ ### Newsletter Management
84
+
85
+ <details>
86
+ <summary style="font-weight: bold; cursor: pointer; padding: 8px; border-bottom: 1px solid #eee; margin-bottom: 5px;">Show Examples</summary>
87
+ <div style="padding: 10px 15px; background: #f9f9f9; border: 1px solid #eee; border-top: none; border-radius: 0 0 5px 5px;">
88
+
89
+ - **To get info newsletter**
90
+ ```ts
91
+ const metadata = await sock.newsletterMetadata("invite", "xxxxx")
92
+ // or
93
+ const metadata = await sock.newsletterMetadata("jid", "abcd@newsletter")
94
+ console.log(metadata)
95
+ ```
96
+ - **To update the description of a newsletter**
97
+ ```ts
98
+ await sock.newsletterUpdateDescription("abcd@newsletter", "New Description")
99
+ ```
100
+ - **To update the name of a newsletter**
101
+ ```ts
102
+ await sock.newsletterUpdateName("abcd@newsletter", "New Name")
103
+ ```
104
+ - **To update the profile picture of a newsletter**
105
+ ```ts
106
+ await sock.newsletterUpdatePicture("abcd@newsletter", buffer)
107
+ ```
108
+ - **To remove the profile picture of a newsletter**
109
+ ```ts
110
+ await sock.newsletterRemovePicture("abcd@newsletter")
111
+ ```
112
+ - **To mute notifications for a newsletter**
113
+ ```ts
114
+ await sock.newsletterUnmute("abcd@newsletter")
115
+ ```
116
+ - **To mute notifications for a newsletter**
117
+ ```ts
118
+ await sock.newsletterMute("abcd@newsletter")
119
+ ```
120
+ - **To create a newsletter**
121
+ ```ts
122
+ const metadata = await sock.newsletterCreate("Newsletter Name")
123
+ console.log(metadata)
124
+ ```
125
+ - **To delete a newsletter**
126
+ ```ts
127
+ await sock.newsletterDelete("abcd@newsletter")
128
+ ```
129
+ - **To follow a newsletter**
130
+ ```ts
131
+ await sock.newsletterFollow("abcd@newsletter")
132
+ ```
133
+ - **To unfollow a newsletter**
134
+ ```ts
135
+ await sock.newsletterUnfollow("abcd@newsletter")
136
+ ```
137
+ - **To send reaction**
138
+ ```ts
139
+ // jid, id message & emoticon
140
+ // way to get the ID is to copy the message url from channel
141
+ // Example: [ https://whatsapp.com/channel/xxxxx/175 ]
142
+ // The last number of the URL is the ID
143
+ const id = "175"
144
+ await sock.newsletterReactMessage("abcd@newsletter", id, "🥳")
145
+ ```
146
+ </div>
147
+ </details>
148
+
149
+ ### Button and Interactive Message Management
150
+
151
+ <details>
152
+ <summary style="font-weight: bold; cursor: pointer; padding: 8px; border-bottom: 1px solid #eee; margin-bottom: 5px;">Show Examples</summary>
153
+ <div style="padding: 10px 15px; background: #f9f9f9; border: 1px solid #eee; border-top: none; border-radius: 0 0 5px 5px;">
154
+
155
+ - **To send button with text**
156
+ ```ts
157
+ const buttons = [
158
+ { buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
159
+ { buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
160
+ ]
161
+
162
+ const buttonMessage = {
163
+ text: "Hi it's button message",
164
+ footer: 'Hello World',
165
+ buttons,
166
+ headerType: 1
167
+ }
168
+
169
+ await sock.sendMessage(id, buttonMessage, { quoted: null })
170
+ ```
171
+ - **To send button with image**
172
+ ```ts
173
+ const buttons = [
174
+ { buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
175
+ { buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
176
+ ]
177
+
178
+ const buttonMessage = {
179
+ image: { url: "https://example.com/abcd.jpg" }, // image: buffer or path
180
+ caption: "Hi it's button message with image",
181
+ footer: 'Hello World',
182
+ buttons,
183
+ headerType: 1
184
+ }
185
+
186
+ await sock.sendMessage(id, buttonMessage, { quoted: null })
187
+
188
+ ```
189
+ - **To send button with video**
190
+ ```ts
191
+ const buttons = [
192
+ { buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
193
+ { buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
194
+ ]
195
+
196
+ const buttonMessage = {
197
+ video: { url: "https://example.com/abcd.mp4" }, // video: buffer or path
198
+ caption: "Hi it's button message with video",
199
+ footer: 'Hello World',
200
+ buttons,
201
+ headerType: 1
202
+ }
203
+
204
+ await sock.sendMessage(id, buttonMessage, { quoted: null })
205
+ ```
206
+
207
+ - **To send interactive message**
208
+ ```ts
209
+ const interactiveButtons = [
210
+ {
211
+ name: "quick_reply",
212
+ buttonParamsJson: JSON.stringify({
213
+ display_text: "Quick Reply",
214
+ id: "ID"
215
+ })
216
+ },
217
+ {
218
+ name: "cta_url",
219
+ buttonParamsJson: JSON.stringify({
220
+ display_text: "Tap Here!",
221
+ url: "https://www.example.com/"
222
+ })
223
+ },
224
+ {
225
+ name: "cta_copy",
226
+ buttonParamsJson: JSON.stringify({
227
+ display_text: "Copy Code",
228
+ id: "12345",
229
+ copy_code: "12345"
230
+ })
231
+ }
232
+ ]
233
+
234
+ const interactiveMessage = {
235
+ text: "Hello World!",
236
+ title: "this is the title",
237
+ footer: "this is the footer",
238
+ interactiveButtons
239
+ }
240
+
241
+ await sock.sendMessage(id, interactiveMessage, { quoted: null })
242
+ ```
243
+ - **To send interactive message with image**
244
+ ```ts
245
+ const interactiveButtons = [
246
+ {
247
+ name: "quick_reply",
248
+ buttonParamsJson: JSON.stringify({
249
+ display_text: "Quick Reply",
250
+ id: "ID"
251
+ })
252
+ },
253
+ {
254
+ name: "cta_url",
255
+ buttonParamsJson: JSON.stringify({
256
+ display_text: "Tap Here!",
257
+ url: "https://www.example.com/"
258
+ })
259
+ },
260
+ {
261
+ name: "cta_copy",
262
+ buttonParamsJson: JSON.stringify({
263
+ display_text: "Copy Code",
264
+ id: "12345",
265
+ copy_code: "12345"
266
+ })
267
+ }
268
+ ]
269
+
270
+ const interactiveMessage = {
271
+ image: { url: "https://example.com/abcd.jpg" }, // image: buffer or path
272
+ caption: "this is the caption",
273
+ title: "this is the title",
274
+ footer: "this is the footer",
275
+ interactiveButtons
276
+ }
277
+
278
+ await sock.sendMessage(id, interactiveMessage, { quoted: null })
279
+ ```
280
+ - **To send interactive message with video**
281
+ ```ts
282
+ const interactiveButtons = [
283
+ {
284
+ name: "quick_reply",
285
+ buttonParamsJson: JSON.stringify({
286
+ display_text: "Quick Reply",
287
+ id: "ID"
288
+ })
289
+ },
290
+ {
291
+ name: "cta_url",
292
+ buttonParamsJson: JSON.stringify({
293
+ display_text: "Tap Here!",
294
+ url: "https://www.example.com/"
295
+ })
296
+ },
297
+ {
298
+ name: "cta_copy",
299
+ buttonParamsJson: JSON.stringify({
300
+ display_text: "Copy Code",
301
+ id: "12345",
302
+ copy_code: "12345"
303
+ })
304
+ }
305
+ ]
306
+
307
+ const interactiveMessage = {
308
+ video: { url: "https://example.com/abcd.mp4" }, // video: buffer or path
309
+ caption: "this is the caption",
310
+ title: "this is the title",
311
+ footer: "this is the footer",
312
+ interactiveButtons
313
+ }
314
+
315
+ await sock.sendMessage(id, interactiveMessage, { quoted: null })
316
+ ```
317
+ - **To send list interactive**
318
+ ```ts
319
+ const interactiveButtons = [
320
+ {
321
+ name: "single_select",
322
+ buttonParamsJson: JSON.stringify({
323
+ title: "message",
324
+ sections: [
325
+ {
326
+ title: "title",
327
+ highlight_label: "label",
328
+ rows: [
329
+ {
330
+ header: "HEADER",
331
+ title: "TITLE",
332
+ description: "DESCRIPTION",
333
+ id: "YOUR ID"
334
+ },
335
+ {
336
+ header: "HEADER",
337
+ title: "TITLE",
338
+ description: "DESCRIPTION",
339
+ id: "YOUR ID"
340
+ }
341
+ ]
342
+ }
343
+ ]
344
+ })
345
+ }
346
+ ];
347
+
348
+ const interactiveMessage = {
349
+ text: "Hello World!",
350
+ title: "this is the title",
351
+ footer: "this is the footer",
352
+ interactiveButtons
353
+ };
354
+
355
+ await sock.sendMessage(id, interactiveMessage, { quoted: null });
356
+ ```
357
+
358
+ </div>
359
+ </details>
360
+
361
+ ### Send Album Message
362
+
363
+ <details>
364
+ <summary style="font-weight: bold; cursor: pointer; padding: 8px; border-bottom: 1px solid #eee; margin-bottom: 5px;">Show Example</summary>
365
+ <div style="padding: 10px 15px; background: #f9f9f9; border: 1px solid #eee; border-top: none; border-radius: 0 0 5px 5px;">
366
+
367
+ ```ts
368
+ // Media can be a URL, buffer, or path.
369
+ const media = [
370
+ {
371
+ image: { url: "https://example.com/image.jpg" }
372
+ },
373
+ {
374
+ image: await getBuffer("https://example.com/image.jpg")
375
+ },
376
+ {
377
+ video: { url: "https://example.com/video.mp4" }
378
+ }
379
+ ]
380
+
381
+ await sock.sendMessage(id, { album: media, caption: "testing send album" }, { quoted: null })
382
+ ```
383
+
384
+ </div>
385
+ </details>
386
+
387
+ ### AI Message Icon Customization
388
+
389
+ <details>
390
+ <summary style="font-weight: bold; cursor: pointer; padding: 8px; border-bottom: 1px solid #eee; margin-bottom: 5px;">Show Example</summary>
391
+ <div style="padding: 10px 15px; background: #f9f9f9; border: 1px solid #eee; border-top: none; border-radius: 0 0 5px 5px;">
392
+
393
+ ```ts
394
+ // To enable the AI icon for a message, simply add the "ai: true" parameter:
395
+ await sock.sendMessage(id, { text: "Hello World", ai: true });
396
+ ```
397
+
398
+ </div>
399
+ </details>
400
+
401
+ ### Custom Pairing Code Generation
402
+
403
+ <details>
404
+ <summary style="font-weight: bold; cursor: pointer; padding: 8px; border-bottom: 1px solid #eee; margin-bottom: 5px;">Show Example</summary>
405
+ <div style="padding: 10px 15px; background: #f9f9f9; border: 1px solid #eee; border-top: none; border-radius: 0 0 5px 5px;">
406
+
407
+ ```ts
408
+ if(usePairingCode && !sock.authState.creds.registered) {
409
+ const phoneNumber = await question('Please enter your mobile phone number:\n');
410
+ // Define your custom 8-digit code (alphanumeric)
411
+ const customPairingCode = "RIFTCORE";
412
+ const code = await sock.requestPairingCode(phoneNumber, customPairingCode);
413
+ console.log(`Your Pairing Code: ${code?.match(/.{1,4}/g)?.join('-') || code}`);
414
+ }
415
+ ```
416
+ *Note: The `question` function is a placeholder for your method of obtaining user input.*
417
+ </div>
418
+ </details>
419
+
420
+ ## Notes
421
+ Everything other than the modifications mentioned above remains the same as the original repository. You can check out the original repository at [WhiskeySockets](https://github.com/WhiskeySockets/Baileys)
@@ -0,0 +1,29 @@
1
+ const { readFileSync, writeFileSync } = require 'fs';
2
+ const { exit } = require 'process';
3
+
4
+ const filePath = './index.js';
5
+
6
+ try {
7
+ // Read the file
8
+ let content = readFileSync(filePath, 'utf8');
9
+
10
+ // Fix the import statement
11
+ content = content.replace(
12
+ /import \* as (\$protobuf) from/g,
13
+ 'import $1 from'
14
+ );
15
+
16
+ // add missing extension to the import
17
+ content = content.replace(
18
+ /(['"])protobufjs\/minimal(['"])/g,
19
+ '$1protobufjs/minimal.js$2'
20
+ );
21
+
22
+ // Write back
23
+ writeFileSync(filePath, content, 'utf8');
24
+
25
+ console.log(`✅ Fixed imports in ${filePath}`);
26
+ } catch (error) {
27
+ console.error(`❌ Error fixing imports: ${error.message}`);
28
+ exit(1);
29
+ }