isite 2025.9.3 → 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 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
 
@@ -34,7 +34,7 @@ exports = module.exports = function init(____0) {
34
34
  if (!Object.prototype.like) {
35
35
  Object.defineProperty(Object.prototype, 'like', {
36
36
  value: function (name) {
37
- if (!name) {
37
+ if (typeof name !== 'string') {
38
38
  return !1;
39
39
  }
40
40
  if (name.indexOf('*') !== -1) {
@@ -53,6 +53,9 @@ exports = module.exports = function init(____0) {
53
53
  if (!Object.prototype.contains) {
54
54
  Object.defineProperty(Object.prototype, 'contains', {
55
55
  value: function (name) {
56
+ if (typeof name !== 'string') {
57
+ return !1;
58
+ }
56
59
  return name.split('|').some((n) => n && ____0.toJson(this).test('^.*' + ____0.escapeRegExp(n) + '.*$', 'gium'));
57
60
  },
58
61
  });
@@ -60,6 +63,9 @@ exports = module.exports = function init(____0) {
60
63
  if (!Object.prototype.contain) {
61
64
  Object.defineProperty(Object.prototype, 'contain', {
62
65
  value: function (name) {
66
+ if (typeof name !== 'string') {
67
+ return !1;
68
+ }
63
69
  return name.split('|').some((n) => n && ____0.toJson(this).test('^.*' + ____0.escapeRegExp(n) + '.*$', 'gium'));
64
70
  },
65
71
  });
@@ -100,11 +106,17 @@ exports = module.exports = function init(____0) {
100
106
  }
101
107
  if (!Array.prototype.contains) {
102
108
  Array.prototype.contains = function (name = '') {
109
+ if (typeof name !== 'string') {
110
+ return !1;
111
+ }
103
112
  return name.split('|').some((n) => n && ____0.toJson(this).test('^.*' + ____0.escapeRegExp(n) + '.*$', 'gium'));
104
113
  };
105
114
  }
106
115
  if (!Array.prototype.contain) {
107
116
  Array.prototype.contain = function (name = '') {
117
+ if (typeof name !== 'string') {
118
+ return !1;
119
+ }
108
120
  return name.split('|').some((n) => n && ____0.toJson(this).test('^.*' + ____0.escapeRegExp(n) + '.*$', 'gium'));
109
121
  };
110
122
  }
@@ -142,11 +154,17 @@ exports = module.exports = function init(____0) {
142
154
 
143
155
  if (!String.prototype.contains) {
144
156
  String.prototype.contains = function (name = '') {
157
+ if (typeof name !== 'string') {
158
+ return !1;
159
+ }
145
160
  return name.split('|').some((n) => n && this.test('^.*' + ____0.escapeRegExp(n) + '.*$', 'gium'));
146
161
  };
147
162
  }
148
163
  if (!String.prototype.contain) {
149
164
  String.prototype.contain = function (name = '') {
165
+ if (typeof name !== 'string') {
166
+ return !1;
167
+ }
150
168
  return name.split('|').some((n) => n && this.test('^.*' + ____0.escapeRegExp(n) + '.*$', 'gium'));
151
169
  };
152
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2025.09.03",
3
+ "version": "2025.10.02",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {