(str)
| 335 | } |
| 336 | |
| 337 | toBase64(str) { |
| 338 | if (Buffer) { |
| 339 | return Buffer.from(str).toString('base64') |
| 340 | } else { |
| 341 | return window.btoa(unescape(encodeURIComponent(str))) |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | toFileUrl(path) { |
| 346 | let cached = this.memoizedFileURLs.get(path) |
no test coverage detected