speedly 2.0.14 → 2.0.16
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.
|
@@ -213,8 +213,8 @@ function RouterFetcher(baseDir) {
|
|
|
213
213
|
const modules = findRoutersInDir(baseDir);
|
|
214
214
|
let paths = {};
|
|
215
215
|
const tags = [];
|
|
216
|
-
modules.forEach((
|
|
217
|
-
const
|
|
216
|
+
modules.forEach((routerPath) => {
|
|
217
|
+
const mf = routerPath.split(path_1.default.sep).at(-1)?.split(".")[0] || "default";
|
|
218
218
|
try {
|
|
219
219
|
const router = require(routerPath);
|
|
220
220
|
paths = { ...paths, ...routeAnalyzer(router, mf) };
|
|
@@ -213,8 +213,8 @@ function RouterFetcher(baseDir) {
|
|
|
213
213
|
const modules = findRoutersInDir(baseDir);
|
|
214
214
|
let paths = {};
|
|
215
215
|
const tags = [];
|
|
216
|
-
modules.forEach((
|
|
217
|
-
const
|
|
216
|
+
modules.forEach((routerPath) => {
|
|
217
|
+
const mf = routerPath.split(path_1.default.sep).at(-1)?.split(".")[0] || "default";
|
|
218
218
|
try {
|
|
219
219
|
const router = require(routerPath);
|
|
220
220
|
paths = { ...paths, ...routeAnalyzer(router, mf) };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "speedly",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"import": "./dist/esm/util/index.js",
|
|
18
18
|
"require": "./dist/cjs/util/index.js"
|
|
19
19
|
},
|
|
20
|
-
"./modules
|
|
20
|
+
"./modules": {
|
|
21
21
|
"import": "./dist/esm/modules/index.js",
|
|
22
22
|
"require": "./dist/cjs/modules/index.js"
|
|
23
23
|
},
|
|
24
|
-
"./document
|
|
24
|
+
"./document": {
|
|
25
25
|
"import": "./dist/esm/document/index.js",
|
|
26
26
|
"require": "./dist/cjs/document/index.js"
|
|
27
27
|
},
|
|
28
|
-
"./model
|
|
28
|
+
"./model": {
|
|
29
29
|
"import": "./dist/esm/model/index.js",
|
|
30
30
|
"require": "./dist/cjs/model/index.js"
|
|
31
31
|
}
|