You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -238,7 +217,7 @@ export class ClientEncryption implements StateMachineExecutable {
238
217
}
239
218
);
240
219
});
241
-
});
220
+
})();
242
221
}
243
222
244
223
/**
@@ -590,21 +569,7 @@ export class ClientEncryption implements StateMachineExecutable {
590
569
*
591
570
* @param value - The value that you wish to serialize. Must be of a type that can be serialized into BSON
592
571
* @param options -
593
-
* @param callback - Optional callback to invoke when value is encrypted
594
-
* @returns If no callback is provided, returns a Promise that either resolves with the encrypted value, or rejects with an error. If a callback is provided, returns nothing.
@@ -661,16 +622,7 @@ export class ClientEncryption implements StateMachineExecutable {
661
622
* Explicitly decrypt a provided encrypted value
662
623
*
663
624
* @param value - An encrypted value
664
-
* @param callback - Optional callback to invoke when value is decrypted
665
-
* @returns If no callback is provided, returns a Promise that either resolves with the decrypted value, or rejects with an error. If a callback is provided, returns nothing.
666
-
*
667
-
* ```ts
668
-
* @example
669
-
* // Decrypting value with callback API
670
-
* function decryptMyValue(value, callback) {
671
-
* clientEncryption.decrypt(value, callback);
672
-
* }
673
-
* ```
625
+
* @returns a Promise that either resolves with the decrypted value, or rejects with an error
674
626
*
675
627
* @example
676
628
* ```ts
@@ -680,7 +632,7 @@ export class ClientEncryption implements StateMachineExecutable {
0 commit comments