yahoo-exchange
Advanced tools
Comparing version 1.5.8 to 1.5.9
@@ -16,6 +16,6 @@ "use strict"; | ||
list.push(html.indexOf('react-text: 39 -->') === -1 ? | ||
parseFloat(parseReact(html, 38, 3).split(' ')[0]) : | ||
parseFloat(parseReact(html, 38, 2).split(' ')[0]) : | ||
parseFloat(parseReact(html, 39, 1).split(' ')[0])); | ||
list.push(html.indexOf('react-text: 39 -->') === -1 ? | ||
parseFloat(parseReact(html, 38, 3).split('(')[1].split("\%")[0]) : | ||
parseFloat(parseReact(html, 38, 2).split('(')[1].split("\%")[0]) : | ||
parseFloat(parseReact(html, 39, 1).split('(')[1].split("\%")[0])); | ||
@@ -22,0 +22,0 @@ list.push(parseFloat(parseReact(html, 42, 2).split('<')[0])); |
@@ -14,6 +14,6 @@ import request = require('request'); | ||
list.push(html.indexOf('react-text: 39 -->') === -1 ? | ||
parseFloat(parseReact(html, 38, 3).split(' ')[0]) : | ||
parseFloat(parseReact(html, 38, 2).split(' ')[0]) : | ||
parseFloat(parseReact(html, 39, 1).split(' ')[0])); | ||
list.push(html.indexOf('react-text: 39 -->') === -1 ? | ||
parseFloat(parseReact(html, 38, 3).split('(')[1].split("\%")[0]) : | ||
parseFloat(parseReact(html, 38, 2).split('(')[1].split("\%")[0]) : | ||
parseFloat(parseReact(html, 39, 1).split('(')[1].split("\%")[0])); | ||
@@ -20,0 +20,0 @@ list.push(parseFloat(parseReact(html, 42, 2).split('<')[0])); |
@@ -14,3 +14,3 @@ { | ||
"main": "index.js", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"license": "MIT", | ||
@@ -17,0 +17,0 @@ "dependencies": { |
@@ -11,3 +11,2 @@ const index = require('../index'); | ||
index.getExchangeDataArray('USDKRW', (data, pair) => console.log(data, pair), (error, pair) => console.log(`[Error] ${pair}\n${error}`)); | ||
index.getExchangeDataArray(['USDKRW', 'JPYKRW'], (data, pair) => console.log(data, pair), (error, pair) => console.log(`[Error] ${pair}\n${error}`)); | ||
index.getExchangeDataArray('JPYKRW', data => console.log(data)); | ||
index.getExchangeDataArray(['USDKRW', 'JPYKRW'], (data, pair) => console.log(data, pair), (error, pair) => console.log(`[Error] ${pair}\n${error}`)); |
521136
14
364