@ricsam/isolate-test-utils 0.1.6 → 0.1.7
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/native-input-test.ts +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ricsam/isolate-test-utils
|
|
2
2
|
|
|
3
|
+
## 0.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix bugs
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @ricsam/isolate-fetch@0.1.7
|
|
10
|
+
- @ricsam/isolate-core@0.1.7
|
|
11
|
+
- @ricsam/isolate-fs@0.1.7
|
|
12
|
+
- @ricsam/isolate-console@0.1.7
|
|
13
|
+
- @ricsam/isolate-runtime@0.1.8
|
|
14
|
+
|
|
3
15
|
## 0.1.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
package/src/native-input-test.ts
CHANGED
|
@@ -243,10 +243,11 @@ function marshalValue(
|
|
|
243
243
|
for (const [key, entryValue] of value.entries()) {
|
|
244
244
|
const keyJson = JSON.stringify(key);
|
|
245
245
|
|
|
246
|
-
if (entryValue
|
|
247
|
-
const
|
|
248
|
-
const
|
|
249
|
-
const
|
|
246
|
+
if (typeof entryValue !== "string") {
|
|
247
|
+
const file = entryValue as File;
|
|
248
|
+
const nameJson = JSON.stringify(file.name);
|
|
249
|
+
const typeJson = JSON.stringify(file.type);
|
|
250
|
+
const lastModifiedJson = JSON.stringify(file.lastModified);
|
|
250
251
|
context.evalSync(`
|
|
251
252
|
${path}.append(${keyJson}, new File([], ${nameJson}, { type: ${typeJson}, lastModified: ${lastModifiedJson} }));
|
|
252
253
|
`);
|