@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/isolate-test-utils",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -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 instanceof File) {
247
- const nameJson = JSON.stringify(entryValue.name);
248
- const typeJson = JSON.stringify(entryValue.type);
249
- const lastModifiedJson = JSON.stringify(entryValue.lastModified);
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
  `);