commit
0e8e9aa110
|
@ -31,8 +31,7 @@
|
||||||
"husky": "^4.2.5",
|
"husky": "^4.2.5",
|
||||||
"snazzy": "^8.0.0",
|
"snazzy": "^8.0.0",
|
||||||
"standard": "^14.0.2",
|
"standard": "^14.0.2",
|
||||||
"tap": "14.10.1",
|
"tap": "14.10.1"
|
||||||
"uuid": "^3.3.3"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tap --no-cov",
|
"test": "tap --no-cov",
|
||||||
|
|
|
@ -3,10 +3,9 @@
|
||||||
const util = require('util')
|
const util = require('util')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const tap = require('tap')
|
const tap = require('tap')
|
||||||
const uuid = require('uuid')
|
|
||||||
const vasync = require('vasync')
|
const vasync = require('vasync')
|
||||||
const getPort = require('get-port')
|
const getPort = require('get-port')
|
||||||
const { getSock } = require('./utils')
|
const { getSock, uuid } = require('./utils')
|
||||||
const ldap = require('../lib')
|
const ldap = require('../lib')
|
||||||
const { Attribute, Change } = ldap
|
const { Attribute, Change } = ldap
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const tap = require('tap')
|
const tap = require('tap')
|
||||||
const uuid = require('uuid')
|
const { getSock, uuid } = require('./utils')
|
||||||
const { getSock } = require('./utils')
|
|
||||||
const ldap = require('../lib')
|
const ldap = require('../lib')
|
||||||
|
|
||||||
function search (t, options, callback) {
|
function search (t, options, callback) {
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
const os = require('os')
|
const os = require('os')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const uuid = require('uuid')
|
const crypto = require('crypto')
|
||||||
|
|
||||||
|
function uuid () {
|
||||||
|
return crypto.randomBytes(16).toString('hex')
|
||||||
|
}
|
||||||
|
|
||||||
function getSock () {
|
function getSock () {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
|
@ -13,5 +17,6 @@ function getSock () {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
getSock
|
getSock,
|
||||||
|
uuid
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue