Comparing version 2.1.2 to 2.2.0
@@ -5,3 +5,4 @@ #!/usr/bin/env node | ||
import sade from 'sade' | ||
import { linkdex, LinkIndexer } from './index.js' | ||
import { linkdex } from './index.js' | ||
import { HashingLinkIndexer } from './hashing-indexer.js' | ||
import { CarBlockIterator } from '@ipld/car/iterator' | ||
@@ -18,8 +19,7 @@ import { pipeline } from 'node:stream/promises' | ||
cli.command('report <car>') | ||
.describe('Print a linkdex report for a car') | ||
cli.command('report <car>', 'Print a linkdex report for a car', { default: true }) | ||
.option('--error-if-partial') | ||
.action(async (first, opts) => { | ||
const cars = [first, ...opts._] | ||
const index = new LinkIndexer() | ||
const index = new HashingLinkIndexer() | ||
for (const car of cars) { | ||
@@ -26,0 +26,0 @@ const carStream = fs.createReadStream(car) |
{ | ||
"name": "linkdex", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "An index mapping block CID to linked block CID.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23670