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

Commit

Permalink
fix(auth): send username in correct key (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeramjayan authored and zkat committed Jan 22, 2019
1 parent 0af23f2 commit 38422d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
15 changes: 11 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function patchedManifest (spec, auth, base, opts) {
// currently gets filled in by the npm registry itself, based on auth
// information.
manifest._npmUser = {
username: auth.username,
name: auth.username,
email: auth.email
}
}
Expand Down
6 changes: 3 additions & 3 deletions test/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ test('retry after a conflict', t => {
_nodeVersion: process.versions.node,
_npmVersion: '6.9.0',
_npmUser: {
username: 'other',
name: 'other',
email: 'other@idk.tech'
},
name: 'libnpmpublish',
Expand Down Expand Up @@ -282,7 +282,7 @@ test('retry after a conflict -- no versions on remote', t => {
_nodeVersion: process.versions.node,
_npmVersion: '6.9.0',
_npmUser: {
username: 'other',
name: 'other',
email: 'other@idk.tech'
},
name: 'libnpmpublish',
Expand Down Expand Up @@ -432,7 +432,7 @@ test('publish with basic auth', t => {
_nodeVersion: process.versions.node,
_npmVersion: '6.9.0',
_npmUser: {
username: 'zkat',
name: 'zkat',
email: 'kat@example.tech'
},
maintainers: [{
Expand Down

0 comments on commit 38422d0

Please sign in to comment.