Dependency optimization (#1294)

* -qs

* -urlencode

* +urlencode

* aaa
This commit is contained in:
Rider21
2024-11-06 17:06:34 +03:00
committed by GitHub
parent e5d852a64f
commit 778a5beaed
11 changed files with 2293 additions and 102 deletions
+2 -3
View File
@@ -4,7 +4,6 @@ import { Plugin } from '@typings/plugin';
import { NovelStatus } from '@libs/novelStatus';
import { load as parseHTML } from 'cheerio';
import dayjs from 'dayjs';
import qs from 'qs';
type ReadwnOptions = {
versionIncrements?: number;
@@ -204,12 +203,12 @@ class ReadwnPlugin implements Plugin.PluginBase {
Origin: this.site,
},
method: 'POST',
body: qs.stringify({
body: new URLSearchParams({
show: 'title',
tempid: 1,
tbname: 'news',
keyboard: searchTerm,
}),
}).toString(),
}).then(res => res.text());
const loadedCheerio = parseHTML(result);