We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea48cf5 commit d6152f2Copy full SHA for d6152f2
src/core.ts
@@ -1296,7 +1296,9 @@ export const toFloat32Array = (base64Str: string): Array<number> => {
1296
if (typeof Buffer !== 'undefined') {
1297
// for Node.js environment
1298
const buf = Buffer.from(base64Str, 'base64');
1299
- return Array.from(new Float32Array(buf.buffer, buf.byteOffset, buf.length / Float32Array.BYTES_PER_ELEMENT));
+ return Array.from(
1300
+ new Float32Array(buf.buffer, buf.byteOffset, buf.length / Float32Array.BYTES_PER_ELEMENT),
1301
+ );
1302
} else {
1303
// for legacy web platform APIs
1304
const binaryStr = atob(base64Str);
0 commit comments