Comparing version 1.1.14 to 1.1.15
13
index.js
@@ -84,2 +84,15 @@ var mqtt = require('mqtt') | ||
req_sync(target, msg, options = {}) { | ||
return new Promise((ok, err) => { | ||
this.req(target, msg, options, (error, ret) => { | ||
if (error) | ||
err(error) | ||
else if (ret.error) | ||
err(ret.error) | ||
else | ||
ok(ret) | ||
}) | ||
}) | ||
} | ||
end() { | ||
@@ -86,0 +99,0 @@ this._client.end(); |
{ | ||
"name": "rt0s_js", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "rt0s js client library", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/arisi/rt0s_js.git" | ||
}, | ||
"scripts": { | ||
@@ -12,3 +16,3 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Ari Siitonen@rt0s.com", | ||
"author": "jalopuuverstas@gmail.com", | ||
"license": "ISC", | ||
@@ -15,0 +19,0 @@ "dependencies": { |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
20724
754
1