@helia/car 5.3.9 → 5.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/car.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CarComponents, Car as CarInterface, ExportCarOptions } from './index.js';
1
+ import type { CarComponents, Car as CarInterface, ExportCarOptions } from './index.ts';
2
2
  import type { PutManyBlocksProgressEvents } from '@helia/interface/blocks';
3
3
  import type { CarReader } from '@ipld/car';
4
4
  import type { AbortOptions } from '@libp2p/interface';
package/dist/src/car.js CHANGED
@@ -3,8 +3,8 @@ import drain from 'it-drain';
3
3
  import map from 'it-map';
4
4
  import { raceSignal } from 'race-signal';
5
5
  import { DAG_PB_CODEC_CODE, IDENTITY_CODEC_CODE } from "./constants.js";
6
- import { SubgraphExporter } from './export-strategies/subgraph-exporter.js';
7
- import { UnixFSExporter } from './index.js';
6
+ import { SubgraphExporter } from "./export-strategies/subgraph-exporter.js";
7
+ import { UnixFSExporter } from "./index.js";
8
8
  export class Car {
9
9
  components;
10
10
  log;
@@ -1,4 +1,4 @@
1
- import type { ExportStrategy } from '../index.js';
1
+ import type { ExportStrategy } from '../index.ts';
2
2
  import type { CodecLoader } from '@helia/interface';
3
3
  import type { AbortOptions } from '@libp2p/interface';
4
4
  import type { Blockstore } from 'interface-blockstore';
@@ -1,4 +1,4 @@
1
- export * from './subgraph-exporter.js';
2
- export * from './block-exporter.js';
3
- export * from './unixfs-exporter.js';
1
+ export * from './subgraph-exporter.ts';
2
+ export * from './block-exporter.ts';
3
+ export * from './unixfs-exporter.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './subgraph-exporter.js';
2
- export * from './block-exporter.js';
3
- export * from './unixfs-exporter.js';
1
+ export * from "./subgraph-exporter.js";
2
+ export * from "./block-exporter.js";
3
+ export * from "./unixfs-exporter.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { ExportStrategy } from '../index.js';
1
+ import type { ExportStrategy } from '../index.ts';
2
2
  import type { CodecLoader } from '@helia/interface';
3
3
  import type { GraphWalker, GraphWalkerComponents } from '@helia/utils';
4
4
  import type { AbortOptions } from '@libp2p/interface';
@@ -1,4 +1,4 @@
1
- import type { ExportStrategy } from '../index.js';
1
+ import type { ExportStrategy } from '../index.ts';
2
2
  import type { CodecLoader } from '@helia/interface';
3
3
  import type { AbortOptions } from '@libp2p/interface';
4
4
  import type { Blockstore } from 'interface-blockstore';
@@ -162,8 +162,8 @@ export interface ExportStrategy {
162
162
  */
163
163
  export(cid: CID, blockstore: Blockstore, getCodec: CodecLoader, options?: AbortOptions): AsyncGenerator<BlockView<unknown, number, number, 0 | 1>, void, undefined>;
164
164
  }
165
- export * from './export-strategies/index.js';
166
- export * from './traversal-strategies/index.js';
165
+ export * from './export-strategies/index.ts';
166
+ export * from './traversal-strategies/index.ts';
167
167
  export type { GraphWalker } from '@helia/utils';
168
168
  export { depthFirstWalker, breadthFirstWalker, naturalOrderWalker } from '@helia/utils';
169
169
  export interface ExportCarOptions extends AbortOptions, ProgressOptions<GetBlockProgressEvents>, ProviderOptions {
package/dist/src/index.js CHANGED
@@ -125,9 +125,9 @@
125
125
  * })
