@teamkeel/testing-runtime 0.485.0 → 0.487.0
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/package.json +1 -1
- package/src/parsing.mjs +6 -3
package/package.json
CHANGED
package/src/parsing.mjs
CHANGED
|
@@ -8,9 +8,12 @@ export async function parseInputs(inputs) {
|
|
|
8
8
|
inputs[keys] = inputs[keys].toISOString();
|
|
9
9
|
} else if (isInlineFileOrFile(inputs[keys])) {
|
|
10
10
|
const contents = await inputs[keys].read();
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
// The name is percent-encoded, as data-URL parameter values must be
|
|
12
|
+
// (the Go runtime rejects a raw space, and ';' / ',' end the value).
|
|
13
|
+
inputs[keys] =
|
|
14
|
+
`data:${inputs[keys].contentType};name=${encodeURIComponent(
|
|
15
|
+
inputs[keys].filename
|
|
16
|
+
)};base64,${contents.toString("base64")}`;
|
|
14
17
|
} else {
|
|
15
18
|
inputs[keys] = await parseInputs(inputs[keys]);
|
|
16
19
|
}
|