inquirer-fs-selector
Advanced tools
Comparing version 1.4.0 to 1.4.1
14
index.js
@@ -521,8 +521,12 @@ // @flow | ||
if (basePath !== rootPath && shouldDisplayItem(true, false, path.format({dir: basePath, base: '..'}))) { | ||
itemsToShow.unshift(BACK); | ||
} | ||
if (shouldDisplayItem) { | ||
if (basePath !== rootPath && shouldDisplayItem(true, false, path.format({dir: basePath, base: '..'}))) { | ||
itemsToShow.unshift(BACK); | ||
} | ||
if (shouldDisplayItem(true, false, path.format({dir: basePath, base: '.'}))) { | ||
itemsToShow.unshift(CURRENT); | ||
if (shouldDisplayItem(true, false, path.format({dir: basePath, base: '.'}))) { | ||
itemsToShow.unshift(CURRENT); | ||
} | ||
} else { | ||
itemsToShow.unshift(BACK, CURRENT); | ||
} | ||
@@ -529,0 +533,0 @@ |
{ | ||
"name": "inquirer-fs-selector", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A filesystem prompt selector for Inquirer.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
20685
460