Socket
Socket
Sign inDemoInstall

rss-parser

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-parser - npm Package Compare versions

Comparing version 3.7.5 to 3.7.6

test/input/itunes-keywords-array.rss

18

lib/parser.js

@@ -264,9 +264,17 @@ "use strict";

}
if(channel['itunes:keywords']) {
let keywords=channel['itunes:keywords'][0];
if(keywords && typeof keywords._ === 'string'){
keywords=keywords._
if (channel['itunes:keywords']) {
if (channel['itunes:keywords'].length > 1) {
feed.itunes.keywords = channel['itunes:keywords'].map(
keyword => keyword.$.text
);
} else {
let keywords = channel['itunes:keywords'][0];
if (keywords && typeof keywords._ === 'string') {
keywords = keywords._;
}
if (keywords) feed.itunes.keywords = keywords.split(',');
}
if(keywords)feed.itunes.keywords = keywords.split(",");
}
utils.copyFromXML(channel, feed.itunes, fields.podcastFeed);

@@ -273,0 +281,0 @@ items.forEach((item, index) => {

{
"name": "rss-parser",
"version": "3.7.5",
"version": "3.7.6",
"main": "index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

@@ -7,2 +7,2 @@ {

}
}
}

@@ -264,2 +264,6 @@ "use strict";

it('should parse itunes keywords as array', function(done) {
testParseForFile('itunes-keywords-array', 'rss', done);
});
it('should parse giantbomb-podcast', function(done) {

@@ -266,0 +270,0 @@ testParseForFile('giantbomb-podcast', 'rss', done);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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