MCPcopy Create free account
hub / github.com/SAP/ui5-project / getDependencies

Method getDependencies

lib/graph/ProjectGraph.js:249–257  ·  view source on GitHub ↗

* Get all direct dependencies of a project as an array of project names * * @public * @param {string} projectName Name of the project to retrieve the dependencies of * @returns {string[]} Names of all direct dependencies

(projectName)

Source from the content-addressed store, hash-verified

247 * @returns {string[]} Names of all direct dependencies
248 */
249 getDependencies(projectName) {
250 const adjacencies = this._adjList.get(projectName);
251 if (!adjacencies) {
252 throw new Error(
253 `Failed to get dependencies for project ${projectName}: ` +
254 `Unable to find project in project graph`);
255 }
256 return Array.from(adjacencies);
257 }
258
259 /**
260 * Get all (direct and transitive) dependencies of a project as an array of project names

Callers 8

traverseBreadthFirstMethod · 0.95
_traverseDepthFirstMethod · 0.95
projectGraphBuilderFunction · 0.45
ProjectGraph.jsFile · 0.45
graphFromObject.jsFile · 0.45
ui5Framework.jsFile · 0.45
defineTestFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected