@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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
|