Skip to content

Commit

Permalink
chore!: rename useBuildInFetch to useDollarFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Teages committed Jun 17, 2024
1 parent 17a4721 commit 1f8952f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type ClientOptions = Omit<_ClientOptions, 'fetch' | 'exchanges'> & {
* @see https://nuxt.com/docs/api/utils/dollarfetch
* @default true
*/
useBuildInFetch?: boolean
useDollarFetch?: boolean

/**
* @description Allow json friendly data only.
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineNuxtPlugin((nuxt) => {
: clientOptions.url

const {
useBuildInFetch = true,
useDollarFetch = true,
fetchOptions = {},
credentials = 'omit',
cookiesFilter = [],
Expand Down Expand Up @@ -92,7 +92,7 @@ export default defineNuxtPlugin((nuxt) => {
},
}
},
fetch: useBuildInFetch
fetch: useDollarFetch
? (input, init) => $fetch.raw(
input.toString(),
{
Expand Down

0 comments on commit 1f8952f

Please sign in to comment.