@spikers/next-openapi-json-generator 2.0.2 → 2.0.3

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/index.cjs CHANGED
@@ -280,7 +280,7 @@ function verifyOptions(include, exclude) {
280
280
  var import_node_path3 = __toESM(require("path"), 1);
281
281
  function getRoutePathName(filePath, rootPath) {
282
282
  const dirName = import_node_path3.default.dirname(filePath);
283
- return "/" + import_node_path3.default.relative(rootPath, dirName).replaceAll("[", "{").replaceAll("]", "}").replaceAll("\\", "/");
283
+ return "/" + import_node_path3.default.relative(rootPath, dirName).replaceAll("[", "{").replaceAll("]", "}").replaceAll("\\", "/").replaceAll(/\([^)]*\)/g, "");
284
284
  }
285
285
 
286
286
  // src/utils/deepEqual.ts
package/dist/index.js CHANGED
@@ -251,7 +251,7 @@ function verifyOptions(include, exclude) {
251
251
  import path3 from "path";
252
252
  function getRoutePathName(filePath, rootPath) {
253
253
  const dirName = path3.dirname(filePath);
254
- return "/" + path3.relative(rootPath, dirName).replaceAll("[", "{").replaceAll("]", "}").replaceAll("\\", "/");
254
+ return "/" + path3.relative(rootPath, dirName).replaceAll("[", "{").replaceAll("]", "}").replaceAll("\\", "/").replaceAll(/\([^)]*\)/g, "");
255
255
  }
256
256
 
257
257
  // src/utils/deepEqual.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spikers/next-openapi-json-generator",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "a Next.js plugin to generate OpenAPI documentation from route handlers",
5
5
  "keywords": [
6
6
  "next.js",