Skip to content

Conversation

devongovett
Copy link
Contributor

Summary

Sends the auth token for scoped packages, which may be private. Fixes #1134 and #521.

Test plan

Tested installing a private package on the public registry without always-auth in .npmrc.

const alwaysAuth = this.getScopedOption(registry.replace(/^https?:/, ''), 'always-auth')
|| this.getOption('always-auth');
|| this.getOption('always-auth')
|| removePrefix(requestUrl, registry)[0] === '@';
Copy link
Contributor

Choose a reason for hiding this comment

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

the code style should be to intend two spaces from const.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed 😄

Sends the auth token for scoped packages, which may be private. Fixes yarnpkg#1134 and yarnpkg#521.
@cpojer cpojer merged commit 50aae7d into yarnpkg:master Oct 17, 2016
@aliatsis
Copy link

Any timeline on a patch release for this (0.15.2)?

@jedwards1211
Copy link

Is this released? I'm still getting invalid tar file errors with 0.18.1 when I try to install private npm packages.

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.

4 participants