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

@@ -17,16 +17,10 @@ module.exports = async (ctx) => {
const order_name = $('li.selected a').text();
const list = $('li.clearfix')
.map(function() {
.map(function () {
const info = {
title: $(this)
.find('div.discuss-main.clearfix a')
.text()
.trim()
.replace('\n', ' '),
link: $(this)
.find('div.discuss-main.clearfix a[rel]')
.attr('href'),
title: $(this).find('div.discuss-main.clearfix a').text().trim().replace('\n', ' '),
link: $(this).find('div.discuss-main.clearfix a[rel]').attr('href'),
};
return info;
})
@@ -45,9 +39,7 @@ module.exports = async (ctx) => {
const response = await got.get(itemUrl);
const $ = cheerio.load(response.data);
const date_value = $('span.post-time')
.text()
.split(' ')[1];
const date_value = $('span.post-time').text().split(' ')[1];
const description = $('.nc-post-content').html();