MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / stripProtocol

Function stripProtocol

packages/bumpy/src/core/semver.ts:37–39  ·  view source on GitHub ↗
(range: string)

Source from the content-addressed store, hash-verified

35
36/** Strip workspace: protocol from version ranges */
37export function stripProtocol(range: string): string {
38 return range.replace(/^workspace:/, '');
39}
40
41/** Compare two versions: -1 if a < b, 0 if equal, 1 if a > b */
42export function compareVersions(a: string, b: string): number {

Callers 2

semver.test.tsFile · 0.90
resolveProtocolsInPlaceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…