Socket
Socket
Sign inDemoInstall

crypto-news-api

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-news-api - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

bower.json

4

index.ts

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc