Limit logger size via DEBUG_MAX (#802)
* Limit logger size via DEBUG_MAX * Any negative disables * Node imports * Update test
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { TextDecoder as NodeTextDecoder } from 'util';
|
||||
import util from 'util';
|
||||
|
||||
export const TextDecoder = typeof global.TextDecoder === 'undefined'
|
||||
? NodeTextDecoder as unknown as typeof global.TextDecoder
|
||||
? util.TextDecoder as unknown as typeof global.TextDecoder
|
||||
: global.TextDecoder;
|
||||
|
||||
Reference in New Issue
Block a user