eip-cloud-services 1.0.2 → 1.0.21

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/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.0.21] - 2023-06-21
6
+
7
+ ### Added
8
+ - New feature X.
9
+ - Improved performance in Y.
10
+
11
+ ### Fixed
12
+ - Bug where ACL's were not copied across when moving S3 objects.
13
+
14
+ ## [1.0.2] - 2023-06-21
15
+
16
+ ### Added
17
+ - Initial release of the module.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-cloud-services",
3
- "version": "1.0.2",
3
+ "version": "1.0.21",
4
4
  "description": "Houses a collection of helpers for connecting with Cloud services.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/s3.js CHANGED
@@ -184,7 +184,9 @@ exports.move = async ( sourceKey, destinationKey, sourceBucket = config.s3.Bucke
184
184
  const copyCommand = new CopyObjectCommand ( {
185
185
  CopySource: `/${sourceBucket}/${sourceKey}`,
186
186
  Bucket: destinationBucket,
187
- Key: destinationKey
187
+ Key: destinationKey,
188
+ ACL: 'public-read',
189
+ MetadataDirective: 'COPY',
188
190
  } );
189
191
 
190
192
  await S3.send ( copyCommand );