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.
- package/dist/src/UtilsS3.d.ts +1 -1
- package/package.json +1 -1
- package/src/UtilsS3.ts +1 -1
package/dist/src/UtilsS3.d.ts
CHANGED
|
@@ -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
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
|