🗑 Remove TextDecoder import since it is part of Node 11 core

This commit is contained in:
C-3PO 2018-11-02 00:56:57 +01:00
parent 61b3770f24
commit 4dec585ba9
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
2 changed files with 0 additions and 2 deletions

View file

@ -3,7 +3,6 @@
* Check the .ZIP File Format Specification <https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT>. * Check the .ZIP File Format Specification <https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT>.
*/ */
import { TextDecoder } from 'util';
import { ISsnFileEntry } from '../../interfaces/ISsnFileEntry'; import { ISsnFileEntry } from '../../interfaces/ISsnFileEntry';
import getDecryptionKeys from '../decryption/getDecryptionKeys'; import getDecryptionKeys from '../decryption/getDecryptionKeys';
import modifyPassword from '../decryption/modifyPassword'; import modifyPassword from '../decryption/modifyPassword';

View file

@ -1,5 +1,4 @@
import * as stream from 'stream'; import * as stream from 'stream';
import { TextDecoder } from 'util';
export default function streamToString(inputStream: stream.Readable): Promise<string> { export default function streamToString(inputStream: stream.Readable): Promise<string> {
const decoder = new TextDecoder('utf-8'); const decoder = new TextDecoder('utf-8');