From 2b5bfb0187bd8b56649f7a84aa5276f7ac2d8e55 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 4 Jun 2024 13:48:32 +0100 Subject: [PATCH] chore: appease linter --- packages/upload-api/test/handlers/web3.storage.js | 7 ++++++- packages/w3up-client/src/capability/blob.js | 6 +++--- packages/w3up-client/src/capability/index.js | 2 +- packages/w3up-client/src/capability/upload.js | 2 +- packages/w3up-client/src/client.js | 6 +++--- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/upload-api/test/handlers/web3.storage.js b/packages/upload-api/test/handlers/web3.storage.js index d326b08ce..9ec1189f9 100644 --- a/packages/upload-api/test/handlers/web3.storage.js +++ b/packages/upload-api/test/handlers/web3.storage.js @@ -679,7 +679,12 @@ export const test = { assert.equal(delegation.capabilities.length, 1) assert.ok(delegation.capabilities[0].can, Assert.location.can) // @ts-expect-error nb unknown - assert.ok(equals(delegation.capabilities[0].nb.content.digest, content.multihash.bytes)) + assert.ok( + equals( + delegation.capabilities[0].nb.content.digest, + content.multihash.bytes + ) + ) // @ts-expect-error nb unknown const locations = delegation.capabilities[0].nb.location assert.equal(locations.length, 1) diff --git a/packages/w3up-client/src/capability/blob.js b/packages/w3up-client/src/capability/blob.js index 168d7c301..f267d949a 100644 --- a/packages/w3up-client/src/capability/blob.js +++ b/packages/w3up-client/src/capability/blob.js @@ -8,7 +8,7 @@ import { Base } from '../base.js' export class BlobClient extends Base { /** * Store a Blob to the resource. - * + * * Required delegated capabilities: * - `space/blob/add` * @@ -23,7 +23,7 @@ export class BlobClient extends Base { /** * List blobs stored to the resource. - * + * * Required delegated capabilities: * - `space/blob/list` * @@ -37,7 +37,7 @@ export class BlobClient extends Base { /** * Remove a stored blob by multihash digest. - * + * * Required delegated capabilities: * - `space/blob/remove` * diff --git a/packages/w3up-client/src/capability/index.js b/packages/w3up-client/src/capability/index.js index 36ee2650a..e963f1ec0 100644 --- a/packages/w3up-client/src/capability/index.js +++ b/packages/w3up-client/src/capability/index.js @@ -8,7 +8,7 @@ import { Base } from '../base.js' export class IndexClient extends Base { /** * Register an "index" to the resource. - * + * * Required delegated capabilities: * - `space/index/add` * diff --git a/packages/w3up-client/src/capability/upload.js b/packages/w3up-client/src/capability/upload.js index 318abb25b..5b709bf9d 100644 --- a/packages/w3up-client/src/capability/upload.js +++ b/packages/w3up-client/src/capability/upload.js @@ -53,7 +53,7 @@ export class UploadClient extends Base { /** * Remove an upload by root data CID. - * + * * Required delegated capabilities: * - `upload/remove` * diff --git a/packages/w3up-client/src/client.js b/packages/w3up-client/src/client.js index 52581e3b9..99b9903d2 100644 --- a/packages/w3up-client/src/client.js +++ b/packages/w3up-client/src/client.js @@ -108,7 +108,7 @@ export class Client extends Base { /** * Uploads a file to the service and returns the root data CID for the * generated DAG. - * + * * Required delegated capabilities: * - `filecoin/offer` * - `space/blob/add` @@ -163,7 +163,7 @@ export class Client extends Base { * registered, linking the individual shards (see `capability.upload.add`). * * Use the `onShardStored` callback to obtain the CIDs of the CAR file shards. - * + * * Required delegated capabilities: * - `filecoin/offer` * - `space/blob/add` @@ -354,7 +354,7 @@ export class Client extends Base { * * ⚠️ If `shards` option is `true` all shards will be deleted even if there is another upload(s) that * reference same shards, which in turn could corrupt those uploads. - * + * * Required delegated capabilities: * - `space/blob/remove` * - `store/remove`