@tb.p/dd 1.1.1 → 1.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb.p/dd",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A comprehensive command-line tool for finding and removing duplicate files using content-based hashing",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -428,6 +428,9 @@ class CandidateDetection {
428
428
  };
429
429
 
430
430
  } catch (error) {
431
+ if (this.options.verbose) {
432
+ console.error(`❌ Error hashing ${candidate.file_path}: ${error.message}`);
433
+ }
431
434
  return {
432
435
  success: false,
433
436
  error: error.message,
@@ -512,7 +515,7 @@ export async function runCandidateDetection(options) {
512
515
  verbose: options.verbose || false,
513
516
  onProgress: options.verbose ? (progress) => {
514
517
  if (progress.phase === 'hashing') {
515
- const percentage = progress.percentage.toFixed(1);
518
+ const percentage = (progress.percentage || 0).toFixed(1);
516
519
  console.log(`📊 Hashing progress: ${progress.processed}/${progress.total} files (${percentage}%) - ${progress.hashedFiles} hashed, ${progress.errors} errors`);
517
520
  }
518
521
  } : null