fca-unofficial
Advanced tools
Comparing version 1.1.5 to 1.1.6
11
index.js
@@ -427,3 +427,7 @@ "use strict"; | ||
} catch(e) { | ||
throw {error: "Error inside first pull request. Received HTML instead of JSON. Logging in inside a browser might help fix this."}; | ||
log.warn("login", "Error inside first pull request. Received HTML instead of JSON. Facebook might removed pull request for this account."); | ||
log.silly("login", res.body); | ||
ret = { | ||
t: "pull-removed" | ||
}; | ||
} | ||
@@ -434,3 +438,6 @@ return ret; | ||
.then(function(resData) { | ||
if (resData.t !== 'lb') throw {error: "Bad response from base pull"}; | ||
if (resData.t !== 'lb') { | ||
log.warn("login", `Bad response from base pull (t: ${resData.t})`); | ||
return {error: "pull-removed"}; | ||
} | ||
@@ -437,0 +444,0 @@ var form = { |
{ | ||
"name": "fca-unofficial", | ||
"version": "1.1.5", | ||
"version": "1.1.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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
553044
7161