Add TopLiba (#1003)

* test

* cleanup

deleted unused `fetchFile` import
replaced fetch with `fetchApi`

* eslint

* fix

* fix multi

* Hmm, what to do next.

* test URLSearchParams

* fix
This commit is contained in:
Rider21
2024-06-30 07:28:11 +03:00
committed by GitHub
parent 938e3b16a3
commit fae73534dd
121 changed files with 10534 additions and 8079 deletions
+5 -3
View File
@@ -1,6 +1,8 @@
/* global Buffer, RequestInit */
import { parse as parseProto } from 'protobufjs';
type FetchInit = {
interface FetchInit {
headers?: Record<string, string | undefined> | Headers;
method?: string;
body?: FormData | string;
@@ -10,10 +12,10 @@ type FetchInit = {
| undefined
| FormData
| Headers;
};
}
const makeInit = async (init?: FetchInit) => {
let defaultHeaders: Record<string, string> = {
const defaultHeaders: Record<string, string> = {
'Connection': 'keep-alive',
'Accept': '*/*',
'Accept-Language': '*',