dicom-curate 0.22.0 → 0.22.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.
@@ -80014,7 +80014,8 @@ async function curateOne({
80014
80014
  forcePathStyle: outputTarget.s3.forcePathStyle
80015
80015
  });
80016
80016
  try {
80017
- const key = outputTarget.s3.prefix + clonedMapResults.outputFilePath;
80017
+ const prefix = outputTarget.s3.prefix ? outputTarget.s3.prefix.endsWith("/") ? outputTarget.s3.prefix : outputTarget.s3.prefix + "/" : "";
80018
+ const key = prefix + clonedMapResults.outputFilePath;
80018
80019
  await client.send(
80019
80020
  new s32.PutObjectCommand({
80020
80021
  Bucket: outputTarget.s3.bucketName,
@@ -73723,7 +73723,8 @@ async function curateOne({
73723
73723
  forcePathStyle: outputTarget.s3.forcePathStyle
73724
73724
  });
73725
73725
  try {
73726
- const key = outputTarget.s3.prefix + clonedMapResults.outputFilePath;
73726
+ const prefix = outputTarget.s3.prefix ? outputTarget.s3.prefix.endsWith("/") ? outputTarget.s3.prefix : outputTarget.s3.prefix + "/" : "";
73727
+ const key = prefix + clonedMapResults.outputFilePath;
73727
73728
  await client.send(
73728
73729
  new s32.PutObjectCommand({
73729
73730
  Bucket: outputTarget.s3.bucketName,
package/dist/esm/index.js CHANGED
@@ -81574,7 +81574,8 @@ async function curateOne({
81574
81574
  forcePathStyle: outputTarget.s3.forcePathStyle
81575
81575
  });
81576
81576
  try {
81577
- const key = outputTarget.s3.prefix + clonedMapResults.outputFilePath;
81577
+ const prefix = outputTarget.s3.prefix ? outputTarget.s3.prefix.endsWith("/") ? outputTarget.s3.prefix : outputTarget.s3.prefix + "/" : "";
81578
+ const key = prefix + clonedMapResults.outputFilePath;
81578
81579
  await client.send(
81579
81580
  new s32.PutObjectCommand({
81580
81581
  Bucket: outputTarget.s3.bucketName,
@@ -49081,7 +49081,12 @@
49081
49081
  forcePathStyle: outputTarget.s3.forcePathStyle,
49082
49082
  });
49083
49083
  try {
49084
- const key = outputTarget.s3.prefix + clonedMapResults.outputFilePath;
49084
+ const prefix = outputTarget.s3.prefix
49085
+ ? outputTarget.s3.prefix.endsWith('/')
49086
+ ? outputTarget.s3.prefix
49087
+ : outputTarget.s3.prefix + '/'
49088
+ : '';
49089
+ const key = prefix + clonedMapResults.outputFilePath;
49085
49090
  await client.send(new s3.PutObjectCommand({
49086
49091
  Bucket: outputTarget.s3.bucketName,
49087
49092
  Key: key,
@@ -110975,7 +110980,12 @@
110975
110980
  forcePathStyle: outputTarget.s3.forcePathStyle,
110976
110981
  });
110977
110982
  try {
110978
- const key = outputTarget.s3.prefix + clonedMapResults.outputFilePath;
110983
+ const prefix = outputTarget.s3.prefix
110984
+ ? outputTarget.s3.prefix.endsWith('/')
110985
+ ? outputTarget.s3.prefix
110986
+ : outputTarget.s3.prefix + '/'
110987
+ : '';
110988
+ const key = prefix + clonedMapResults.outputFilePath;
110979
110989
  await client.send(new s3.PutObjectCommand({
110980
110990
  Bucket: outputTarget.s3.bucketName,
110981
110991
  Key: key,