()
| 17 | } |
| 18 | |
| 19 | export function getTarget(): GlobalTarget { |
| 20 | // @ts-expect-error navigator and windows are not available in all environments |
| 21 | return (typeof navigator !== 'undefined' && typeof window !== 'undefined') |
| 22 | ? window |
| 23 | : typeof globalThis !== 'undefined' |
| 24 | ? globalThis |
| 25 | : {} |
| 26 | } |
| 27 | |
| 28 | export const isProxyAvailable = typeof Proxy === 'function' |
no outgoing calls
no test coverage detected