ojumpin's picture
Duplicate from hf4all/bingo
59d634d
raw
history blame contribute delete
476 Bytes
'use client'
import Default from './browser'
let exportsModel: any = {}
if (process.browser) {
Object.assign(exportsModel, require('./browser').default)
} else {
Object.assign(exportsModel, require('./node').default)
}
export default exportsModel! as typeof Default
export const fetch: typeof Default.fetch = exportsModel!.fetch
export const WebSocket: typeof Default.WebSocket = exportsModel!.WebSocket
export const debug: typeof Default.debug = exportsModel!.debug