Merge pull request #643 from UziTech/remove-uuid

remove uuid
This commit is contained in:
Tony Brix 2020-07-22 10:26:25 -05:00 committed by GitHub
commit 0e8e9aa110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 8 deletions

View File

@ -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",

View File

@ -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

View File

@ -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) {

View File

@ -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
}