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.5 to 0.0.6

6

index.js

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

callback(new Error('Missing the params object'));
returnl
return;
}

@@ -49,6 +49,6 @@

if(params.sortBy) {
param = '&sortBy=' + params.sortBy;
param += '&sortBy=' + params.sortBy;
}
param = param +'&apiKey='+ getApiKey();
param += '&apiKey='+ getApiKey();

@@ -55,0 +55,0 @@ request

{
"name": "node-news",
"version": "0.0.5",
"version": "0.0.6",
"description": "news api",

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

@@ -47,9 +47,7 @@ var News = require('./index.js');

source: 'cnn',
sortBy: 'popular',
sortBy: 'popular'
};
news.getArticles(function(err, res){
news.getArticles(params, function(err, res){
console.log(err);
var response = res.body;

@@ -56,0 +54,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