(part)
| 9009 | |
| 9010 | // node_modules/formdata-node/lib/esm/blobHelpers.js |
| 9011 | async function* clonePart(part) { |
| 9012 | const end = part.byteOffset + part.byteLength; |
| 9013 | let position = part.byteOffset; |
| 9014 | while (position !== end) { |
| 9015 | const size = Math.min(end - position, CHUNK_SIZE); |
| 9016 | const chunk = part.buffer.slice(position, position + size); |
| 9017 | position += chunk.byteLength; |
| 9018 | yield new Uint8Array(chunk); |
| 9019 | } |
| 9020 | } |
| 9021 | async function* consumeNodeBlob(blob) { |
| 9022 | let position = 0; |
| 9023 | while (position !== blob.size) { |
no test coverage detected
searching dependent graphs…