126
126
  * ```
127
127
  */
128
- import { Car as CarClass } from './car.js';
129
- export * from './export-strategies/index.js';
130
- export * from './traversal-strategies/index.js';
128
+ import { Car as CarClass } from "./car.js";
129
+ export * from "./export-strategies/index.js";
130
+ export * from "./traversal-strategies/index.js";
131
131
  export { depthFirstWalker, breadthFirstWalker, naturalOrderWalker } from '@helia/utils';
132
132
  /**
133
133
  * Create a {@link Car} instance for use with {@link https://github.com/ipfs/helia Helia}
@@ -1,4 +1,4 @@
1
- import type { TraversalStrategy } from '../index.js';
1
+ import type { TraversalStrategy } from '../index.ts';
2
2
  import type { CodecLoader } from '@helia/interface';
3
3
  import type { AbortOptions } from '@libp2p/interface';
4
4
  import type { Blockstore } from 'interface-blockstore';
@@ -1,6 +1,6 @@
1
1
  import toBuffer from 'it-to-buffer';
2
2
  import { createUnsafe } from 'multiformats/block';
3
- import { InvalidTraversalError, NotDescendantError } from '../errors.js';
3
+ import { InvalidTraversalError, NotDescendantError } from "../errors.js";
4
4
  /**
5
5
  * Simple strategy that traverses a known path to a target CID.
6
6
  *
@@ -1,4 +1,4 @@
1
- import type { TraversalStrategy } from '../index.js';
1
+ import type { TraversalStrategy } from '../index.ts';
2
2
  import type { CodecLoader } from '@helia/interface';
3
3
  import type { GraphWalker, GraphWalkerComponents } from '@helia/utils';
4
4
  import type { AbortOptions } from '@libp2p/interface';
@@ -1,4 +1,4 @@
1
- export * from './graph-search.js';
2
- export * from './cid-path.js';
3
- export * from './unixfs-path.js';
1
+ export * from './graph-search.ts';
2
+ export * from './cid-path.ts';
3
+ export * from './unixfs-path.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './graph-search.js';
2
- export * from './cid-path.js';
3
- export * from './unixfs-path.js';
1
+ export * from "./graph-search.js";
2
+ export * from "./cid-path.js";
3
+ export * from "./unixfs-path.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { TraversalStrategy } from '../index.js';
1
+ import type { TraversalStrategy } from '../index.ts';
2
2
  import type { CodecLoader } from '@helia/interface';
3
3
  import type { AbortOptions } from '@libp2p/interface';
4
4
  import type { Blockstore } from 'interface-blockstore';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helia/car",
3
- "version": "5.3.9",
3
+ "version": "5.3.10",
4
4
  "description": "Import/export car files from Helia",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/ipfs/helia/tree/main/packages/car#readme",
@@ -65,8 +65,8 @@
65
65
  "race-signal": "^2.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@helia/mfs": "^7.0.4",
69
- "@helia/unixfs": "^7.0.4",
68
+ "@helia/mfs": "^7.0.5",
69
+ "@helia/unixfs": "^7.1.0",
70
70
  "@ipld/dag-cbor": "^9.2.5",
71
71
  "@libp2p/logger": "^6.0.5",
72
72
  "aegir": "^47.0.22",
package/src/car.ts CHANGED
@@ -3,9 +3,9 @@ import drain from 'it-drain'
3
3
  import map from 'it-map'
4
4
  import { raceSignal } from 'race-signal'
5
5
  import { DAG_PB_CODEC_CODE, IDENTITY_CODEC_CODE } from './constants.ts'
6
- import { SubgraphExporter } from './export-strategies/subgraph-exporter.js'
7
- import { UnixFSExporter } from './index.js'
8
- import type { CarComponents, Car as CarInterface, ExportCarOptions } from './index.js'
6
+ import { SubgraphExporter } from './export-strategies/subgraph-exporter.ts'
7
+ import { UnixFSExporter } from './index.ts'
8
+ import type { CarComponents, Car as CarInterface, ExportCarOptions } from './index.ts'
9
9
  import type { PutManyBlocksProgressEvents } from '@helia/interface/blocks'
10
10
  import type { CarReader } from '@ipld/car'
11
11
  import type { AbortOptions, Logger } from '@libp2p/interface'
@@ -1,6 +1,6 @@
1
1
  import toBuffer from 'it-to-buffer'
2
2
  import { createUnsafe } from 'multiformats/block'
3
- import type { ExportStrategy } from '../index.js'
3
+ import type { ExportStrategy } from '../index.ts'
4
4
  import type { CodecLoader } from '@helia/interface'
5
5
  import type { AbortOptions } from '@libp2p/interface'
6
6
  import type { Blockstore } from 'interface-blockstore'
@@ -1,3 +1,3 @@
1
- export * from './subgraph-exporter.js'
2
- export * from './block-exporter.js'
3
- export * from './unixfs-exporter.js'
1
+ export * from './subgraph-exporter.ts'
2
+ export * from './block-exporter.ts'
3
+ export * from './unixfs-exporter.ts'
@@ -1,5 +1,5 @@
1
1
  import { breadthFirstWalker } from '@helia/utils'
2
- import type { ExportStrategy } from '../index.js'
2
+ import type { ExportStrategy } from '../index.ts'
3
3
  import type { CodecLoader } from '@helia/interface'
4
4
  import type { GraphWalker, GraphWalkerComponents } from '@helia/utils'
5
5
  import type { AbortOptions } from '@libp2p/interface'
@@ -4,7 +4,7 @@ import { anySignal } from 'any-signal'
4
4
  import { UnixFS } from 'ipfs-unixfs'
5
5
  import { DAG_PB_CODEC_CODE, RAW_PB_CODEC_CODE } from '../constants.ts'
6
6
  import { NotUnixFSError } from '../errors.ts'
7
- import type { ExportStrategy } from '../index.js'
7
+ import type { ExportStrategy } from '../index.ts'
8
8
  import type { CodecLoader } from '@helia/interface'
9
9
  import type { PBNode } from '@ipld/dag-pb'
10
10
  import type { AbortOptions } from '@libp2p/interface'
package/src/index.ts CHANGED
@@ -126,7 +126,7 @@
126
126
  * ```
