autoblogger 0.2.29 → 0.2.30

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.js CHANGED
@@ -7199,14 +7199,15 @@ async function uploadToS3(buffer, filename, contentType, config) {
7199
7199
  const client = await getS3Client(config);
7200
7200
  const ext = filename.split(".").pop()?.toLowerCase() || "jpg";
7201
7201
  const key = `uploads/${(0, import_crypto.randomUUID)()}.${ext}`;
7202
+ const acl = config.acl !== void 0 ? config.acl : "public-read";
7202
7203
  const params = {
7203
7204
  Bucket: config.bucket,
7204
7205
  Key: key,
7205
7206
  Body: buffer,
7206
7207
  ContentType: contentType
7207
7208
  };
7208
- if (config.acl) {
7209
- params.ACL = config.acl;
7209
+ if (acl) {
7210
+ params.ACL = acl;
7210
7211
  }
7211
7212
  await client.send(new PutObjectCommand(params));
7212
7213
  const cdnEndpoint = config.cdnEndpoint || config.endpoint || `https://${config.bucket}.s3.${config.region || "us-east-1"}.amazonaws.com`;