MCPcopy
hub / github.com/mongodb/node-mongodb-native / checkForMongoCrypt

Method checkForMongoCrypt

src/encrypter.ts:114–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

parseOptionsFunction · 0.80

Calls 1

Tested by

no test coverage detected