Comparing version 0.1.7 to 0.1.8
@@ -21,2 +21,6 @@ var request = require('request') | ||
{ | ||
var _timeout = setTimeout(function(){ | ||
exit() | ||
}, timeout + 1000) | ||
request.get(this.domain + url, {timeout: timeout},function(e){ if( e ) console.log('******************',e)}).on('data', function(data) | ||
@@ -26,8 +30,20 @@ { | ||
try{ json = JSON.parse(data.toString())} | ||
catch(e){ } | ||
clearTimeout(_timeout) | ||
_timeout = setTimeout(function(){ | ||
exit() | ||
}, timeout + 1000) | ||
try{ | ||
json = JSON.parse(data.toString()) | ||
} | ||
catch(e){ | ||
} | ||
if( json ) | ||
message(json) | ||
}).on('error', function(err){ | ||
clearTimeout(_timeout) | ||
exit && exit(err) | ||
@@ -34,0 +50,0 @@ })) |
{ | ||
"name": "k8s", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
17802
512
1