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.
@@ -5,7 +5,7 @@ import "./chunk-SYFQ2XB5-QijJrSf0.js";
5
5
  import "./hook-NIpDSpau.js";
6
6
  import "./ui/Button.js";
7
7
  import "./joinUrl-nLx9pD-Z.js";
8
- import { o as f } from "./index-CL0kr7nH.js";
8
+ import { o as f } from "./index-CnKeVT2S.js";
9
9
  export {
10
10
  f as openApiPlugin
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "type": "module",
5
5
  "homepage": "https://zudoku.dev",
6
6
  "repository": {
@@ -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 ? `/${version}` : "");
237
+ const versionPath = joinUrl(basePath, version);
238
238
 
239
239
  return {
240
240
  path: versionPath,