From 4dec585ba98d9569a5c003f66ca69f2215acdda7 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 2 Nov 2018 00:56:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=20Remove=20TextDecoder=20import=20?= =?UTF-8?q?since=20it=20is=20part=20of=20Node=2011=20core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/reader/readSsnFile.ts | 1 - src/ssn/streams/streamToString.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ssn/reader/readSsnFile.ts b/src/ssn/reader/readSsnFile.ts index ed3f71f..3c488a9 100644 --- a/src/ssn/reader/readSsnFile.ts +++ b/src/ssn/reader/readSsnFile.ts @@ -3,7 +3,6 @@ * Check the .ZIP File Format Specification . */ -import { TextDecoder } from 'util'; import { ISsnFileEntry } from '../../interfaces/ISsnFileEntry'; import getDecryptionKeys from '../decryption/getDecryptionKeys'; import modifyPassword from '../decryption/modifyPassword'; diff --git a/src/ssn/streams/streamToString.ts b/src/ssn/streams/streamToString.ts index 97cf953..b64380e 100644 --- a/src/ssn/streams/streamToString.ts +++ b/src/ssn/streams/streamToString.ts @@ -1,5 +1,4 @@ import * as stream from 'stream'; -import { TextDecoder } from 'util'; export default function streamToString(inputStream: stream.Readable): Promise { const decoder = new TextDecoder('utf-8');