alicezetion 1.3.3 → 1.3.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.
- package/.cache/replit/__replit_disk_meta.json +1 -1
- package/index.js +2 -25
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"nonce":
|
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:
|
548
|
+
autoMarkDelivery: false,
|
572
549
|
autoMarkRead: false,
|
573
550
|
autoReconnect: true,
|
574
551
|
logRecordSize: defaultLogRecordSize,
|