@dimah-s3/server 1.5.6 → 1.5.8
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/LICENSE +1 -1
- package/dist/adapters/types.d.ts +1 -1
- package/dist/api/bind-endpoints.d.ts +1 -1
- package/dist/api/bind-endpoints.d.ts.map +1 -1
- package/dist/api/context.d.ts +1 -1
- package/dist/api/index.js +5 -5
- package/dist/api/index.js.map +1 -1
- package/dist/api/router.d.ts +1 -1
- package/dist/api/routes/catalog.d.ts +1 -1
- package/dist/api/routes/file.d.ts.map +1 -1
- package/dist/dimah-s3.d.ts +2 -2
- package/dist/dimah-s3.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/helpers/constraints.d.ts +1 -1
- package/dist/helpers/features.d.ts +1 -1
- package/dist/helpers/finalize-confirmed.d.ts +1 -1
- package/dist/helpers/hooks.d.ts +1 -1
- package/dist/helpers/logger.d.ts +1 -1
- package/dist/helpers/object-s3.d.ts +1 -1
- package/dist/helpers/resolve-route.d.ts +2 -2
- package/dist/helpers/resolve-target.d.ts +1 -1
- package/dist/helpers/resolve-target.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/plugin/apply-plugins.d.ts +1 -1
- package/dist/plugin/types.d.ts +1 -1
- package/dist/plugins.js +6 -6
- package/dist/plugins.js.map +1 -1
- package/dist/put.d.ts +1 -1
- package/dist/route.d.ts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/package.json +20 -20
package/LICENSE
CHANGED
package/dist/adapters/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bind-endpoints.d.ts","sourceRoot":"","sources":["../../src/api/bind-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"bind-endpoints.d.ts","sourceRoot":"","sources":["../../src/api/bind-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC9D,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,GACzC,CAAC,CAsBH"}
|
package/dist/api/context.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -263,7 +263,7 @@ function assertStoredKey(key, keyPrefix) {
|
|
|
263
263
|
}
|
|
264
264
|
function objectKeyFileName(fileName) {
|
|
265
265
|
const sanitized = sanitizeFileName(fileName);
|
|
266
|
-
const leaf = sanitized.split("/").
|
|
266
|
+
const leaf = sanitized.split("/").findLast((part) => part.length > 0);
|
|
267
267
|
if (!leaf || leaf === "." || leaf === "..") return "file";
|
|
268
268
|
return leaf;
|
|
269
269
|
}
|
|
@@ -467,7 +467,7 @@ async function finalizeConfirmedObject(client, bucket, key, input) {
|
|
|
467
467
|
...stored,
|
|
468
468
|
contentType: head.ContentType,
|
|
469
469
|
contentLength,
|
|
470
|
-
eTag: head.ETag?.
|
|
470
|
+
eTag: head.ETag?.replaceAll('"', ""),
|
|
471
471
|
metadata,
|
|
472
472
|
acl,
|
|
473
473
|
fileName,
|
|
@@ -778,7 +778,7 @@ async function handleFile(config, input, request) {
|
|
|
778
778
|
new GetObjectCommand({
|
|
779
779
|
Bucket: bucket,
|
|
780
780
|
Key: key,
|
|
781
|
-
ResponseContentDisposition: fileName ? buildContentDisposition(fileName, disposition) :
|
|
781
|
+
ResponseContentDisposition: fileName ? buildContentDisposition(fileName, disposition) : disposition
|
|
782
782
|
})
|
|
783
783
|
)
|
|
784
784
|
);
|
|
@@ -789,7 +789,7 @@ async function handleFile(config, input, request) {
|
|
|
789
789
|
headers.set("Content-Type", result.ContentType ?? "application/octet-stream");
|
|
790
790
|
headers.set(
|
|
791
791
|
"Content-Disposition",
|
|
792
|
-
fileName ? buildContentDisposition(fileName, disposition) :
|
|
792
|
+
fileName ? buildContentDisposition(fileName, disposition) : disposition
|
|
793
793
|
);
|
|
794
794
|
if (typeof result.ContentLength === "number") {
|
|
795
795
|
headers.set("Content-Length", String(result.ContentLength));
|
|
@@ -1042,7 +1042,7 @@ async function handleListParts(config, input, request) {
|
|
|
1042
1042
|
{
|
|
1043
1043
|
partNumber: p.PartNumber,
|
|
1044
1044
|
size: p.Size ?? 0,
|
|
1045
|
-
eTag: (p.ETag ?? "").
|
|
1045
|
+
eTag: (p.ETag ?? "").replaceAll('"', "")
|
|
1046
1046
|
}
|
|
1047
1047
|
];
|
|
1048
1048
|
});
|