speedly 2.0.18 → 2.0.19
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.
|
@@ -214,8 +214,9 @@ function RouterFetcher(baseDir) {
|
|
|
214
214
|
let paths = {};
|
|
215
215
|
const tags = [];
|
|
216
216
|
modules.forEach((routerPath) => {
|
|
217
|
-
const mf = path_1.default.relative(baseDir, routerPath).
|
|
218
|
-
"
|
|
217
|
+
const mf = [...new Set(path_1.default.relative(baseDir, routerPath).split("\\"))]
|
|
218
|
+
.join("/")
|
|
219
|
+
.split(".")[0] || "default";
|
|
219
220
|
try {
|
|
220
221
|
const router = require(routerPath);
|
|
221
222
|
paths = { ...paths, ...routeAnalyzer(router, mf) };
|
|
@@ -214,8 +214,9 @@ function RouterFetcher(baseDir) {
|
|
|
214
214
|
let paths = {};
|
|
215
215
|
const tags = [];
|
|
216
216
|
modules.forEach((routerPath) => {
|
|
217
|
-
const mf = path_1.default.relative(baseDir, routerPath).
|
|
218
|
-
"
|
|
217
|
+
const mf = [...new Set(path_1.default.relative(baseDir, routerPath).split("\\"))]
|
|
218
|
+
.join("/")
|
|
219
|
+
.split(".")[0] || "default";
|
|
219
220
|
try {
|
|
220
221
|
const router = require(routerPath);
|
|
221
222
|
paths = { ...paths, ...routeAnalyzer(router, mf) };
|