grpc-test-cli
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -32,10 +32,22 @@ const fs = require('fs') | ||
const zipPath = path.join(outputPath, filename) | ||
const fileContents = fs.createReadStream(`./${filename}.gz`) | ||
const writeStream = fs.createWriteStream(`${outputPath}`); | ||
const unzip = zlib.createGunzip(); | ||
try { | ||
fileContents.pipe(unzip).pipe(writeStream); | ||
if(!fs.existsSync(`${outputPath}`)){ | ||
fs.mkdirSync(`${outputPath}`) | ||
} | ||
console.log(`${filename}`) | ||
console.log(`${outputPath}`) | ||
const zip = new AdmZip(`./${filename}.zip`); | ||
const outputDir = `${outputPath}`; | ||
zip.extractAllTo(outputDir) | ||
} catch (e) { | ||
console.log(`Something went wrong. ${e}`); | ||
} | ||
} | ||
} | ||
@@ -42,0 +54,0 @@ if(platform === 'win32_x86_64'){ |
{ | ||
"name": "grpc-test-cli", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
71
0
6828939
4