@social-mail/social-mail-client 1.2.579 → 1.2.581

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