(a: Dependency[], b: Dependency[])
| 185 | } |
| 186 | |
| 187 | export 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 | } |
no outgoing calls
no test coverage detected