utils.ts
This file
Path
src/helper/streaming/utils.ts
11 lines 路 422 bytes 路 TypeScript
Last changed by
Not known.
History of this fileTake it
123456789101112export let isOldBunVersion = (): boolean => { // @ts-expect-error @types/bun is not installed const version: string = typeof Bun !== 'undefined' ? Bun.version : undefined if (version === undefined) { return false } const result = version.startsWith('1.1') || version.startsWith('1.0') || version.startsWith('0.') // Avoid running this check on every call isOldBunVersion = () => result return result}