Skip to content

Commit

Permalink
fixup for whoami
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jul 6, 2018
1 parent d3a39d4 commit 5f5be69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/whoami.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const BB = require('bluebird')

const config = require('./config/figgy-config.js')
const fetch = require('npm-registry-fetch')
const npm = require('./npm.js')
const output = require('./utils/output.js')
Expand All @@ -25,7 +26,7 @@ function whoami ([spec], silent, cb) {
if (username) {
return username
} else if (token) {
return fetch.json('/-/whoami', npm.figgyConfig.concat({
return fetch.json('/-/whoami', config({
spec
})).then(({username}) => {
if (username) {
Expand Down

0 comments on commit 5f5be69

Please sign in to comment.