rss-feed-emitter
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -68,3 +68,3 @@ 'use strict'; | ||
function RssFeedEmitter() { | ||
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -284,6 +284,25 @@ _classCallCheck(this, RssFeedEmitter); | ||
return _.find(feed.items, { | ||
// default object with 'link' and 'title' | ||
var object = { | ||
link: item.link, | ||
title: item.title | ||
}); | ||
}; | ||
// if feed is RSS 2.x, check existence of 'guid' | ||
if (item.guid) { | ||
object = { | ||
guid: item.guid | ||
}; | ||
} | ||
// if feed is Atom 1.x, check existence of 'id' | ||
if (item.id) { | ||
object = { | ||
'id': item.id | ||
}; | ||
} | ||
return _.find(feed.items, object); | ||
} | ||
@@ -290,0 +309,0 @@ |
{ | ||
"name": "rss-feed-emitter", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Super RSS News Feed aggregator written in Node.js and ES6", | ||
@@ -51,3 +51,3 @@ "main": "dist/rss-feed-emitter.js", | ||
"feedparser": "1.1.4", | ||
"request": "2.74.0", | ||
"request": "2.81.0", | ||
"lodash": "3.10.1", | ||
@@ -54,0 +54,0 @@ "tiny-emitter": "1.0.1" |
@@ -17,2 +17,3 @@ <p align="center"> | ||
</a> | ||
<a href="https://snyk.io/test/github/filipedeschamps/rss-feed-emitter"><img src="https://snyk.io/test/github/filipedeschamps/rss-feed-emitter/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/filipedeschamps/rss-feed-emitter" style="max-width:100%;"></a> | ||
</p> | ||
@@ -47,3 +48,3 @@ | ||
* Supports Node.js `0.10.x`, `0.12.x`, `4.x`, `5.x`, and `@stable` | ||
* Supports Node.js `0.10.x`, `0.12.x`, `4.x`, `5.x`, `6.x`, `7.x`, `8.x` and `@stable` | ||
* 100% code coverage with unit and integration tests | ||
@@ -50,0 +51,0 @@ * Simple interface |
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
86807
14
890
117
+ Addedajv@4.11.8(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedco@4.6.0(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedform-data@2.1.4(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhar-schema@1.0.5(transitive)
+ Addedhar-validator@4.2.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.2.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedmath-intrinsics@1.0.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedperformance-now@0.2.0(transitive)
+ Addedqs@6.4.1(transitive)
+ Addedrequest@2.81.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduuid@3.4.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedasync@2.6.4(transitive)
- Removedbl@1.1.2(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedform-data@1.0.1(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedhar-validator@2.0.6(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedqs@6.2.4(transitive)
- Removedreadable-stream@2.0.6(transitive)
- Removedrequest@2.74.0(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedrequest@2.81.0