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

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
+ console.log('[Android] Simulating Android behavior...');
131
132
  // 0. Pre-login notification suppression / Trust signal
132
133
  try {
133
134
  await this.request.send({
@@ -208,6 +209,7 @@ class IgApiClient extends EventEmitter {
208
209
  // -------------------------------
209
210
  async preLoginFlow() {
210
211
  if (this.state.verbose)
212
+ console.log('[Pre-Login] Starting pre-login flow...');
211
213
  try {
212
214
  await this.request.send({
213
215
  url: '/api/v1/launcher/sync/',
@@ -218,6 +220,7 @@ class IgApiClient extends EventEmitter {
218
220
  }),
219
221
  });
220
222
  if (this.state.verbose)
223
+ console.log('[Pre-Login] Launcher Sync OK');
221
224
  }
222
225
  catch (e) {
223
226
  if (this.state.verbose)
@@ -227,6 +230,7 @@ class IgApiClient extends EventEmitter {
227
230
  }
228
231
  async postLoginFlow() {
229
232
  if (this.state.verbose)
233
+ console.log('[Post-Login] Starting post-login flow...');
230
234
  try {
231
235
  await this.request.send({
232
236
  url: '/api/v1/feed/reels_tray/',
@@ -243,6 +247,7 @@ class IgApiClient extends EventEmitter {
243
247
  }),
244
248
  });
245
249
  if (this.state.verbose)
250
+ console.log('[Post-Login] Reels tray OK');
246
251
  }
247
252
  catch (e) {
248
253
  if (this.state.verbose)
@@ -279,6 +284,7 @@ class IgApiClient extends EventEmitter {
279
284
  },
280
285
  });
281
286
  if (this.state.verbose)
287
+ console.log('[Post-Login] Timeline feed OK');
282
288
  }
283
289
  catch (e) {
284
290
  if (this.state.verbose)
@@ -354,6 +360,7 @@ class IgApiClient extends EventEmitter {
354
360
  const json = typeof data === 'string' ? data : JSON.stringify(data, null, 2);
355
361
  await fs.promises.writeFile(p, json, { mode: 0o600 });
356
362
  if (this.state.verbose)
363
+ console.log('[Session] Saved session to file:', p);
357
364
  return p;
358
365
  }
359
366
  /**
@@ -378,6 +385,7 @@ class IgApiClient extends EventEmitter {
378
385
  }
379
386
  await this.loadSession(sessionObj);
380
387
  if (this.state.verbose)
388
+ console.log('[Session] Loaded session from file:', p);
381
389
  return true;
382
390
  }
383
391
  /**
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.4.10",
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",