Comparing version 1.2.2 to 1.2.3
@@ -45,8 +45,19 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const file = dir + name; | ||
if (skip(file, name)) | ||
if (skip(file, name)) { | ||
continue; | ||
let mode = (await fs.stat(root + file)).mode & S_IFMT; | ||
} | ||
let mode; | ||
try { | ||
mode = (await fs.stat(root + file)).mode & S_IFMT; | ||
} | ||
catch (err) { | ||
if (err.code == 'ENOENT') { | ||
continue; // Ignore broken symlinks. | ||
} | ||
throw err; | ||
} | ||
if (mode == S_IFDIR) { | ||
if (depth == maxDepth) | ||
if (depth == maxDepth) { | ||
continue; | ||
} | ||
if (enter(file, depth)) { | ||
@@ -53,0 +64,0 @@ depth++; |
{ | ||
"name": "recrawl", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"main": "lib/recrawl.js", | ||
@@ -8,3 +8,5 @@ "license": "MIT", | ||
"scripts": { | ||
"build": "tsc -p ." | ||
"build": "tsc -p .", | ||
"lint": "tslint -p .", | ||
"test": "jest" | ||
}, | ||
@@ -17,3 +19,6 @@ "dependencies": { | ||
"devDependencies": { | ||
"@sucrase/jest-plugin": "^2.0.0", | ||
"@types/jest": "^24.0.15", | ||
"@types/node": "^10.12.9", | ||
"jest": "^24.8.0", | ||
"prettier": "^1.15.2", | ||
@@ -37,3 +42,8 @@ "tslint": "^5.11.0", | ||
"tiny" | ||
] | ||
], | ||
"jest": { | ||
"transform": { | ||
".(js|jsx|ts|tsx)": "@sucrase/jest-plugin" | ||
} | ||
} | ||
} |
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
15677
11
290
8