Skip to content

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jun 4, 2024
1 parent 5a398ef commit 2b5bfb0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion packages/upload-api/test/handlers/web3.storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions packages/w3up-client/src/capability/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
*
Expand All @@ -23,7 +23,7 @@ export class BlobClient extends Base {

/**
* List blobs stored to the resource.
*
*
* Required delegated capabilities:
* - `space/blob/list`
*
Expand All @@ -37,7 +37,7 @@ export class BlobClient extends Base {

/**
* Remove a stored blob by multihash digest.
*
*
* Required delegated capabilities:
* - `space/blob/remove`
*
Expand Down
2 changes: 1 addition & 1 deletion packages/w3up-client/src/capability/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
*
Expand Down
2 changes: 1 addition & 1 deletion packages/w3up-client/src/capability/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class UploadClient extends Base {

/**
* Remove an upload by root data CID.
*
*
* Required delegated capabilities:
* - `upload/remove`
*
Expand Down
6 changes: 3 additions & 3 deletions packages/w3up-client/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 2b5bfb0

Please sign in to comment.