@scalar/hono-api-reference 0.5.151 → 0.5.153
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 +6 -2
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ app.get(
|
|
|
32
32
|
)
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The Hono middleware takes our universal configuration object, [read more about configuration](https://github.com/scalar/scalar/
|
|
35
|
+
The Hono middleware takes our universal configuration object, [read more about configuration](https://github.com/scalar/scalar/blob/main/documentation/configuration.md) in the core package README.
|
|
36
36
|
|
|
37
37
|
### Themes
|
|
38
38
|
|
|
@@ -74,13 +74,17 @@ app.get(
|
|
|
74
74
|
|
|
75
75
|
You can use a custom CDN ,default is `https://cdn.jsdelivr.net/npm/@scalar/api-reference`.
|
|
76
76
|
|
|
77
|
+
You can also pin the CDN to a specific version by specifying it in the CDN string like `https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.25.28`
|
|
78
|
+
|
|
79
|
+
You can find all available CDN versions [here](https://www.jsdelivr.com/package/npm/@scalar/api-reference?tab=files)
|
|
80
|
+
|
|
77
81
|
```ts
|
|
78
82
|
import { apiReference } from '@scalar/hono-api-reference'
|
|
79
83
|
|
|
80
84
|
app.use(
|
|
81
85
|
'/reference',
|
|
82
86
|
apiReference({
|
|
83
|
-
cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference',
|
|
87
|
+
cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest',
|
|
84
88
|
spec: {
|
|
85
89
|
content: OpenApiSpecification,
|
|
86
90
|
},
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/hono-api-reference"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.5.
|
|
13
|
+
"version": "0.5.153",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=18"
|
|
16
16
|
},
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"import": "./dist/index.js",
|
|
23
|
-
"types": "./dist/index.d.ts"
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
],
|
|
29
30
|
"module": "dist/index.js",
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@scalar/types": "0.0.
|
|
32
|
+
"@scalar/types": "0.0.14"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@hono/node-server": "^1.11.0",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"tsup": "^7.2.0",
|
|
38
39
|
"vite": "^5.2.10",
|
|
39
40
|
"vitest": "^1.6.0",
|
|
40
|
-
"@scalar/build-tooling": "0.1.
|
|
41
|
+
"@scalar/build-tooling": "0.1.11"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
43
44
|
"hono": "^4.0.0"
|