(url)
| 78 | } |
| 79 | |
| 80 | async readResource (url) { |
| 81 | try { |
| 82 | const { path } = await this.resourceMapper.mapUrlToFile({ url }) |
| 83 | return await withLock(path, () => promisify(fs.readFile)(path, { encoding: 'utf8' })) |
| 84 | } catch (err) { |
| 85 | throw error(err.status, err.message) |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | async readContainerMeta (url) { |
| 90 | if (url[url.length - 1] !== '/') { |
no test coverage detected