coingecko-api-v3
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -5,2 +5,9 @@ # Changelog | ||
### 0.0.23 (2023-03-22) | ||
### Features | ||
* should fail on not 2xx status code ([#33](https://github.com/samuraitruong/coingecko-api-v3/issues/33)) ([dfddc94](https://github.com/samuraitruong/coingecko-api-v3/commit/dfddc94ebb4f7f3397214d0fd840883e1d744681)) | ||
### 0.0.22 (2023-03-03) | ||
@@ -7,0 +14,0 @@ |
@@ -125,2 +125,5 @@ "use strict"; | ||
} | ||
if (res.statusCode.toString().slice(0, 1) !== '2') { | ||
throw new Error(`got error from coin gecko. status code: ${res.statusCode}`); | ||
} | ||
return res.data; | ||
@@ -127,0 +130,0 @@ }); |
{ | ||
"name": "coingecko-api-v3", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"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
98050
2172