wickrio_addon
Advanced tools
Comparing version 7.1.1-beta.4 to 7.1.1
{ | ||
"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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
156758
14
4120
1
0
+ Added@aminya/node-gyp-build@4.8.1-aminya.1(transitive)
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@npmcli/agent@2.2.2(transitive)
+ Added@npmcli/fs@3.1.1(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedabbrev@2.0.0(transitive)
+ Addedagent-base@7.1.1(transitive)
+ Addedaggregate-error@3.1.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedcacache@18.0.4(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcross-env@7.0.3(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addederr-code@2.0.3(transitive)
+ Addedexponential-backoff@3.1.1(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedfs-minipass@3.0.3(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@10.4.57.2.3(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp-proxy-agent@7.0.2(transitive)
+ Addedhttps-proxy-agent@7.0.5(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedis-lambda@1.0.1(transitive)
+ Addedisexe@3.1.1(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedmake-fetch-happen@13.0.1(transitive)
+ Addedminimatch@3.1.29.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedminipass-collect@2.0.1(transitive)
+ Addedminipass-fetch@3.0.5(transitive)
+ Addedminipass-flush@1.0.5(transitive)
+ Addedminipass-pipeline@1.2.4(transitive)
+ Addedminipass-sized@1.0.3(transitive)
+ Addedms@2.1.3(transitive)
+ Addednegotiator@0.6.4(transitive)
+ Addednode-addon-api@7.1.1(transitive)
+ Addednode-gyp@10.3.1(transitive)
+ Addednopt@7.2.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-map@4.0.0(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedproc-log@4.2.0(transitive)
+ Addedpromise-retry@2.0.1(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedshelljs@0.8.5(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@8.0.4(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedssri@10.0.6(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedunique-filename@3.0.0(transitive)
+ Addedunique-slug@4.0.0(transitive)
+ Addedwhich@4.0.0(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedzeromq@6.0.4(transitive)
- Removed@aminya/cmake-ts@0.3.0-aminya.7(transitive)
- Removed@cypress/request@3.0.6(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removedaproba@2.0.0(transitive)
- Removedare-we-there-yet@3.0.1(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedbraces@3.0.3(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcolor-support@1.1.3(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removedcore-util-is@1.0.21.0.3(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddelegates@1.0.0(transitive)
- Removedduplexer2@0.1.4(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@4.0.1(transitive)
- Removedfs-extra@10.1.011.2.0(transitive)
- Removedgauge@4.0.4(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.1.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedhttp-signature@1.4.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removedjsprim@2.0.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmemory-stream@1.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednode-addon-api@8.3.0(transitive)
- Removednode-int64@0.4.0(transitive)
- Removednpmlog@6.0.2(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedqs@6.13.0(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedreadable-stream@2.3.83.6.2(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsplitargs2@0.1.3(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring_decoder@1.1.11.3.0(transitive)
- Removedtldts@6.1.65(transitive)
- Removedtldts-core@6.1.65(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtough-cookie@5.0.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduniversalify@2.0.1(transitive)
- Removedunzipper@0.12.3(transitive)
- Removedurl-join@4.0.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@8.3.2(transitive)
- Removedverror@1.10.0(transitive)
- Removedwide-align@1.1.5(transitive)
- Removedzeromq@6.1.2(transitive)
Updatedzeromq@6.0.4