isite 2025.10.1 → 2025.10.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/lib/mongodb.js +2 -0
- package/lib/parser.js +17 -13
- package/lib/routing.js +1 -5
- package/lib/session.js +10 -2
- package/object-options/index.js +1 -1
- package/package.json +1 -1
package/lib/mongodb.js
CHANGED
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
|
|
|
@@ -698,9 +702,9 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
698
702
|
f = f.replace('!', '');
|
|
699
703
|
not = !0;
|
|
700
704
|
}
|
|
701
|
-
if (!req.
|
|
705
|
+
if (!req.hasFeature(f) && !not) {
|
|
702
706
|
$(this).remove();
|
|
703
|
-
} else if (req.
|
|
707
|
+
} else if (req.hasFeature(f) && not) {
|
|
704
708
|
$(this).remove();
|
|
705
709
|
} else {
|
|
706
710
|
$(this).removeAttr('x-feature');
|
|
@@ -718,10 +722,10 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
718
722
|
f = f.replace('!', '');
|
|
719
723
|
not = !0;
|
|
720
724
|
}
|
|
721
|
-
if (req.
|
|
725
|
+
if (req.hasFeature(f) && !not) {
|
|
722
726
|
del = !1;
|
|
723
727
|
}
|
|
724
|
-
if (!req.
|
|
728
|
+
if (!req.hasFeature(f) && not) {
|
|
725
729
|
del = !1;
|
|
726
730
|
}
|
|
727
731
|
});
|
|
@@ -738,10 +742,10 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
738
742
|
f = f.replace('!', '');
|
|
739
743
|
d = !1;
|
|
740
744
|
}
|
|
741
|
-
if (!req.
|
|
745
|
+
if (!req.hasFeature(f) && !d) {
|
|
742
746
|
ok_list.push({});
|
|
743
747
|
}
|
|
744
|
-
if (req.
|
|
748
|
+
if (req.hasFeature(f) && d) {
|
|
745
749
|
ok_list.push({});
|
|
746
750
|
}
|
|
747
751
|
});
|
|
@@ -755,10 +759,10 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
755
759
|
f = f.replace('!', '');
|
|
756
760
|
d = !1;
|
|
757
761
|
}
|
|
758
|
-
if (!req.
|
|
762
|
+
if (!req.hasFeature(f) && d) {
|
|
759
763
|
$(this).remove();
|
|
760
764
|
}
|
|
761
|
-
if (req.
|
|
765
|
+
if (req.hasFeature(f) && !d) {
|
|
762
766
|
$(this).remove();
|
|
763
767
|
}
|
|
764
768
|
}
|
package/lib/routing.js
CHANGED
|
@@ -720,11 +720,7 @@ module.exports = function init(____0) {
|
|
|
720
720
|
};
|
|
721
721
|
|
|
722
722
|
req.removeFeature = function (name) {
|
|
723
|
-
req.features.
|
|
724
|
-
if (f.like(name)) {
|
|
725
|
-
req.features.splice(i, 1);
|
|
726
|
-
}
|
|
727
|
-
});
|
|
723
|
+
req.features = req.features.filter((f) => !f.like(name));
|
|
728
724
|
};
|
|
729
725
|
|
|
730
726
|
req.getUserFinger = function () {
|
package/lib/session.js
CHANGED
|
@@ -63,9 +63,17 @@ module.exports = function init(req, res, ____0, callback) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
if (req.headers['x-browser']) {
|
|
66
|
+
|
|
67
|
+
req.browserHeader = req.headers['x-browser'];
|
|
68
|
+
req.browserName = req.browserHeader.split('.')[0];
|
|
69
|
+
req.browserID = req.browserHeader.split('.').pop();
|
|
70
|
+
req.browserUUID = req.browserHeader.split('_').pop();
|
|
71
|
+
|
|
66
72
|
req.features.push('browser.social');
|
|
67
|
-
req.features.push('browser.'
|
|
68
|
-
req.
|
|
73
|
+
req.features.push('browser.' + req.browserHeader);
|
|
74
|
+
req.features.push('browser.' + req.browserName);
|
|
75
|
+
req.features.push('browser.' + req.browserID);
|
|
76
|
+
req.features.push('browser.' + req.browserUUID);
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
if (req.headers['user-agent']) {
|
package/object-options/index.js
CHANGED