zudoku 0.30.0 → 0.30.1
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/dist/lib/plugins/openapi/index.js +2 -2
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/vite/prerender/prerender.d.ts +1 -1
- package/dist/vite/prerender/prerender.js +14 -16
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +6 -4
- package/dist/vite/prerender/worker.js +13 -19
- package/dist/vite/prerender/worker.js.map +1 -1
- package/lib/{OperationList-Ej-q1c16.js → OperationList-CnYOgwBj.js} +2 -2
- package/lib/{OperationList-Ej-q1c16.js.map → OperationList-CnYOgwBj.js.map} +1 -1
- package/lib/{index-CL0kr7nH.js → index-CnKeVT2S.js} +5 -5
- package/lib/{index-CL0kr7nH.js.map → index-CnKeVT2S.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/lib/plugins/openapi/index.tsx +2 -2
package/package.json
CHANGED
|
@@ -226,7 +226,7 @@ export const openApiPlugin = (config: OpenApiPluginOptions): ZudokuPlugin => {
|
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
getRoutes: () => {
|
|
229
|
-
const versionsInPath = [null, ...versions];
|
|
229
|
+
const versionsInPath = versions.length > 1 ? [null, ...versions] : [null];
|
|
230
230
|
|
|
231
231
|
const tagPages = (config.tagPages ?? []).map((tag) => ({
|
|
232
232
|
tag,
|
|
@@ -234,7 +234,7 @@ export const openApiPlugin = (config: OpenApiPluginOptions): ZudokuPlugin => {
|
|
|
234
234
|
}));
|
|
235
235
|
|
|
236
236
|
return versionsInPath.map((version) => {
|
|
237
|
-
const versionPath = joinUrl(basePath, version
|
|
237
|
+
const versionPath = joinUrl(basePath, version);
|
|
238
238
|
|
|
239
239
|
return {
|
|
240
240
|
path: versionPath,
|