File size: 476 Bytes
2ea5479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'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