dicom-curate 0.35.0 → 0.36.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/README.md +25 -0
- package/dist/esm/applyMappingsWorker.js +9076 -1042
- package/dist/esm/curateOne.js +8837 -803
- package/dist/esm/index.js +9077 -1043
- package/dist/esm/libStorage.js +45120 -0
- package/dist/types/libStorage.d.ts +1 -0
- package/dist/types/types.d.ts +18 -0
- package/dist/umd/dicom-curate.umd.js +112 -34
- package/dist/umd/dicom-curate.umd.js.map +1 -1
- package/dist/umd/dicom-curate.umd.min.js +2 -2
- package/dist/umd/dicom-curate.umd.min.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -113,6 +113,31 @@ It is also possible to use S3-compatible buckets as input or output locations.
|
|
|
113
113
|
Consult `OrganizeOptions` for further details. Please note that this feature is only
|
|
114
114
|
available if you have the `@aws-sdk/client-s3` package installed.
|
|
115
115
|
|
|
116
|
+
### Matching S3 ETags across uploaders
|
|
117
|
+
|
|
118
|
+
When uploading to S3, you can set `uploadPartSize` on the output S3
|
|
119
|
+
options to control the ETag S3 assigns to the written object:
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
const options: OrganizeOptions = {
|
|
123
|
+
// other options are skipped
|
|
124
|
+
outputEndpoint: {
|
|
125
|
+
bucketName: 'my-bucket',
|
|
126
|
+
region: 'us-east-1',
|
|
127
|
+
// Bodies <= 5 MB: single PUT, S3 returns a plain-MD5 ETag.
|
|
128
|
+
// Bodies > 5 MB: multipart, S3 returns a composite "<md5>-<N>" ETag.
|
|
129
|
+
uploadPartSize: 5 * 1024 * 1024,
|
|
130
|
+
},
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
This matches the ETag convention produced by any S3 client that uses
|
|
135
|
+
`@aws-sdk/lib-storage` at the same `partSize`, making cross-bucket
|
|
136
|
+
"equal bytes ⇒ equal ETag" comparisons well-defined.
|
|
137
|
+
|
|
138
|
+
When `uploadPartSize` is omitted, all uploads go through a single PUT
|
|
139
|
+
regardless of body size and S3 always returns a plain-MD5 ETag.
|
|
140
|
+
|
|
116
141
|
This library can now automatically skip writing (or uploading) mapped files if the provided
|
|
117
142
|
"previous" input file attributes match the record you pass in the `fileInfoIndex` property:
|
|
118
143
|
|