status-dev-cli
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -86,5 +86,7 @@ #!/usr/bin/env node | ||
function getPackageData(contact) { | ||
var contactData = contact; | ||
var contactData; | ||
if (!contact) { | ||
contactData = getCurrentPackageData(); | ||
contactData = JSON.stringify(getCurrentPackageData()); | ||
} else { | ||
contactData = contact; | ||
} | ||
@@ -91,0 +93,0 @@ return contactData; |
12
index.js
@@ -13,6 +13,2 @@ const request = require('request'); | ||
function encodeObject(obj) { | ||
return fromAscii(JSON.stringify(obj)); | ||
} | ||
var StatusDev = function(options) { | ||
@@ -27,3 +23,3 @@ this.url = "http://" + options.ip + ":5561"; | ||
json: true, | ||
body: { encoded: encodeObject(contactData) } | ||
body: { encoded: fromAscii(contactData) } | ||
}, function (error, response, body) { | ||
@@ -40,3 +36,3 @@ if (cb === undefined) { return } | ||
json: true, | ||
body: { encoded: encodeObject(contactData) } | ||
body: { encoded: fromAscii(contactData) } | ||
}, function (error, response, body) { | ||
@@ -53,3 +49,3 @@ if (cb === undefined) { return } | ||
json: true, | ||
body: { encoded: encodeObject(contactData) } | ||
body: { encoded: fromAscii(contactData) } | ||
}, function (error, response, body) { | ||
@@ -66,3 +62,3 @@ if (cb === undefined) { return } | ||
json: true, | ||
body: {encoded: encodeObject({"url": rpcUrl})} | ||
body: {encoded: fromAscii({"url": rpcUrl})} | ||
}, function (error, response, body) { | ||
@@ -69,0 +65,0 @@ if (cb === undefined) { return } |
{ | ||
"name": "status-dev-cli", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "CLI for Status", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
12857
251