sveltekit-superforms
Advanced tools
Comparing version
@@ -189,3 +189,3 @@ import { derived, get, readonly, writable } from 'svelte/store'; | ||
!(value instanceof File) && | ||
!(value instanceof FileList)) { | ||
(!browser || !(value instanceof FileList))) { | ||
throw new SuperFormError(`Object found in form field "${key}". ` + | ||
@@ -400,3 +400,3 @@ `Set the dataType option to "json" and add use:enhance to use nested data structures. ` + | ||
traversePaths(Data.form, (info) => { | ||
if (!(info.parent instanceof FileList) && | ||
if ((!browser || !(info.parent instanceof FileList)) && | ||
(info.value instanceof File || (browser && info.value instanceof FileList))) { | ||
@@ -403,0 +403,0 @@ const dataPath = pathExists(data, info.path); |
{ | ||
"name": "sveltekit-superforms", | ||
"version": "2.0.0-alpha.42", | ||
"version": "2.0.0-alpha.43", | ||
"author": "Andreas Söderlund <ciscoheat@gmail.com> (https://blog.encodeart.dev)", | ||
@@ -5,0 +5,0 @@ "description": "Making SvelteKit forms a pleasure to use!", |
242208
0.01%