Update index.ts

This commit is contained in:
Romaric Mourgues
2023-04-24 19:15:31 +02:00
committed by GitHub
parent 553278ecf9
commit dfcbc6060f
+1 -1
View File
@@ -50,6 +50,6 @@ export function encrypt(
encryptionKey: any,
options: { disableSalts?: boolean } = {},
): CryptoResult {
if (!encryptionKey) return ˋ${value}`;
if (!encryptionKey) return { data:ˋ${value}`, done: true };
return v2.encrypt(value, encryptionKey, options);
}