@social-mail/social-mail-client 1.2.578 → 1.2.580

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.
@@ -24064,6 +24064,7 @@ System.register(["tslib", "../../common/Modules"], function (_export, _context)
24064
24064
  FFmpeg
24065
24065
  } = yield Modules.import("/social-mail/ffmpeg/index.js");
24066
24066
  const {
24067
+ fetchFile,
24067
24068
  toBlobURL
24068
24069
  } = yield Modules.import("https://cdn.jsdelivr.net/npm/@ffmpeg/util@0.12.1/dist/esm/index.js");
24069
24070
  const baseURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core-mt@0.12.6/dist/umd';
@@ -24071,13 +24072,16 @@ System.register(["tslib", "../../common/Modules"], function (_export, _context)
24071
24072
  ffmpeg.on("log", ({
24072
24073
  message
24073
24074
  }) => console.log(message));
24075
+ ffmpeg.on("error", ({
24076
+ message
24077
+ }) => console.error(message));
24074
24078
  yield ffmpeg.load({
24075
24079
  coreURL: yield toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
24076
24080
  wasmURL: yield toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
24077
24081
  workerURL: yield toBlobURL(`${baseURL}/ffmpeg-core.worker.js`, 'text/javascript')
24078
24082
  });
24079
24083
  const outputName = targetFile.name + ".webm";
24080
- yield ffmpeg.fs.writeFile(targetFile.name, targetFile);
24084
+ yield ffmpeg.fs.writeFile(targetFile.name, yield fetchFile(targetFile));
24081
24085
  const buffer = yield ffmpeg.fs.readFile(outputName);
24082
24086
  yield ffmpeg.exec(["-i", targetFile.name, outputName]);
24083
24087
  return new File([buffer.buffer], outputName, {