Socket
Socket
Sign inDemoInstall

feedparser

Package Overview
Dependencies
10
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.18.0 to 0.18.1

rss.xml

6

History.md
v0.18.1 / 2014-06-20
==================
* Don't assume el is not an array when defining attrs hash. Resolves #113
* Add failing test for #113
v0.18.0 / 2014-06-18

@@ -3,0 +9,0 @@ ==================

2

main.js

@@ -724,3 +724,3 @@ /**********************************************************************

var el = node[name]
, attrs = el['@']
, attrs = utils.get(el, '@')
, enclosure;

@@ -727,0 +727,0 @@ if (normalize) {

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

"description": "Robust RSS Atom and RDF feed parsing using sax js",
"version": "0.18.0",
"version": "0.18.1",
"keywords": [

@@ -8,0 +8,0 @@ "rss",

@@ -24,2 +24,23 @@ describe('bad feeds', function(){

});
describe('duplicate guids', function () {
var feed = __dirname + '/feeds/guid-dupes.xml';
it('should just use the first', function (done) {
fs.createReadStream(feed).pipe(new FeedParser())
.once('readable', function () {
var stream = this;
var item = stream.read();
assert.equal(item.guid, 'http://www.braingle.com/50366.html');
assert.equal(item.permalink, 'http://www.braingle.com/50366.html');
done();
})
.on('error', function (err) {
assert.ifError(err);
done(err);
});
});
});
});
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