laplace-api 4.6.0 → 4.8.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laplace-api",
3
- "version": "4.6.0",
3
+ "version": "4.8.0",
4
4
  "description": "Client library for Laplace API for the US stock market and BIST (Istanbul stock market) fundamental financial data.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -95,7 +95,7 @@ export class NewsClient extends Client {
95
95
  async getNews(
96
96
  region: Region,
97
97
  locale: Locale,
98
- newsType: NewsType,
98
+ newsType: NewsType | null,
99
99
  page: number | null,
100
100
  size: number | null,
101
101
  orderBy: NewsOrderBy | null,
@@ -107,7 +107,10 @@ export class NewsClient extends Client {
107
107
  );
108
108
  url.searchParams.append("region", region);
109
109
  url.searchParams.append("locale", locale);
110
- url.searchParams.append("newsType", newsType);
110
+
111
+ if (newsType) {
112
+ url.searchParams.append("newsType", newsType);
113
+ }
111
114
 
112
115
  if (page) {
113
116
  url.searchParams.append("page", page.toString());