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

Function patchVersion

test/tools/unified-spec-runner/unified-utils.ts:188–192  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

186
187/** Correct schema version to be semver compliant */
188export function patchVersion(version: string): string {
189 expect(version).to.be.a('string');
190 const [major, minor, patch] = version.split('.');
191 return `${major}.${minor ?? 0}.${patch ?? 0}`;
192}
193
194export function patchDbOptions(options: CollectionOrDatabaseOptions = {}): DbOptions {
195 // TODO

Callers 2

runUnifiedTestFunction · 0.90
topologySatisfiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected