@icgio/icg-utils 1.7.9 → 1.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/coingecko.js CHANGED
@@ -98,7 +98,7 @@ let get_coingecko_rates = (cb, pair_or_pairs_or_cur_curs, type) => {
98
98
  let get_coingecko_rate = (page, cb) => {
99
99
  let url = 'https://api.coingecko.com/api/v3/coins/markets?vs_currency=' + quote_cur.toLowerCase() + '&per_page=' + per_page_nums + '&page=' + page
100
100
  needle.get(url, options, (err, res, body) => {
101
- console.log('fetching coingecko rate: body length', _.get(body, 'length'))
101
+ console.log('fetching coingecko rate: body length', _.get(body, 'length', body))
102
102
  if (body && body.length > 0) {
103
103
  for (let coin of body) {
104
104
  let symbol = coin.symbol
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-utils",
3
- "version": "1.7.9",
3
+ "version": "1.7.11",
4
4
  "description": "Utils package.",
5
5
  "main": "index.js",
6
6
  "directories": {