-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add support for requiring 2fa to publish specific packages. #11
Conversation
c0e5944
to
74e8b00
Compare
Credit: @iarna
74e8b00
to
573ca50
Compare
cb(err, data) | ||
return Bluebird.try(() => { | ||
params.auth = auth | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super weird and actually what the API for this function is... it throws if it's given a command its never heard of, but ALSO takes an errback that it uses for network errors. I suppose it's not that unreasonable... it's like an argument assertion.
Just with promises it feels much weirder.
Will this status show up in |
614c234
to
322d9c2
Compare
This stuff is pretty well tested n-r-c side, so I'll just leave it there. We can write tests for it when this gets ported to n-r-f. This does need to have the |
This is getting superseded by #2 so I'm gonna close it. |
This uses the updated version of gentle-fs which has the binLink method, so that we don't need to fork based on OS, and will always check to ensure that the bin or cmd-shim is a reference into the folder being linked. Also perform a similar check on linked man pages. Fix npm#11 PR-URL: npm/bin-links#12 Credit: @isaacs Close: npm#12 Reviewed-by: @isaacs
The nrc PR was: npm/npm-registry-client#175