@teamkeel/functions-runtime 0.404.0 → 0.405.0

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/package.json +1 -1
  2. package/src/File.js +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/functions-runtime",
3
- "version": "0.404.0",
3
+ "version": "0.405.0",
4
4
  "description": "Internal package used by @teamkeel/sdk",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/File.js CHANGED
@@ -34,7 +34,7 @@ const s3Client = (() => {
34
34
  // By impleenting a full resolver we can force it to be the endpoint we want.
35
35
  endpointProvider: () => {
36
36
  return {
37
- url: URL.parse(endpoint),
37
+ url: new URL(endpoint),
38
38
  };
39
39
  },
40
40
  });
@@ -187,9 +187,7 @@ class File extends InlineFile {
187
187
  const command = new GetObjectCommand({
188
188
  Bucket: process.env.KEEL_FILES_BUCKET_NAME,
189
189
  Key: "files/" + this.key,
190
- ResponseContentDisposition: `attachment; filename="${encodeURIComponent(
191
- this.filename
192
- )}"`,
190
+ ResponseContentDisposition: "inline",
193
191
  });
194
192
 
195
193
  const url = await getSignedUrl(s3Client, command, { expiresIn: 60 * 60 });