* Update validate-connection.ts

* Update index.ts

* Update package.json

* Update example.ts

* Update package.json

---------

Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Kizuno18
2024-04-28 08:10:34 -03:00
committed by GitHub
parent 8c61f6719f
commit 3ce0ccb3d8
2 changed files with 2 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ const startSock = async() => {
async function askForOTP() {
if (!registration.method) {
await delay(2000)
let code = await question('How would you like to receive the one time code for registration? "sms" or "voice"\n')
code = code.replace(/["']/g, '').trim().toLowerCase()
if(code !== 'sms' && code !== 'voice') {

View File

@@ -33,6 +33,7 @@
"changelog:preview": "conventional-changelog -p angular -u",
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"example": "node --inspect -r ts-node/register Example/example.ts",
"example:mobile": "node --inspect -r ts-node/register Example/example.ts --mobile",
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",