(absolutePath)
| 21791 | this.inMemoryFiles = inMemoryFiles |
| 21792 | } |
| 21793 | async read(absolutePath) { |
| 21794 | if (isUrl(absolutePath)) { |
| 21795 | const result = await fetchWithCache(absolutePath) |
| 21796 | return result.content |
| 21797 | } |
| 21798 | const value = this.inMemoryFiles[absolutePath] |
| 21799 | if (value === undefined) { |
| 21800 | return "" |
| 21801 | } |
| 21802 | return value |
| 21803 | } |
| 21804 | async createReadStream(absolutePath) { |
| 21805 | return await this.read(absolutePath) |
| 21806 | } |
no test coverage detected