chore(deps-dev): bump prettier from 1.19.1 to 2.0.2

This commit is contained in:
DIYgod
2020-04-02 21:21:46 +08:00
parent 27e4a7c151
commit 0e7b14e718
471 changed files with 1237 additions and 4457 deletions

View File

@@ -61,12 +61,7 @@ module.exports = async (ctx) => {
.map(async (_, elem) => {
const subject = $('.subject a', elem).eq(1);
const pubDate = pediyUtils.dateParser(
$('.date', elem)
.eq(0)
.text(),
8
);
const pubDate = pediyUtils.dateParser($('.date', elem).eq(0).text(), 8);
const link = `${baseUrl}${subject.attr('href')}`;
const key = `pediy: ${link}`;
@@ -84,7 +79,7 @@ module.exports = async (ctx) => {
$('.card')
.eq(0)
.find('.message img')
.each(function(_, item) {
.each(function (_, item) {
item = $(item);
const src = item.attr('src');
@@ -94,10 +89,7 @@ module.exports = async (ctx) => {
item.attr('referrerpolicy', 'no-referrer');
});
description = $('.card')
.eq(0)
.find('.message')
.html();
description = $('.card').eq(0).find('.message').html();
ctx.cache.set(key, description);
}