()
| 357 | { parseText = true, branch = this.branch } = {}, |
| 358 | ) => { |
| 359 | const fetchContent = () => { |
| 360 | return this.request({ |
| 361 | url: `${this.endpointUrl}/items/`, |
| 362 | params: { version: branch, path }, |
| 363 | cache: 'no-store', |
| 364 | }).then<Blob | string>(parseText ? this.responseToText : this.responseToBlob); |
| 365 | }; |
| 366 | |
| 367 | return readFile(sha, fetchContent, localForage, parseText); |
| 368 | }; |