Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "rssspider", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"author": "Liu Xing <shanelau1021@gmail.com> (http://kissliux.github.io)", | ||
"description": "The simplest way to use rssspide to fetch rss list and site info. Fetch post'content ,give clean view to you. ", | ||
"email": "shanelau1021@gmail.com", | ||
"homepage": "https://github.com/kissliux/rssSpider", | ||
"homepage": "https://github.com/shanelau/rssSpider", | ||
"repository": { | ||
"url": "" | ||
"url": "https://github.com/shanelau/rssSpider" | ||
}, | ||
"main": "index.js", | ||
"engines": { | ||
"node": "0.12.x" | ||
"node": ">=0.12.x" | ||
}, | ||
"sciprts": { | ||
"test": "nodeunit test/index.js" | ||
}, | ||
"dependencies": { | ||
@@ -21,3 +24,3 @@ "bluebird": "^2.3.2", | ||
"lodash": "^2.4.1", | ||
"node-readability": "^1.0.1", | ||
"node-readability": "^1.0.2", | ||
"readability": "^0.1.0", | ||
@@ -24,0 +27,0 @@ "request": "^2.45.0" |
@@ -155,5 +155,8 @@ # rssSpider | ||
## updrade | ||
Add node 4.x support | ||
### Any question [shanelau](http://weibo.com/kissliux) | ||
or | ||
[shanelau1021@gmail.com](shanelau1021@gmail.com) |
@@ -5,37 +5,36 @@ /** | ||
var spide = require('../index'), | ||
url = 'http://www.bigertech.com/rss'; | ||
exports.fetchRSS = function(test){ | ||
spide.fetchRss(url).then(function(data){ | ||
test.ok(data.length > 0, "this assertion should pass"); | ||
test.done(); | ||
}); | ||
url = | ||
'http://wan.meizu.com/rss'; | ||
exports.fetchRSS = function(test) { | ||
spide.fetchRss(url).then(function(data) { | ||
test.ok(data.length > 0, "this assertion should pass"); | ||
test.done(); | ||
}).catch(test.done); | ||
} | ||
}; | ||
exports.fetchSiteInfo = function(test) { | ||
spide.siteInfo(url).then(function(data) { | ||
test.ok(data.title !== '', "this assertion should pass"); | ||
test.done(); | ||
}).catch(function(err) { | ||
console.error(err); | ||
}); | ||
exports.fetchSiteInfo = function(test){ | ||
spide.siteInfo(url).then(function(data) { | ||
console.log(data); | ||
test.ok(data.title !== '', "this assertion should pass"); | ||
test.done(); | ||
}).catch(function(err){ | ||
console.error(err); | ||
}); | ||
}; | ||
exports.getAllByUrl = function(test){ | ||
spide.getAllByUrl(url).then(function(data) { | ||
test.ok(data.length > 0, "this assertion should pass"); | ||
test.done(); | ||
}); | ||
exports.getAllByUrl = function(test) { | ||
spide.getAllByUrl(url).then(function(data) { | ||
test.ok(data.length > 0, "this assertion should pass"); | ||
test.done(); | ||
}); | ||
}; | ||
exports.getPostContent = function(test){ | ||
var url = 'http://www.bigertech.com/post/the-art-of-mfc/'; | ||
spide.getCleanBody(url).then(function(data){ | ||
test.ok(data.title != '', "this assertion should pass"); | ||
test.done(); | ||
}).catch(function(err){ | ||
console.error(err); | ||
}); | ||
exports.getPostContent = function(test) { | ||
var url = 'http://www.bigertech.com/post/the-art-of-mfc/'; | ||
spide.getCleanBody(url).then(function(data) { | ||
test.ok(data.title != '', "this assertion should pass"); | ||
test.done(); | ||
}).catch(function(err) { | ||
console.error(err); | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
11190
162
Updatednode-readability@^1.0.2