@scalar/nestjs-api-reference 0.3.160 → 0.3.162

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.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -86,13 +86,17 @@ app.use(
86
86
 
87
87
  You can use a custom CDN ,default is `https://cdn.jsdelivr.net/npm/@scalar/api-reference`.
88
88
 
89
+ 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`
90
+
91
+ You can find all available CDN versions [here](https://www.jsdelivr.com/package/npm/@scalar/api-reference?tab=files)
92
+
89
93
  ```ts
90
94
  import { apiReference } from '@scalar/nestjs-api-reference'
91
95
 
92
96
  app.use(
93
97
  '/reference',
94
98
  apiReference({
95
- cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference',
99
+ cdn: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest',
96
100
  spec: {
97
101
  content: OpenApiSpecification,
98
102
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/nestjs-api-reference"
12
12
  },
13
- "version": "0.3.160",
13
+ "version": "0.3.162",
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "module": "dist/index.js",
36
36
  "dependencies": {
37
- "@scalar/types": "0.0.12"
37
+ "@scalar/types": "0.0.13"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/express": "^4.17.21",
@@ -43,7 +43,7 @@
43
43
  "tsup": "^7.2.0",
44
44
  "vite": "^5.2.10",
45
45
  "vitest": "^1.6.0",
46
- "@scalar/api-reference": "1.25.26"
46
+ "@scalar/api-reference": "1.25.30"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsup ./src/index.ts --format esm,cjs --dts",