sliftutils 1.4.62 → 1.4.63

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": "sliftutils",
3
- "version": "1.4.62",
3
+ "version": "1.4.63",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -359,6 +359,7 @@ async function executeBatch(
359
359
  }
360
360
  if (!contributes) continue;
361
361
 
362
+ let bytesRead = 0;
362
363
  for (let fi = 0; fi < plans.length; fi++) {
363
364
  const plan = plans[fi];
364
365
  for (let ci = 0; ci < plan.columns.length; ci++) {
@@ -373,9 +374,11 @@ async function executeBatch(
373
374
  throw new Error(`Expected ${run.byteLength} bytes from source #${si} (${sourceNames[si]}) column ${col.name} rows [${run.sourceStartRow}, ${run.sourceEndRow}), got ${bytes.length}`);
374
375
  }
375
376
  bytes.copy(target.blob, target.dataStart + run.outputByteStart);
377
+ bytesRead += bytes.length;
376
378
  }
377
379
  }
378
380
  }
381
+ log(`${magenta("input")} ${sourceNames[si]}: ${fmtBytes(bytesRead)} read`);
379
382
  }
380
383
 
381
384
  // Assemble + write each output file in this batch.