(
creds: MongoCredentials | undefined,
options: Partial<MongoCredentialsOptions>
)
| 278 | } |
| 279 | |
| 280 | static merge( |
| 281 | creds: MongoCredentials | undefined, |
| 282 | options: Partial<MongoCredentialsOptions> |
| 283 | ): MongoCredentials { |
| 284 | return new MongoCredentials({ |
| 285 | username: options.username ?? creds?.username ?? '', |
| 286 | password: options.password ?? creds?.password ?? '', |
| 287 | mechanism: options.mechanism ?? creds?.mechanism ?? AuthMechanism.MONGODB_DEFAULT, |
| 288 | mechanismProperties: options.mechanismProperties ?? creds?.mechanismProperties ?? {}, |
| 289 | source: options.source ?? options.db ?? creds?.source ?? 'admin' |
| 290 | }); |
| 291 | } |
| 292 | } |
no outgoing calls
no test coverage detected