From c08f103d52a4439d7eaad33261f3f2539722c3a3 Mon Sep 17 00:00:00 2001 From: Simon Siefke Date: Sun, 7 Nov 2021 18:31:38 +0100 Subject: [PATCH] Update dependencies (#97) --- glob-pattern.js | 8 ++++---- package.json | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/glob-pattern.js b/glob-pattern.js index f65f945..ef6c178 100644 --- a/glob-pattern.js +++ b/glob-pattern.js @@ -1,7 +1,7 @@ import path from 'node:path'; import fs from 'node:fs'; import {globbySync, isDynamicPattern} from 'globby'; -import junk from 'junk'; +import {isNotJunk} from 'junk'; export default class GlobPattern { /** @@ -17,8 +17,8 @@ export default class GlobPattern { if ( !isDynamicPattern(pattern) - && fs.existsSync(pattern) - && fs.lstatSync(pattern).isDirectory() + && fs.existsSync(pattern) + && fs.lstatSync(pattern).isDirectory() ) { this.path = [pattern, '**'].join('/'); } @@ -53,7 +53,7 @@ export default class GlobPattern { }); if (this.options.ignoreJunk) { - matches = matches.filter(file => junk.not(path.basename(file))); + matches = matches.filter(file => isNotJunk(path.basename(file))); } return matches; diff --git a/package.json b/package.json index 1e4a300..b0f003e 100644 --- a/package.json +++ b/package.json @@ -48,19 +48,19 @@ "dependencies": { "arrify": "^3.0.0", "cp-file": "^9.1.0", - "globby": "^12.0.0", - "junk": "^3.1.0", + "globby": "^12.0.2", + "junk": "^4.0.0", "nested-error-stacks": "^2.1.0", - "p-filter": "^2.1.0", - "p-map": "^5.0.0" + "p-filter": "^3.0.0", + "p-map": "^5.3.0" }, "devDependencies": { "ava": "^3.15.0", "proxyquire": "^2.1.3", "rimraf": "^3.0.2", - "tempy": "^1.0.1", - "tsd": "^0.17.0", - "typescript": "^4.3.5", + "tempy": "^2.0.0", + "tsd": "^0.18.0", + "typescript": "^4.4.4", "xo": "^0.42.0" } }