@duvdu-v1/duvdu 1.0.51 → 1.0.52
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/build/types/folders.d.ts
CHANGED
package/build/types/folders.js
CHANGED
package/build/utils/bucket.js
CHANGED
|
@@ -16,7 +16,6 @@ exports.Bucket = void 0;
|
|
|
16
16
|
const fs_1 = __importDefault(require("fs"));
|
|
17
17
|
const path_1 = __importDefault(require("path"));
|
|
18
18
|
const aws_sdk_1 = __importDefault(require("aws-sdk"));
|
|
19
|
-
const folders_1 = require("../types/folders");
|
|
20
19
|
class Bucket {
|
|
21
20
|
constructor() {
|
|
22
21
|
this.s3 = new aws_sdk_1.default.S3({
|
|
@@ -33,7 +32,7 @@ class Bucket {
|
|
|
33
32
|
yield new Promise((resolve, reject) => {
|
|
34
33
|
this.s3.putObject({
|
|
35
34
|
Bucket: this.bucketName,
|
|
36
|
-
Key: `${
|
|
35
|
+
Key: `${folder}/${file.filename}`,
|
|
37
36
|
Body: fileStream,
|
|
38
37
|
}, (err, data) => {
|
|
39
38
|
if (err)
|
package/build/utils/file.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="express-serve-static-core" />
|
|
2
|
-
/// <reference types="multer" />
|
|
3
|
-
/// <reference types="express-session" />
|
|
4
1
|
export declare const Files: {
|
|
5
2
|
saveFiles: (folder: string, ...files: (Express.Multer.File | undefined)[]) => void;
|
|
6
3
|
removeFiles: (...filePaths: (string | undefined)[]) => void;
|