File tree Expand file tree Collapse file tree 5 files changed +16
-12
lines changed Expand file tree Collapse file tree 5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,11 @@ Made with 💚
99
99
Published under the [ MIT License] ( ./LICENCE ) .
100
100
101
101
<!-- Badges -->
102
- [ npm-version-src ] : https://img.shields.io/npm/v/nuxt-open-fetch/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
103
- [ npm-version-href ] : https://npmjs.com/package/nuxt-open-fetch
102
+ [ npm-version-src ] : https://img.shields.io/npm/v/nuxt-open-fetch-x /latest.svg?style=flat&colorA=18181B&colorB=28CF8D
103
+ [ npm-version-href ] : https://npmjs.com/package/nuxt-open-fetch-x
104
104
105
- [ license-src ] : https://img.shields.io/npm/l/nuxt-open-fetch.svg?style=flat&colorA=18181B&colorB=28CF8D
106
- [ license-href ] : https://npmjs.com/package/nuxt-open-fetch
105
+ [ license-src ] : https://img.shields.io/npm/l/nuxt-open-fetch-x .svg?style=flat&colorA=18181B&colorB=28CF8D
106
+ [ license-href ] : https://npmjs.com/package/nuxt-open-fetch-x
107
107
108
108
[ nuxt-src ] : https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
109
109
[ nuxt-href ] : https://nuxt.com
Original file line number Diff line number Diff line change @@ -8,32 +8,32 @@ It uses awesome [openapi-typescript](https://github.com/drwpow/openapi-typescrip
8
8
9
9
## Installation
10
10
11
- Add ` nuxt-open-fetch ` to your project's dev dependencies:
11
+ Add ` nuxt-open-fetch-x ` to your project's dev dependencies:
12
12
13
13
:: code-group
14
14
15
15
``` bash [pnpm]
16
- pnpm add nuxt-open-fetch -D
16
+ pnpm add nuxt-open-fetch-x -D
17
17
```
18
18
19
19
``` bash [yarn]
20
- yarn add --dev nuxt-open-fetch
20
+ yarn add --dev nuxt-open-fetch-x
21
21
```
22
22
23
23
``` bash [npm]
24
- npm install nuxt-open-fetch -D
24
+ npm install nuxt-open-fetch-x -D
25
25
```
26
26
27
27
::
28
28
29
29
## Configuration
30
30
31
- Then, add ` nuxt-open-fetch ` to the [ ` modules ` ] ( https://nuxt.com/docs/api/configuration/nuxt-config#modules ) section of your Nuxt configuration:
31
+ Then, add ` nuxt-open-fetch-x ` to the [ ` modules ` ] ( https://nuxt.com/docs/api/configuration/nuxt-config#modules ) section of your Nuxt configuration:
32
32
33
33
``` ts twoslash [nuxt.config.ts]
34
34
// @noErrors
35
35
export default defineNuxtConfig ({
36
- modules: [' nuxt-open-fetch' ],
36
+ modules: [' nuxt-open-fetch-x ' ],
37
37
openFetch: {
38
38
clients: {
39
39
pets: {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ description: "Learn how to configure NuxtOpenFetch"
6
6
``` ts twoslash [nuxt.config.ts]
7
7
// @noErrors
8
8
export default defineNuxtConfig ({
9
- modules: [' nuxt-open-fetch' ],
9
+ modules: [' nuxt-open-fetch-x ' ],
10
10
11
11
openFetch: {
12
12
clients: {}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default defineNuxtConfig({
11
11
'@nuxt/ui' ,
12
12
'@nuxthq/studio' ,
13
13
'nuxt-og-image' ,
14
- 'nuxt-open-fetch' ,
14
+ 'nuxt-open-fetch-x ' ,
15
15
] ,
16
16
17
17
devtools : {
Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ export default defineNuxtConfig({
2
2
modules : [ '../src/module' ] ,
3
3
extends : [ './pets' ] ,
4
4
devtools : { enabled : true } ,
5
+
5
6
openFetch : {
6
7
clients : {
7
8
api : {
8
9
baseURL : 'https://petstore3.swagger.io/api/v3/' ,
9
10
} ,
10
11
} ,
11
12
} ,
13
+
12
14
runtimeConfig : {
13
15
public : {
14
16
openFetch : {
@@ -18,4 +20,6 @@ export default defineNuxtConfig({
18
20
} ,
19
21
} ,
20
22
} ,
23
+
24
+ compatibilityDate : '2025-03-21' ,
21
25
} )
You can’t perform that action at this time.
0 commit comments