Skip to content

Commit 4e59372

Browse files
committed
chore: linting
1 parent f1596d8 commit 4e59372

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

packages/ipfs-unixfs-exporter/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ import type { PBNode } from '@ipld/dag-pb'
5757
import type { Bucket } from 'hamt-sharding'
5858
import type { Blockstore } from 'interface-blockstore'
5959
import type { UnixFS } from 'ipfs-unixfs'
60-
import type { ProgressOptions, ProgressEvent } from 'progress-events'
6160
import type { AbortOptions } from 'it-pushable'
61+
import type { ProgressOptions, ProgressEvent } from 'progress-events'
6262

6363
export * from './errors.js'
6464

@@ -354,7 +354,7 @@ export interface UnixfsV1BasicContent {
354354
* there. The metadata will contain what kind of node it is (e.g. file,
355355
* directory, etc), the file size, and more.
356356
*/
357-
resolve: (options?: AbortOptions) => Promise<UnixFSEntry>
357+
resolve(options?: AbortOptions): Promise<UnixFSEntry>
358358
}
359359

360360
export interface UnixFsV1ContentResolver {

packages/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import map from 'it-map'
33
import parallel from 'it-parallel'
44
import { pipe } from 'it-pipe'
55
import { CustomProgressEvent } from 'progress-events'
6-
import type { BasicExporterOptions, ExporterOptions, ExportWalk, UnixfsV1BasicContent, UnixfsV1DirectoryContent, UnixfsV1Resolver } from '../../../index.js'
76
import { isBasicExporterOptions } from '../../../utils/is-basic-exporter-options.ts'
7+
import type { BasicExporterOptions, ExporterOptions, ExportWalk, UnixfsV1BasicContent, UnixfsV1Resolver } from '../../../index.js'
88

99
const directoryContent: UnixfsV1Resolver = (cid, node, unixfs, path, resolve, depth, blockstore) => {
1010
async function * yieldDirectoryContent (options: ExporterOptions | BasicExporterOptions = {}): any {

packages/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/hamt-sharded-directory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import parallel from 'it-parallel'
55
import { pipe } from 'it-pipe'
66
import { CustomProgressEvent } from 'progress-events'
77
import { NotUnixFSError } from '../../../errors.js'
8+
import { isBasicExporterOptions } from '../../../utils/is-basic-exporter-options.ts'
89
import type { ExporterOptions, Resolve, UnixfsV1DirectoryContent, UnixfsV1Resolver, ReadableStorage, ExportWalk, BasicExporterOptions, UnixfsV1BasicContent } from '../../../index.js'
910
import type { PBNode } from '@ipld/dag-pb'
10-
import { isBasicExporterOptions } from '../../../utils/is-basic-exporter-options.ts'
1111

1212
const hamtShardedDirectoryContent: UnixfsV1Resolver = (cid, node, unixfs, path, resolve, depth, blockstore) => {
1313
function yieldHamtDirectoryContent (options: ExporterOptions | BasicExporterOptions = {}): UnixfsV1DirectoryContent {
@@ -53,7 +53,7 @@ async function * listDirectory (node: PBNode, path: string, resolve: Resolve, de
5353
if (isBasicExporterOptions(options)) {
5454
const basic: UnixfsV1BasicContent = {
5555
cid: link.Hash,
56-
name: name,
56+
name,
5757
path: linkPath,
5858
resolve: async (options = {}) => {
5959
const result = await resolve(link.Hash, name, linkPath, [], depth + 1, blockstore, options)

packages/ipfs-unixfs-exporter/test/exporter-sharded.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ describe('exporter sharded', function () {
393393
const dirFiles = await all(exported.content())
394394

395395
// delete shard contents
396-
for await (const entry of dirFiles) {
397-
block.delete(entry.cid)
396+
for (const entry of dirFiles) {
397+
await block.delete(entry.cid)
398398
}
399399

400400
// list the contents again, this time just the basic version

packages/ipfs-unixfs-exporter/test/exporter.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,8 +1633,8 @@ describe('exporter', () => {
16331633
const dirFiles = await all(exported.content())
16341634

16351635
// delete shard contents
1636-
for await (const entry of dirFiles) {
1637-
block.delete(entry.cid)
1636+
for (const entry of dirFiles) {
1637+
await block.delete(entry.cid)
16381638
}
16391639

16401640
// list the contents again, this time just the basic version

0 commit comments

Comments
 (0)