nodejs-insta-private-api-mqt 1.4.10 → 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,7 +128,7 @@ class IgApiClient extends EventEmitter {
128
128
  */
129
129
  async simulateAndroidBehavior() {
130
130
  if (this.state.verbose)
131
- console.log('[Android] Simulating Android behavior...');
131
+ ; // placeholder, left as-is
132
132
  // 0. Pre-login notification suppression / Trust signal
133
133
  try {
134
134
  await this.request.send({
@@ -208,8 +208,6 @@ class IgApiClient extends EventEmitter {
208
208
  // === UTILITY HELPER METHODS
209
209
  // -------------------------------
210
210
  async preLoginFlow() {
211
- if (this.state.verbose)
212
- console.log('[Pre-Login] Starting pre-login flow...');
213
211
  try {
214
212
  await this.request.send({
215
213
  url: '/api/v1/launcher/sync/',
@@ -219,8 +217,6 @@ class IgApiClient extends EventEmitter {
219
217
  server_config_retrieval: '1',
220
218
  }),
221
219
  });
222
- if (this.state.verbose)
223
- console.log('[Pre-Login] Launcher Sync OK');
224
220
  }
225
221
  catch (e) {
226
222
  if (this.state.verbose)
@@ -229,8 +225,6 @@ class IgApiClient extends EventEmitter {
229
225
  await new Promise(resolve => setTimeout(resolve, Math.random() * 700 + 175));
230
226
  }
231
227
  async postLoginFlow() {
232
- if (this.state.verbose)
233
- console.log('[Post-Login] Starting post-login flow...');
234
228
  try {
235
229
  await this.request.send({
236
230
  url: '/api/v1/feed/reels_tray/',
@@ -246,8 +240,6 @@ class IgApiClient extends EventEmitter {
246
240
  reel_tray_impressions: {},
247
241
  }),
248
242
  });
249
- if (this.state.verbose)
250
- console.log('[Post-Login] Reels tray OK');
251
243
  }
252
244
  catch (e) {
253
245
  if (this.state.verbose)
@@ -283,8 +275,6 @@ class IgApiClient extends EventEmitter {
283
275
  'X-CM-Latency': String(Math.floor(Math.random() * 5) + 1),
284
276
  },
285
277
  });
286
- if (this.state.verbose)
287
- console.log('[Post-Login] Timeline feed OK');
288
278
  }
289
279
  catch (e) {
290
280
  if (this.state.verbose)
@@ -360,8 +350,7 @@ class IgApiClient extends EventEmitter {
360
350
  const json = typeof data === 'string' ? data : JSON.stringify(data, null, 2);
361
351
  await fs.promises.writeFile(p, json, { mode: 0o600 });
362
352
  if (this.state.verbose)
363
- console.log('[Session] Saved session to file:', p);
364
- return p;
353
+ return p;
365
354
  }
366
355
  /**
367
356
  * Load session from file path (defaults to ./session.json). Returns true on success.
@@ -385,8 +374,7 @@ class IgApiClient extends EventEmitter {
385
374
  }
386
375
  await this.loadSession(sessionObj);
387
376
  if (this.state.verbose)
388
- console.log('[Session] Loaded session from file:', p);
389
- return true;
377
+ return true;
390
378
  }
391
379
  /**
392
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.10",
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",