forked from olcxjas-softworks/LarpixClient
Add capacitorjs runtime
This commit is contained in:
parent
d0ece489ee
commit
f90c0e6c40
8362 changed files with 1502407 additions and 1 deletions
19
node_modules/formidable/src/helpers/firstValues.js
generated
vendored
Normal file
19
node_modules/formidable/src/helpers/firstValues.js
generated
vendored
Normal 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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue