We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f86bab commit a83dd90Copy full SHA for a83dd90
src/index.ts
@@ -4,10 +4,8 @@ export { cryptoCallbacks };
4
5
function loadBindings(): MongoCryptBindings {
6
return require(resolve(__dirname, '../build/Release/mongocrypt.node'));
7
-
8
}
9
-import bindings = require('bindings');
10
-const mc: MongoCryptBindings = bindings('mongocrypt');
+const mc: MongoCryptBindings = loadBindings();
11
12
/**
13
* The value returned by the native bindings
0 commit comments