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