nodejs-insta-private-api-mqt 1.4.9 → 1.5.11

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.
@@ -128,6 +128,7 @@ class IgApiClient extends EventEmitter {
128
128
  */
129
129
  async simulateAndroidBehavior() {
130
130
  if (this.state.verbose)
131
+ ; // placeholder, left as-is
131
132
  // 0. Pre-login notification suppression / Trust signal
132
133
  try {
133
134
  await this.request.send({
@@ -207,7 +208,6 @@ class IgApiClient extends EventEmitter {
207
208
  // === UTILITY HELPER METHODS
208
209
  // -------------------------------
209
210
  async preLoginFlow() {
210
- if (this.state.verbose)
211
211
  try {
212
212
  await this.request.send({
213
213
  url: '/api/v1/launcher/sync/',
@@ -217,7 +217,6 @@ class IgApiClient extends EventEmitter {
217
217
  server_config_retrieval: '1',
218
218
  }),
219
219
  });
220
- if (this.state.verbose)
221
220
  }
222
221
  catch (e) {
223
222
  if (this.state.verbose)
@@ -226,7 +225,6 @@ class IgApiClient extends EventEmitter {
226
225
  await new Promise(resolve => setTimeout(resolve, Math.random() * 700 + 175));
227
226
  }
228
227
  async postLoginFlow() {
229
- if (this.state.verbose)
230
228
  try {
231
229
  await this.request.send({
232
230
  url: '/api/v1/feed/reels_tray/',
@@ -242,7 +240,6 @@ class IgApiClient extends EventEmitter {
242
240
  reel_tray_impressions: {},
243
241
  }),
244
242
  });
245
- if (this.state.verbose)
246
243
  }
247
244
  catch (e) {
248
245
  if (this.state.verbose)
@@ -278,7 +275,6 @@ class IgApiClient extends EventEmitter {
278
275
  'X-CM-Latency': String(Math.floor(Math.random() * 5) + 1),
279
276
  },
280
277
  });
281
- if (this.state.verbose)
282
278
  }
283
279
  catch (e) {
284
280
  if (this.state.verbose)
@@ -354,7 +350,7 @@ class IgApiClient extends EventEmitter {
354
350
  const json = typeof data === 'string' ? data : JSON.stringify(data, null, 2);
355
351
  await fs.promises.writeFile(p, json, { mode: 0o600 });
356
352
  if (this.state.verbose)
357
- return p;
353
+ return p;
358
354
  }
359
355
  /**
360
356
  * Load session from file path (defaults to ./session.json). Returns true on success.
@@ -378,7 +374,7 @@ class IgApiClient extends EventEmitter {
378
374
  }
379
375
  await this.loadSession(sessionObj);
380
376
  if (this.state.verbose)
381
- return true;
377
+ return true;
382
378
  }
383
379
  /**
384
380
  * Attempt to load session JSON if exists and valid, else false.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodejs-insta-private-api-mqt",
3
- "version": "1.4.9",
3
+ "version": "1.5.11",
4
4
  "description": "Complete Instagram MQTT protocol with full-featured REALTIME and REST API — all in one project.",
5
5
 
6
6
  "main": "dist/dist/index.js",