ag-common 0.0.722 → 0.0.723

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.
@@ -30,11 +30,13 @@ export declare function getS3Objects({ bucket, keys, }: {
30
30
  data: IS3Object;
31
31
  error?: undefined;
32
32
  }, void, unknown>;
33
- export declare const putS3Object: ({ Body, Bucket, Key, ContentType, }: {
33
+ export declare const putS3Object: ({ Body, Bucket, Key, ContentType, CacheControl, }: {
34
34
  ContentType?: string;
35
35
  Body: string | Blob | Buffer;
36
36
  Bucket: string;
37
37
  Key: string;
38
+ /** default public, max-age=300 */
39
+ CacheControl?: string;
38
40
  }) => Promise<{
39
41
  error?: string;
40
42
  }>;
@@ -74,9 +74,9 @@ function getS3Objects(_a) {
74
74
  });
75
75
  }
76
76
  exports.getS3Objects = getS3Objects;
77
- const putS3Object = (_b) => __awaiter(void 0, [_b], void 0, function* ({ Body, Bucket, Key, ContentType, }) {
77
+ const putS3Object = (_b) => __awaiter(void 0, [_b], void 0, function* ({ Body, Bucket, Key, ContentType, CacheControl = 'public, max-age=300', }) {
78
78
  try {
79
- yield exports.s3.send(new client_s3_1.PutObjectCommand({ Body, Bucket, Key, ContentType }));
79
+ yield exports.s3.send(new client_s3_1.PutObjectCommand({ Body, Bucket, Key, ContentType, CacheControl }));
80
80
  return {};
81
81
  }
82
82
  catch (e) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.722",
2
+ "version": "0.0.723",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",