style: prettier

This commit is contained in:
Derrick Hammer 2024-03-18 18:40:26 -04:00
parent 560c7c374e
commit da7c405905
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 7 additions and 10 deletions

View File

@ -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 = {};

View File

@ -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();