From 2e2895a4bd0f4d3a8f8039effc44b52a8cdadfee Mon Sep 17 00:00:00 2001 From: Tben Date: Mon, 7 Aug 2023 09:48:19 +0100 Subject: [PATCH] Type Checking --- package.json | 2 +- users/reauth-user.js | 2 +- users/user-auth.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 0fab135..d2d8ede 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.2.8", + "version": "1.2.9", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/reauth-user.js b/users/reauth-user.js index ece21db..a693a9a 100644 --- a/users/reauth-user.js +++ b/users/reauth-user.js @@ -37,7 +37,7 @@ const userAuth = require("./user-auth"); * @param {String} params.database - Target Database * @param {http.ServerResponse} params.response - Http response object * @param {http.IncomingMessage} params.request - Http request object - * @param {string} params.level - Authentication level + * @param {*} params.level - Authentication level * @param {String} params.encryptionKey - Encryption Key * @param {String} params.encryptionSalt - Encryption Salt * diff --git a/users/user-auth.js b/users/user-auth.js index bb5f192..a47a557 100644 --- a/users/user-auth.js +++ b/users/user-auth.js @@ -31,10 +31,10 @@ const parseCookies = require("../utils/functions/parseCookies"); * * @param {Object} params - Arg * @param {http.IncomingMessage} params.request - Http request object - * @param {String} params.encryptionKey - Encryption Key - * @param {String} params.encryptionSalt - Encryption Salt - * @param {String} params.level - Optional. "Deep" value indicates an extra layer of security - * @param {String} params.database - Database Name + * @param {string} params.encryptionKey - Encryption Key + * @param {string} params.encryptionSalt - Encryption Salt + * @param {("deep" | "normal")?} [params.level] - Optional. "Deep" value indicates an extra layer of security + * @param {string} params.database - Database Name * * @returns { AuthenticatedUserObject } */