Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Wrong event names after uglify-ing the code #406

Closed
strebl opened this issue Dec 6, 2016 · 5 comments
Closed

Wrong event names after uglify-ing the code #406

strebl opened this issue Dec 6, 2016 · 5 comments
Labels

Comments

@strebl
Copy link

strebl commented Dec 6, 2016

I have an issue with the ldap client.

In one of my build step, the javascript code gets uglyfied. In that step, functions getting renamed etc. Normally that's not a problem, but because the event name in the client is generated off of the message name, a wrong event will be raised.

I think instead of getting the name from msg.constructor.name, getting it with msg.type would fix the problem.

I'll create a PR with my solution.

@alvestjo
Copy link

alvestjo commented Jan 2, 2017

Hi,
I can confirm this is a problem. I spent many hours debugging my code that did not work when it was minified but worked fine without minifing.

The fix in #407 worked. Hope this gets merged soon.
//Jonas

@strebl
Copy link
Author

strebl commented Jan 5, 2017

🔔 Ping @pfmooney 😊

@grogi
Copy link

grogi commented Oct 17, 2018

I've also created pull request to fix this issue. #492

@jsumners
Copy link
Member

I am unclear why one would even need to minify/uglify this library. The intention of this library is to be used in a Node.js environment. Minification does nothing in such an environment.

@jsumners
Copy link
Member

👋

On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request.

Please see issue #839 for more information, including how to proceed if you feel this closure is in error.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants