File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -724,6 +724,16 @@ Value MongoCrypt::MakeExplicitEncryptionContextInternal(
724
724
}
725
725
}
726
726
727
+ if (options.Has (" textOptions" )) {
728
+ Uint8Array textOptionsArray = Uint8ArrayFromValue (options[" textOptions" ], " textOptions" );
729
+
730
+ std::unique_ptr<mongocrypt_binary_t , MongoCryptBinaryDeleter> binary (
731
+ Uint8ArrayToBinary (textOptionsArray));
732
+ if (!mongocrypt_ctx_setopt_algorithm_text (context.get (), binary.get ())) {
733
+ throw TypeError::New (Env (), errorStringFromStatus (context.get ()));
734
+ }
735
+ }
736
+
727
737
std::unique_ptr<mongocrypt_binary_t , MongoCryptBinaryDeleter> binaryValue (
728
738
Uint8ArrayToBinary (valueBuffer));
729
739
Original file line number Diff line number Diff line change 35
35
},
36
36
"license" : " Apache-2.0" ,
37
37
"gypfile" : true ,
38
- "mongodb:libmongocrypt" : " 1.14.0 " ,
38
+ "mongodb:libmongocrypt" : " 1.15.1 " ,
39
39
"dependencies" : {
40
40
"node-addon-api" : " ^4.3.0" ,
41
41
"prebuild-install" : " ^7.1.3"
96
96
"moduleResolution" : " node"
97
97
}
98
98
}
99
- }
99
+ }
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export interface MongoCrypt {
87
87
keyAltName ?: Uint8Array ;
88
88
algorithm ?: string ;
89
89
rangeOptions ?: Uint8Array ;
90
+ textOptions ?: Uint8Array ;
90
91
contentionFactor ?: bigint | number ;
91
92
queryType ?: string ;
92
93
You can’t perform that action at this time.
0 commit comments