Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async function downloadInstaller(ctx: Task.Context) {
await downloadFileIfAbsentWork({
url: installer,
destination: dest,
checksum: {
hash: version.installer.sha1,
algorithm: "sha1",
},
})(ctx);
return vfs.createReadStream(dest).pipe(Unzip.createParseStream({ lazyEntries: true })).wait();
};
}