* 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)
| 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) { |
no test coverage detected