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