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

Add support for requiring 2fa to publish specific packages. #11

Closed
wants to merge 2 commits into from

Conversation

iarna
Copy link
Contributor

@iarna iarna commented Jul 13, 2018

The nrc PR was: npm/npm-registry-client#175

@iarna iarna requested a review from a team as a code owner July 13, 2018 01:29
@iarna iarna force-pushed the iarna/per-package-2fa branch from c0e5944 to 74e8b00 Compare July 13, 2018 02:08
iarna added a commit that referenced this pull request Jul 13, 2018
@iarna iarna force-pushed the iarna/per-package-2fa branch from 74e8b00 to 573ca50 Compare July 13, 2018 02:12
@iarna iarna changed the title WIP: Add support for requiring 2fa to publish specific packages. Add support for requiring 2fa to publish specific packages. Jul 13, 2018
cb(err, data)
return Bluebird.try(() => {
params.auth = auth
try {
Copy link
Contributor Author

@iarna iarna Jul 13, 2018

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.

@ljharb
Copy link
Contributor

ljharb commented Jul 13, 2018

Will this status show up in npm show?

@zkat zkat force-pushed the release-next branch 2 times, most recently from 614c234 to 322d9c2 Compare July 13, 2018 17:46
@zkat zkat added semver:minor new backwards-compatible feature security labels Jul 18, 2018
@zkat zkat closed this Jul 25, 2018
@zkat zkat reopened this Jul 26, 2018
@zkat zkat closed this Jul 26, 2018
@zkat zkat reopened this Jul 26, 2018
@zkat
Copy link
Contributor

zkat commented Aug 13, 2018

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 access tests updated because of new output (see Travis)

@zkat
Copy link
Contributor

zkat commented Aug 20, 2018

This is getting superseded by #2 so I'm gonna close it.

@zkat zkat closed this Aug 20, 2018
@nlf nlf deleted the iarna/per-package-2fa branch March 28, 2022 16:56
antongolub pushed a commit to antongolub-forks/npm-cli that referenced this pull request May 18, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor new backwards-compatible feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants