brianloveswords / base64url

For encoding and decoding base64url!
MIT License
224 stars 44 forks source link

Node 4 throws "Unexpected token" error in `encode` #31

Closed dskrvk closed 5 years ago

dskrvk commented 6 years ago

/home/dskrvk/workspace/wise/wise-api/node_modules/base64url/dist/base64url.js:4 function encode(input, encoding = "utf8") { ------------------------------------------^

Same in Travis: https://travis-ci.org/brianloveswords/base64url/jobs/379778757

MylesBorins commented 5 years ago

As of 3.0.1 we have dropped support for Node.js 4.x

Node.js no longer supporting 4.x, it is likely a good idea to upgrade your projects.

edit: we changed the transpilation target to es5 in 3.0.1, which should fix this for you