alicezetion 1.5.8 → 1.6.0
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.
@@ -1 +1 @@
|
|
1
|
-
{"nonce":
|
1
|
+
{"nonce":2450702584470697382,"last_updated":{"seconds":1693578277,"nanos":660927000}}
|
package/index.js
CHANGED
@@ -85,7 +85,6 @@ function setOptions(globalOptions, options) {
|
|
85
85
|
}
|
86
86
|
|
87
87
|
function buildAPI(globalOptions, html, jar) {
|
88
|
-
try {
|
89
88
|
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function(val) {
|
90
89
|
return val.cookieString().split("=")[0] === "c_user";
|
91
90
|
});
|
@@ -221,9 +220,6 @@ function buildAPI(globalOptions, html, jar) {
|
|
221
220
|
apiFuncNames.map(v => api[v] = require('./leiamnash/' + v)(defaultFuncs, api, ctx));
|
222
221
|
|
223
222
|
return [ctx, defaultFuncs, api];
|
224
|
-
} catch (err) {
|
225
|
-
console.log(err);
|
226
|
-
}
|
227
223
|
}
|
228
224
|
|
229
225
|
function makeLogin(jar, email, password, loginOptions, callback, prCallback) {
|
@@ -498,8 +494,9 @@ function loginHelper(appState, email, password, globalOptions, callback, prCallb
|
|
498
494
|
}
|
499
495
|
|
500
496
|
function login(loginData, options, callback) {
|
497
|
+
try {
|
501
498
|
if (utils.getType(options) === 'Function' || utils.getType(options) === 'AsyncFunction') {
|
502
|
-
callback = options;
|
499
|
+
callback = options;
|
503
500
|
options = {};
|
504
501
|
}
|
505
502
|
|
@@ -536,6 +533,9 @@ function login(loginData, options, callback) {
|
|
536
533
|
}
|
537
534
|
loginHelper(loginData.appState, loginData.email, loginData.password, globalOptions, callback, prCallback);
|
538
535
|
return returnPromise;
|
536
|
+
}
|
537
|
+
} catch (err) {
|
538
|
+
console.log(err);
|
539
539
|
}
|
540
540
|
|
541
541
|
module.exports = login;
|