Skip to content

Commit 392f3f3

Browse files
committed
chore: run a full build
1 parent 0bc0321 commit 392f3f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/excel-builder-vanilla/src/streaming.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export interface ExcelFileStreamOptions {
1616
* Yields zipped chunks for browser (ReadableStream) or NodeJS (async generator).
1717
*/
1818
export function createExcelFileStream(workbook: Workbook, options?: ExcelFileStreamOptions) {
19-
const isBrowser = typeof window !== 'undefined' && typeof window.ReadableStream !== 'undefined';
20-
const isNode = typeof process !== 'undefined' && process.versions?.node;
19+
const isBrowser = typeof window?.ReadableStream !== 'undefined';
20+
const isNode = typeof process?.versions?.node !== 'undefined';
2121
if (isBrowser) {
2222
return browserExcelStream(workbook, options);
2323
}

0 commit comments

Comments
 (0)