MCPcopy Create free account
hub / github.com/anomalyco/opencode / findStaleLockfileEntriesInText

Function findStaleLockfileEntriesInText

script/upgrade-opentui.ts:184–192  ·  view source on GitHub ↗
(txt: string)

Source from the content-addressed store, hash-verified

182}
183
184function findStaleLockfileEntriesInText(txt: string) {
185 return Array.from(txt.matchAll(/^ "([^"]+)": \["(@opentui\/(?:core(?:-[^@"]+)?|keymap|solid))@([^"]+)"/gm))
186 .map((match) => ({
187 entry: match[1]!,
188 pkg: match[2]!,
189 version: match[3]!,
190 }))
191 .filter((item) => item.version !== ver)
192}

Callers 2

fixKnownLockfileIssuesFunction · 0.85
findStaleLockfileEntriesFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected