Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update glob, tap and minimatch packages #54

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .taprc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
timeout: 360
bail: true
coverage: false
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ os:
- osx
- linux
node_js:
- 12
- 10
- 8
- 20
- 18
- 16
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

const path = require('path');
const { promisify } = require('util');
const glob = promisify(require('glob'));
const minimatch = require('minimatch');
const { glob } = require('glob');
const { minimatch } = require('minimatch');
const { defaults } = require('@istanbuljs/schema');
const isOutsideDir = require('./is-outside-dir');

Expand Down
2 changes: 1 addition & 1 deletion is-outside-dir-win32.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const path = require('path');
const minimatch = require('minimatch');
const { minimatch } = require('minimatch');

const dot = { dot: true };

Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
"homepage": "https://istanbul.js.org/",
"dependencies": {
"@istanbuljs/schema": "^0.1.2",
"glob": "^7.1.4",
"minimatch": "^3.0.4"
"glob": "^10.0.0",
"minimatch": "^9.0.0"
},
"devDependencies": {
"nyc": "^15.0.0",
"standard-version": "^7.0.0",
"tap": "^14.10.5"
"standard-version": "^9.0.0",
"tap": "^18.0.0"
},
"engines": {
"node": ">=8"
"node": ">=16"
}
}
}
2 changes: 1 addition & 1 deletion test/glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function testHelper(t, { options, args = [], label }) {
const sync = e.globSync(...args).sort();
const pr = (await e.glob(...args)).sort();

t.strictDeepEqual(sync, pr, 'glob and globSync should find the same files');
t.match(sync, pr, 'glob and globSync should find the same files');
t.matchSnapshot(sync, label);
}

Expand Down
4 changes: 2 additions & 2 deletions test/test-exclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ async function testHelper(t, { options, no = [], yes = [] }) {
const e = new TestExclude(options);

no.forEach(file => {
t.false(e.shouldInstrument(file));
t.notOk(e.shouldInstrument(file));
});

yes.forEach(file => {
t.true(e.shouldInstrument(file));
t.ok(e.shouldInstrument(file));
});
}

Expand Down