From 376f344f2f14cc9260e18e1a8c79e3f950e102f6 Mon Sep 17 00:00:00 2001
From: mohamad khawam <khawammohamad99@gmail.com>
Date: Tue, 27 Feb 2024 16:24:06 -0500
Subject: [PATCH] using only 16 and above

---
 .github/workflows/node.js.yml     | 41 +++++++++++++++----------------
 src/modules/util/checkPassword.ts |  2 +-
 2 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index eb4d9d5..93d5688 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -4,28 +4,27 @@
 name: Node.js CI
 
 on:
-  push:
-    branches: [ "main" ]
-  pull_request:
-    branches: [ "main" ]
+    push:
+        branches: ["main"]
+    pull_request:
+        branches: ["main"]
 
 jobs:
-  build:
+    build:
+        runs-on: ubuntu-latest
 
-    runs-on: ubuntu-latest
+        strategy:
+            matrix:
+                node-version: [16.x, 18.x, 20.x]
+                # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
 
-    strategy:
-      matrix:
-        node-version: [14.x, 16.x, 18.x]
-        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
-
-    steps:
-    - uses: actions/checkout@v3
-    - name: Use Node.js ${{ matrix.node-version }}
-      uses: actions/setup-node@v3
-      with:
-        node-version: ${{ matrix.node-version }}
-        cache: 'npm'
-    - run: npm ci
-    - run: npm run build --if-present
-    - run: npm test
+        steps:
+            - uses: actions/checkout@v3
+            - name: Use Node.js ${{ matrix.node-version }}
+              uses: actions/setup-node@v3
+              with:
+                  node-version: ${{ matrix.node-version }}
+                  cache: "npm"
+            - run: npm ci
+            - run: npm run build --if-present
+            - run: npm test
diff --git a/src/modules/util/checkPassword.ts b/src/modules/util/checkPassword.ts
index 6d553b5..fbb45e2 100644
--- a/src/modules/util/checkPassword.ts
+++ b/src/modules/util/checkPassword.ts
@@ -17,7 +17,7 @@ async function checkPassword(force = false): Promise<void> {
             {
                 name: "master_password",
                 type: "input",
-                validate: function (value) {
+                validate: function (value: string) {
                     if (value.length > 8) {
                         return true;
                     }