Moved register and login to user folder. Setup basic login, register and JWT

This commit is contained in:
2024-10-08 20:35:38 +00:00
parent c634b8e73f
commit eddd1d8ef7
242 changed files with 3628 additions and 7542 deletions

16
node_modules/strip-ansi/index.js generated vendored
View File

@ -1,14 +1,4 @@
import ansiRegex from 'ansi-regex';
'use strict';
const ansiRegex = require('ansi-regex');
const regex = ansiRegex();
export default function stripAnsi(string) {
if (typeof string !== 'string') {
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
}
// Even though the regex is global, we don't need to reset the `.lastIndex`
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
// and doing it manually has a performance penalty.
return string.replace(regex, '');
}
module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;