@scalar/nuxt 0.0.9 → 0.0.11
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/README.md +2 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/pages/ScalarPage.vue +1 -1
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ If you would like to add your own OpenAPI spec file you can do so with the follo
|
|
|
40
40
|
```ts
|
|
41
41
|
export default defineNuxtConfig({
|
|
42
42
|
modules: ['@scalar/nuxt'],
|
|
43
|
-
|
|
43
|
+
scalar: {
|
|
44
44
|
spec: {
|
|
45
45
|
url: 'https://cdn.scalar.com/spec/openapi_petstore.json',
|
|
46
46
|
},
|
|
@@ -54,7 +54,7 @@ depth config example.
|
|
|
54
54
|
```ts
|
|
55
55
|
export default defineNuxtConfig({
|
|
56
56
|
modules: ['@scalar/nuxt'],
|
|
57
|
-
|
|
57
|
+
scalar: {
|
|
58
58
|
darkMode: true,
|
|
59
59
|
hideModals: false,
|
|
60
60
|
hideDownloadButton: false,
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { defineNuxtModule, createResolver, addComponent, extendPages, addPlugin
|
|
|
3
3
|
const module = defineNuxtModule({
|
|
4
4
|
meta: {
|
|
5
5
|
name: "@scalar/nuxt",
|
|
6
|
-
configKey: "
|
|
6
|
+
configKey: "scalar"
|
|
7
7
|
},
|
|
8
8
|
// Default configuration options of the Nuxt module
|
|
9
9
|
defaults: {
|
|
@@ -12,7 +12,7 @@ if (
|
|
|
12
12
|
!meta.configuration?.spec?.content
|
|
13
13
|
)
|
|
14
14
|
throw new Error(
|
|
15
|
-
'You must either provide a spec to
|
|
15
|
+
'You must either provide a spec to scalar, or enable experimental openApi in the Nitro config.',
|
|
16
16
|
)
|
|
17
17
|
</script>
|
|
18
18
|
|
package/dist/types.d.mts
CHANGED
|
@@ -3,13 +3,13 @@ import type { ModuleOptions } from './module.js'
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['
|
|
7
|
-
interface NuxtOptions { ['
|
|
6
|
+
interface NuxtConfig { ['scalar']?: Partial<ModuleOptions> }
|
|
7
|
+
interface NuxtOptions { ['scalar']?: ModuleOptions }
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['
|
|
12
|
-
interface NuxtOptions { ['
|
|
11
|
+
interface NuxtConfig { ['scalar']?: Partial<ModuleOptions> }
|
|
12
|
+
interface NuxtOptions { ['scalar']?: ModuleOptions }
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
package/dist/types.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import type { ModuleOptions } from './module'
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['
|
|
7
|
-
interface NuxtOptions { ['
|
|
6
|
+
interface NuxtConfig { ['scalar']?: Partial<ModuleOptions> }
|
|
7
|
+
interface NuxtOptions { ['scalar']?: ModuleOptions }
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['
|
|
12
|
-
interface NuxtOptions { ['
|
|
11
|
+
interface NuxtConfig { ['scalar']?: Partial<ModuleOptions> }
|
|
12
|
+
interface NuxtOptions { ['scalar']?: ModuleOptions }
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"testing",
|
|
16
16
|
"vue"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.
|
|
18
|
+
"version": "0.0.11",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=18"
|
|
21
21
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@nuxt/kit": "^3.11.2",
|
|
37
|
-
"@scalar/api-reference": "1.22.
|
|
37
|
+
"@scalar/api-reference": "1.22.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@nuxt/devtools": "^1.1.5",
|