* 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
417 B
TypeScript
15 lines
417 B
TypeScript
// Copyright 2017-2021 @polkadot/x-textencoder authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { xglobal } from '@polkadot/x-global';
|
|
|
|
import { TextDecoder as Fallback } from './fallback';
|
|
|
|
export { packageInfo } from './packageInfo';
|
|
|
|
export const TextDecoder = (
|
|
typeof xglobal.TextDecoder === 'undefined'
|
|
? Fallback as unknown as typeof xglobal.TextDecoder
|
|
: xglobal.TextDecoder
|
|
);
|