dinovn-fca
Advanced tools
Comparing version 1.2.7 to 1.2.8
{ | ||
"name": "dinovn-fca", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "A Facebook chat API that doesn't rely on XMPP. Will NOT be deprecated after April 30th 2015.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -243,7 +243,5 @@ /* eslint-disable no-redeclare */ | ||
console.log("ls_resp", taskType, taskRespData); | ||
if (taskRespData == null) { | ||
taskCallback("error", null); | ||
} else { | ||
console.log("ls_resp", taskType, taskRespData); | ||
taskCallback(null, { | ||
@@ -250,0 +248,0 @@ type: taskType, |
@@ -8,2 +8,6 @@ "use strict"; | ||
return async function shareContact(text, senderID, threadID, callback) { | ||
if (!ctx.mqttClient) { | ||
throw new Error("Not connected to MQTT"); | ||
} | ||
var resolveFunc = function () {}; | ||
@@ -46,3 +50,3 @@ var rejectFunc = function () {}; | ||
}); | ||
mqttClient.publish("/ls_req", form); | ||
ctx.mqttClient.publish("/ls_req", form); | ||
@@ -49,0 +53,0 @@ return returnPromise; |
@@ -8,2 +8,6 @@ "use strict"; | ||
return async function shareLink(text, url, threadID, callback) { | ||
if (!ctx.mqttClient) { | ||
throw new Error("Not connected to MQTT"); | ||
} | ||
var resolveFunc = function () {}; | ||
@@ -22,3 +26,3 @@ var rejectFunc = function () {}; | ||
let count_req = 0; | ||
mqttClient.publish( | ||
ctx.mqttClient.publish( | ||
"/ls_req", | ||
@@ -25,0 +29,0 @@ JSON.stringify({ |
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
613881
9235