crypto-news-api
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,2 +0,2 @@ | ||
import fetch from 'node-fetch' | ||
import * as fetch from 'isomorphic-fetch' | ||
import * as debug from 'debug' | ||
@@ -63,3 +63,3 @@ import * as qs from 'qs' | ||
return fetch(`${API_HOST}${url}?${queryString}`) | ||
.then(response => { | ||
.then((response: any) => { | ||
if (response.status === 401) throw new Error('Invalid API Key') | ||
@@ -66,0 +66,0 @@ if (response.status !== 200) throw new Error('Bad response from the CryptoControl server') |
{ | ||
"name": "crypto-news-api", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "API to get a crypto newsfeed in your app", | ||
@@ -28,4 +28,3 @@ "main": "dist/index.js", | ||
"@types/debug": "0.0.30", | ||
"@types/es6-promise": "^3.3.0", | ||
"@types/node-fetch": "^1.6.9", | ||
"@types/isomorphic-fetch": "^0.0.34", | ||
"@types/qs": "^6.5.1", | ||
@@ -37,2 +36,3 @@ "typescript": "^2.8.3" | ||
"debug": "^3.1.0", | ||
"isomorphic-fetch": "^2.2.1", | ||
"node-fetch": "^2.1.2", | ||
@@ -39,0 +39,0 @@ "qs": "^6.5.2" |
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
17596
5
9
291
5
+ Addedisomorphic-fetch@^2.2.1
+ Addedencoding@0.1.13(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)