Skip to content

Commit

Permalink
fix(deps): update dependency junk to v4 (#231)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency junk to v4

* Fix Junk v4 usage

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex <alxmorais8@msn.com>
  • Loading branch information
renovate[bot] and alxhotel authored Jul 23, 2023
1 parent 788987c commit 6a89a3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions get-files.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import corePath from 'path'
import fs from 'fs'
import junk from 'junk'
import { isNotJunk } from 'junk'
import once from 'once'
import parallel from 'run-parallel'

Expand All @@ -14,7 +14,7 @@ function traversePath (path, fn, cb) {
if (stats.isDirectory()) {
fs.readdir(path, (err, entries) => {
if (err) return cb(err)
parallel(entries.filter(notHidden).filter(junk.not).map(entry => cb => {
parallel(entries.filter(notHidden).filter(isNotJunk).map(entry => cb => {
traversePath(corePath.join(path, entry), fn, cb)
}), cb)
})
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import blockIterator from 'block-iterator'
import calcPieceLength from 'piece-length'
import corePath from 'path'
import isFile from 'is-file'
import junk from 'junk'
import { isJunk } from 'junk'
import joinIterator from 'join-async-iterator'
import parallel from 'run-parallel'
import queueMicrotask from 'queue-microtask'
Expand Down Expand Up @@ -336,7 +336,7 @@ function onFiles (files, opts, cb) {
*/
function isJunkPath (path) {
const filename = path[path.length - 1]
return filename[0] === '.' && junk.is(filename)
return filename[0] === '.' && isJunk(filename)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"fast-readable-async-iterator": "^1.1.1",
"is-file": "^1.0.0",
"join-async-iterator": "^1.1.1",
"junk": "^3.1.0",
"junk": "^4.0.1",
"minimist": "^1.2.8",
"once": "^1.4.0",
"piece-length": "^2.0.1",
Expand Down

0 comments on commit 6a89a3a

Please sign in to comment.