@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.51.0",
3
+ "version": "4.51.1",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",