h3-formidable
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -14,3 +14,3 @@ import * as h3 from 'h3'; | ||
includeFields?: T; | ||
cb?: (incomingForm: IncomingForm) => void; | ||
getForm?: (incomingForm: IncomingForm) => void; | ||
} | ||
@@ -17,0 +17,0 @@ declare function readFiles<T extends boolean | undefined = undefined>(event: H3Event, options?: ReadFilesOptions<T>): ReadFilesReturn<T>; |
@@ -43,3 +43,3 @@ "use strict"; | ||
const form = (0, import_formidable.default)(options); | ||
(_a = options == null ? void 0 : options.cb) == null ? void 0 : _a.call(options, form); | ||
(_a = options == null ? void 0 : options.getForm) == null ? void 0 : _a.call(options, form); | ||
form.parse(event.node.req, (err, fields, files) => { | ||
@@ -46,0 +46,0 @@ if (err) |
{ | ||
"name": "h3-formidable", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "File upload parsing utility for h3 and Nuxt.", | ||
@@ -5,0 +5,0 @@ "author": "Robert Soriano <sorianorobertc@gmail.com>", |
Sorry, the diff of this file is not supported yet
8429