({ name, options, values: [value] })
| 653 | auth: { |
| 654 | target: 'credentials', |
| 655 | transform({ name, options, values: [value] }): MongoCredentials { |
| 656 | if (!isRecord(value, ['username', 'password'] as const)) { |
| 657 | throw new MongoParseError( |
| 658 | `${name} must be an object with 'username' and 'password' properties` |
| 659 | ); |
| 660 | } |
| 661 | return MongoCredentials.merge(options.credentials, { |
| 662 | username: value.username, |
| 663 | password: value.password |
| 664 | }); |
| 665 | } |
| 666 | }, |
| 667 | authMechanism: { |
| 668 | target: 'credentials', |
no test coverage detected