@ccci/micro-server 1.0.198 → 1.0.200

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/index.js CHANGED
@@ -303604,6 +303604,15 @@ class UploaderS3 {
303604
303604
  throw error;
303605
303605
  }
303606
303606
  }
303607
+ static async deleteFile(bucketName, key) {
303608
+ try {
303609
+ await UploaderS3.client.send(new import_client_s3.DeleteObjectCommand({ Bucket: bucketName, Key: key }));
303610
+ Logger.info(`deleted key : ${key}`);
303611
+ } catch (error) {
303612
+ Logger.error(error);
303613
+ throw error;
303614
+ }
303615
+ }
303607
303616
  }
303608
303617
 
303609
303618
  // src/utils/ServeKafka.ts
@@ -5,6 +5,7 @@ export type AttachmentMetadataType = {
5
5
  Location?: string;
6
6
  MimeType?: string;
7
7
  Thumbnail?: string;
8
+ isHls?: boolean;
8
9
  };
9
10
  export declare const mimeTypes: Record<string, string>;
10
11
  //# sourceMappingURL=AttachmentMetadataTypes.d.ts.map
@@ -63,5 +63,6 @@ export default class UploaderS3 {
63
63
  * @param bucketName S3 bucket name
64
64
  */
65
65
  static deleteIncompleteUploads(bucketName: string): Promise<void>;
66
+ static deleteFile(bucketName: string, key: string): Promise<void>;
66
67
  }
67
68
  //# sourceMappingURL=uploader-s3.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",