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.3.2 to 0.3.3

15

lib/feedparser.js

@@ -92,3 +92,3 @@ /**********************************************************************

var self = this;
self._reset();
self._reset(callback);
self.saxStream.end(string, 'utf8');

@@ -108,6 +108,6 @@ };

var self = this;
self._reset();
if (/^https?:/.test(file) || (typeof file == 'object' && 'protocol' in file)) {
self.parseUrl(file, callback);
} else {
self._reset(callback);
fs.createReadStream(file).pipe(self.saxStream);

@@ -132,3 +132,3 @@ }

var self = this;
self._reset();
self._reset(callback);
request(url).pipe(self.saxStream);

@@ -154,3 +154,3 @@ };

var self = this;
self._reset();
self._reset(callback);
stream.pipe(self.saxStream);

@@ -168,4 +168,4 @@ };

}
if ('function' == typeof callback) {
callback(meta, articles);
if ('function' == typeof self.callback) {
self.callback(meta, articles);
}

@@ -469,3 +469,3 @@

FeedParser.prototype._reset = function () {
FeedParser.prototype._reset = function (callback) {
this.meta = {};

@@ -480,4 +480,5 @@ this.articles = [];

and '#name' (containing the XML element name) */
this.callback = ('function' == typeof callback) ? callback : undefined;
}
exports = module.exports = FeedParser;

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

"description": "Robust RSS, Atom, and RDF feed parsing using sax js",
"version": "0.3.2",
"version": "0.3.3",
"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