docusaurus-plugin-openapi-docs 0.0.0-1159 → 0.0.0-1160

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.
@@ -83,9 +83,8 @@ function groupByTags(items, sidebarOptions, options, tags, docPath, tagGroupKey)
83
83
  }
84
84
  // Extract base path from outputDir, handling cases where docPath may not be in outputDir
85
85
  const getBasePathFromOutput = (output, doc) => {
86
- var _a, _b;
87
- if (doc && output.includes(doc)) {
88
- return (_b = (_a = output.split(doc)[1]) === null || _a === void 0 ? void 0 : _a.replace(/^\/+/g, "")) !== null && _b !== void 0 ? _b : "";
86
+ if (doc && output.startsWith(doc + "/")) {
87
+ return output.substring((doc + "/").length);
89
88
  }
90
89
  const slashIndex = output.indexOf("/", 1);
91
90
  return slashIndex === -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-1159",
4
+ "version": "0.0.0-1160",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -65,5 +65,5 @@
65
65
  "engines": {
66
66
  "node": ">=14"
67
67
  },
68
- "gitHead": "dd28b8fc4741bbdccfe9d941e248b7dbef0924e6"
68
+ "gitHead": "9590f36ccddb212cb31943e14654c4a9a6884ec5"
69
69
  }
@@ -131,8 +131,8 @@ function groupByTags(
131
131
  output: string,
132
132
  doc: string | undefined
133
133
  ): string => {
134
- if (doc && output.includes(doc)) {
135
- return output.split(doc)[1]?.replace(/^\/+/g, "") ?? "";
134
+ if (doc && output.startsWith(doc + "/")) {
135
+ return output.substring((doc + "/").length);
136
136
  }
137
137
  const slashIndex = output.indexOf("/", 1);
138
138
  return slashIndex === -1