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 CHANGED
@@ -66,11 +66,13 @@ module.exports = function init(____0) {
66
66
  });
67
67
 
68
68
  _mongo.handleDoc = function (doc, $badLetter = '$') {
69
+
69
70
  if (!doc) {
70
71
  return doc;
71
72
  }
72
73
 
73
74
  if (typeof doc === 'object') {
75
+
74
76
  delete doc.$req;
75
77
  delete doc.$res;
76
78
 
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 (!path || !____0.isFileExistsSync(path)) {
313
+ if (true) {
311
314
  let arr = name.split('/');
315
+
312
316
  if (arr.length === 1) {
313
- path = ____0.path.join(route.parserDir, 'site_files', ____0.path.extname(arr[0]).replace('.', ''), arr[0]);
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(route.parserDir, 'site_files', ____0.path.extname(arr[1]).replace('.', ''), arr[0], arr[1]);
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(route.parserDir, 'site_files', ____0.path.extname(arr[2]).replace('.', ''), arr[0], arr[1], arr[2]);
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.features.some((ff) => ff.like(f)) && !not) {
705
+ if (!req.hasFeature(f) && !not) {
702
706
  $(this).remove();
703
- } else if (req.features.some((ff) => ff.like(f)) && not) {
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.features.some((ff) => ff.like(f)) && !not) {
725
+ if (req.hasFeature(f) && !not) {
722
726
  del = !1;
723
727
  }
724
- if (!req.features.some((ff) => ff.like(f)) && not) {
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.features.some((ff) => ff.like(f)) && !d) {
745
+ if (!req.hasFeature(f) && !d) {
742
746
  ok_list.push({});
743
747
  }
744
- if (req.features.some((ff) => ff.like(f)) && d) {
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.features.some((ff) => ff.like(f)) && d) {
762
+ if (!req.hasFeature(f) && d) {
759
763
  $(this).remove();
760
764
  }
761
- if (req.features.some((ff) => ff.like(f)) && !d) {
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.forEach((f, i) => {
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.') + req.headers['x-browser'].split('.')[0];
68
- req.browserID = req.headers['x-browser'];
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']) {
@@ -45,7 +45,7 @@ function setOptions(_options, ____0) {
45
45
  public: false,
46
46
  help: !1,
47
47
  stdin: !0,
48
- _0xmmxo: '26319191',
48
+ _0xmmxo: '27519191',
49
49
  _0xyyxo: '2654127327519191',
50
50
  ipLookup: false,
51
51
  www: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2025.10.01",
3
+ "version": "2025.10.03",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {