Comparing version 8.0.1 to 8.0.2
10
index.js
@@ -5,3 +5,3 @@ "use strict"; | ||
const {readdirSync, statSync, lstatSync} = require("fs"); | ||
const {sep} = require("path"); | ||
const {join} = require("path"); | ||
const picomatch = require("picomatch"); | ||
@@ -25,3 +25,3 @@ | ||
function makePath(entry, dir) { | ||
return dir === "." ? entry.name : `${dir}${sep}${entry.name}`; | ||
return dir === "." ? entry.name : `${join(dir, entry.name)}`; | ||
} | ||
@@ -81,3 +81,3 @@ | ||
if (opts.followSymlinks && dirent.isSymbolicLink()) { | ||
if (!stats) try { stats = await stat(path) } catch {} | ||
if (!stats) try { stats = await stat(path); } catch {} | ||
if (stats && stats.isDirectory()) recurse = true; | ||
@@ -130,3 +130,3 @@ } else if (dirent.isDirectory()) { | ||
if (opts.followSymlinks && dirent.isSymbolicLink()) { | ||
if (!stats) try { stats = await stat(path) } catch {} | ||
if (!stats) try { stats = await stat(path); } catch {} | ||
if (stats && stats.isDirectory()) recurse = true; | ||
@@ -181,3 +181,3 @@ } else if (dirent.isDirectory()) { | ||
if (opts.followSymlinks && dirent.isSymbolicLink()) { | ||
if (!stats) try { stats = statSync(path) } catch {} | ||
if (!stats) try { stats = statSync(path); } catch {} | ||
if (stats && stats.isDirectory()) recurse = true; | ||
@@ -184,0 +184,0 @@ } else if (dirent.isDirectory()) { |
{ | ||
"name": "rrdir", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "Recursive directory reader with a delightful API", | ||
@@ -23,8 +23,8 @@ "author": "silverwind <me@silverwind.io>", | ||
"del": "5.1.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-silverwind": "11.0.2", | ||
"jest": "25.2.4", | ||
"eslint": "7.0.0", | ||
"eslint-config-silverwind": "12.0.1", | ||
"jest": "26.0.1", | ||
"tempy": "0.5.0", | ||
"updates": "10.2.6", | ||
"versions": "8.2.7" | ||
"updates": "10.2.11", | ||
"versions": "8.2.8" | ||
}, | ||
@@ -31,0 +31,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9697