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

Function getUIntFromOptions

src/connection_string.ts:196–202  ·  view source on GitHub ↗
(name: string, value: unknown)

Source from the content-addressed store, hash-verified

194}
195
196function getUIntFromOptions(name: string, value: unknown): number {
197 const parsedValue = getIntFromOptions(name, value);
198 if (parsedValue < 0) {
199 throw new MongoParseError(`${name} can only be a positive int value, got: ${value}`);
200 }
201 return parsedValue;
202}
203
204function* entriesFromString(value: string): Generator<[string, string]> {
205 if (value === '') {

Callers 2

setOptionFunction · 0.85
transformFunction · 0.85

Calls 1

getIntFromOptionsFunction · 0.85

Tested by

no test coverage detected