(imageUrl)
| 26 | const readFileAsync = util.promisify(fs.readFile); |
| 27 | |
| 28 | function resolveImagePath(imageUrl) { |
| 29 | if (!imageUrl) { |
| 30 | return ''; |
| 31 | } |
| 32 | |
| 33 | // The original image path is relative to the client. |
| 34 | return imageUrl.replace(/\\/g, '/').replace(/\.\.\/tmp/g, './tmp'); |
| 35 | } |
| 36 | |
| 37 | async function inlineImage(imageUrl) { |
| 38 | if (!imageUrl) { |
no outgoing calls
no test coverage detected
searching dependent graphs…