MCPcopy
hub / github.com/axios/axios / makeBlobLike

Function makeBlobLike

tests/unit/helpers/formDataToStream.test.js:20–27  ·  view source on GitHub ↗
({ type, name, size, payload })

Source from the content-addressed store, hash-verified

18}
19
20const makeBlobLike = ({ type, name, size, payload }) => ({
21 type,
22 name,
23 size: size ?? payload.byteLength,
24 [Symbol.asyncIterator]: async function* () {
25 yield payload;
26 },
27});
28
29const collect = async (stream) => {
30 const chunks = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected