Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in node v8.1.3 - allocateBase64Buffer is not defined #8

Open
mikbur opened this issue Aug 18, 2017 · 0 comments
Open

Problem in node v8.1.3 - allocateBase64Buffer is not defined #8

mikbur opened this issue Aug 18, 2017 · 0 comments

Comments

@mikbur
Copy link

mikbur commented Aug 18, 2017

node_modules\utf7\utf7.js:41:13)
Get this problem when caling imap.decode("F&APY-reslagna kontakter")

The workaround I have done is changeing rows 4-12 to
// if (semver.gte(semver.clean(process.version), '6.0.0')) { function allocateAsciiBuffer(length) { return Buffer.alloc(length, 'ascii'); } // } else { // function allocateAsciiBuffer(length) { // return new Buffer(length, 'ascii'); // } // }

and lines 30-38 to
//if (semver.gte(semver.clean(process.version), '6.0.0')) { function allocateBase64Buffer(str) { return Buffer.from(str, 'base64'); } // } else { // function allocateBase64Buffer(str) { // return new Buffer(str, 'base64'); // } // }

Do you have a better solution so I can continue using your npm-package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant