alicezetion 1.3.3 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"nonce":4517116713958035675,"last_updated":{"seconds":1693541880,"nanos":181026000}}
1
+ {"nonce":1858077623171339367,"last_updated":{"seconds":1693542837,"nanos":953598000}}
package/index.js CHANGED
@@ -218,10 +218,6 @@ function buildAPI(globalOptions, html, jar) {
218
218
  api[v] = require('./leiamnash/' + v)(defaultFuncs, api, ctx);
219
219
  });
220
220
 
221
- //Removing original `listen` that uses pull.
222
- //Map it to listenMqtt instead for backward compatibly.
223
- api.listen = api.listenMqtt;
224
-
225
221
  return [ctx, defaultFuncs, api];
226
222
  }
227
223
 
@@ -279,7 +275,6 @@ function makeLogin(jar, email, password, loginOptions, callback, prCallback) {
279
275
 
280
276
  // This means the account has login approvals turned on.
281
277
  if (headers.location.indexOf('https://www.facebook.com/checkpoint/') > -1) {
282
- log.info("login", "You have login approvals turned on.");
283
278
  var nextURL = 'https://www.facebook.com/checkpoint/?next=https%3A%2F%2Fwww.facebook.com%2Fhome.php';
284
279
 
285
280
  return utils
@@ -301,25 +296,7 @@ function makeLogin(jar, email, password, loginOptions, callback, prCallback) {
301
296
  var form = utils.arrToForm(arr);
302
297
  if (html.indexOf("checkpoint/?next") > -1) {
303
298
  setTimeout(() => {
304
- checkVerified = setInterval((_form) => {
305
- /* utils
306
- .post("https://www.facebook.com/login/approvals/approved_machine_check/", jar, form, loginOptions, null, {
307
- "Referer": "https://www.facebook.com/checkpoint/?next"
308
- })
309
- .then(utils.saveCookies(jar))
310
- .then(res => {
311
- try {
312
- JSON.parse(res.body.replace(/for\s*\(\s*;\s*;\s*\)\s*;\s*()/, ""));
313
- } catch (ex) {
314
- clearInterval(checkVerified);
315
- log.info("login", "Verified from browser. Logging in...");
316
- return loginHelper(utils.getAppState(jar), email, password, loginOptions, callback);
317
- }
318
- })
319
- .catch(ex => {
320
- log.error("login", ex);
321
- }); */
322
- }, 5000, {
299
+ checkVerified = setInterval((_form) => {}, 5000, {
323
300
  fb_dtsg: form.fb_dtsg,
324
301
  jazoest: form.jazoest,
325
302
  dpr: 1
@@ -568,7 +545,7 @@ function login(loginData, options, callback) {
568
545
  listenTyping: false,
569
546
  updatePresence: false,
570
547
  forceLogin: false,
571
- autoMarkDelivery: true,
548
+ autoMarkDelivery: false,
572
549
  autoMarkRead: false,
573
550
  autoReconnect: true,
574
551
  logRecordSize: defaultLogRecordSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alicezetion",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "mocha",