diff --git a/src/commands/ipfs/add.ts b/src/commands/ipfs/add.ts index 64dba99..633c8d9 100644 --- a/src/commands/ipfs/add.ts +++ b/src/commands/ipfs/add.ts @@ -1,6 +1,9 @@ import fs from 'node:fs'; -import { getFleekXyzIpfsGatewayUrl, getPrivateIpfsGatewayUrl } from '@fleek-platform/utils-ipfs'; +import { + getFleekXyzIpfsGatewayUrl, + getPrivateIpfsGatewayUrl, +} from '@fleek-platform/utils-ipfs'; import { output } from '../../cli'; import type { SdkGuardedFunction } from '../../guards/types'; @@ -56,7 +59,7 @@ const addAction: SdkGuardedFunction = async ({ sdk, args }) => { getPrivateIpfsGatewayUrl({ hostname: privateGatewayDomain.hostname, hash, - }) + }), ); } }; diff --git a/src/commands/storage/add.ts b/src/commands/storage/add.ts index 475614a..086b8d7 100644 --- a/src/commands/storage/add.ts +++ b/src/commands/storage/add.ts @@ -1,7 +1,10 @@ import { existsSync, promises as fs } from 'node:fs'; import { basename } from 'node:path'; -import { getFleekXyzIpfsGatewayUrl, getPrivateIpfsGatewayUrl } from '@fleek-platform/utils-ipfs'; +import { + getFleekXyzIpfsGatewayUrl, + getPrivateIpfsGatewayUrl, +} from '@fleek-platform/utils-ipfs'; import cliProgress from 'cli-progress'; import { filesFromPaths } from 'files-from-path'; @@ -17,7 +20,9 @@ type AddStorageActionArgs = { path: string; }; -export const addStorageAction: SdkGuardedFunction = async ({ sdk, args }) => { +export const addStorageAction: SdkGuardedFunction< + AddStorageActionArgs +> = async ({ sdk, args }) => { if (!existsSync(args.path)) { output.error(t('filePathNotFound', { path: args.path })); @@ -26,9 +31,10 @@ export const addStorageAction: SdkGuardedFunction = async const progressBar = new cliProgress.SingleBar( { - format: 'Upload Progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}', + format: + 'Upload Progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}', }, - cliProgress.Presets.shades_grey + cliProgress.Presets.shades_grey, ); const directoryName = basename(args.path); const files: FileLike[] = await filesFromPaths([args.path]); @@ -79,7 +85,7 @@ export const addStorageAction: SdkGuardedFunction = async getPrivateIpfsGatewayUrl({ hostname: privateGatewayDomain.hostname, hash, - }) + }), ); } diff --git a/src/commands/storage/utils/CreateOutputTable.ts b/src/commands/storage/utils/CreateOutputTable.ts index 15a436c..4f24bf6 100644 --- a/src/commands/storage/utils/CreateOutputTable.ts +++ b/src/commands/storage/utils/CreateOutputTable.ts @@ -1,5 +1,8 @@ import type { FleekSdk, StoragePin } from '@fleek-platform/sdk/node'; -import { getFleekXyzIpfsGatewayUrl, getPrivateIpfsGatewayUrl } from '@fleek-platform/utils-ipfs'; +import { + getFleekXyzIpfsGatewayUrl, + getPrivateIpfsGatewayUrl, +} from '@fleek-platform/utils-ipfs'; import { getAllActivePrivateGatewayDomains } from '../../gateways/utils/getAllPrivateGatewayDomains'; @@ -16,7 +19,10 @@ type TableCoulmns = { link: string; }; -export const createOutputTable = async ({ sdk, storage }: CreateOutputTableArgs): Promise => { +export const createOutputTable = async ({ + sdk, + storage, +}: CreateOutputTableArgs): Promise => { const privateGatewayDomains = await getAllActivePrivateGatewayDomains({ sdk, }); @@ -29,7 +35,7 @@ export const createOutputTable = async ({ sdk, storage }: CreateOutputTableArgs) getPrivateIpfsGatewayUrl({ hostname: privateGatewayDomain.hostname, hash: s.cid, - }) + }), ) : [getFleekXyzIpfsGatewayUrl(s.cid)];