Add capacitorjs runtime

This commit is contained in:
olcxja 2026-05-03 17:09:55 +02:00
commit f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions

19
node_modules/formidable/src/helpers/firstValues.js generated vendored Normal file
View file

@ -0,0 +1,19 @@
import { multipartType } from '../plugins/multipart.js';
import { querystringType } from '../plugins/querystring.js';
const firstValues = (form, fields, exceptions = []) => {
if (form.type !== querystringType && form.type !== multipartType) {
return fields;
}
return Object.fromEntries(
Object.entries(fields).map(([key, value]) => {
if (exceptions.includes(key)) {
return [key, value];
}
return [key, value[0]];
}),
);
};
export { firstValues };