Skip to content
Myr

utils.ts

This file

Path

src/helper/streaming/utils.ts

11 lines · 422 bytes · TypeScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than f0b094d point at it.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 1–11why, one step back
1export let isOldBunVersion = (): boolean => {
2 // @ts-expect-error @types/bun is not installed3 const version: string = typeof Bun !== 'undefined' ? Bun.version : undefined4 if (version === undefined) {5 return false6 }7 const result = version.startsWith('1.1') || version.startsWith('1.0') || version.startsWith('0.')8 // Avoid running this check on every call9 isOldBunVersion = () => result10 return result11}