Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: prompt user before downloading software #360

Merged
merged 4 commits into from
Jan 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: log network activity by default
aduh95 committed Jan 23, 2024

Unverified

This user has not yet uploaded their public signing key.
commit 8396aed10c5ff3cd9472de61cc640658df77f607
2 changes: 2 additions & 0 deletions sources/httpUtils.ts
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@ export async function fetchUrlStream(url: string, options: RequestOptions = {})

const proxyAgent = new ProxyAgent();

console.log(`Corepack: Fetching ${url}...`);

return new Promise<IncomingMessage>((resolve, reject) => {
const createRequest = (url: string) => {
const request: ClientRequest = https.get(url, {...options, agent: proxyAgent}, response => {