idea-aws 4.1.0 → 4.1.1

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/dist/src/s3.js +2 -2
  2. package/package.json +1 -1
package/dist/src/s3.js CHANGED
@@ -62,7 +62,7 @@ class S3 {
62
62
  /**
63
63
  * Get a signed URL to put a file on a S3 bucket.
64
64
  */
65
- async signedURLPut(bucket, key, options) {
65
+ async signedURLPut(bucket, key, options = {}) {
66
66
  const putParams = { Bucket: bucket, Key: key };
67
67
  if (options.filename)
68
68
  putParams.ContentDisposition = `attachment; filename ="${(0, exports.cleanFilename)(options.filename)}"`;
@@ -73,7 +73,7 @@ class S3 {
73
73
  /**
74
74
  * Get a signed URL to get a file on a S3 bucket.
75
75
  */
76
- async signedURLGet(bucket, key, options) {
76
+ async signedURLGet(bucket, key, options = {}) {
77
77
  const getParams = { Bucket: bucket, Key: key };
78
78
  if (options.filename)
79
79
  getParams.ResponseContentDisposition = `attachment; filename ="${(0, exports.cleanFilename)(options.filename)}"`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-aws",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "AWS wrappers to use in IDEA's back-ends",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",