firede/msee

TypeError: Object Variable has no method 'codePointAt'

denysdovhan opened this issue · 4 comments

Hi there!

I use msee in my bash-handbook. I've received an issue report from user and it seems like a trouble with msee itself

Error stack:

/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:312
        var code = str.codePointAt(i);
                       ^
TypeError: Object Variable has no method 'codePointAt'
    at getStringWidth (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:312:24)
    at /usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:33:21
    at Array.forEach (native)
    at forEach (/usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:73:31)
    at /usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:32:9
    at Array.reduce (native)
    at reduce (/usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:63:30)
    at module.exports (/usr/lib/node_modules/bash-handbook/node_modules/msee/node_modules/text-table/index.js:31:17)
    at tableFormat (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:294:12)
    at processToken (/usr/lib/node_modules/bash-handbook/node_modules/msee/lib/msee.js:188:23)

Perhaps @bluurn is, for some reason, using a version prior to 1f154cd.

EDIT: The problem npm is still hosting 0.2.0. @firede Can you npm publish?

Note: I did publish msee-preview a preview variant of msee. @firede if you add me to the owners in npm I can also publish msee

Published 0.4.0 - please review :)