Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 0e8e9aa

Browse files
authoredJul 22, 2020
Merge pull request #643 from UziTech/remove-uuid
remove uuid
2 parents 2b4b9ed + acc1e4c commit 0e8e9aa

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed
 

‎package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"husky": "^4.2.5",
3232
"snazzy": "^8.0.0",
3333
"standard": "^14.0.2",
34-
"tap": "14.10.1",
35-
"uuid": "^3.3.3"
34+
"tap": "14.10.1"
3635
},
3736
"scripts": {
3837
"test": "tap --no-cov",

‎test/client.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
const util = require('util')
44
const assert = require('assert')
55
const tap = require('tap')
6-
const uuid = require('uuid')
76
const vasync = require('vasync')
87
const getPort = require('get-port')
9-
const { getSock } = require('./utils')
8+
const { getSock, uuid } = require('./utils')
109
const ldap = require('../lib')
1110
const { Attribute, Change } = ldap
1211

‎test/laundry.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict'
22

33
const tap = require('tap')
4-
const uuid = require('uuid')
5-
const { getSock } = require('./utils')
4+
const { getSock, uuid } = require('./utils')
65
const ldap = require('../lib')
76

87
function search (t, options, callback) {

‎test/utils.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
const os = require('os')
44
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+
}
610

711
function getSock () {
812
if (process.platform === 'win32') {
@@ -13,5 +17,6 @@ function getSock () {
1317
}
1418

1519
module.exports = {
16-
getSock
20+
getSock,
21+
uuid
1722
}

0 commit comments

Comments
 (0)
This repository has been archived.