@teamkeel/functions-runtime 0.422.1 → 0.422.3

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/dist/index.cjs CHANGED
@@ -791,10 +791,10 @@ var InlineFile = class _InlineFile {
791
791
  static fromDataURL(dataURL) {
792
792
  const info = dataURL.split(",")[0].split(":")[1];
793
793
  const data = dataURL.split(",")[1];
794
- const mime = info.split(";")[0];
795
- const name = info.split(";")[1].split("=")[1];
794
+ const mimeType = info.split(";")[0];
795
+ const name = info.split(";")[1].split("=")[1] || "file";
796
796
  const buffer = Buffer.from(data, "base64");
797
- const file2 = new _InlineFile({ filename: name, contentType: mime });
797
+ const file2 = new _InlineFile({ filename: name, contentType: mimeType });
798
798
  file2.write(buffer);
799
799
  return file2;
800
800
  }