dicom-curate 0.6.0 → 0.6.1

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/esm/index.js CHANGED
@@ -42820,7 +42820,7 @@ function initializeFileListWorker() {
42820
42820
  "message",
42821
42821
  (event) => {
42822
42822
  switch (event.data.response) {
42823
- case "file":
42823
+ case "file": {
42824
42824
  const { fileIndex, fileInfo } = event.data;
42825
42825
  filesToProcess.push({
42826
42826
  fileIndex,
@@ -42830,16 +42830,20 @@ function initializeFileListWorker() {
42830
42830
  });
42831
42831
  dispatchMappingJobs();
42832
42832
  break;
42833
- case "scanAnomalies":
42833
+ }
42834
+ case "scanAnomalies": {
42834
42835
  const { fileInfo: anomalyFileInfo, anomalies } = event.data;
42835
42836
  scanAnomalies.push({ fileInfo: anomalyFileInfo, anomalies });
42836
42837
  break;
42837
- case "done":
42838
+ }
42839
+ case "done": {
42838
42840
  console.log("directoryScanFinished");
42839
42841
  directoryScanFinished = true;
42840
42842
  break;
42841
- default:
42843
+ }
42844
+ default: {
42842
42845
  console.error(`Unknown response from worker ${event.data.response}`);
42846
+ }
42843
42847
  }
42844
42848
  dispatchMappingJobs();
42845
42849
  }
@@ -63202,7 +63202,7 @@
63202
63202
  const fileListWorker = new Worker(new URL('./scanDirectoryWorker.js', (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('dicom-curate.umd.js', document.baseURI).href))), { type: 'module' });
63203
63203
  fileListWorker.addEventListener('message', (event) => {
63204
63204
  switch (event.data.response) {
63205
- case 'file':
63205
+ case 'file': {
63206
63206
  const { fileIndex, fileInfo } = event.data;
63207
63207
  filesToProcess.push({
63208
63208
  fileIndex,
@@ -63215,18 +63215,22 @@
63215
63215
  // }
63216
63216
  dispatchMappingJobs();
63217
63217
  break;
63218
- case 'scanAnomalies':
63218
+ }
63219
+ case 'scanAnomalies': {
63219
63220
  // Handle scan anomalies separately - they don't go to processing
63220
63221
  const { fileInfo: anomalyFileInfo, anomalies } = event.data;
63221
63222
  scanAnomalies.push({ fileInfo: anomalyFileInfo, anomalies });
63222
63223
  break;
63223
- case 'done':
63224
+ }
63225
+ case 'done': {
63224
63226
  console.log('directoryScanFinished');
63225
63227
  directoryScanFinished = true;
63226
63228
  break;
63227
- default:
63229
+ }
63230
+ default: {
63228
63231
  // @ts-expect-error: response is string here, not never
63229
63232
  console.error(`Unknown response from worker ${event.data.response}`);
63233
+ }
63230
63234
  }
63231
63235
  dispatchMappingJobs();
63232
63236
  });