@scalar/nuxt 0.2.196 → 0.2.198

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 CHANGED
@@ -35,7 +35,7 @@ export default defineNuxtConfig({
35
35
  })
36
36
  ```
37
37
 
38
- If you would like to add your own OpenAPI spec file you can do so with the following minimal config
38
+ If you would like to add your own OpenAPI document you can do so with the following minimal config
39
39
 
40
40
  ```ts
41
41
  export default defineNuxtConfig({
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scalar/nuxt",
3
3
  "configKey": "scalar",
4
- "version": "0.2.196",
4
+ "version": "0.2.198",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.1",
7
7
  "unbuild": "unknown"
@@ -1,9 +1,9 @@
1
1
  <script lang="ts" setup>
2
- import { useHead, useRequestURL, useSeoMeta } from '#imports'
3
2
  import { ModernLayout, parse } from '@scalar/api-reference'
4
3
  import type { ReferenceConfiguration } from '@scalar/types/legacy'
5
- import { reactive, ref, toRaw } from 'vue'
4
+ import { useHead, useRequestURL, useSeoMeta } from '#imports'
6
5
  import type { Configuration } from '~/src/types'
6
+ import { reactive, ref, toRaw } from 'vue'
7
7
 
8
8
  const props = defineProps<{
9
9
  configuration: Configuration
@@ -23,7 +23,7 @@ const content =
23
23
 
24
24
  // Check for empty spec
25
25
  if (!content)
26
- throw new Error('You must provide a spec for Scalar API References')
26
+ throw new Error('You must provide a document for Scalar API References')
27
27
 
28
28
  const parsedSpec = reactive(await parse(content))
29
29
  const rawSpec = JSON.stringify(content)
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "testing",
21
21
  "vue"
22
22
  ],
23
- "version": "0.2.196",
23
+ "version": "0.2.198",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -39,13 +39,13 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "@nuxt/kit": "^3.12.3",
42
- "@scalar/api-client": "2.2.47",
43
- "@scalar/api-reference": "1.25.118",
44
- "@scalar/types": "0.0.32"
42
+ "@scalar/types": "0.0.33",
43
+ "@scalar/api-client": "2.2.49",
44
+ "@scalar/api-reference": "1.25.120"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@nuxt/devtools": "^1.3.9",
48
- "@nuxt/eslint-config": "^0.3.13",
48
+ "@nuxt/eslint-config": "^0.7.3",
49
49
  "@nuxt/module-builder": "^0.8.1",
50
50
  "@nuxt/schema": "^3.12.3",
51
51
  "@nuxt/test-utils": "^3.13.1",
@@ -59,8 +59,10 @@
59
59
  "dev": "pnpm dev:prepare && nuxi dev playground",
60
60
  "dev:build": "nuxi build playground",
61
61
  "dev:prepare": "nuxi prepare && nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
62
- "lint:check": "eslint .",
63
- "lint:fix": "eslint . --fix",
62
+ "format:check": "scalar-format-check",
63
+ "format": "scalar-format",
64
+ "lint:check": "scalar-lint-check",
65
+ "lint:fix": "scalar-lint-fix",
64
66
  "test:watch": "vitest watch",
65
67
  "types:check": "nuxi typecheck"
66
68
  }