Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions addon/mongocrypt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@ MongoCrypt::MongoCrypt(const CallbackInfo& info) : ObjectWrap(info) {

mongocrypt_setopt_retry_kms(mongo_crypt(), true);

if (options.Get("enableMultipleCollinfo").ToBoolean()) {
mongocrypt_setopt_enable_multiple_collinfo(mongo_crypt());
}

// Initialize after all options are set.
if (!mongocrypt_init(mongo_crypt())) {
throw TypeError::New(Env(), errorStringFromStatus(mongo_crypt()));
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"license": "Apache-2.0",
"gypfile": true,
"mongodb:libmongocrypt": "1.12.0",
"mongodb:libmongocrypt": "67f10bfb8de69549987cc62a1d4548d7b511a7ef",
"dependencies": {
"node-addon-api": "^4.3.0",
"prebuild-install": "^7.1.3"
Expand Down Expand Up @@ -96,4 +96,4 @@
"moduleResolution": "node"
}
}
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type MongoCryptConstructorOptions = {
cryptSharedLibSearchPaths?: string[];
cryptSharedLibPath?: string;
bypassQueryAnalysis?: boolean;
enableMultipleCollinfo?: boolean;
};

export interface MongoCryptConstructor {
Expand Down
Loading