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

Method getModuleByNodeId

lib/graph/Workspace.js:117–120  ·  view source on GitHub ↗

* For a given node id (e.g. the value of the name property in a package.json), * returns a [Module]{@ui5/project/graph/Module} instance or undefined depending on whether the module * has been found in the configured dependency-management resolution paths of this workspace * and co

(nodeId)

Source from the content-addressed store, hash-verified

115 * Module instance, or <code>undefined</code> if none is found
116 */
117 async getModuleByNodeId(nodeId) {
118 const {moduleIdMap} = await this._getResolvedModules();
119 return moduleIdMap.get(nodeId);
120 }
121
122 _getResolvedModules() {
123 if (this._pResolvedModules) {

Callers 2

_resolveModulePathMethod · 0.80
Workspace.jsFile · 0.80

Calls 1

_getResolvedModulesMethod · 0.95

Tested by

no test coverage detected