@scalar/fastify-api-reference 1.25.121 → 1.25.123
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/CHANGELOG.md +26 -0
- package/dist/fastifyApiReference.d.ts +2 -10
- package/dist/fastifyApiReference.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +24 -47
- package/dist/js/standalone.js +21464 -20964
- package/dist/types.d.ts +6 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HtmlRenderingConfiguration } from '@scalar/api-reference/lib/html-rendering';
|
|
2
2
|
import type { onRequestHookHandler, preHandlerHookHandler } from 'fastify';
|
|
3
|
+
/**
|
|
4
|
+
* The configuration for the Scalar API Reference for Fastify
|
|
5
|
+
*/
|
|
6
|
+
export type ApiReferenceConfiguration = HtmlRenderingConfiguration;
|
|
3
7
|
export type FastifyApiReferenceOptions = {
|
|
4
8
|
/**
|
|
5
9
|
* If you’re prefixing Fastify with a path, you can set it here.
|
|
@@ -52,7 +56,7 @@ export type FastifyApiReferenceOptions = {
|
|
|
52
56
|
*
|
|
53
57
|
* Read more: https://github.com/scalar/scalar
|
|
54
58
|
*/
|
|
55
|
-
configuration?:
|
|
59
|
+
configuration?: ApiReferenceConfiguration;
|
|
56
60
|
/**
|
|
57
61
|
* The hooks for the API Reference.
|
|
58
62
|
*/
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAA;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE1E;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAA;AAElE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IAC1B;;;;;;;;;;;;;OAaG;IACH,wBAAwB,CAAC,EAAE;QACzB;;;;;;WAMG;QACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;QACnB;;;;;;WAMG;QACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;KACpB,CAAA;IACD;;;;OAIG;IACH,aAAa,CAAC,EAAE,yBAAyB,CAAA;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,+BAA+B,CAAA;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;CAC9E,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,OAAO,CAAC;IACpD,SAAS,CAAC,EAAE,oBAAoB,CAAA;IAChC,UAAU,CAAC,EAAE,qBAAqB,CAAA;CACnC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
|
-
"directory": "
|
|
11
|
+
"directory": "integrations/fastify"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"api",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"openapi",
|
|
18
18
|
"swagger"
|
|
19
19
|
],
|
|
20
|
-
"version": "1.25.
|
|
20
|
+
"version": "1.25.123",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=18"
|
|
23
23
|
},
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"module": "./dist/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"fastify-plugin": "^4.5.1",
|
|
39
|
-
"@scalar/
|
|
39
|
+
"@scalar/api-reference": "1.25.123",
|
|
40
|
+
"@scalar/types": "0.0.35"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@fastify/basic-auth": "^5.1.1",
|
|
@@ -53,9 +54,8 @@
|
|
|
53
54
|
"vitest": "^1.6.0",
|
|
54
55
|
"vue": "^3.5.12",
|
|
55
56
|
"yaml": "^2.4.5",
|
|
56
|
-
"@scalar/
|
|
57
|
-
"@scalar/build-tooling": "0.1.
|
|
58
|
-
"@scalar/openapi-parser": "0.10.8"
|
|
57
|
+
"@scalar/openapi-parser": "0.10.9",
|
|
58
|
+
"@scalar/build-tooling": "0.1.15"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "scalar-build-vite",
|