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 a5cd1e8 commit b010fa9Copy full SHA for b010fa9
src/index.ts
@@ -107,7 +107,10 @@ export const MongoCrypt: MongoCryptConstructor = class MongoCrypt extends mc.Mon
107
constructor(options: MongoCryptConstructorOptions) {
108
// Pass in JS cryptoCallbacks implementation by default.
109
// If the Node.js openssl version is supported this will be ignored.
110
- super({ cryptoCallbacks, ...options });
+ super(
111
+ // @ts-expect-error: intentionally passing in an argument that will throw to preserve existing behavior
112
+ options == null || typeof options !== 'object' ? undefined : { cryptoCallbacks, ...options }
113
+ );
114
}
115
};
116
0 commit comments