Skip to content

Commit 5f5be69

Browse files
committed
fixup for whoami
1 parent d3a39d4 commit 5f5be69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/whoami.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const BB = require('bluebird')
44

5+
const config = require('./config/figgy-config.js')
56
const fetch = require('npm-registry-fetch')
67
const npm = require('./npm.js')
78
const output = require('./utils/output.js')
@@ -25,7 +26,7 @@ function whoami ([spec], silent, cb) {
2526
if (username) {
2627
return username
2728
} else if (token) {
28-
return fetch.json('/-/whoami', npm.figgyConfig.concat({
29+
return fetch.json('/-/whoami', config({
2930
spec
3031
})).then(({username}) => {
3132
if (username) {

0 commit comments

Comments
 (0)