@scalar/fastify-api-reference 1.25.119 → 1.25.120
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 +6 -0
- package/README.md +13 -2
- package/dist/fastifyApiReference.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -0
- package/dist/js/standalone.js +33 -31
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -19823,6 +19823,7 @@ const fastifyApiReference = fp(
|
|
|
19823
19823
|
// @ts-ignore We don’t know whether @fastify/swagger is loaded.
|
|
19824
19824
|
schema: schemaToHideRoute,
|
|
19825
19825
|
...hooks,
|
|
19826
|
+
...options.logLevel && { logLevel: options.logLevel },
|
|
19826
19827
|
async handler(_, reply) {
|
|
19827
19828
|
const spec = getLoadedSpecIfAvailable();
|
|
19828
19829
|
const filename = await getSpecFilenameSlug(spec);
|
|
@@ -19837,6 +19838,7 @@ const fastifyApiReference = fp(
|
|
|
19837
19838
|
// @ts-ignore We don’t know whether @fastify/swagger is loaded.
|
|
19838
19839
|
schema: schemaToHideRoute,
|
|
19839
19840
|
...hooks,
|
|
19841
|
+
...options.logLevel && { logLevel: options.logLevel },
|
|
19840
19842
|
async handler(_, reply) {
|
|
19841
19843
|
const spec = getLoadedSpecIfAvailable();
|
|
19842
19844
|
const filename = await getSpecFilenameSlug(spec);
|
|
@@ -19852,6 +19854,7 @@ const fastifyApiReference = fp(
|
|
|
19852
19854
|
// @ts-ignore We don't know whether @fastify/swagger is loaded.
|
|
19853
19855
|
schema: schemaToHideRoute,
|
|
19854
19856
|
...hooks,
|
|
19857
|
+
...options.logLevel && { logLevel: options.logLevel },
|
|
19855
19858
|
handler(_, reply) {
|
|
19856
19859
|
return reply.redirect(getRoutePrefix(options.routePrefix) + "/", 302);
|
|
19857
19860
|
}
|
|
@@ -19864,6 +19867,7 @@ const fastifyApiReference = fp(
|
|
|
19864
19867
|
// @ts-ignore We don’t know whether @fastify/swagger is loaded.
|
|
19865
19868
|
schema: schemaToHideRoute,
|
|
19866
19869
|
...hooks,
|
|
19870
|
+
...options.logLevel && { logLevel: options.logLevel },
|
|
19867
19871
|
handler(_, reply) {
|
|
19868
19872
|
const currentUrl = new URL(_.url, `${_.protocol}://${_.hostname}`);
|
|
19869
19873
|
if (!currentUrl.pathname.endsWith("/")) {
|
|
@@ -19896,6 +19900,7 @@ const fastifyApiReference = fp(
|
|
|
19896
19900
|
// @ts-ignore We don’t know whether @fastify/swagger is loaded.
|
|
19897
19901
|
schema: schemaToHideRoute,
|
|
19898
19902
|
...hooks,
|
|
19903
|
+
...options.logLevel && { logLevel: options.logLevel },
|
|
19899
19904
|
handler(_, reply) {
|
|
19900
19905
|
return reply.header("Content-Type", "application/javascript; charset=utf-8").send(fileContent);
|
|
19901
19906
|
}
|