New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yahoo-exchange

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yahoo-exchange - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

index.js

@@ -57,2 +57,4 @@ "use strict";

pair.forEach(v => req(v, errorHandler, callback));
else
errorHandler(new Error('A pair must be "string" or "array".'));
}

@@ -59,0 +61,0 @@ exports.getExchangeDataArray = getExchangeDataArray;

2

index.ts

@@ -30,3 +30,2 @@ import request = require("request");

else callback(parseHTML(html), pair);
});

@@ -51,2 +50,3 @@ }

else if (Array.isArray(pair)) pair.forEach(v => req(v, errorHandler, callback));
else errorHandler(new Error('A pair must be "string" or "array".'));
}

@@ -53,0 +53,0 @@

@@ -14,3 +14,3 @@ {

"main": "index.js",
"version": "1.3.1",
"version": "1.3.2",
"license": "MIT",

@@ -17,0 +17,0 @@ "dependencies": {

# yahoo-exchange
npm : https://www.npmjs.com/package/yahoo-exchange
[![npm](https://img.shields.io/npm/v/yahoo-exchange.svg?style=flat-square)](https://www.npmjs.com/package/yahoo-exchange)
[![npm](https://img.shields.io/npm/dt/yahoo-exchange.svg?style=flat-square)](https://www.npmjs.com/package/yahoo-exchange)
[![npm](https://img.shields.io/npm/dw/yahoo-exchange.svg?style=flat-square)](https://www.npmjs.com/package/yahoo-exchange)
[![npm](https://img.shields.io/npm/dm/yahoo-exchange.svg?style=flat-square)](https://www.npmjs.com/package/yahoo-exchange)
[![npm](https://img.shields.io/npm/dy/yahoo-exchange.svg?style=flat-square)](https://www.npmjs.com/package/yahoo-exchange)
[![npm](https://img.shields.io/npm/l/yahoo-exchange.svg?registry_uri=https%3A%2F%2Fregistry.npmjs.com&style=flat-square)](https://opensource.org/licenses/MIT)
## getExchangeDataArray(pair, callback, errorHandler): void
* pair : string or Array\<string\>
* callback : (Array\<number\>, pair) => any
### Warning!
Bid and Ask can be returned NaN by some pair. If you find a pair that has errors, please write the pair at the issue.
* errorHandler : options (A default method is ```console.log(error)```)
> ### Warning!
>Bid and Ask can be returned NaN by some pair. If you find a pair that has errors, please write the pair at the issue.
#### A known error
JPYKRW : NaN
* JPYKRW

@@ -51,3 +58,3 @@ Array\<number\> : [Now, Changes, Changes percent, Previous Close, Open, Bid, Ask, Day's Range Min, Day's Range Max, 52 Week Range Min, 52 Week Range Max]

## getData(pair, callback, errorHandler): void @deprecated
> ### deprecated Since version 1.0. Will be deleted in version 2.0. Use getExchangeDataArray instead.
> deprecated Since version 1.0. Will be deleted in version 2.0. Use getExchangeDataArray instead.
### Example

@@ -70,3 +77,3 @@ * ``` javascript

## getDataArray(pair, callback, errorHandler): void @deprecated
> ### deprecated Since version 1.0. Will be deleted in version 2.0. Use getExchangeDataArray instead.
> deprecated Since version 1.0. Will be deleted in version 2.0. Use getExchangeDataArray instead.
### Example

@@ -73,0 +80,0 @@ * ``` javascript

const index = require('../index');
/**
/*
* index.getData('USDKRW', data => console.log(data));

@@ -11,2 +11,3 @@ * index.getDataArray(['USDKRW', 'JPYKRW'], data => console.log(data));

*/
index.getExchangeDataArray('USDKRW', data => console.log(data));

@@ -13,0 +14,0 @@ index.getExchangeDataArray(['USDKRW', 'JPYKRW'], data => console.log(data));

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc