node-ldapjs/lib
Philippe Seewer e07656b233 SearchPager: Implement queueing events until a listener appears
This fixes the same problems for paged searches as does
https://github.com/ldapjs/node-ldapjs/pull/610 for unpaged searches.

By passing an EventEmitter via callback there exist cases when events
are emitted before listeners are registered, resulting in missed
events.

The Change turns SearchPager into a CorkedEmitter which is already
used as a solution for non paged searches. Doing so requires the
internal 'search' event to be dropped.

This change adapts a test case originally by László Szűcs (@ifroz).

Signed-off-by: Philippe Seewer <philippe.seewer@bfh.ch>
2021-05-07 14:04:37 +02:00
..
client SearchPager: Implement queueing events until a listener appears 2021-05-07 14:04:37 +02:00
controls update devdependency standard to v16 2020-10-31 16:07:32 -05:00
errors fix: emit error event if other error events are not listened to 2021-02-23 17:23:56 -06:00
filters update devdependency standard to v16 2020-10-31 16:07:32 -05:00
messages chore(lint): fix no-unused-vars errors 2020-12-06 19:26:27 -06:00
assert.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
attribute.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
change.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
corked_emitter.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
dn.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
dtrace.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
index.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00
logger.js no need to create instance 2020-07-21 20:28:15 -05:00
persistent_search.js chore(lint): fix no-unused-vars errors 2020-12-06 19:26:27 -06:00
protocol.js Apply standard linting to the code base (#539) 2019-08-27 17:11:49 -04:00
server.js chore(lint): lint lib/ 2020-12-06 11:10:58 -06:00
url.js update devdependency standard to v16 2020-10-31 16:07:32 -05:00