This repository was archived by the owner on May 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +47
-21
lines changed Expand file tree Collapse file tree 8 files changed +47
-21
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : " github-actions"
4
+ # versioning-strategy: increase-if-necessary
5
+ directory : " /"
6
+ schedule :
7
+ interval : " weekly"
8
+ day : " saturday"
9
+ time : " 03:00"
10
+ timezone : " America/New_York"
11
+ - package-ecosystem : " npm"
12
+ versioning-strategy : increase-if-necessary
13
+ directory : " /"
14
+ schedule :
15
+ interval : " weekly"
16
+ day : " saturday"
17
+ time : " 03:00"
18
+ timezone : " America/New_York"
Original file line number Diff line number Diff line change 11
11
name : Lint Check
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v1
14
+ - uses : actions/checkout@v2
15
15
- uses : actions/setup-node@v1
16
16
- name : Install Packages
17
17
run : npm install
29
29
- 10.13.0
30
30
- 10.x
31
31
- 12.x
32
+ - 14.x
32
33
runs-on : ${{ matrix.os }}
33
34
steps :
34
- - uses : actions/checkout@v1
35
+ - uses : actions/checkout@v2
35
36
- uses : actions/setup-node@v1
36
37
with :
37
38
node-version : ${{ matrix.node }}
@@ -40,12 +41,12 @@ jobs:
40
41
- name : Run Tests
41
42
run : npm run test:ci
42
43
- name : Coveralls Parallel
43
- uses : coverallsapp/github-action@master
44
+ uses : coverallsapp/github-action@v1.1.1
44
45
with :
45
46
github-token : ${{ secrets.GITHUB_TOKEN }}
46
47
parallel : true
47
48
- name : Coveralls Finished
48
- uses : coverallsapp/github-action@master
49
+ uses : coverallsapp/github-action@v1.1.1
49
50
with :
50
51
github-token : ${{ secrets.GITHUB_TOKEN }}
51
52
parallel-finished : true
Original file line number Diff line number Diff line change 2
2
3
3
// var assert = require('assert')
4
4
5
- var asn1 = require ( 'asn1' )
6
-
7
5
var Protocol = require ( '../protocol' )
8
6
9
7
/// --- Globals
10
8
11
- var BerWriter = asn1 . BerWriter
12
-
13
9
var TYPES = {
14
10
and : Protocol . FILTER_AND ,
15
11
or : Protocol . FILTER_OR ,
@@ -38,9 +34,18 @@ function isFilter (filter) {
38
34
return false
39
35
}
40
36
37
+ function isBerWriter ( ber ) {
38
+ return Boolean (
39
+ ber &&
40
+ typeof ( ber ) === 'object' &&
41
+ typeof ( ber . startSequence ) === 'function' &&
42
+ typeof ( ber . endSequence ) === 'function'
43
+ )
44
+ }
45
+
41
46
function mixin ( target ) {
42
47
target . prototype . toBer = function toBer ( ber ) {
43
- if ( ! ber || ! ( ber instanceof BerWriter ) ) { throw new TypeError ( 'ber (BerWriter) required' ) }
48
+ if ( isBerWriter ( ber ) === false ) { throw new TypeError ( 'ber (BerWriter) required' ) }
44
49
45
50
ber . startSequence ( TYPES [ this . type ] )
46
51
ber = this . _toBer ( ber )
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const logger = Object . create ( require ( 'abstract-logging' ) )
3
+ const logger = require ( 'abstract-logging' )
4
4
logger . child = function ( ) { return logger }
5
5
6
6
module . exports = logger
Original file line number Diff line number Diff line change 3
3
"name" : " ldapjs" ,
4
4
"homepage" : " http://ldapjs.org" ,
5
5
"description" : " LDAP client and server APIs" ,
6
- "version" : " 2.0 .0" ,
6
+ "version" : " 2.1 .0" ,
7
7
"license" : " MIT" ,
8
8
"repository" : {
9
9
"type" : " git" ,
17
17
"node" : " >=10.13.0"
18
18
},
19
19
"dependencies" : {
20
- "abstract-logging" : " ^1 .0.0" ,
20
+ "abstract-logging" : " ^2 .0.0" ,
21
21
"asn1" : " ^0.2.4" ,
22
22
"assert-plus" : " ^1.0.0" ,
23
23
"backoff" : " ^2.5.0" ,
28
28
},
29
29
"devDependencies" : {
30
30
"get-port" : " ^5.1.1" ,
31
- "husky" : " ^3.0.4 " ,
31
+ "husky" : " ^4.2.5 " ,
32
32
"snazzy" : " ^8.0.0" ,
33
33
"standard" : " ^14.0.2" ,
34
- "tap" : " 14.10.1" ,
35
- "uuid" : " ^3.3.3"
34
+ "tap" : " 14.10.8"
36
35
},
37
36
"scripts" : {
38
37
"test" : " tap --no-cov" ,
Original file line number Diff line number Diff line change 3
3
const util = require ( 'util' )
4
4
const assert = require ( 'assert' )
5
5
const tap = require ( 'tap' )
6
- const uuid = require ( 'uuid' )
7
6
const vasync = require ( 'vasync' )
8
7
const getPort = require ( 'get-port' )
9
- const { getSock } = require ( './utils' )
8
+ const { getSock, uuid } = require ( './utils' )
10
9
const ldap = require ( '../lib' )
11
10
const { Attribute, Change } = ldap
12
11
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const tap = require ( 'tap' )
4
- const uuid = require ( 'uuid' )
5
- const { getSock } = require ( './utils' )
4
+ const { getSock, uuid } = require ( './utils' )
6
5
const ldap = require ( '../lib' )
7
6
8
7
function search ( t , options , callback ) {
Original file line number Diff line number Diff line change 2
2
3
3
const os = require ( 'os' )
4
4
const path = require ( 'path' )
5
- const uuid = require ( 'uuid' )
5
+ const crypto = require ( 'crypto' )
6
+
7
+ function uuid ( ) {
8
+ return crypto . randomBytes ( 16 ) . toString ( 'hex' )
9
+ }
6
10
7
11
function getSock ( ) {
8
12
if ( process . platform === 'win32' ) {
@@ -13,5 +17,6 @@ function getSock () {
13
17
}
14
18
15
19
module . exports = {
16
- getSock
20
+ getSock,
21
+ uuid
17
22
}
You can’t perform that action at this time.
0 commit comments