Socket
Socket
Sign inDemoInstall

node-news

Package Overview
Dependencies
39
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

8

index.js

@@ -30,7 +30,15 @@ var dotenv = require('dotenv').config();

callback(new Error('Missing the params object'));
returnl
}
if(getApiKey() === '') {
// throw error
callback(new Error('Api Key is a required'));
return;
}
if(!params.source) {
// throw error
callback(new Error('source is a required'));
return;
}

@@ -37,0 +45,0 @@

2

package.json
{
"name": "node-news",
"version": "0.0.4",
"version": "0.0.5",
"description": "news api",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -46,3 +46,3 @@ var News = require('./index.js');

var params = {
// source: 'cnn',
source: 'cnn',
sortBy: 'popular',

@@ -49,0 +49,0 @@ };

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc