go integration and wikipedia
This commit is contained in:
parent
47a252e339
commit
ee90335b92
7828 changed files with 1307913 additions and 20807 deletions
15
frontend/node_modules/axios/lib/helpers/readBlob.js
generated
vendored
Normal file
15
frontend/node_modules/axios/lib/helpers/readBlob.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const { asyncIterator } = Symbol;
|
||||
|
||||
const readBlob = async function* (blob) {
|
||||
if (blob.stream) {
|
||||
yield* blob.stream();
|
||||
} else if (blob.arrayBuffer) {
|
||||
yield await blob.arrayBuffer();
|
||||
} else if (blob[asyncIterator]) {
|
||||
yield* blob[asyncIterator]();
|
||||
} else {
|
||||
yield blob;
|
||||
}
|
||||
};
|
||||
|
||||
export default readBlob;
|
||||
Loading…
Add table
Add a link
Reference in a new issue