Files
starface-outlook-sync-addin/node_modules/@jsonjoy.com/util/lib/streams/fromStream.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

17 lines
517 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromStream = void 0;
const concat_1 = require("../buffers/concat");
const fromStream = async (stream) => {
const reader = stream.getReader();
const chunks = [];
while (true) {
const { done, value } = await reader.read();
if (done)
break;
chunks.push(value);
}
return (0, concat_1.listToUint8)(chunks);
};
exports.fromStream = fromStream;
//# sourceMappingURL=fromStream.js.map