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

@@ -16,17 +16,9 @@ module.exports = async (ctx) => {
.slice(0, 5)
.get()
.map(async (e) => {
const pubDate = date(
`${$(e)
.find('.timestamp')
.text()
.trim()}`,
8
);
const pubDate = date(`${$(e).find('.timestamp').text().trim()}`, 8);
const link = `https://chuansongme.com${$(e)
.find('.question_link')
.attr('href')}`;
const link = `https://chuansongme.com${$(e).find('.question_link').attr('href')}`;
const response = await ctx.cache.tryGet(link, async () => (await got.get(link)).data);
@@ -54,15 +46,9 @@ module.exports = async (ctx) => {
);
ctx.state.data = {
title: `微信公众号 - ${$('.inline_editor_content')
.first()
.text()
.trim()}`,
title: `微信公众号 - ${$('.inline_editor_content').first().text().trim()}`,
link,
description: $('.inline_editor_content')
.last()
.text()
.trim(),
description: $('.inline_editor_content').last().text().trim(),
item: items,
};
};