(name)
| 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 |
no test coverage detected