Socket
Socket
Sign inDemoInstall

rss-parser

Package Overview
Dependencies
51
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

8

index.js

@@ -5,2 +5,4 @@ var Entities = require("entities");

var Request = require('request');
var Parser = module.exports = {};

@@ -50,3 +52,7 @@

Parser.parseURL = function(url, callback) {
return Parser.parseString('', callback);
Request(url, function(err, resp, body) {
if (err) return callback(err);
if (resp.statusCode !== 200) return callback(new Error('Status code is: ' + resp.statusCode))
return Parser.parseString(body, callback);
})
}

@@ -53,0 +59,0 @@

3

package.json
{
"name": "rss-parser",
"version": "2.0.2",
"version": "2.1.0",
"main": "index.js",

@@ -17,2 +17,3 @@ "scripts": {

"entities": "^1.1.1",
"request": "^2.67.0",
"xml2js": "^0.4.15"

@@ -19,0 +20,0 @@ },

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

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