mirror of
https://github.com/sern-handler/cli
synced 2026-06-21 23:32:21 +00:00
style: prettier things
This commit is contained in:
@@ -25,7 +25,7 @@ export async function init({ flags }) {
|
||||
}
|
||||
|
||||
const node = await execa('node', ['--version']);
|
||||
if ((/v1(([0-6]\.[2-9])|([0-5]\.[0-9]))/gm).test(node.stdout)) {
|
||||
if (/v1(([0-6]\.[2-9])|([0-5]\.[0-9]))/gm.test(node.stdout)) {
|
||||
console.log(
|
||||
yellowBright(
|
||||
`\nYou are using Node ${node.stdout}\nPlease upgrade to Node 16.10.x or higher!\n`
|
||||
|
||||
@@ -68,10 +68,12 @@ export const token = {
|
||||
type: 'password',
|
||||
validate: (/** @type {string} */ token) => {
|
||||
if (token === 'no') return true;
|
||||
return (/(?<mfaToken>mfa\.[a-z0-9_-]{20,})|(?<basicToken>[a-z0-9_-]{23,28}\.[a-z0-9_-]{6,7}\.[a-z0-9_-]{27})/i).test(token)
|
||||
return /(?<mfaToken>mfa\.[a-z0-9_-]{20,})|(?<basicToken>[a-z0-9_-]{23,28}\.[a-z0-9_-]{6,7}\.[a-z0-9_-]{27})/i.test(
|
||||
token
|
||||
)
|
||||
? true
|
||||
: 'Invalid token'
|
||||
}
|
||||
: 'Invalid token';
|
||||
},
|
||||
};
|
||||
|
||||
export const main_dir = {
|
||||
|
||||
Reference in New Issue
Block a user