File tree 3 files changed +7
-12
lines changed
3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const Hash = require('./lib/hash')
12
12
const libCoverage = require ( 'istanbul-lib-coverage' )
13
13
const libHook = require ( 'istanbul-lib-hook' )
14
14
const libReport = require ( 'istanbul-lib-report' )
15
- const md5hex = require ( 'md5-hex' )
16
15
const mkdirp = require ( 'make-dir' )
17
16
const Module = require ( 'module' )
18
17
const onExit = require ( 'signal-exit' )
@@ -22,6 +21,7 @@ const resolveFrom = require('resolve-from')
22
21
const rimraf = require ( 'rimraf' )
23
22
const SourceMaps = require ( './lib/source-maps' )
24
23
const testExclude = require ( 'test-exclude' )
24
+ const uuid = require ( 'uuid/v4' )
25
25
26
26
var ProcessInfo
27
27
try {
@@ -363,11 +363,7 @@ NYC.prototype.wrap = function (bin) {
363
363
return this
364
364
}
365
365
366
- NYC . prototype . generateUniqueID = function ( ) {
367
- return md5hex (
368
- process . hrtime ( ) . concat ( process . pid ) . map ( String )
369
- )
370
- }
366
+ NYC . prototype . generateUniqueID = uuid
371
367
372
368
NYC . prototype . writeCoverageFile = function ( ) {
373
369
var coverage = coverageFinder ( )
Original file line number Diff line number Diff line change 89
89
"istanbul-lib-source-maps" : " ^2.0.0" ,
90
90
"istanbul-reports" : " ^1.5.0" ,
91
91
"make-dir" : " ^1.3.0" ,
92
- "md5-hex" : " ^2.0.0" ,
93
92
"merge-source-map" : " ^1.1.0" ,
94
93
"resolve-from" : " ^4.0.0" ,
95
94
"rimraf" : " ^2.6.2" ,
96
95
"signal-exit" : " ^3.0.2" ,
97
96
"spawn-wrap" : " ^1.4.2" ,
98
97
"test-exclude" : " ^5.0.0" ,
98
+ "uuid" : " ^3.3.2" ,
99
99
"yargs" : " 11.1.0" ,
100
100
"yargs-parser" : " ^9.0.2"
101
101
},
140
140
" istanbul-lib-source-maps" ,
141
141
" istanbul-reports" ,
142
142
" make-dir" ,
143
- " md5-hex" ,
144
143
" merge-source-map" ,
145
144
" resolve-from" ,
146
145
" rimraf" ,
147
146
" signal-exit" ,
148
147
" spawn-wrap" ,
149
148
" test-exclude" ,
149
+ " uuid" ,
150
150
" yargs" ,
151
151
" yargs-parser"
152
152
]
You can’t perform that action at this time.
0 commit comments