coingecko-api-v3
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -5,2 +5,9 @@ # Changelog | ||
### 0.0.26 (2023-05-25) | ||
### Bug Fixes | ||
* missing user-agent cause 403 error ([6a62c30](https://github.com/samuraitruong/coingecko-api-v3/commit/6a62c303ec95ac8e9adc2af2ccd96ef75e224181)) | ||
### 0.0.25 (2023-05-23) | ||
@@ -7,0 +14,0 @@ |
@@ -59,2 +59,3 @@ "use strict"; | ||
Accept: "application/json", | ||
"User-Agent": "coingeckoclient/0.0.1", | ||
}, timeout: this.options.timeout }, this.options.extraHTTPSOptions); | ||
@@ -126,3 +127,3 @@ const parseJson = (input) => { | ||
} | ||
if (res.statusCode.toString().slice(0, 1) !== '2') { | ||
if (res.statusCode.toString().slice(0, 1) !== "2") { | ||
throw new Error(`got error from coin gecko. status code: ${res.statusCode}`); | ||
@@ -129,0 +130,0 @@ } |
{ | ||
"name": "coingecko-api-v3", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "The nodejs api library for accessing coingecko api v3 , develop with typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
98350
2173