@scalar/nuxt 0.4.23 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.4.23",
4
+ "version": "0.4.24",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.1",
7
7
  "unbuild": "unknown"
@@ -34,6 +34,9 @@ const document =
34
34
  : (await useFetch<string>('/_openapi.json', { responseType: 'text' }))
35
35
  .data.value
36
36
 
37
+ // Set the fetched spec to the config content to prevent ApiReferenceLayout from fetching it again on the client side
38
+ props.configuration.content = document
39
+
37
40
  // Check for empty spec
38
41
  if (!document) {
39
42
  throw new Error('You must provide a document for Scalar API References')
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.4.23",
23
+ "version": "0.4.24",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -39,9 +39,9 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "@nuxt/kit": "^3.12.3",
42
- "@scalar/api-client": "2.5.12",
43
- "@scalar/api-reference": "1.31.18",
44
- "@scalar/types": "0.2.4",
42
+ "@scalar/api-client": "2.5.13",
43
+ "@scalar/api-reference": "1.32.0",
44
+ "@scalar/types": "0.2.5",
45
45
  "@scalar/use-hooks": "0.2.3"
46
46
  },
47
47
  "devDependencies": {
@@ -50,7 +50,7 @@
50
50
  "@nuxt/module-builder": "^0.8.1",
51
51
  "@nuxt/schema": "^3.12.3",
52
52
  "@nuxt/test-utils": "^3.13.1",
53
- "@types/node": "^20.17.10",
53
+ "@types/node": "^22.9.0",
54
54
  "changelogen": "^0.5.5",
55
55
  "cross-env": "^7.0.3",
56
56
  "nuxt": "^3.12.4",