@ccci/micro-server 1.0.218 → 1.0.220
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
|
@@ -303336,7 +303336,8 @@ class Uploader {
|
|
|
303336
303336
|
bucket,
|
|
303337
303337
|
directory: dir,
|
|
303338
303338
|
objectName: filename,
|
|
303339
|
-
mimeType: file.mimetype
|
|
303339
|
+
mimeType: file.mimetype,
|
|
303340
|
+
location: `https://${process.env.MINIO_ENDPOINT}${path3}`
|
|
303340
303341
|
});
|
|
303341
303342
|
}
|
|
303342
303343
|
return isArray ? response4 : response4[0];
|
|
@@ -303355,7 +303356,7 @@ class Uploader {
|
|
|
303355
303356
|
throw error;
|
|
303356
303357
|
}
|
|
303357
303358
|
}
|
|
303358
|
-
async delete(bucketName, objectName, removeOpts) {
|
|
303359
|
+
static async delete(bucketName, objectName, removeOpts) {
|
|
303359
303360
|
try {
|
|
303360
303361
|
const result = await Uploader.client.removeObject(bucketName, objectName, removeOpts);
|
|
303361
303362
|
return result;
|
package/dist/utils/Uploader.d.ts
CHANGED
|
@@ -28,6 +28,6 @@ export default class Uploader {
|
|
|
28
28
|
* @param file {string} file directory
|
|
29
29
|
*/
|
|
30
30
|
preview(bucket: string, file: string): Promise<void>;
|
|
31
|
-
delete(bucketName: string, objectName: string, removeOpts?: RemoveOptions): Promise<void>;
|
|
31
|
+
static delete(bucketName: string, objectName: string, removeOpts?: RemoveOptions): Promise<void>;
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=Uploader.d.ts.map
|