From da7c40590539064ad4eaab65d727806d7dc6fda4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 18:40:26 -0400 Subject: [PATCH] style: prettier --- src/methods/registry.ts | 5 +---- src/methods/upload.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/methods/registry.ts b/src/methods/registry.ts index 3cd4245..fa2664a 100644 --- a/src/methods/registry.ts +++ b/src/methods/registry.ts @@ -21,10 +21,7 @@ import { concatBytes } from "@noble/hashes/utils"; import { CID_HASH_TYPES } from "@lumeweb/libs5/lib/constants.js"; import { CustomClientOptions, optionsToConfig } from "../utils/options.js"; import { buildRequestUrl } from "../request.js"; -import { - getS5Registry, - postS5Registry, -} from "../generated/index.js"; +import { getS5Registry, postS5Registry } from "../generated/index.js"; import { AxiosError } from "axios"; export const DEFAULT_GET_ENTRY_OPTIONS = {}; diff --git a/src/methods/upload.ts b/src/methods/upload.ts index a2b55ff..9cd76c9 100644 --- a/src/methods/upload.ts +++ b/src/methods/upload.ts @@ -1,4 +1,4 @@ -import {AxiosProgressEvent} from "axios"; +import { AxiosProgressEvent } from "axios"; import { DetailedError, HttpRequest, @@ -44,8 +44,8 @@ const PORTAL_FILE_FIELD_NAME = "file"; const TUS_ENDPOINT = "/s5/upload/tus"; export interface HashProgressEvent { - bytes: number; - total: number; + bytes: number; + total: number; } /** @@ -245,9 +245,9 @@ export async function getTusOptions( hasher.update(new Uint8Array(await chunk.arrayBuffer())); position += chunkSize; customOptions.onHashProgress?.({ - bytes: position, - total: file.size, - }) + bytes: position, + total: file.size, + }); } const b3hash = hasher.digest();