127
127
  */
128
128
 
129
- import { Car as CarClass } from './car.js'
129
+ import { Car as CarClass } from './car.ts'
130
130
  import type { CodecLoader } from '@helia/interface'
131
131
  import type { PutManyBlocksProgressEvents, GetBlockProgressEvents, ProviderOptions } from '@helia/interface/blocks'
132
132
  import type { CarReader } from '@ipld/car'
@@ -168,8 +168,8 @@ export interface ExportStrategy {
168
168
  export(cid: CID, blockstore: Blockstore, getCodec: CodecLoader, options?: AbortOptions): AsyncGenerator<BlockView<unknown, number, number, 0 | 1>, void, undefined>
169
169
  }
170
170
 
171
- export * from './export-strategies/index.js'
172
- export * from './traversal-strategies/index.js'
171
+ export * from './export-strategies/index.ts'
172
+ export * from './traversal-strategies/index.ts'
173
173
 
174
174
  // re-export walkers from @helia/utils so consumers don't need an extra dep
175
175
  export type { GraphWalker } from '@helia/utils'
@@ -1,7 +1,7 @@
1
1
  import toBuffer from 'it-to-buffer'
2
2
  import { createUnsafe } from 'multiformats/block'
3
- import { InvalidTraversalError, NotDescendantError } from '../errors.js'
4
- import type { TraversalStrategy } from '../index.js'
3
+ import { InvalidTraversalError, NotDescendantError } from '../errors.ts'
4
+ import type { TraversalStrategy } from '../index.ts'
5
5
  import type { CodecLoader } from '@helia/interface'
6
6
  import type { AbortOptions } from '@libp2p/interface'
7
7
  import type { Blockstore } from 'interface-blockstore'
@@ -3,7 +3,7 @@ import { InvalidParametersError } from '@libp2p/interface'
3
3
  import toBuffer from 'it-to-buffer'
4
4
  import { createUnsafe } from 'multiformats/block'
5
5
  import { InvalidTraversalError } from '../errors.ts'
6
- import type { TraversalStrategy } from '../index.js'
6
+ import type { TraversalStrategy } from '../index.ts'
7
7
  import type { CodecLoader } from '@helia/interface'
8
8
  import type { GraphWalker, GraphWalkerComponents } from '@helia/utils'
9
9
  import type { AbortOptions } from '@libp2p/interface'
@@ -1,3 +1,3 @@
1
- export * from './graph-search.js'
2
- export * from './cid-path.js'
3
- export * from './unixfs-path.js'
1
+ export * from './graph-search.ts'
2
+ export * from './cid-path.ts'
3
+ export * from './unixfs-path.ts'
@@ -1,7 +1,7 @@
1
1
  import * as dagPb from '@ipld/dag-pb'
2
2
  import { exporter, walkPath } from 'ipfs-unixfs-exporter'
3
3
  import { createUnsafe } from 'multiformats/block'
4
- import type { TraversalStrategy } from '../index.js'
4
+ import type { TraversalStrategy } from '../index.ts'
5
5
  import type { CodecLoader } from '@helia/interface'
6
6
  import type { AbortOptions } from '@libp2p/interface'
7
7
  import type { Blockstore } from 'interface-blockstore'