Skip to content

Commit

Permalink
Merge pull request #14 from bzarras/security_fix
Browse files Browse the repository at this point in the history
update dependencies to remove vulnerabilities
  • Loading branch information
bzarras authored Aug 1, 2018
2 parents 2d77bb4 + da5621f commit c1b80f5
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 171 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const newsapi = new NewsAPI('YOUR_API_KEY');
// To query top headlines
// All options passed to topHeadlines are optional, but you need to include at least one of them
newsapi.v2.topHeadlines({
sources: 'bbc-news,the-verge',
q: 'trump',
category: 'politics',
language: 'en',
Expand All @@ -55,7 +54,7 @@ newsapi.v2.topHeadlines({
newsapi.v2.everything({
q: 'trump',
sources: 'bbc-news,the-verge',
domains: 'bbc.co.uk, techcrunch.com',
domains: 'bbc.co.uk,techcrunch.com',
from: '2017-12-01',
to: '2017-12-12',
language: 'en',
Expand Down
7 changes: 7 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release Notes

## v2.3.0
Date: 2018-07-31
Type: Minor
This release makes the following changes, updates, and bug fixes:
1. Update mocha to eliminate vulnerabilities.
2. Remove use of bluebird. Use native promises instead.

## v2.2.2
Date: 2018-03-26
Type: Patch
Expand Down
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
* claim to have created any of the facilities provided by NewsAPI.org.
*/

const Promise = require('bluebird'),
fetch = require('node-fetch'),
const fetch = require('node-fetch'),
qs = require('querystring'),
host = 'https://newsapi.org';

fetch.Promise = Promise;

let API_KEY; // To be set by clients

class NewsAPI {
Expand Down
Loading

0 comments on commit c1b80f5

Please sign in to comment.