Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
fix(2fa): escape package names correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Aug 17, 2018
1 parent cffc727 commit f2d83fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function setRequires2fa (spec, required, opts) {
return new opts.Promise((resolve, reject) => {
spec = npa(spec)
validate('OBO', [spec, required, opts])
const uri = `/-/package/${spec.escapedName}/access`
const uri = `/-/package/${eu(spec.name)}/access`
return npmFetch.json(uri, opts.concat({
method: 'POST',
body: {publish_requires_tfa: required},
Expand Down

0 comments on commit f2d83fe

Please sign in to comment.