arcway 0.4.7 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcway",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "A convention-based framework for building modular monoliths with strict domain boundaries.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -158,7 +158,14 @@ class S3FileDriver {
158
158
  });
159
159
  return {
160
160
  method: 'PUT',
161
- url: await getSignedUrl(this.client, command, { expiresIn }),
161
+ url: await getSignedUrl(this.client, command, {
162
+ expiresIn,
163
+ signableHeaders: new Set([
164
+ 'content-type',
165
+ ...(options.checksum ? ['x-amz-checksum-sha256'] : []),
166
+ ]),
167
+ ...(options.checksum ? { unhoistableHeaders: new Set(['x-amz-checksum-sha256']) } : {}),
168
+ }),
162
169
  headers,
163
170
  expiresAt: new Date(Date.now() + expiresIn * 1000).toISOString(),
164
171
  };