Comparing version 0.0.5 to 0.0.6
@@ -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 @@ |
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
4739
100