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

wickrio_addon

Package Overview
Dependencies
Maintainers
0
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wickrio_addon - npm Package Compare versions

Comparing version 7.1.1-beta.4 to 7.1.1

src/sqs_commands.js

4

package.json
{
"name": "wickrio_addon",
"version": "7.1.1-beta.04",
"version": "7.1.1",
"description": "WickrIO's Javascript bot API's",

@@ -15,3 +15,3 @@ "main": "src/wickrio_addon.js",

"dependencies": {
"zeromq": "^6.0.0-beta.19",
"zeromq": "6.0.4",
"nan": "^2.13.2",

@@ -18,0 +18,0 @@ "deasync":"^0.1.29",

@@ -26,3 +26,3 @@ const zmq = require("zeromq")

class ZMQCommands {
constructor(botname) {
constructor(botname, debugOn) {
this.botname = botname

@@ -35,2 +35,3 @@ this.requestQName = 'ipc:///opt/WickrIO/clients/' + botname + '/tmp/0';

this.lastSentMessage = ''
this.debug = debugOn

@@ -61,3 +62,3 @@ this.requestSocket = new zmq.Request

this.requestSocket.send(message).then(results => {
console.log('message sent, now will receive')
if (this.debug) console.log('message sent, now will receive')
const [msgs] = this.requestSocket.receive().then((result) => {

@@ -79,3 +80,3 @@

if (Array.isArray(result)) {
console.log('result is an array')
if (this.debug) console.log('result is an array')
}

@@ -110,3 +111,3 @@ const receive_result = result[0];

};
// console.log('sendMessage: response=', response)
// if (this.debug) console.log('sendMessage: response=', response)

@@ -248,6 +249,6 @@ resolve(response);

try {
console.log('Sending message:, ',message);
if (this.debug) console.log('Sending message:, ',message);
await this.requestSocket.send(message);
console.log('message sent, now will receive')
if (this.debug) console.log('message sent, now will receive')

@@ -272,3 +273,3 @@ const result = await this.requestSocket.receive();

if (Array.isArray(result)) {
console.log('result is an array')
if (this.debug) console.log('result is an array')
}

@@ -307,3 +308,3 @@ const receive_result = result[0];

};
// console.log('sendMessage: response=', response)
// if (this.debug) console.log('sendMessage: response=', response)

@@ -368,3 +369,3 @@ return(response);

if (response) {
console.log(response)
if (this.debug) console.log(response)
return response

@@ -411,3 +412,3 @@ } else {

this.requestSocket.send(message).then(results => {
console.log('message sent, now will receive')
if (this.debug) console.log('message sent, now will receive')
const [msgs] = this.requestSocket.receive().then((result) => {

@@ -429,4 +430,4 @@

if (Array.isArray(result)) {
console.log('result is an array')
console.log('result lenght=', result.length)
if (this.debug) console.log('result is an array')
if (this.debug) console.log('result lenght=', result.length)
}

@@ -461,3 +462,3 @@ const receive_result = result[0];

};
// console.log('sendMessage: response=', response)
// if (this.debug) console.log('sendMessage: response=', response)

@@ -471,3 +472,3 @@ resolve(response);

} catch (err) {
console.log(err);
if (this.debug) console.log(err);
reject(false);

@@ -480,3 +481,3 @@ }

sleepDone() {
console.log('sleep done')
if (this.debug) console.log('sleep done')
}

@@ -549,4 +550,4 @@

if (Array.isArray(result)) {
console.log('result is an array')
console.log('result length=', result.length)
if (this.debug) console.log('result is an array')
if (this.debug) console.log('result length=', result.length)
}

@@ -553,0 +554,0 @@ const receive_result = result[0];

Sorry, the diff of this file is too big to display

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