isite 2025.8.1 → 2025.8.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/index.js CHANGED
@@ -44,6 +44,9 @@ module.exports = function init(options) {
44
44
  args[1] = args[1] || {};
45
45
  if (args[1].body && typeof args[1].body == 'object') {
46
46
  args[1].body = JSON.stringify(args[1].body);
47
+ } else if (args[1].data && typeof args[1].data == 'object') {
48
+ args[1].body = JSON.stringify(args[1].data);
49
+ delete args[1].data;
47
50
  }
48
51
  args[1].agent =
49
52
  args[1].agent ||
@@ -63,6 +63,16 @@ exports = module.exports = function init(____0) {
63
63
  },
64
64
  });
65
65
  }
66
+ if (!Object.prototype.contain) {
67
+ Object.defineProperty(Object.prototype, 'contain', {
68
+ value: function (name) {
69
+ if (!name) {
70
+ return !1;
71
+ }
72
+ return this.test('^.*' + escape(name) + '.*$', 'gium');
73
+ },
74
+ });
75
+ }
66
76
  }
67
77
 
68
78
  if (____0.options.proto.array) {
@@ -82,7 +92,7 @@ exports = module.exports = function init(____0) {
82
92
  }
83
93
  if (!Array.prototype.like) {
84
94
  Array.prototype.like = function (name) {
85
- if (typeof name !== "string") {
95
+ if (typeof name !== 'string') {
86
96
  return !1;
87
97
  }
88
98
  if (name.indexOf('*') !== -1) {
@@ -99,7 +109,15 @@ exports = module.exports = function init(____0) {
99
109
  }
100
110
  if (!Array.prototype.contains) {
101
111
  Array.prototype.contains = function (name) {
102
- if (typeof name !== "string") {
112
+ if (typeof name !== 'string') {
113
+ return !1;
114
+ }
115
+ return this.test('^.*' + escape(name) + '.*$', 'gium');
116
+ };
117
+ }
118
+ if (!Array.prototype.contain) {
119
+ Array.prototype.contain = function (name) {
120
+ if (typeof name !== 'string') {
103
121
  return !1;
104
122
  }
105
123
  return this.test('^.*' + escape(name) + '.*$', 'gium');
@@ -119,7 +137,7 @@ exports = module.exports = function init(____0) {
119
137
 
120
138
  if (!String.prototype.like) {
121
139
  String.prototype.like = function (name) {
122
- if (typeof name !== "string") {
140
+ if (typeof name !== 'string') {
123
141
  return !1;
124
142
  }
125
143
  let r = !1;
@@ -140,7 +158,21 @@ exports = module.exports = function init(____0) {
140
158
  if (!String.prototype.contains) {
141
159
  String.prototype.contains = function (name) {
142
160
  let r = !1;
143
- if (typeof name !== "string") {
161
+ if (typeof name !== 'string') {
162
+ return r;
163
+ }
164
+ name.split('|').forEach((n) => {
165
+ if (n && this.test('^.*' + escape(n) + '.*$', 'gium')) {
166
+ r = !0;
167
+ }
168
+ });
169
+ return r;
170
+ };
171
+ }
172
+ if (!String.prototype.contain) {
173
+ String.prototype.contain = function (name) {
174
+ let r = !1;
175
+ if (typeof name !== 'string') {
144
176
  return r;
145
177
  }
146
178
  name.split('|').forEach((n) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2025.08.01",
3
+ "version": "2025.08.02",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {