dicom-curate 0.39.0 → 0.40.0
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 +2 -1
- package/dist/esm/mappingWorkerPool.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/umd/dicom-curate.umd.js +5 -1
- package/dist/umd/dicom-curate.umd.js.map +1 -1
- package/dist/umd/dicom-curate.umd.min.js +1 -1
- package/dist/umd/dicom-curate.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -94677,6 +94677,7 @@ async function dispatchMappingJobs() {
|
|
|
94677
94677
|
const { fileInfo, previousFileInfo } = filesToProcess.pop();
|
|
94678
94678
|
const mappingWorker = availableMappingWorkers.pop();
|
|
94679
94679
|
workerCurrentFile.set(mappingWorker, fileInfo);
|
|
94680
|
+
workersActive += 1;
|
|
94680
94681
|
const { outputTarget, hashMethod, hashPartSize, ...mappingOptions } = (
|
|
94681
94682
|
// Not partial anymore.
|
|
94682
94683
|
mappingWorkerOptions
|
|
@@ -94690,7 +94691,6 @@ async function dispatchMappingJobs() {
|
|
|
94690
94691
|
hashPartSize,
|
|
94691
94692
|
serializedMappingOptions: serializeMappingOptions(mappingOptions)
|
|
94692
94693
|
});
|
|
94693
|
-
workersActive += 1;
|
|
94694
94694
|
}
|
|
94695
94695
|
if (scanPaused && filesToProcess.length < LOW_WATER_MARK && scanResumeCallback) {
|
|
94696
94696
|
scanPaused = false;
|
|
@@ -95226,6 +95226,7 @@ export {
|
|
|
95226
95226
|
curateOne,
|
|
95227
95227
|
extractColumnMappings,
|
|
95228
95228
|
hash,
|
|
95229
|
+
hashStream,
|
|
95229
95230
|
specVersion
|
|
95230
95231
|
};
|
|
95231
95232
|
/*! Bundled license information:
|
|
@@ -93077,6 +93077,7 @@ async function dispatchMappingJobs() {
|
|
|
93077
93077
|
const { fileInfo, previousFileInfo } = filesToProcess.pop();
|
|
93078
93078
|
const mappingWorker = availableMappingWorkers.pop();
|
|
93079
93079
|
workerCurrentFile.set(mappingWorker, fileInfo);
|
|
93080
|
+
workersActive += 1;
|
|
93080
93081
|
const { outputTarget, hashMethod, hashPartSize, ...mappingOptions } = (
|
|
93081
93082
|
// Not partial anymore.
|
|
93082
93083
|
mappingWorkerOptions
|
|
@@ -93090,7 +93091,6 @@ async function dispatchMappingJobs() {
|
|
|
93090
93091
|
hashPartSize,
|
|
93091
93092
|
serializedMappingOptions: serializeMappingOptions(mappingOptions)
|
|
93092
93093
|
});
|
|
93093
|
-
workersActive += 1;
|
|
93094
93094
|
}
|
|
93095
93095
|
if (scanPaused && filesToProcess.length < LOW_WATER_MARK && scanResumeCallback) {
|
|
93096
93096
|
scanPaused = false;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { specVersion } from './config/specVersion';
|
|
|
8
8
|
export type { Row } from './csvMapping';
|
|
9
9
|
export { csvTextToRows } from './csvMapping';
|
|
10
10
|
export { TCurateOneArgs } from './curateOne';
|
|
11
|
-
export { hash } from './hash';
|
|
11
|
+
export { hash, hashStream } from './hash';
|
|
12
12
|
export type { ProgressCallback } from './mappingWorkerPool';
|
|
13
13
|
export type { OrganizeOptions, TCurationSpecification, TCustomUploader, TMapResults, TProgressMessage, TPs315Options, } from './types';
|
|
14
14
|
declare function curateMany(organizeOptions: OrganizeOptions, onProgress?: ProgressCallback): Promise<TProgressMessageDone>;
|
|
@@ -140747,6 +140747,10 @@
|
|
|
140747
140747
|
// Track which file this worker is processing so we can identify it
|
|
140748
140748
|
// if the worker crashes.
|
|
140749
140749
|
workerCurrentFile.set(mappingWorker, fileInfo);
|
|
140750
|
+
// Increment before the awaits below: a concurrent dispatchMappingJobs() call
|
|
140751
|
+
// triggered by a finishing worker must see a non-zero count or it will emit
|
|
140752
|
+
// 'done' prematurely while headers are still being resolved.
|
|
140753
|
+
workersActive += 1;
|
|
140750
140754
|
const { outputTarget, hashMethod, hashPartSize, ...mappingOptions } =
|
|
140751
140755
|
// Not partial anymore.
|
|
140752
140756
|
mappingWorkerOptions;
|
|
@@ -140759,7 +140763,6 @@
|
|
|
140759
140763
|
hashPartSize,
|
|
140760
140764
|
serializedMappingOptions: serializeMappingOptions(mappingOptions),
|
|
140761
140765
|
});
|
|
140762
|
-
workersActive += 1;
|
|
140763
140766
|
}
|
|
140764
140767
|
// Backpressure: resume the scan worker when the queue drains below the
|
|
140765
140768
|
// low-water mark. This prevents the queue from staying empty while the
|
|
@@ -141413,6 +141416,7 @@
|
|
|
141413
141416
|
exports.curateOne = curateOne;
|
|
141414
141417
|
exports.extractColumnMappings = extractColumnMappings;
|
|
141415
141418
|
exports.hash = hash;
|
|
141419
|
+
exports.hashStream = hashStream;
|
|
141416
141420
|
exports.specVersion = specVersion;
|
|
141417
141421
|
|
|
141418
141422
|
}));
|