Files
2025-11-28 16:01:44 +00:00

14 lines
440 B
JavaScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
export async function getBodyAsText(batchResponse) {
const blobBodyResponse = await batchResponse.blobBody;
if (!blobBodyResponse) {
return "";
}
const blobString = await blobBodyResponse.text();
return blobString;
}
export function utf8ByteLength(str) {
return new Blob([str]).size;
}
//# sourceMappingURL=BatchUtils-browser.mjs.map