@ccci/micro-server 1.0.144 → 1.0.146

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -281736,14 +281736,15 @@ class UploaderS3 {
281736
281736
  Bucket: bucketName,
281737
281737
  Key: key,
281738
281738
  Body: fileContent,
281739
+ ACL: "public-read-write",
281739
281740
  ContentType: contentType
281740
281741
  }));
281741
281742
  Logger.info("File uploaded successfully:", { key, response: response4 });
281742
281743
  const metadata = {
281743
- Bucket: "chizmis-attachments",
281744
+ Bucket: bucketName,
281744
281745
  Key: key,
281745
281746
  Etag: response4.ETag,
281746
- Location: `https://chizmis-attachments.${process.env.S3_REGION_CODE}.cdn.${process.env.S3_DOMAIN}.com/${key}`,
281747
+ Location: `https://${bucketName}.${process.env.S3_REGION_CODE}.cdn.${process.env.S3_DOMAIN}.com/${key}`,
281747
281748
  MimeType: contentType
281748
281749
  };
281749
281750
  return metadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.144",
3
+ "version": "1.0.146",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",