()
| 112 | } |
| 113 | |
| 114 | static checkForMongoCrypt(): void { |
| 115 | const mongodbClientEncryption = getMongoDBClientEncryption(); |
| 116 | if (class="st">'kModuleError' in mongodbClientEncryption) { |
| 117 | throw new MongoMissingDependencyError( |
| 118 | class="st">'Auto-encryption requested, but the module is not installed. ' + |
| 119 | class="st">'Please add `mongodb-client-encryption` as a dependency of your project', |
| 120 | { |
| 121 | cause: mongodbClientEncryption[class="st">'kModuleError'], |
| 122 | dependencyName: class="st">'mongodb-client-encryption' |
| 123 | } |
| 124 | ); |
| 125 | } |
| 126 | } |
| 127 | } |
no test coverage detected