@open-wa/wa-automate 4.51.0 → 4.51.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/utils/tools.js +4 -1
- package/package.json +1 -1
package/dist/utils/tools.js
CHANGED
@@ -63,6 +63,9 @@ const os_2 = require("os");
|
|
63
63
|
const stream_1 = require("stream");
|
64
64
|
const logging_1 = require("../logging/logging");
|
65
65
|
const import_1 = require("@brillout/import");
|
66
|
+
const IGNORE_FILE_EXTS = [
|
67
|
+
'mpga'
|
68
|
+
];
|
66
69
|
let _ft = null;
|
67
70
|
const ft = () => __awaiter(void 0, void 0, void 0, function* () {
|
68
71
|
if (!_ft) {
|
@@ -411,7 +414,7 @@ const assertFile = (file, outfileName, desiredOutputType, requestConfig) => __aw
|
|
411
414
|
if (inputType != exports.FileInputTypes.BUFFER) {
|
412
415
|
file = yield (0, exports.ensureDUrl)(file, requestConfig, outfileName);
|
413
416
|
const ext = mime_1.default.extension(file.match(/[^:]\w+\/[\w-+\d.]+(?=;|,)/)[0]);
|
414
|
-
if (ext && !tfn.endsWith(ext))
|
417
|
+
if (ext && !IGNORE_FILE_EXTS.includes(ext) && !tfn.endsWith(ext))
|
415
418
|
tfn = `${tfn}.${ext}`;
|
416
419
|
file = Buffer.from(file.split(',')[1], 'base64');
|
417
420
|
}
|
package/package.json
CHANGED