Skip to content

Commit 55666ba

Browse files
committed
fix
1 parent 2fcba48 commit 55666ba

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export function encryptTextSymmetrically(key: CryptoKey, text: string, urlSafe?:
3636
* @param {boolean} [urlSafe] - The encrypted values default to `base64` alphabet; this property enables the `base64url` alphabet. Enabled by default.
3737
* @param {TextDecoder} [textDecoder] - If you have an instance of a `TextDecoder`, you can reuse it.
3838
* @returns {Promise<string>} The value decrypted.
39-
* @throws {TypeError} Thrown if `value` is not a string.
40-
* @throws {SyntaxError} Thrown if `value` contains characters outside Base64 alphabet.
39+
* @throws {TypeError} Thrown if `encryptedText` is not a string.
40+
* @throws {SyntaxError} Thrown if `encryptedText` contains characters outside Base64 alphabet.
4141
* @throws {DOMException} Raised when:
4242
* - The provided key is not valid.
4343
* - The operation failed.
@@ -86,8 +86,8 @@ export class SingleCryptText {
8686
* @async
8787
* @param {string} encryptedText - Encrypted value to be decrypted.
8888
* @returns {Promise<string>} The value decrypted.
89-
* @throws {TypeError} Thrown if `value` is not a string.
90-
* @throws {SyntaxError} Thrown if `value` contains characters outside Base64 alphabet.
89+
* @throws {TypeError} Thrown if `encryptedText` is not a string.
90+
* @throws {SyntaxError} Thrown if `encryptedText` contains characters outside Base64 alphabet.
9191
* @throws {DOMException} Raised when:
9292
* - The provided key is not valid.
9393
* - The operation failed.

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export async function encryptTextSymmetrically(
9696
* @param {boolean} [urlSafe] - The encrypted values default to `base64` alphabet; this property enables the `base64url` alphabet. Enabled by default.
9797
* @param {TextDecoder} [textDecoder] - If you have an instance of a `TextDecoder`, you can reuse it.
9898
* @returns {Promise<string>} The value decrypted.
99-
* @throws {TypeError} Thrown if `value` is not a string.
100-
* @throws {SyntaxError} Thrown if `value` contains characters outside Base64 alphabet.
99+
* @throws {TypeError} Thrown if `encryptedText` is not a string.
100+
* @throws {SyntaxError} Thrown if `encryptedText` contains characters outside Base64 alphabet.
101101
* @throws {DOMException} Raised when:
102102
* - The provided key is not valid.
103103
* - The operation failed.
@@ -206,8 +206,8 @@ export class SingleCryptText {
206206
* @async
207207
* @param {string} encryptedText - Encrypted value to be decrypted.
208208
* @returns {Promise<string>} The value decrypted.
209-
* @throws {TypeError} Thrown if `value` is not a string.
210-
* @throws {SyntaxError} Thrown if `value` contains characters outside Base64 alphabet.
209+
* @throws {TypeError} Thrown if `encryptedText` is not a string.
210+
* @throws {SyntaxError} Thrown if `encryptedText` contains characters outside Base64 alphabet.
211211
* @throws {DOMException} Raised when:
212212
* - The provided key is not valid.
213213
* - The operation failed.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "singlecrypt-text",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"author": "Stefan Samson <ss42701@outlook.com> (https://ssbit01.github.io/)",
55
"repository": "github:SSbit01/singlecrypt-text",
66
"main": "index.js",

0 commit comments

Comments
 (0)