Socket
Socket
Sign inDemoInstall

rss-parser

Package Overview
Dependencies
4
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.4 to 3.7.5

9

lib/parser.js

@@ -75,2 +75,3 @@ "use strict";

let headers = Object.assign({}, DEFAULT_HEADERS, this.options.headers);
let timeout = null;
let prom = new Promise((resolve, reject) => {

@@ -105,5 +106,11 @@ let req = get({

req.on('error', reject);
setTimeout(() => {
timeout = setTimeout(() => {
return reject(new Error("Request timed out after " + this.options.timeout + "ms"));
}, this.options.timeout);
}).then(data => {
clearTimeout(timeout);
return Promise.resolve(data);
}, e => {
clearTimeout(timeout);
return Promise.reject(e);
});

@@ -110,0 +117,0 @@ prom = utils.maybePromisify(callback, prom);

2

package.json
{
"name": "rss-parser",
"version": "3.7.4",
"version": "3.7.5",
"main": "index.js",

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

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