triangle-utils 1.4.59 → 1.4.60

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.
@@ -10,7 +10,7 @@ export declare class UtilsS3 {
10
10
  get_file(s3_filename: string, encoding?: string): Promise<string | undefined>;
11
11
  get_file_buffer(s3_filename: string): Promise<Buffer | undefined>;
12
12
  get_file_stream(s3_filename: string): Promise<Readable | undefined>;
13
- create_file(s3_filename: string, content: string | Buffer, options?: {
13
+ create_file(s3_filename: string, content: string | Buffer | Readable, options?: {
14
14
  content_type?: string;
15
15
  }): Promise<import("@aws-sdk/client-s3").PutObjectCommandOutput | undefined>;
16
16
  delete_file(s3_filename: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.59",
3
+ "version": "1.4.60",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsS3.ts CHANGED
@@ -147,7 +147,7 @@ export class UtilsS3 {
147
147
  }
148
148
  }
149
149
 
150
- async create_file(s3_filename : string, content : string | Buffer, options : {
150
+ async create_file(s3_filename : string, content : string | Buffer | Readable, options : {
151
151
  content_type? : string
152
152
  } = {}) {
153
153
  const content_type = options.content_type !== undefined ? options.content_type : undefined