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

Commit f18dee4

Browse files
committed
Replace messages with @ldapjs/messages
1 parent 6854658 commit f18dee4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+537
-5173
lines changed

Diff for: .eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ module.exports = {
44
es2021: true,
55
node: true
66
},
7+
parserOptions: {
8+
ecmaVersion: 'latest'
9+
},
710
extends: [
811
'standard'
912
],

Diff for: .npmrc

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# npm general settings
22
package-lock=false
33
legacy-peer-deps=true
4-
5-
# pnpm specific settings
6-
hoist=false
7-
public-hoist-pattern[]=*eslint*

Diff for: docs/client.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ client is:
4141
|connectTimeout |Milliseconds client should wait before timing out on TCP connections (Default: OS default)|
4242
|tlsOptions |Additional options passed to TLS connection layer when connecting via `ldaps://` (See: The TLS docs for node.js)|
4343
|idleTimeout |Milliseconds after last activity before client emits idle event|
44-
|strictDN |Force strict DN parsing for client methods (Default is true)|
4544
|reconnect |Try to reconnect when the connection gets lost (Default is false)|
4645

4746
### url
@@ -287,7 +286,7 @@ Responses inside callback of the `search` method are an `EventEmitter` where you
287286
each `searchEntry` that comes back from the server. You will additionally be able to listen for a `searchRequest`
288287
, `searchReference`, `error` and `end` event.
289288
`searchRequest` is emitted immediately after every `SearchRequest` is sent with a `SearchRequest` parameter. You can do operations
290-
like `client.abandon` with `searchRequest.messageID` to abandon this search request. Note that the `error` event will
289+
like `client.abandon` with `searchRequest.messageId` to abandon this search request. Note that the `error` event will
291290
only be for client/TCP errors, not LDAP error codes like the other APIs. You'll want to check the LDAP status code
292291
(likely for `0`) on the `end` event to assert success. LDAP search results can give you a lot of status codes, such as
293292
time or size exceeded, busy, inappropriate matching, etc., which is why this method doesn't try to wrap up the code
@@ -306,7 +305,7 @@ client.search('o=example', opts, (err, res) => {
306305
assert.ifError(err);
307306

308307
res.on('searchRequest', (searchRequest) => {
309-
console.log('searchRequest: ', searchRequest.messageID);
308+
console.log('searchRequest: ', searchRequest.messageId);
310309
});
311310
res.on('searchEntry', (entry) => {
312311
console.log('entry: ' + JSON.stringify(entry.object));

Diff for: docs/server.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ authenticated as on this connection. If the client didn't bind, then a DN object
197197
will be there defaulted to `cn=anonymous`.
198198

199199
Additionally, request will have a `logId` parameter you can use to uniquely
200-
identify the request/connection pair in logs (includes the LDAP messageID).
200+
identify the request/connection pair in logs (includes the LDAP messageId).
201201

202202
## Common Response Elements
203203

Diff for: lib/assert.js

-54
This file was deleted.

Diff for: lib/attribute.js

-160
This file was deleted.

0 commit comments

Comments
 (0)