MCPcopy Create free account
hub / github.com/SAP/ui5-builder / findResourceWithInfo

Method findResourceWithInfo

lib/lbt/resources/ResourcePool.js:213–221  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

211 }
212
213 async findResourceWithInfo(name) {
214 return this.findResource(name).then( (resource) => {
215 return this.getModuleInfo(name).then( (info) => {
216 // HACK: attach info to resource
217 resource.info = info;
218 return resource;
219 }, (err) => resource);
220 });
221 }
222
223 /**
224 * Finds the resources based matching the given pattern

Callers 9

runMethod · 0.80
_calcMinSizeMethod · 0.80
checkAndAddResourceMethod · 0.80
writeRawMethod · 0.80
writePreloadFunctionMethod · 0.80
rewriteAMDModulesMethod · 0.80
writeDepCacheMethod · 0.80
ResourcePool.jsFile · 0.80

Calls 2

findResourceMethod · 0.95
getModuleInfoMethod · 0.95

Tested by

no test coverage detected