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

Function check

src/connection_string.ts:168–172  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

166function checkTLSOptions(allOptions: CaseInsensitiveMap): void {
167 if (!allOptions) return;
168 const check = (a: string, b: string) => {
169 if (allOptions.has(a) && allOptions.has(b)) {
170 throw new MongoAPIError(`The '${a}' option cannot be used with the '${b}' option`);
171 }
172 };
173 check('tlsInsecure', 'tlsAllowInvalidCertificates');
174 check('tlsInsecure', 'tlsAllowInvalidHostnames');
175}

Callers 1

checkTLSOptionsFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected