Comparing version 0.0.5 to 0.0.6
@@ -39,16 +39,17 @@ 'use strict'; | ||
http.get(url, function (res) { | ||
try { | ||
res.setEncoding('utf8'); | ||
var data = ''; | ||
res.on('data', function (chunk) { | ||
data += chunk; | ||
}); | ||
res.on('end', function () { | ||
callback(null, convertResult(data)); | ||
}); | ||
// consume response body | ||
res.resume(); | ||
} catch (e) { | ||
callback(e); | ||
} | ||
res.setEncoding('utf8'); | ||
var data = ''; | ||
res.on('data', function (chunk) { | ||
data += chunk; | ||
}); | ||
res.on('end', function () { | ||
try { | ||
var converted = convertResult(data); | ||
callback(null, converted); | ||
} catch (e) { | ||
callback(e); | ||
} | ||
}); | ||
// consume response body | ||
res.resume(); | ||
}).on('error', function (e) { | ||
@@ -55,0 +56,0 @@ callback(e); |
{ | ||
"name": "yfinance", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Yahoo Finance API for NodeJs.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/johancn87/yf", |
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
6321
64