@teamkeel/functions-runtime 0.422.0 → 0.422.2
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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:
|
|
797
|
+
const file2 = new _InlineFile({ filename: name, contentType: mimeType });
|
|
798
798
|
file2.write(buffer);
|
|
799
799
|
return file2;
|
|
800
800
|
}
|
|
@@ -3240,7 +3240,10 @@ function createFlowContext(runId, data, action, callback, element, spanId, ctx)
|
|
|
3240
3240
|
spanId,
|
|
3241
3241
|
endTime: /* @__PURE__ */ new Date()
|
|
3242
3242
|
}).where("id", "=", step.id).returningAll().executeTakeFirst();
|
|
3243
|
-
|
|
3243
|
+
if (action) {
|
|
3244
|
+
return { data, action };
|
|
3245
|
+
}
|
|
3246
|
+
return data;
|
|
3244
3247
|
});
|
|
3245
3248
|
}, "page"),
|
|
3246
3249
|
inputs: {
|