babel/generator-babel-boilerplate

Weird default username output

Closed this issue · 11 comments

coming through as thejameskyle\n,

screen shot 2015-08-10 at 1 11 03 pm

ping @megawac. any cluez?

trim all the things?

It could be that it is an array:

_.trim(['thejameskyle\n', '']) >> "thejameskyle\n,"

Weird - the same thing is happening to me. This is a new bug!

Not happening to me anymore. @thejameskyle, are you still experiencing this? In other werdz, what does npm whoami return for you?

Notes for future James: npm adduser sets the username config property that npm whoami returns. This couldn't possible be an Array, right? So I'm not too sure why this would happen.

ping @thejameskyle. Still having this issue?

Just got this issue...it may be a problem with npm3? Will investigate further soon...

I haven't looked at it in awhile

This is the most bizarre thing. On npm 2.14.7 and npm 3.3.12, the boilerplate's code returns:

[ [ 'jmeas\n', '' ] ]

for npm whoami. That is, a nested array with the first value being jmeas\n.

Running that same exact code outside of the boilerplate results in [ 'jmeas\n' ].

Pretty crazy stuff.

Upgrading to Bluebird v3 fixes this. Pushing a bug fix now.