Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fca-unofficial

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fca-unofficial - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

18

index.js

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

var mqttData = html.match(/(\["MqttWebConfig",\[\],{fbid:")(.*)(",appID:219994525426954,endpoint:")(.*)(",pollingEndpoint:")(.*)(3790])/g)[0];
var mqttData = html.match(/(\["MqttWebConfig",\[\],{fbid:")(.+?)(",appID:219994525426954,endpoint:")(.+?)(",pollingEndpoint:")(.+?)(3790])/g)[0];
var mqttEndpoint = null;

@@ -89,8 +89,12 @@ var region = null;

} else {
var mqttDataParsed = JSON.parse(mqttData)[2];
mqttEndpoint = mqttDataParsed.endpoint;
region = new URL(mqttEndpoint).searchParams.get("region").toLocaleUpperCase();
log.info("login", `Got this account's message region: ${region}`);
log.verbose("login", `MQTT endpoint: ${mqttEndpoint}`);
log.verbose("login", `Polling endpoint: ${mqttDataParsed.pollingEndpoint} (unused)`);
try {
var mqttDataParsed = eval(mqttData)[2];
mqttEndpoint = mqttDataParsed.endpoint;
region = new URL(mqttEndpoint).searchParams.get("region").toLocaleUpperCase();
log.info("login", `Got this account's message region: ${region}`);
log.verbose("login", `MQTT endpoint: ${mqttEndpoint}`);
log.verbose("login", `Polling endpoint: ${mqttDataParsed.pollingEndpoint} (unused)`);
} catch (ex) {
log.error("login", ex.toString());
}
}

@@ -97,0 +101,0 @@

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

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

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

defaultFuncs
.get(url, ctx.jar, form)
.get(url, ctx.jar, form, {})
.then(function(resData) {

@@ -32,0 +32,0 @@ callback(null, resData.body.toString());

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

defaultFuncs
.post(url, ctx.jar, form)
.post(url, ctx.jar, form, {})
.then(function(resData) {

@@ -32,0 +32,0 @@ callback(null, resData.body.toString());

@@ -974,11 +974,11 @@ "use strict";

function postWithDefaults(url, jar, form) {
return post(url, jar, mergeWithDefaults(form), ctx.globalOptions, ctx);
function postWithDefaults(url, jar, form, ctxx) {
return post(url, jar, mergeWithDefaults(form), ctx.globalOptions, ctxx || ctx);
}
function getWithDefaults(url, jar, qs) {
return get(url, jar, mergeWithDefaults(qs), ctx.globalOptions, ctx);
function getWithDefaults(url, jar, qs, ctxx) {
return get(url, jar, mergeWithDefaults(qs), ctx.globalOptions, ctxx || ctx);
}
function postFormDataWithDefault(url, jar, form, qs) {
function postFormDataWithDefault(url, jar, form, qs, ctxx) {
return postFormData(

@@ -990,3 +990,3 @@ url,

ctx.globalOptions,
ctx
ctxx || ctx
);

@@ -993,0 +993,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc