Socket
Socket
Sign inDemoInstall

fca-unofficial

Package Overview
Dependencies
155
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.5 to 1.3.6

48

index.js

@@ -321,3 +321,3 @@ "use strict";

});
if (code) {
if (typeof code == "string") {
utils

@@ -378,20 +378,32 @@ .post(nextURL, jar, form, loginOptions)

} else {
try {
var appState = utils.getAppState(jar);
if (callback === prCallback) {
callback = function (err, api) {
if (err) {
return prReject(err);
utils
.post("https://www.facebook.com/login/approvals/approved_machine_check/", jar, form, loginOptions, null, {
"Referer": "https://www.facebook.com/checkpoint/?next"
})
.then(utils.saveCookies(jar))
.then(res => {
try {
JSON.parse(res.body.replace(/for\s*\(\s*;\s*;\s*\)\s*;\s*/, ""));
} catch (ex) {
clearInterval(checkVerified);
log.info("login", "Verified from browser. Logging in...");
if (callback === prCallback) {
callback = function (err, api) {
if (err) {
return prReject(err);
}
return prResolve(api);
};
}
return prResolve(api);
};
}
loginHelper(appState, email, password, loginOptions, callback);
} catch (err) {
if (callback === prCallback) {
prReject(err);
} else {
callback(err);
}
}
return loginHelper(utils.getAppState(jar), email, password, loginOptions, callback);
}
})
.catch(ex => {
log.error("login", ex);
if (callback === prCallback) {
prReject(ex);
} else {
callback(ex);
}
});
}

@@ -398,0 +410,0 @@ return rtPromise;

{
"name": "fca-unofficial",
"version": "1.3.5",
"version": "1.3.6",
"description": "A Facebook chat API that doesn't rely on XMPP. Will NOT be deprecated after April 30th 2015.",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc