ember-cli-deploy-s3-index 4.0.0-0 → 4.0.2

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/.eslintrc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  root: true,
3
3
  parserOptions: {
4
- ecmaVersion: 6,
4
+ ecmaVersion: 'latest',
5
5
  sourceType: 'module'
6
6
  },
7
7
  extends: 'eslint:recommended',
package/CHANGELOG.md CHANGED
@@ -1,8 +1,30 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+
5
+
6
+ ## 4.0.2 (2024-04-05)
7
+
8
+ #### :bug: Bug Fix
9
+ * [#142](https://github.com/ember-cli-deploy/ember-cli-deploy-s3-index/pull/142) Handle empty s3 response ([@jrjohnson](https://github.com/jrjohnson))
10
+
11
+ #### Committers: 1
12
+ - Jon Johnson ([@jrjohnson](https://github.com/jrjohnson))
13
+
14
+ ## 4.0.1 (2024-04-03)
15
+
16
+ #### :rocket: Enhancement
17
+ * Release changes in 4.0.0-0 prerelease.
18
+ * [#134](https://github.com/ember-cli-deploy/ember-cli-deploy-s3-index/pull/134) Optionally ignore ACLs ([@khornberg](https://github.com/khornberg))
19
+
20
+ #### Committers: 1
21
+ - Kyle Hornberg ([@khornberg](https://github.com/khornberg))
22
+
23
+
4
24
  ## 4.0.0-0 (2023-08-28)
5
25
 
26
+ Pre-release to verify aws sdk update
27
+
6
28
  ## 3.0.0 (2023-05-16)
7
29
 
8
30
  #### :boom: Breaking Change
package/README.md CHANGED
@@ -110,6 +110,8 @@ A file matching this pattern will be uploaded to S3. The active key in S3 will b
110
110
 
111
111
  The ACL to apply to the objects.
112
112
 
113
+ Set to `false` to not apply any ACLs.
114
+
113
115
  *Default:* `'public-read'`
114
116
 
115
117
  ### cacheControl
@@ -151,7 +153,7 @@ or Openstack Swift
151
153
 
152
154
  If `endpoint` set the `region` option will be ignored.
153
155
 
154
- *Default:* `[region].s3.amazonaws.com`
156
+ *Default:* `[region].s3.amazonaws.com`
155
157
 
156
158
 
157
159
  ### serverSideEncryption
package/index.js CHANGED
@@ -66,7 +66,6 @@ module.exports = {
66
66
  var options = {
67
67
  bucket: bucket,
68
68
  prefix: prefix,
69
- acl: acl,
70
69
  cacheControl: cacheControl,
71
70
  filePattern: filePattern,
72
71
  filePath: filePath,
@@ -77,6 +76,10 @@ module.exports = {
77
76
  urlEncodeSourceObject: urlEncodeSourceObject
78
77
  };
79
78
 
79
+ if (acl) {
80
+ options.acl = acl;
81
+ }
82
+
80
83
  if (serverSideEncryption) {
81
84
  options.serverSideEncryption = serverSideEncryption;
82
85
  }
@@ -99,12 +102,15 @@ module.exports = {
99
102
  var options = {
100
103
  bucket: bucket,
101
104
  prefix: prefix,
102
- acl: acl,
103
105
  filePattern: filePattern,
104
106
  revisionKey: revisionKey,
105
107
  urlEncodeSourceObject: urlEncodeSourceObject,
106
108
  };
107
109
 
110
+ if (acl) {
111
+ options.acl = acl;
112
+ }
113
+
108
114
  if (serverSideEncryption) {
109
115
  options.serverSideEncryption = serverSideEncryption;
110
116
  }
package/lib/s3.js CHANGED
@@ -166,7 +166,7 @@ module.exports = CoreObject.extend({
166
166
  var revisionPrefix = joinUriSegments(prefix, options.filePattern + ":" + options.revisionKey);
167
167
 
168
168
  return listObjects({ Bucket: bucket, Prefix: revisionPrefix })
169
- .then((response) => response.Contents.find((element) => element.Key === revisionPrefix));
169
+ .then((response) => response.Contents?.find((element) => element.Key === revisionPrefix));
170
170
  },
171
171
 
172
172
  fetchRevisions: function(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli-deploy-s3-index",
3
- "version": "4.0.0-0",
3
+ "version": "4.0.2",
4
4
  "description": "Ember CLI Deploy plugin to deploy ember-cli's bootstrap index file to S3.",
5
5
  "keywords": [
6
6
  "ember-addon",