MCPcopy Create free account
hub / github.com/SplootCode/splootcode / sameDepencencies

Function sameDepencencies

packages/runtime-python/src/runtime/common.ts:187–200  ·  view source on GitHub ↗
(a: Dependency[], b: Dependency[])

Source from the content-addressed store, hash-verified

185}
186
187export function sameDepencencies(a: Dependency[], b: Dependency[]) {
188 if (a.length !== b.length) {
189 return false
190 }
191
192 for (let i = 0; i < a.length; i++) {
193 const idx = b.findIndex((dep) => dep.name === a[i].name && dep.version === a[i].version) // TODO(check ID here?)
194 if (idx === -1) {
195 return false
196 }
197 }
198
199 return true
200}

Callers 2

webworker.tsFile · 0.90
RuntimeStateManagerClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected