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 0.9.0 to 0.9.1

16

lib/feedparser.js

@@ -128,6 +128,6 @@ /**********************************************************************

if (category['@'] && getValue(category['@'], 'term')) meta.categories.push(getValue(category['@'], 'term'));
} else if ('category' == name && 'rss' == type) {
} else if ('category' == name && getValue(category) && 'rss' == type) {
var categories = getValue(category).split(',').map(function (cat){ return cat.trim(); });
if (categories.length) meta.categories = meta.categories.concat(categories);
} else if ('dc:subject' == name) {
} else if ('dc:subject' == name && getValue(category)) {
var categories = getValue(category).split(' ').map(function (cat){ return cat.trim(); });

@@ -157,6 +157,6 @@ if (categories.length) meta.categories = meta.categories.concat(categories);

if (getValue(el['@'], 'term')) meta.categories.push(getValue(el['@'], 'term'));
} else if ('category' == name && 'rss' == type) {
} else if ('category' == name && getValue(el) && 'rss' == type) {
var categories = getValue(el).split(',').map(function (cat){ return cat.trim(); });
if (categories.length) meta.categories = meta.categories.concat(categories);
} else if ('dc:subject' == name) {
} else if ('dc:subject' == name && getValue(el)) {
var categories = getValue(el).split(' ').map(function (cat){ return cat.trim(); });

@@ -360,6 +360,6 @@ if (categories.length) meta.categories = meta.categories.concat(categories);

if (category['@'] && getValue(category['@'], 'term')) item.categories.push(getValue(category['@'], 'term'));
} else if ('category' == name && 'rss' == type) {
} else if ('category' == name && getValue(category) && 'rss' == type) {
var categories = getValue(category).split(',').map(function (cat){ return cat.trim(); });
if (categories.length) item.categories = item.categories.concat(categories);
} else if ('dc:subject' == name) {
} else if ('dc:subject' == name && getValue(category)) {
var categories = getValue(category).split(' ').map(function (cat){ return cat.trim(); });

@@ -389,6 +389,6 @@ if (categories.length) item.categories = item.categories.concat(categories);

if (getValue(el['@'], 'term')) item.categories.push(getValue(el['@'], 'term'));
} else if ('category' == name && 'rss' == type) {
} else if ('category' == name && getValue(el) && 'rss' == type) {
var categories = getValue(el).split(',').map(function (cat){ return cat.trim(); });
if (categories.length) item.categories = item.categories.concat(categories);
} else if ('dc:subject' == name) {
} else if ('dc:subject' == name && getValue(el)) {
var categories = getValue(el).split(' ').map(function (cat){ return cat.trim(); });

@@ -395,0 +395,0 @@ if (categories.length) item.categories = item.categories.concat(categories);

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

"description": "Robust RSS, Atom, and RDF feed parsing using sax js",
"version": "0.9.0",
"version": "0.9.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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