@aklinker1/zeta 1.3.0 → 1.3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aklinker1/zeta",
3
3
  "description": "Composable, testable, OpenAPI-first backend framework with validation built-in",
4
- "version": "1.3.0",
4
+ "version": "1.3.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "packageManager": "bun@1.3.2",
@@ -22,7 +22,7 @@ export function smartSerialize(value: unknown):
22
22
  };
23
23
  }
24
24
 
25
- if (value instanceof FileList) {
25
+ if (typeof FileList !== "undefined" && value instanceof FileList) {
26
26
  const serialized = new FormData();
27
27
  for (let i = 0; i < value.length; i++) {
28
28
  serialized.append("files", value.item(i)!);
package/src/schema.ts CHANGED
@@ -234,7 +234,7 @@ export const UploadFilesBody: ZetaSchema<FormData, File[]> = createZetaSchema<
234
234
  };
235
235
  }
236
236
 
237
- const files = value.getAll("file");
237
+ const files = value.getAll("files");
238
238
  if (!Array.isArray(files)) {
239
239
  return {
240
240
  issues: [{ message: `Expected array of Files, got ${typeof files}` }],