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
+1 -2
View File
@@ -1,7 +1,6 @@
import { Plugin } from '@typings/plugin';
import { fetchApi } from '@libs/fetch';
import { CheerioAPI, load as parseHTML } from 'cheerio';
import qs from 'qs';
import { Filters, FilterTypes } from '@libs/filterInputs';
class FreeWebNovel implements Plugin.PluginBase {
@@ -134,7 +133,7 @@ class FreeWebNovel implements Plugin.PluginBase {
Origin: this.site,
},
method: 'POST',
body: qs.stringify({ searchkey: searchTerm }),
body: new URLSearchParams({ searchkey: searchTerm }).toString(),
});
if (!r.ok)
throw new Error(