* Dependency version checks * Add depndecy detection for all * Cleanup util detectPackage * Single detectPackage * Update packages/hw-ledger/src/detectPackage.ts * Update packages/util/src/detectPackage.ts * non-indexed imports
15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
// Copyright 2017-2021 @polkadot/x-fetch authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
export { packageInfo } from './packageInfo';
|
|
|
|
export const xglobal = (
|
|
typeof global !== 'undefined'
|
|
? global
|
|
: typeof self !== 'undefined'
|
|
? self
|
|
: typeof window !== 'undefined'
|
|
? window
|
|
: this as unknown as (Window & typeof globalThis)
|
|
);
|