@travetto/base
Advanced tools
Comparing version 0.0.65 to 0.0.66
@@ -19,3 +19,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.65" | ||
"version": "0.0.66" | ||
} |
@@ -32,3 +32,3 @@ import * as path from 'path'; | ||
export function scanDir(handler: Handler, base?: string, curBase?: string) { | ||
export function scanDir(handler: Handler, base?: string, relBase?: string) { | ||
return new Promise<Entry[]>(async (resolve, reject) => { | ||
@@ -39,5 +39,5 @@ try { | ||
base = base || process.cwd(); | ||
curBase = curBase || base; | ||
relBase = relBase || base; | ||
for (const file of (await fsReaddir(base))) { | ||
for (const file of (await fsReaddir(relBase))) { | ||
if (file.startsWith('.')) { | ||
@@ -47,3 +47,3 @@ continue; | ||
const full = `${curBase}${path.sep}${file}`; | ||
const full = `${relBase}${path.sep}${file}`; | ||
const stats = await fsStat(full); | ||
@@ -50,0 +50,0 @@ const entry: Entry = { stats, file: full }; |
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
25501