chore: cloudcmd: actions: lint ☘️

This commit is contained in:
coderaiser 2025-03-29 17:32:46 +00:00
parent 9f52ed795d
commit 84c6935ae4
7 changed files with 73 additions and 72 deletions

View file

@ -6,22 +6,22 @@ const repl = require('node:repl');
module.exports = net
.createServer((socket) => {
const {pid} = process;
const addr = socket.remoteAddress;
const port = socket.remotePort;
const r = repl.start({
prompt: `[${pid} ${addr}:${port}>`,
input: socket,
output: socket,
terminal: true,
useGlobal: false,
});
r.on('exit', () => {
socket.end();
});
r.context.socket = socket;
})
const {pid} = process;
const addr = socket.remoteAddress;
const port = socket.remotePort;
const r = repl.start({
prompt: `[${pid} ${addr}:${port}>`,
input: socket,
output: socket,
terminal: true,
useGlobal: false,
});
r.on('exit', () => {
socket.end();
});
r.context.socket = socket;
})
.listen(1337);

View file

@ -11,9 +11,9 @@ module.exports = (config) => {
const data = Object
.keys(config)
.map((name) => [
name,
config[name],
]);
name,
config[name],
]);
if (!data.length)
return '';

View file

@ -80,10 +80,10 @@ async function onGET({req, res, menuName, readFile}) {
function getError(error, source) {
return montag`
const e = Error(\`<pre>${codeframe({
error,
source,
highlightCode: false,
})}</pre>\`);
error,
source,
highlightCode: false,
})}</pre>\`);
e.code = 'frame';