Socket
Socket
Sign inDemoInstall

feedparser

Package Overview
Dependencies
8
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

test01.js

5

History.md
1.1.0 / 2015-05-21
==================
* Fix channel link selection when there is a mixture of rss and atom. Closes #142
1.0.1 / 2015-04-07

@@ -3,0 +8,0 @@ ==================

12

main.js

@@ -449,3 +449,5 @@ /**********************************************************************

if (utils.get(link['@'], 'rel')) {
if (link['@']['rel'] == 'alternate') meta.link = link['@']['href'];
if (link['@']['rel'] == 'alternate') {
if (!meta.link) meta.link = link['@']['href'];
}
else if (link['@']['rel'] == 'self') {

@@ -463,6 +465,6 @@ meta.xmlurl = meta.xmlUrl = link['@']['href'];

} else {
meta.link = link['@']['href'];
if (!meta.link) meta.link = link['@']['href'];
}
} else if (Object.keys(link['@']).length === 0) { // RSS
if (!meta.link) meta.link = utils.get(link);
meta.link = utils.get(link);
}

@@ -477,3 +479,5 @@ if (meta.link && this.xmlbase && this.xmlbase.length === 0) {

if (utils.get(el['@'], 'rel')) {
if (el['@']['rel'] == 'alternate') meta.link = el['@']['href'];
if (el['@']['rel'] == 'alternate') {
if (!meta.link) meta.link = el['@']['href'];
}
else if (el['@']['rel'] == 'self') {

@@ -480,0 +484,0 @@ meta.xmlurl = meta.xmlUrl = el['@']['href'];

@@ -5,3 +5,3 @@ {

"description": "Robust RSS Atom and RDF feed parsing using sax js",
"version": "1.0.1",
"version": "1.1.0",
"keywords": [

@@ -8,0 +8,0 @@ "rss",

Sorry, the diff of this file is not supported yet

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