👷 ci(build): add SonarQube scan to build workflow
- introduce SonarQube scanning step for code quality analysis - update workflow dependencies and execution order 🐛 fix(auth): improve error handling and code formatting - remove unused imports and fix code indentation - enhance error handling with improved catch blocks 💄 style(general): standardize code formatting and style consistency - update various files to ensure consistent code style - adjust indentation and whitespace for readability
This commit is contained in:
parent
0e5303da62
commit
d40a577f47
7 changed files with 95 additions and 62 deletions
|
|
@ -12,10 +12,10 @@ function onRawSIGINT(fn) {
|
|||
}
|
||||
});
|
||||
}
|
||||
console.log(1)
|
||||
console.log(1);
|
||||
onRawSIGINT(() => {
|
||||
console.log('raw'); process.exit(1);
|
||||
});
|
||||
console.log(2)
|
||||
console.log(2);
|
||||
|
||||
// onRawSIGINT workaround for enquirer keeps the process from exiting here...
|
||||
|
|
|
|||
|
|
@ -7,19 +7,19 @@ import { prompt, handleSIGINT } from '../src/util.js';
|
|||
// });
|
||||
handleSIGINT();
|
||||
|
||||
function onRawSIGINT(fn) {
|
||||
const { stdin, stdout } = process;
|
||||
stdin.setRawMode(true);
|
||||
stdin.resume();
|
||||
stdin.on('data', data => {
|
||||
const key = data.toString('utf-8');
|
||||
if (key === '\u0003') { // ctrl + c
|
||||
fn();
|
||||
} else {
|
||||
stdout.write(key);
|
||||
}
|
||||
});
|
||||
}
|
||||
// function onRawSIGINT(fn) {
|
||||
// const { stdin, stdout } = process;
|
||||
// stdin.setRawMode(true);
|
||||
// stdin.resume();
|
||||
// stdin.on('data', data => {
|
||||
// const key = data.toString('utf-8');
|
||||
// if (key === '\u0003') { // ctrl + c
|
||||
// fn();
|
||||
// } else {
|
||||
// stdout.write(key);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// onRawSIGINT(() => {
|
||||
// console.log('raw'); process.exit(1);
|
||||
// });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue