mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 22:19:40 +08:00
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
const items = $('a.storylink')
|
||||
.map(function() {
|
||||
.map(function () {
|
||||
return {
|
||||
title: $(this).text(),
|
||||
link: $(this).attr('href'),
|
||||
@@ -31,11 +31,11 @@ module.exports = async (ctx) => {
|
||||
})
|
||||
.get();
|
||||
|
||||
$('a.hnuser').each(function(i) {
|
||||
$('a.hnuser').each(function (i) {
|
||||
items[i].author = $(this).text();
|
||||
});
|
||||
|
||||
$('tr.athing').each(function(i) {
|
||||
$('tr.athing').each(function (i) {
|
||||
const commURL = `${host}/item?id=` + $(this).attr('id');
|
||||
const item = items[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user