Skip to content

Commit f09cf02

Browse files
coreyfarrellbcoe
authored andcommittedJun 6, 2018
chore: update dependencies (#855)
1 parent d0f654c commit f09cf02

File tree

8 files changed

+828
-1702
lines changed

8 files changed

+828
-1702
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ You can tell nyc to exclude specific files and directories by adding
205205
an `nyc.exclude` array to your `package.json`. Each element of
206206
the array is a glob pattern indicating which paths should be omitted.
207207

208-
Globs are matched using [micromatch](https://www.npmjs.com/package/micromatch).
208+
Globs are matched using [minimatch](https://www.npmjs.com/package/minimatch).
209209

210210
For example, the following config will exclude any files with the extension `.spec.js`,
211211
and anything in the `build` directory:
@@ -240,7 +240,7 @@ an `include` key with a list of globs to specify specific files that should be c
240240
}
241241
```
242242

243-
> `nyc` uses micromatch for glob expansions, you can read its documentation [here](https://www.npmjs.com/package/micromatch).
243+
> `nyc` uses minimatch for glob expansions, you can read its documentation [here](https://www.npmjs.com/package/minimatch).
244244
245245
> Note: include defaults to `['**']`
246246

‎build-tests.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var fs = require('fs')
44
var path = require('path')
55
var rimraf = require('rimraf')
6-
var mkdirp = require('mkdirp')
6+
var mkdirp = require('make-dir')
77
var forkingTap = require('forking-tap')
88
var zeroFill = require('zero-fill')
99
var sanitizeFilename = require('sanitize-filename')
@@ -24,8 +24,8 @@ var individualTests = forkingTap(originalTestSource, {
2424

2525
function writeTest (test, i, enableCache) {
2626
var filename = ['built', zeroFill(3, i)]
27-
.concat(test.nestedName)
28-
.join('-')
27+
.concat(test.nestedName)
28+
.join('-')
2929

3030
if (enableCache) {
3131
filename += '-cache'

‎index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const libCoverage = require('istanbul-lib-coverage')
1313
const libHook = require('istanbul-lib-hook')
1414
const libReport = require('istanbul-lib-report')
1515
const md5hex = require('md5-hex')
16-
const mkdirp = require('mkdirp')
16+
const mkdirp = require('make-dir')
1717
const Module = require('module')
1818
const onExit = require('signal-exit')
1919
const path = require('path')
@@ -122,7 +122,7 @@ NYC.prototype._loadAdditionalModules = function () {
122122
this.require.forEach(function (r) {
123123
// first attempt to require the module relative to
124124
// the directory being instrumented.
125-
var p = resolveFrom(_this.cwd, r)
125+
var p = resolveFrom.silent(_this.cwd, r)
126126
if (p) {
127127
require(p)
128128
return
@@ -298,7 +298,8 @@ NYC.prototype._transformFactory = function (cacheDir) {
298298
}
299299
}
300300

301-
NYC.prototype._handleJs = function (code, filename) {
301+
NYC.prototype._handleJs = function (code, options) {
302+
var filename = options.filename
302303
var relFile = path.relative(this.cwd, filename)
303304
// ensure the path has correct casing (see istanbuljs/nyc#269 and nodejs/node#6624)
304305
filename = path.resolve(this.cwd, relFile)

‎lib/self-coverage-helper.js

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

33
const path = require('path')
44
const fs = require('fs')
5-
const mkdirp = require('mkdirp')
5+
const mkdirp = require('make-dir')
66
const onExit = require('signal-exit')
77

88
onExit(function () {

0 commit comments

Comments
 (0)
Please sign in to comment.