@ubercode/dcmtk 0.9.0 → 0.9.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/{index-B13DmBRs.d.cts → index-Bq947ilN.d.cts} +1 -0
- package/dist/{index-CCgNgve7.d.ts → index-C9oo35ZO.d.ts} +1 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/servers.cjs +4 -2
- package/dist/servers.cjs.map +1 -1
- package/dist/servers.d.cts +1 -1
- package/dist/servers.d.ts +1 -1
- package/dist/servers.js +4 -2
- package/dist/servers.js.map +1 -1
- package/package.json +1 -1
|
@@ -1481,6 +1481,7 @@ interface PoolStatus {
|
|
|
1481
1481
|
/** Data emitted with FILE_RECEIVED events. */
|
|
1482
1482
|
interface ReceiverFileData {
|
|
1483
1483
|
readonly filePath: string;
|
|
1484
|
+
readonly fileSize: number;
|
|
1484
1485
|
readonly associationId: string;
|
|
1485
1486
|
readonly associationDir: string;
|
|
1486
1487
|
readonly callingAE: string;
|
|
@@ -1481,6 +1481,7 @@ interface PoolStatus {
|
|
|
1481
1481
|
/** Data emitted with FILE_RECEIVED events. */
|
|
1482
1482
|
interface ReceiverFileData {
|
|
1483
1483
|
readonly filePath: string;
|
|
1484
|
+
readonly fileSize: number;
|
|
1484
1485
|
readonly associationId: string;
|
|
1485
1486
|
readonly associationDir: string;
|
|
1486
1487
|
readonly callingAE: string;
|
package/dist/index.cjs
CHANGED
|
@@ -36615,7 +36615,7 @@ var DicomReceiver = class _DicomReceiver extends events.EventEmitter {
|
|
|
36615
36615
|
acseTimeout: this.options.acseTimeout,
|
|
36616
36616
|
dimseTimeout: this.options.dimseTimeout,
|
|
36617
36617
|
maxPdu: this.options.maxPdu,
|
|
36618
|
-
filenameMode: this.options.filenameMode,
|
|
36618
|
+
filenameMode: this.options.filenameMode ?? "unique",
|
|
36619
36619
|
filenameExtension: this.options.filenameExtension,
|
|
36620
36620
|
storageMode: this.options.storageMode
|
|
36621
36621
|
});
|
|
@@ -36730,8 +36730,9 @@ var DicomReceiver = class _DicomReceiver extends events.EventEmitter {
|
|
|
36730
36730
|
const assocDir = worker.associationDir;
|
|
36731
36731
|
const moveResult = await moveFile(srcPath, destPath);
|
|
36732
36732
|
const finalPath = moveResult.ok ? destPath : srcPath;
|
|
36733
|
+
const fileSize = await statFileSafe(finalPath);
|
|
36733
36734
|
worker.files.push(finalPath);
|
|
36734
|
-
worker.fileSizes.push(
|
|
36735
|
+
worker.fileSizes.push(fileSize);
|
|
36735
36736
|
const openResult = await DicomInstance.open(finalPath);
|
|
36736
36737
|
if (!openResult.ok) {
|
|
36737
36738
|
this.emit("error", {
|
|
@@ -36747,6 +36748,7 @@ var DicomReceiver = class _DicomReceiver extends events.EventEmitter {
|
|
|
36747
36748
|
}
|
|
36748
36749
|
this.emit("FILE_RECEIVED", {
|
|
36749
36750
|
filePath: finalPath,
|
|
36751
|
+
fileSize,
|
|
36750
36752
|
associationId: assocId,
|
|
36751
36753
|
associationDir: assocDir,
|
|
36752
36754
|
callingAE: data.callingAE,
|