Skip to content

Commit 547ceb6

Browse files
committed
Update deps
1 parent 0ed0482 commit 547ceb6

File tree

10 files changed

+54
-53
lines changed

10 files changed

+54
-53
lines changed

examples/inmemory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ server.search(SUFFIX, authorize, function (req, res, next) {
130130
case 'base':
131131
if (req.filter.matches(db[dn])) {
132132
res.send({
133-
dn: dn,
133+
dn,
134134
attributes: db[dn]
135135
})
136136
}

lib/client/client.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Client.prototype.abandon = function abandon (messageId, controls, callback) {
191191

192192
const req = new AbandonRequest({
193193
abandonId: messageId,
194-
controls: controls
194+
controls
195195
})
196196

197197
return this._send(req, 'abandon', null, callback)
@@ -247,7 +247,7 @@ Client.prototype.add = function add (name, entry, controls, callback) {
247247
const req = new AddRequest({
248248
entry: ensureDN(name),
249249
attributes: entry,
250-
controls: controls
250+
controls
251251
})
252252

253253
return this._send(req, [errors.LDAP_SUCCESS], null, callback)
@@ -286,7 +286,7 @@ Client.prototype.bind = function bind (name,
286286
name: name || '',
287287
authentication: 'Simple',
288288
credentials: credentials || '',
289-
controls: controls
289+
controls
290290
})
291291

292292
// Connection errors will be reported to the bind callback too (useful when the LDAP server is not available)
@@ -329,8 +329,8 @@ Client.prototype.compare = function compare (name,
329329
const req = new CompareRequest({
330330
entry: ensureDN(name),
331331
attribute: attr,
332-
value: value,
333-
controls: controls
332+
value,
333+
controls
334334
})
335335

336336
return this._send(req, CMP_EXPECT, null, function (err, res) {
@@ -360,7 +360,7 @@ Client.prototype.del = function del (name, controls, callback) {
360360

361361
const req = new DeleteRequest({
362362
entry: ensureDN(name),
363-
controls: controls
363+
controls
364364
})
365365

366366
return this._send(req, [errors.LDAP_SUCCESS], null, callback)
@@ -397,7 +397,7 @@ Client.prototype.exop = function exop (name, value, controls, callback) {
397397
const req = new ExtendedRequest({
398398
requestName: name,
399399
requestValue: value,
400-
controls: controls
400+
controls
401401
})
402402

403403
return this._send(req, [errors.LDAP_SUCCESS], null, function (err, res) {
@@ -471,8 +471,8 @@ Client.prototype.modify = function modify (name, change, controls, callback) {
471471

472472
const req = new ModifyRequest({
473473
object: ensureDN(name),
474-
changes: changes,
475-
controls: controls
474+
changes,
475+
controls
476476
})
477477

478478
return this._send(req, [errors.LDAP_SUCCESS], null, callback)
@@ -511,7 +511,7 @@ Client.prototype.modifyDN = function modifyDN (name,
511511
const req = new ModifyDNRequest({
512512
entry: DN.fromString(name),
513513
deleteOldRdn: true,
514-
controls: controls
514+
controls
515515
})
516516

517517
if (newDN.length !== 1) {
@@ -629,11 +629,11 @@ Client.prototype.search = function search (base,
629629
}
630630

631631
const pager = new SearchPager({
632-
callback: callback,
633-
controls: controls,
632+
callback,
633+
controls,
634634
pageSize: size,
635635
pagePause: pageOpts.pagePause,
636-
sendRequest: sendRequest
636+
sendRequest
637637
})
638638
pager.begin()
639639
} else {
@@ -723,7 +723,7 @@ Client.prototype.starttls = function starttls (options,
723723
self._tracker.parser.write(data)
724724
})
725725
secure.on('error', function (err) {
726-
self.log.trace({ err: err }, 'error event: %s', new Error().stack)
726+
self.log.trace({ err }, 'error event: %s', new Error().stack)
727727

728728
self.emit('error', err)
729729
sock.destroy()
@@ -744,7 +744,7 @@ Client.prototype.starttls = function starttls (options,
744744
const req = new ExtendedRequest({
745745
requestName: '1.3.6.1.4.1.1466.20037',
746746
requestValue: null,
747-
controls: controls
747+
controls
748748
})
749749

750750
return this._send(req,
@@ -857,7 +857,7 @@ Client.prototype.connect = function connect () {
857857
function initSocket (server) {
858858
tracker = messageTrackerFactory({
859859
id: server ? server.href : self.socketPath,
860-
parser: new Parser({ log: log })
860+
parser: new Parser({ log })
861861
})
862862

863863
// This won't be set on TLS. So. Very. Annoying.
@@ -996,7 +996,7 @@ Client.prototype.connect = function connect () {
996996
socket.end()
997997
})
998998
socket.on('error', function onSocketError (err) {
999-
log.trace({ err: err }, 'error event: %s', new Error().stack)
999+
log.trace({ err }, 'error event: %s', new Error().stack)
10001000

10011001
self.emit('error', err)
10021002
socket.destroy()

lib/client/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const logger = require('../logger')
44
const Client = require('./client')
55

66
module.exports = {
7-
Client: Client,
7+
Client,
88
createClient: function createClient (options) {
99
if (isObject(options) === false) throw TypeError('options (object) required')
1010
if (options.url && typeof options.url !== 'string' && !Array.isArray(options.url)) throw TypeError('options.url (string|array) required')

lib/client/search_pager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ SearchPager.prototype._nextPage = function _nextPage (cookie) {
137137
controls.push(new PagedResultsControl({
138138
value: {
139139
size: this.pageSize,
140-
cookie: cookie
140+
cookie
141141
}
142142
}))
143143

lib/errors/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Object.keys(CODES).forEach(function (code) {
8686
})
8787

8888
ERRORS[CODES[code]] = {
89-
err: err,
89+
err,
9090
message: msg
9191
}
9292
})

lib/index.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
Client: client.Client,
2525
createClient: client.createClient,
2626

27-
Server: Server,
27+
Server,
2828
createServer: function (options) {
2929
if (options === undefined) { options = {} }
3030

@@ -37,21 +37,21 @@ module.exports = {
3737
return new Server(options)
3838
},
3939

40-
Attribute: Attribute,
41-
Change: Change,
40+
Attribute,
41+
Change,
4242

43-
dn: dn,
43+
dn,
4444
DN: dn.DN,
4545
RDN: dn.RDN,
4646
parseDN: dn.DN.fromString,
4747

48-
persistentSearch: persistentSearch,
48+
persistentSearch,
4949
PersistentSearchCache: persistentSearch.PersistentSearchCache,
5050

51-
filters: filters,
51+
filters,
5252
parseFilter: filters.parseString,
5353

54-
url: url,
54+
url,
5555
parseURL: url.parse
5656
}
5757

lib/messages/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212

1313
LDAPMessage: messages.LdapMessage,
1414
LDAPResult: messages.LdapResult,
15-
Parser: Parser,
15+
Parser,
1616

1717
AbandonRequest: messages.AbandonRequest,
1818
AbandonResponse: messages.AbandonResponse,
@@ -33,7 +33,7 @@ module.exports = {
3333
SearchRequest: messages.SearchRequest,
3434
SearchEntry: messages.SearchResultEntry,
3535
SearchReference: messages.SearchResultReference,
36-
SearchResponse: SearchResponse,
36+
SearchResponse,
3737
UnbindRequest: messages.UnbindRequest
3838

3939
}

lib/messages/parser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ Parser.prototype.getMessage = function (ber) {
231231
new Error('Op 0x' + (type ? type.toString(16) : '??') +
232232
' not supported'),
233233
new LDAPResult({
234-
messageId: messageId,
234+
messageId,
235235
protocolOp: type || Protocol.operations.LDAP_RES_EXTENSION
236236
}))
237237

238238
return false
239239
}
240240

241241
return new Message({
242-
messageId: messageId,
242+
messageId,
243243
log: self.log
244244
})
245245
}

lib/persistent_search.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function getEntryChangeNotificationControl (req, obj) {
8989
}
9090

9191
value.changeNumber = attrs.changenumber
92-
return new EntryChangeNotificationControl({ value: value })
92+
return new EntryChangeNotificationControl({ value })
9393
} else {
9494
return false
9595
}
@@ -104,6 +104,6 @@ function checkChangeType (req, requestType) {
104104

105105
module.exports = {
106106
PersistentSearchCache: PersistentSearch,
107-
checkChangeType: checkChangeType,
108-
getEntryChangeNotificationControl: getEntryChangeNotificationControl
107+
checkChangeType,
108+
getEntryChangeNotificationControl
109109
}

package.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,34 @@
1111
},
1212
"main": "lib/index.js",
1313
"dependencies": {
14-
"@ldapjs/asn1": "2.0.0-rc.4",
15-
"@ldapjs/attribute": "1.0.0-rc.5",
16-
"@ldapjs/change": "1.0.0-rc.3",
17-
"@ldapjs/controls": "2.0.0-rc.1",
18-
"@ldapjs/dn": "1.0.0-rc.1",
19-
"@ldapjs/filter": "2.0.0-rc.5",
20-
"@ldapjs/messages": "1.0.0-rc.3",
21-
"@ldapjs/protocol": "^1.0.0",
22-
"abstract-logging": "^2.0.0",
14+
"@ldapjs/asn1": "2.0.0",
15+
"@ldapjs/attribute": "1.0.0",
16+
"@ldapjs/change": "1.0.0",
17+
"@ldapjs/controls": "2.0.0",
18+
"@ldapjs/dn": "1.0.0",
19+
"@ldapjs/filter": "2.0.0",
20+
"@ldapjs/messages": "1.0.0",
21+
"@ldapjs/protocol": "^1.2.1",
22+
"abstract-logging": "^2.0.1",
2323
"assert-plus": "^1.0.0",
2424
"backoff": "^2.5.0",
2525
"once": "^1.4.0",
26-
"vasync": "^2.2.0",
27-
"verror": "^1.8.1"
26+
"vasync": "^2.2.1",
27+
"verror": "^1.10.1"
2828
},
2929
"devDependencies": {
3030
"@fastify/pre-commit": "^2.0.2",
31-
"eslint": "8.12.0",
32-
"eslint-config-standard": "^16.0.2",
33-
"eslint-plugin-import": "^2.22.1",
31+
"eslint": "8.34.0",
32+
"eslint-config-standard": "^17.0.0",
33+
"eslint-plugin-import": "^2.27.5",
34+
"eslint-plugin-n": "^15.6.1",
3435
"eslint-plugin-node": "^11.1.0",
35-
"eslint-plugin-promise": "6.0.0",
36+
"eslint-plugin-promise": "6.1.1",
3637
"front-matter": "^4.0.2",
3738
"get-port": "^5.1.1",
38-
"highlight.js": "^11.0.1",
39-
"marked": "^4.0.0",
40-
"tap": "16.0.1"
39+
"highlight.js": "^11.7.0",
40+
"marked": "^4.2.12",
41+
"tap": "16.3.4"
4142
},
4243
"scripts": {
4344
"test": "tap --no-cov -R terse",

0 commit comments

Comments
 (0)