fix: remove more S5Client param references

This commit is contained in:
Derrick Hammer 2024-03-21 15:15:08 -04:00
parent 300f6876c6
commit c1b55c5d98
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 13 deletions

View File

@ -328,7 +328,6 @@ export class S5Client {
} }
public async publishEntry( public async publishEntry(
this: S5Client,
signedEntry: SignedRegistryEntry, signedEntry: SignedRegistryEntry,
customOptions: CustomRegistryOptions = {}, customOptions: CustomRegistryOptions = {},
) { ) {
@ -359,7 +358,6 @@ export class S5Client {
} }
public async createEntry( public async createEntry(
this: S5Client,
sk: Uint8Array | KeyPairEd25519, sk: Uint8Array | KeyPairEd25519,
cid: CID, cid: CID,
revision = 0, revision = 0,
@ -410,7 +408,6 @@ export class S5Client {
} }
public async getEntry( public async getEntry(
this: S5Client,
publicKey: Uint8Array, publicKey: Uint8Array,
customOptions: CustomRegistryOptions = {}, customOptions: CustomRegistryOptions = {},
) { ) {
@ -463,7 +460,6 @@ export class S5Client {
* @throws - Will throw if the request is successful but the upload response does not contain a complete response. * @throws - Will throw if the request is successful but the upload response does not contain a complete response.
*/ */
public async uploadFile( public async uploadFile(
this: S5Client,
file: File, file: File,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
): Promise<any> { ): Promise<any> {
@ -490,7 +486,6 @@ export class S5Client {
* @throws - Will throw if the request is successful but the upload response does not contain a complete response. * @throws - Will throw if the request is successful but the upload response does not contain a complete response.
*/ */
public async uploadSmallFile( public async uploadSmallFile(
this: S5Client,
file: File, file: File,
customOptions: CustomUploadOptions, customOptions: CustomUploadOptions,
): Promise<UploadResult> { ): Promise<UploadResult> {
@ -510,7 +505,6 @@ export class S5Client {
* @throws - Will throw if the request is successful but the upload response does not contain a complete response. * @throws - Will throw if the request is successful but the upload response does not contain a complete response.
*/ */
public async uploadLargeFile( public async uploadLargeFile(
this: S5Client,
file: File, file: File,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
): Promise<UploadResult> { ): Promise<UploadResult> {
@ -518,7 +512,6 @@ export class S5Client {
} }
public async getTusOptions( public async getTusOptions(
this: S5Client,
file: File, file: File,
tusOptions: Partial<UploadOptions> = {}, tusOptions: Partial<UploadOptions> = {},
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
@ -585,7 +578,6 @@ export class S5Client {
* @throws - Will throw if the request is successful but the upload response does not contain a complete response. * @throws - Will throw if the request is successful but the upload response does not contain a complete response.
*/ */
public async uploadDirectory( public async uploadDirectory(
this: S5Client,
directory: Record<string, File>, directory: Record<string, File>,
filename: string, filename: string,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
@ -609,7 +601,6 @@ export class S5Client {
* @throws - Will throw if the input filename is not a string. * @throws - Will throw if the input filename is not a string.
*/ */
public async uploadDirectoryRequest( public async uploadDirectoryRequest(
this: S5Client,
directory: Record<string, File>, directory: Record<string, File>,
filename: string, filename: string,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
@ -643,7 +634,6 @@ export class S5Client {
} }
public async uploadWebapp( public async uploadWebapp(
this: S5Client,
directory: Record<string, File>, directory: Record<string, File>,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
): Promise<UploadResult> { ): Promise<UploadResult> {
@ -661,7 +651,6 @@ export class S5Client {
* @throws - Will throw if the input filename is not a string. * @throws - Will throw if the input filename is not a string.
*/ */
public async uploadWebappRequest( public async uploadWebappRequest(
this: S5Client,
directory: Record<string, File>, directory: Record<string, File>,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
): Promise<BasicUploadResponse> { ): Promise<BasicUploadResponse> {
@ -677,7 +666,6 @@ export class S5Client {
* @returns PostS5UploadResult - The upload response. * @returns PostS5UploadResult - The upload response.
*/ */
private async uploadSmallFileRequest( private async uploadSmallFileRequest(
this: S5Client,
file: File, file: File,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
): Promise<PostS5UploadResult> { ): Promise<PostS5UploadResult> {
@ -702,7 +690,6 @@ export class S5Client {
* @returns - The upload response. * @returns - The upload response.
*/ */
private async uploadLargeFileRequest( private async uploadLargeFileRequest(
this: S5Client,
file: File, file: File,
customOptions: CustomUploadOptions = {}, customOptions: CustomUploadOptions = {},
): Promise<UploadResult> { ): Promise<UploadResult> {