mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
chore(http): Run prettier
This commit is contained in:
@@ -102,7 +102,7 @@ export interface ClientOptions {
|
|||||||
*/
|
*/
|
||||||
export async function fetch(
|
export async function fetch(
|
||||||
input: URL | Request | string,
|
input: URL | Request | string,
|
||||||
init?: RequestInit & ClientOptions
|
init?: RequestInit & ClientOptions,
|
||||||
): Promise<Response> {
|
): Promise<Response> {
|
||||||
const maxRedirections = init?.maxRedirections;
|
const maxRedirections = init?.maxRedirections;
|
||||||
const connectTimeout = init?.connectTimeout;
|
const connectTimeout = init?.connectTimeout;
|
||||||
@@ -150,7 +150,7 @@ export async function fetch(
|
|||||||
// we need to ensure we have all header values as strings
|
// we need to ensure we have all header values as strings
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
typeof val === "string" ? val : (val as any).toString(),
|
typeof val === "string" ? val : (val as any).toString(),
|
||||||
]
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
const rid = await invoke<number>("plugin:http|fetch", {
|
const rid = await invoke<number>("plugin:http|fetch", {
|
||||||
@@ -193,7 +193,7 @@ export async function fetch(
|
|||||||
"plugin:http|fetch_read_body",
|
"plugin:http|fetch_read_body",
|
||||||
{
|
{
|
||||||
rid: responseRid,
|
rid: responseRid,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const res = new Response(
|
const res = new Response(
|
||||||
@@ -206,7 +206,7 @@ export async function fetch(
|
|||||||
headers: responseHeaders,
|
headers: responseHeaders,
|
||||||
status,
|
status,
|
||||||
statusText,
|
statusText,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
// url is read only but seems like we can do this
|
// url is read only but seems like we can do this
|
||||||
|
|||||||
Reference in New Issue
Block a user