MCPcopy Create free account
hub / github.com/codecombat/codecombat / getDependencies

Method getDependencies

app/models/LevelSystem.js:57–66  ·  view source on GitHub ↗
(allSystems)

Source from the content-addressed store, hash-verified

55 }
56
57 getDependencies (allSystems) {
58 const results = []
59 for (const dep of Array.from(this.get('dependencies') || [])) {
60 const system = _.find(allSystems, sys => (sys.get('original') === dep.original) && (sys.get('version').major === dep.majorVersion))
61 for (const result of Array.from(system.getDependencies(allSystems).concat([system]))) {
62 if (!Array.from(results).includes(result)) { results.push(result) }
63 }
64 }
65 return results
66 }
67 }
68 LevelSystem.initClass()
69 return LevelSystem

Callers 1

onAddSystemMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected