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

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.12.0 to 3.13.0

9

index.d.ts

@@ -5,8 +5,3 @@ import { Options } from 'xml2js';

declare namespace Parser {
export interface Headers {
readonly Accept?: string;
readonly 'User-Agent'?: string;
}
type CustomFieldItem<U> = keyof U | { keepArray: boolean }
type CustomFieldItem<U> = keyof U | (string | { keepArray: boolean })[]

@@ -21,3 +16,3 @@ export interface CustomFields<T, U> {

readonly requestOptions?: RequestOptions;
readonly headers?: Headers;
readonly headers?: Record<string, string>;
readonly defaultRSS?: number;

@@ -24,0 +19,0 @@ readonly maxRedirects?: number;

@@ -71,3 +71,4 @@ const fields = module.exports = {};

'keywords',
'episodeType'
]).map(mapItunesField);

@@ -224,2 +224,5 @@ "use strict";

}
if (xmlItem.$ && xmlItem.$['rdf:about']) {
item['rdf:about'] = xmlItem.$['rdf:about']
}
if (xmlItem.category) item.categories = xmlItem.category;

@@ -268,6 +271,8 @@ this.setISODate(item);

return {
name: category.$.text,
name: category && category.$ && category.$.text,
subs: category['itunes:category'] ?
category['itunes:category']
.map((subcategory) => ({ name: subcategory.$.text })) : null,
.map((subcategory) => ({
name: subcategory && subcategory.$ && subcategory.$.text
})) : null,
};

@@ -283,3 +288,3 @@ });

feed.itunes.keywords = channel['itunes:keywords'].map(
keyword => keyword.$.text
keyword => keyword && keyword.$ && keyword.$.text
);

@@ -286,0 +291,0 @@ } else {

{
"name": "rss-parser",
"version": "3.12.0",
"version": "3.13.0",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "mocha --exit",
"test": "mocha --reporter-option maxDiffSize=0 --exit",
"build": "./scripts/build.sh"

@@ -13,11 +13,13 @@ },

"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@types/xml2js": "^0.4.3",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-loader": "^8.0.4",
"babel-preset-env": "^1.7.0",
"chai": "^3.4.1",
"express": "^4.16.3",
"mocha": "^5.2.0",
"mocha": "^10.2.0",
"puppeteer": "^5.2.1",
"webpack": "^4.41.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.9"

@@ -27,3 +29,3 @@ },

"entities": "^2.0.3",
"xml2js": "^0.4.19"
"xml2js": "^0.5.0"
},

@@ -30,0 +32,0 @@ "directories": {

@@ -20,3 +20,3 @@ var webpack = require("webpack");

test: /\.js$/,
loader: 'babel-loader?presets[]=env',
loader: 'babel-loader?presets[]=@babel/preset-env',
}]

@@ -23,0 +23,0 @@ },

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

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