MCPcopy
hub / github.com/redis/node-redis / isVersionInRange

Method isVersionInRange

packages/test-utils/lib/index.ts:342–345  ·  view source on GitHub ↗
(minVersion: Array<number>, maxVersion: Array<number>)

Source from the content-addressed store, hash-verified

340 }
341
342 isVersionInRange(minVersion: Array<number>, maxVersion: Array<number>): boolean {
343 return TestUtils.compareVersions(this.#VERSION_NUMBERS, minVersion) >= 0 &&
344 TestUtils.compareVersions(this.#VERSION_NUMBERS, maxVersion) <= 0
345 }
346
347 /**
348 * Compares two semantic version arrays and returns:

Calls 1

compareVersionsMethod · 0.80

Tested by

no test coverage detected