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

Make iconv dependency optional again. #51

Closed
wants to merge 1 commit into from

Conversation

OlegGirko
Copy link

Although iconv is listed in optionalDependencies, it's always required in Client.prototype.convertEncoding function in lib/irc.js file, even if neither encoding nor encodingFallback options are defined.

This error was introduced in 19daa5b when require('iconv') was erroneously moved to the top of that function to avoid code duplication.

This change makes iconv module not required again when encoding and encodingFallback options are not defined.

Although iconv is listed in optionalDependencies, it's always required
in Client.prototype.convertEncoding function in lib/irc.js file,
even if neither "encoding" nor "encodingFallback" options are defined.

This error was introduced in 19daa5b when require('iconv') was
erroneously moved to the top of that function to avoid code duplication.

This change makes iconv module not required again when encoding and
encodingFallback options are not defined.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
@Half-Shot
Copy link

We've instead moved to something that doesn't require native compilation which will hopefully help.

@Half-Shot Half-Shot closed this May 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants