Skip to content

Commit

Permalink
feat: add object-to-formdata dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hkp22 committed Oct 22, 2024
1 parent 6c52651 commit 8709c5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/composables/useSanctumForm.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import objectToFormData from 'object-to-formdata';
import type { FetchOptions, MappedResponseType, ResponseType } from 'ofetch';
import { cloneDeep, isEqual, get, set } from 'lodash-es';
import { reactive, toRaw, watch } from 'vue';
import type { Form, NamedInputEvent, RequestMethod } from '../types';
import type { Form, NamedInputEvent, RequestMethod } from '../types/index';
import { hasFile } from '../helpers/has-file';
import { useSanctumFetch } from './useSanctumFetch';

const objectToFormData = await import('object-to-formdata');

/**
* Utility function to resolve an input's name attribute.
*/
Expand Down

0 comments on commit 8709c5e

Please sign in to comment.