Update Types
This commit is contained in:
@@ -37,7 +37,7 @@ const decrypt = ({ encryptedString, encryptionKey, encryptionSalt }) => {
|
||||
let decrypted = decipher.update(encryptedString, "hex", "utf8");
|
||||
decrypted += decipher.final("utf8");
|
||||
return decrypted;
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("Error in decrypting =>", error.message);
|
||||
return encryptedString;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ const encrypt = ({ data, encryptionKey, encryptionSalt }) => {
|
||||
let encrypted = cipher.update(data, "utf8", "hex");
|
||||
encrypted += cipher.final("hex");
|
||||
return encrypted;
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("Error in encrypting =>", error.message);
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user