isite 2025.10.1 → 2025.10.2
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/lib/parser.js +9 -5
- package/package.json +1 -1
package/lib/parser.js
CHANGED
|
@@ -81,7 +81,6 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
85
84
|
return out ?? '';
|
|
86
85
|
}
|
|
87
86
|
|
|
@@ -306,15 +305,20 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
306
305
|
hide = true;
|
|
307
306
|
name = name.replace('#', '');
|
|
308
307
|
}
|
|
308
|
+
let dir = route.parserDir;
|
|
309
|
+
if (dir.contain('site_files')) {
|
|
310
|
+
dir = ____0.path.dirname(dir);
|
|
311
|
+
}
|
|
309
312
|
|
|
310
|
-
if (
|
|
313
|
+
if (true) {
|
|
311
314
|
let arr = name.split('/');
|
|
315
|
+
|
|
312
316
|
if (arr.length === 1) {
|
|
313
|
-
path = ____0.path.join(
|
|
317
|
+
path = ____0.path.join(dir, 'site_files', ____0.path.extname(arr[0]).replace('.', ''), arr[0]);
|
|
314
318
|
} else if (arr.length === 2) {
|
|
315
|
-
path = ____0.path.join(
|
|
319
|
+
path = ____0.path.join(dir, 'site_files', ____0.path.extname(arr[1]).replace('.', ''), arr[0], arr[1]);
|
|
316
320
|
} else if (arr.length === 3) {
|
|
317
|
-
path = ____0.path.join(
|
|
321
|
+
path = ____0.path.join(dir, 'site_files', ____0.path.extname(arr[2]).replace('.', ''), arr[0], arr[1], arr[2]);
|
|
318
322
|
}
|
|
319
323
|
}
|
|
320
324
|
|