yahoo-finance2
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -97,2 +97,5 @@ import type { ModuleOptionsWithValidateTrue, ModuleOptionsWithValidateFalse, ModuleThis } from "../lib/moduleCommon"; | ||
} | ||
export interface QuoteCurrency extends QuoteBase { | ||
quoteType: "CURRENCY"; | ||
} | ||
export interface QuoteCryptoCurrency extends QuoteBase { | ||
@@ -109,3 +112,3 @@ quoteType: "CRYPTOCURRENCY"; | ||
} | ||
export declare type Quote = QuoteEquity | QuoteEtf | QuoteMutualfund | QuoteCryptoCurrency; | ||
export declare type Quote = QuoteCryptoCurrency | QuoteCurrency | QuoteEtf | QuoteEquity | QuoteMutualfund; | ||
export declare type QuoteResponse = Quote[]; | ||
@@ -112,0 +115,0 @@ export declare type QuoteField = keyof Quote; |
@@ -38,2 +38,3 @@ "use strict"; | ||
let symbolPromiseCallbacks = entry.symbols.get(symbol); | ||
/* istanbul ignore else */ | ||
if (!symbolPromiseCallbacks) { | ||
@@ -50,10 +51,10 @@ symbolPromiseCallbacks = []; | ||
.then((results) => { | ||
for (let result of results) { | ||
const symbol = result.symbol; | ||
entry.symbols.get(symbol).forEach((p) => p.resolve(result)); | ||
} | ||
for (let result of results) | ||
for (let promise of entry.symbols.get(result.symbol)) | ||
promise.resolve(result); | ||
}) | ||
.catch((error) => { | ||
for (let promise of entry.symbols.values()) | ||
promise.reject(error); | ||
for (let symbolPromiseCallbacks of entry.symbols.values()) | ||
for (let promise of symbolPromiseCallbacks) | ||
promise.reject(error); | ||
}); | ||
@@ -60,0 +61,0 @@ }, DEBOUNCE_TIME); |
@@ -0,1 +1,9 @@ | ||
## [1.9.1](https://github.com/gadicc/node-yahoo-finance2/compare/v1.9.0...v1.9.1) (2021-03-26) | ||
### Bug Fixes | ||
* **quote:** allow CURRENCY type ([92bd2e8](https://github.com/gadicc/node-yahoo-finance2/commit/92bd2e89b636c3311bb45373d13266e706740079)) | ||
* **quoteCombine:** error handling + full coverage ([c6f0c2b](https://github.com/gadicc/node-yahoo-finance2/commit/c6f0c2b3c4bc87d14f4ae268099d5646674f3b62)) | ||
# [1.9.0](https://github.com/gadicc/node-yahoo-finance2/compare/v1.8.3...v1.9.0) (2021-03-11) | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "yahoo-finance2", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "JS API for Yahoo Finance", | ||
@@ -54,8 +54,8 @@ "main": "api/index-node.js", | ||
"@tsconfig/node12": "1.0.7", | ||
"@types/jest": "26.0.20", | ||
"@typescript-eslint/eslint-plugin": "4.17.0", | ||
"@typescript-eslint/parser": "4.17.0", | ||
"eslint": "7.21.0", | ||
"@types/jest": "26.0.22", | ||
"@typescript-eslint/eslint-plugin": "4.19.0", | ||
"@typescript-eslint/parser": "4.19.0", | ||
"eslint": "7.22.0", | ||
"eslint-config-prettier": "8.1.0", | ||
"globby": "11.0.2", | ||
"globby": "11.0.3", | ||
"jest": "26.6.3", | ||
@@ -65,7 +65,7 @@ "jest-tobetype": "1.2.3", | ||
"prettier": "2.2.1", | ||
"semantic-release": "17.4.1", | ||
"ts-jest": "26.5.3", | ||
"ts-json-schema-generator": "0.88.0", | ||
"semantic-release": "17.4.2", | ||
"ts-jest": "26.5.4", | ||
"ts-json-schema-generator": "0.89.0", | ||
"typescript": "4.2.3" | ||
} | ||
} |
@@ -67,6 +67,8 @@ # node-yahoo-finance2 | ||
[`search`](./docs/modules/search.md), | ||
[`recommendationsBySymbol`](./docs/modules/recommendationsBySymbol.md), with more | ||
[`trendingSymbols`](./docs/modules/trendingSymbols.md), | ||
[`recommendationsBySymbol`](./docs/modules/recommendationsBySymbol.md), | ||
[`trendingSymbols`](./docs/modules/trendingSymbols.md), with more | ||
[coming soon](https://github.com/gadicc/node-yahoo-finance2/issues/8). | ||
Extras: [`quoteCombine`](./docs/other/quoteCombine.md). | ||
See the [Full Documentation](./docs/README.md). | ||
@@ -91,3 +93,3 @@ | ||
## Using in the Browser (tl;dr: possible but unsupported) | ||
## Using in the Browser (TL;DR; possible but unsupported) | ||
@@ -94,0 +96,0 @@ This project is primarily developed to be used server-side in `node`. |
Sorry, the diff of this file is too big to display
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
251619
8549
120