Skip to content

Change Binary Download Distribution #161

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

Merged
merged 6 commits into from
Jun 17, 2025

Conversation

amaanbs
Copy link
Collaborator

@amaanbs amaanbs commented Jun 5, 2025

No description provided.

@amaanbs amaanbs requested a review from a team as a code owner June 5, 2025 22:58
@07souravkunda 07souravkunda requested a review from Copilot June 10, 2025 08:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the binary download distribution functionality by modifying the API of the binaryPath method and enhancing error handling. Key changes include:

  • Updating calls to binaryPath in tests to incorporate additional parameters (key and retries).
  • Introducing a new module (fetchDownloadSourceUrl.js) to retrieve download endpoints.
  • Changing the binary download logic and error reporting in LocalBinary.js and Local.js to support updated configurations.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/local.js Updated tests to pass additional parameters to binaryPath.
lib/fetchDownloadSourceUrl.js New module to fetch download source URL over HTTPS.
lib/LocalBinary.js Modified binaryPath API and improved error handling in downloads.
lib/Local.js Adjusted retries and updated binaryPath invocations accordingly.
Comments suppressed due to low confidence (1)

test/local.js:283

  • [nitpick] Document the use of the hard-coded test values ('abc' for key and 9 for retries) so that their purpose is clear to future maintainers.
(new LocalBinary()).binaryPath({}, 'abc', 9, function(binaryPath) {

07souravkunda
07souravkunda previously approved these changes Jun 10, 2025
yashdsaraf
yashdsaraf previously approved these changes Jun 17, 2025
@amaanbs amaanbs dismissed stale reviews from yashdsaraf and 07souravkunda via d2f8aa8 June 17, 2025 15:06
@yashdsaraf yashdsaraf merged commit 56d7b62 into master Jun 17, 2025
5 checks passed
@yashdsaraf yashdsaraf deleted the Change_Binary_Download_Distribution branch June 17, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy