上传打包的文件

This commit is contained in:
A1300399510
2023-12-13 14:12:13 +08:00
parent 971d0f5318
commit 74b53e8188
137 changed files with 36615 additions and 2 deletions

View 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;