diff --git a/index.js b/index.js index 2167b7b1..1a2261de 100644 --- a/index.js +++ b/index.js @@ -677,8 +677,8 @@ _getWatchHelpers(path, depth) { const getDirParts = (path) => { if (!hasGlob) return []; const parts = []; - const expandedPath = path.includes("{") - ? braces.expand(path) + const expandedPath = path.includes("{") + ? braces.expand(path) : [path]; expandedPath.forEach((path) => { parts.push(sysPath.relative(watchPath, path).split(/[\/\\]/)); diff --git a/package.json b/package.json index 2f1c8f6f..464e6ff2 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ "node": ">= 8" }, "dependencies": { - "anymatch": "^3.0.0", + "anymatch": "^3.0.1", "async-each": "^1.0.3", - "braces": "^3.0.0", + "braces": "^3.0.2", "glob-parent": "^5.0.0", "is-binary-path": "^2.0.1", "is-glob": "^4.0.1", @@ -25,7 +25,7 @@ "fsevents": "^2.0.6" }, "devDependencies": { - "@types/node": "^11.9.4", + "@types/node": "^11.13.4", "chai": "^4.2.0", "coveralls": "^3.0.1", "dtslint": "0.4.1",