Comparing version 0.1.6 to 0.1.7
@@ -46,6 +46,15 @@ /** | ||
request = function (options, cb) { | ||
var data = ''; | ||
https | ||
.get(options, function (res) { | ||
res.on('data', function (d) { | ||
return cb(null, JSON.parse(d)); | ||
data = data + d; | ||
}).on('error', function(e) { | ||
return cb(e); | ||
}).on('end', function() { | ||
try { | ||
cb(null, JSON.parse(data)); | ||
} catch (ex) { | ||
cb(ex); | ||
} | ||
}); | ||
@@ -52,0 +61,0 @@ }) |
@@ -15,3 +15,3 @@ { | ||
"homepage": "https://github.com/justin-john/node-timezone", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"author": { | ||
@@ -18,0 +18,0 @@ "name": "Justin John Mathews", |
@@ -0,0 +0,0 @@ node-timezone |
Sorry, the diff of this file is not supported yet
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
7067
92