From dc3f48939332272167feb7baa56761d45bbc5b0e Mon Sep 17 00:00:00 2001 From: ghe Date: Thu, 27 May 2021 11:40:20 +0100 Subject: [PATCH] fix: drop input timeout `snyk test --json` may take a while to run, so having a timeout will end the snyk2spdx process early. --- src/lib/get-input-data.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/get-input-data.ts b/src/lib/get-input-data.ts index 03356b5..35371d9 100644 --- a/src/lib/get-input-data.ts +++ b/src/lib/get-input-data.ts @@ -1,6 +1,5 @@ export async function readInputFromStdin(): Promise { return new Promise((resolve, reject) => { - setTimeout(() => reject(new Error('No input detected')), 100); let jsonString = ''; process.stdin.setEncoding('utf8'); process.stdin.on('readable', () => {