locate-path
Advanced tools
Comparing version 1.1.0 to 2.0.0
{ | ||
"name": "locate-path", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "Get the first path that exists on disk of multiple paths", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"p-locate": "^1.0.0", | ||
"p-locate": "^2.0.0", | ||
"path-exists": "^3.0.0" | ||
@@ -40,0 +40,0 @@ }, |
@@ -26,3 +26,3 @@ # locate-path [![Build Status](https://travis-ci.org/sindresorhus/locate-path.svg?branch=master)](https://travis-ci.org/sindresorhus/locate-path) | ||
locatePath(files, {concurrency: 1}).then(foundPath => { | ||
locatePath(files).then(foundPath => { | ||
console.log(foundPath); | ||
@@ -46,4 +46,2 @@ //=> 'rainbow' | ||
Set `{concurrency: 1}` to preserve the search order. | ||
#### options | ||
@@ -61,2 +59,11 @@ | ||
##### preserveOrder | ||
Type: `boolean`<br> | ||
Default: `true` | ||
Preserve `input` order when searching. | ||
Disable this to improve performance if you don't care about the order. | ||
##### cwd | ||
@@ -63,0 +70,0 @@ |
3969
100
+ Addedp-limit@1.3.0(transitive)
+ Addedp-locate@2.0.0(transitive)
+ Addedp-try@1.0.0(transitive)
- Removedp-locate@1.0.0(transitive)
- Removedp-map@1.2.0(transitive)
Updatedp-locate@^2.0.0