chore: lint

This commit is contained in:
coderaiser 2024-03-21 08:46:12 +02:00
parent fcce26d4e1
commit 1bef0d4381
13 changed files with 54 additions and 61 deletions

View file

@ -153,7 +153,7 @@ function listen(manage, sock, auth) {
.on('connection', (socket) => {
if (!manage('auth'))
return connection(manage, socket);
const reject = () => socket.emit('reject');
socket.on('auth', auth(connectionWraped(manage, socket), reject));
});

View file

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

View file

@ -84,9 +84,9 @@ function getError(error, source) {
source,
highlightCode: false,
})}</pre>\`);
e.code = 'frame';
throw e;
`;
}