Comparing version 0.0.4 to 0.0.5
@@ -36,6 +36,6 @@ 'use strict'; | ||
self._request = function (query, callback) { | ||
try { | ||
var url = getUrl(query); | ||
var url = getUrl(query); | ||
http.get(url, function (res) { | ||
http.get(url, function (res) { | ||
try { | ||
res.setEncoding('utf8'); | ||
@@ -51,8 +51,8 @@ var data = ''; | ||
res.resume(); | ||
}).on('error', function (e) { | ||
throw e; | ||
}); | ||
} catch (e) { | ||
} catch (e) { | ||
callback(e); | ||
} | ||
}).on('error', function (e) { | ||
callback(e); | ||
} | ||
}); | ||
}; | ||
@@ -59,0 +59,0 @@ |
{ | ||
"name": "yfinance", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Yahoo Finance API for NodeJs.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/johancn87/yf", |
@@ -0,0 +0,0 @@ # yfinance [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] |
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
6294