Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feedparser

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedparser - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

test/feeds/non-text-alternate-links.xml

5

.eslintrc.json

@@ -9,3 +9,6 @@ {

"error",
2
2,
{
"MemberExpression": "off"
}
],

@@ -12,0 +15,0 @@ "linebreak-style": [

2.2.2 / 2017-10-12
==================
* Update devDependencies
* Update sax v1.2.4
* Update travis - node 7->8
* Make sure that all links are parsed, not only text/html
* docs(readme): add Greenkeeper badge
* chore(package): update dependencies
2.2.1 / 2017-06-22

@@ -3,0 +13,0 @@ ==================

28

lib/feedparser/index.js

@@ -101,5 +101,5 @@ /**********************************************************************

this.meta = {
'#ns': []
, '@': []
, '#xml': {}
'#ns': [],
'@': [],
'#xml': {}
};

@@ -208,5 +208,7 @@ this._emitted_meta = false;

FeedParser.prototype.handleCloseTag = function (el){
var node = { '#name' : el
, '#prefix' : ''
, '#local' : '' }
var node = {
'#name': el,
'#prefix': '',
'#local' : ''
}
, stdEl

@@ -528,5 +530,5 @@ , item

// Nevertheless, there can be only one
meta.cloud = {}; // This will ensure that rssCloud "wins" here,
// If pubsubhubbub is also declared, it's still available
// in the link elements
// This will ensure that rssCloud "wins" here.
// If pubsubhubbub is also declared, it's still available in the link elements
meta.cloud = {};
if (Array.isArray(el)) {

@@ -794,4 +796,4 @@ Object.keys(el[0]['@']).forEach(function (attr) {

if (link['@']['rel'] == 'canonical') item.origlink = link['@']['href'];
if (link['@']['rel'] == 'alternate' && (!link['@']['type'] || link['@']['type'] == 'text/html') && !item.link) item.link = link['@']['href'];
if (link['@']['rel'] == 'self' && (!link['@']['type'] || link['@']['type'] == 'text/html') && !item.link) item.link = link['@']['href'];
if (link['@']['rel'] == 'alternate' && !item.link) item.link = link['@']['href'];
if (link['@']['rel'] == 'self' && !item.link) item.link = link['@']['href'];
if (link['@']['rel'] == 'replies') item.comments = link['@']['href'];

@@ -818,4 +820,4 @@ if (link['@']['rel'] == 'enclosure') {

if (el['@']['rel'] == 'canonical') item.origlink = el['@']['href'];
if (el['@']['rel'] == 'alternate' && (!el['@']['type'] || el['@']['type'] == 'text/html') && !item.link) item.link = el['@']['href'];
if (el['@']['rel'] == 'self' && (!el['@']['type'] || el['@']['type'] == 'text/html') && !item.link) item.link = el['@']['href'];
if (el['@']['rel'] == 'alternate' && !item.link) item.link = el['@']['href'];
if (el['@']['rel'] == 'self' && !item.link) item.link = el['@']['href'];
if (el['@']['rel'] == 'replies') item.comments = el['@']['href'];

@@ -822,0 +824,0 @@ if (el['@']['rel'] == 'enclosure') {

@@ -8,3 +8,3 @@ {

},
"version": "2.2.1",
"version": "2.2.2",
"keywords": [

@@ -41,9 +41,9 @@ "rss",

"readable-stream": "^2.2.2",
"sax": "1.2.3"
"sax": "^1.2.4"
},
"devDependencies": {
"eslint": "^3.17.1",
"iconv": "2.2.2",
"mocha": "^3.4.1",
"request": "~2.81.0"
"eslint": "^4.8.0",
"iconv": "^2.3.0",
"mocha": "^4.0.1",
"request": "^2.83.0"
},

@@ -50,0 +50,0 @@ "scripts": {

# Feedparser - Robust RSS, Atom, and RDF feed parsing in Node.js
[![Greenkeeper badge](https://badges.greenkeeper.io/danmactough/node-feedparser.svg)](https://greenkeeper.io/)
[![Join the chat at https://gitter.im/danmactough/node-feedparser](https://badges.gitter.im/danmactough/node-feedparser.svg)](https://gitter.im/danmactough/node-feedparser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

@@ -4,0 +6,0 @@

@@ -64,3 +64,3 @@ describe('bad feeds', function(){

assert.ok(error instanceof Error);
assert.ok(error.message.match(/^Invalid code point/));
assert.equal(error.message, 'Not a feed');
done();

@@ -67,0 +67,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc