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

[install] use default URL when only auth token is specified #1664

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

alexlamsl
Copy link
Contributor

Previously it would default to http://localhost/ which was inconsistent with the case sans token.

Use official npm registry as fallback in both cases.

Previously it would default to `http://localhost/` which was inconsistent with the case sans token.

Use official `npm` registry as fallback in both cases.
\\ Packages: {d}
\\ Versions: {d}
\\ External: {d}
\\ Packages: {d}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies for these unrelated whitespace changes 😓

token: string = "",
auth: string = "",

pub const DefaultURL = "https://registry.npmjs.org/";
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner Dec 26, 2022

Choose a reason for hiding this comment

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

for zig, the convention is usually:

  • primitive types are snake_case
  • Types are PascalCase
  • functions are camelCase

@Jarred-Sumner Jarred-Sumner merged commit 74251fb into oven-sh:main Dec 26, 2022
@Jarred-Sumner
Copy link
Collaborator

Thank you

@alexlamsl alexlamsl deleted the install-auth branch December 26, 2022 06:03
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.

2 participants