find-rss
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -80,3 +80,3 @@ (function() { | ||
cand.url = cand.href; | ||
} else { | ||
} else if (cand.href != null) { | ||
cand.url = url.resolve(urlObject.protocol + "//" + urlObject.host, cand.href); | ||
@@ -83,0 +83,0 @@ } |
@@ -57,4 +57,4 @@ | ||
candidates = []; | ||
feedparser.on('error', function(error) { | ||
return callback(error, null); | ||
feedparser.on('error', function(err) { | ||
return this.emit('end', err); | ||
}); | ||
@@ -69,3 +69,6 @@ feedparser.on('readable', function() { | ||
feedparser.write(htmlBody); | ||
return feedparser.end(function() { | ||
return feedparser.end(function(err) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
return callback(null, candidates); | ||
@@ -72,0 +75,0 @@ }); |
{ | ||
"name": "find-rss", | ||
"description": "find rss feeds", | ||
"version": "1.6.1", | ||
"description": "Find RSS/ATOM feed by HTML/URL", | ||
"version": "1.6.2", | ||
"author": "nikezono", | ||
@@ -51,4 +51,2 @@ "dependencies": { | ||
}, | ||
"readmeFilename": "README.md", | ||
"gitHead": "303a4d890e16de433e20264330b47a3452f49777", | ||
"directories": { | ||
@@ -55,0 +53,0 @@ "test": "test" |
@@ -1,2 +0,2 @@ | ||
node-find-rss [![Build Status](https://travis-ci.org/nikezono/node-find-rss.png)](https://travis-ci.org/nikezono/node-find-rss)[![Test Coverage](https://codeclimate.com/github/nikezono/node-find-rss/badges/coverage.svg)](https://codeclimate.com/github/nikezono/node-find-rss)[![Code Climate](https://codeclimate.com/github/nikezono/node-find-rss/badges/gpa.svg)](https://codeclimate.com/github/nikezono/node-find-rss) | ||
node-find-rss [![Build Status](https://travis-ci.org/nikezono/node-find-rss.png)](https://travis-ci.org/nikezono/node-find-rss) | ||
--- | ||
@@ -6,6 +6,4 @@ | ||
RSS/Atom feed URL Candidates finder | ||
A module for finding RSS/ATOM feeds, from HTML or URL. | ||
wrapper of [htmlparser2](https://github.com/fb55/htmlparser2) | ||
##install | ||
@@ -12,0 +10,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30524
10
267
0
53