File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
lib/node_modules/@stdlib/fs/resolve-parent-paths Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function onPaths( error, paths ) {
44
44
throw error;
45
45
}
46
46
console .log ( paths );
47
- // => ' ...'
47
+ // => [ ...]
48
48
}
49
49
```
50
50
@@ -74,7 +74,7 @@ function onPaths( error, paths ) {
74
74
throw error;
75
75
}
76
76
console .log ( paths );
77
- // => ' ...'
77
+ // => [ ...]
78
78
}
79
79
```
80
80
@@ -92,7 +92,7 @@ function onPaths( error, paths ) {
92
92
throw error;
93
93
}
94
94
console .log ( paths );
95
- // => ' ...'
95
+ // => [ ...]
96
96
}
97
97
```
98
98
@@ -102,7 +102,7 @@ Synchronously resolves paths from a set of paths by walking parent directories.
102
102
103
103
``` javascript
104
104
var paths = resolveParentPaths .sync ( [ ' package.json' , ' README.md' ] );
105
- // returns [ ' ...', '...' ]
105
+ // returns [...]
106
106
```
107
107
108
108
The function accepts the same ` options ` as [ ` resolveParentPaths() ` ] ( #resolve-parent-paths ) .
@@ -138,14 +138,14 @@ var opts = {
138
138
/* Sync */
139
139
140
140
var out = resolveParentPaths .sync ( [ ' package.json' , ' README.md' ], opts );
141
- // returns [ ' ...', '...' ]
141
+ // returns [...]
142
142
143
143
out = resolveParentPaths .sync ( [ ' non_existent_basename' ], opts );
144
144
// returns []
145
145
146
146
opts .mode = ' first' ;
147
147
out = resolveParentPaths .sync ( [ ' non_existent_basename' , ' package.json' ], opts );
148
- // returns [ ' ...' ]
148
+ // returns [...]
149
149
150
150
/* Async */
151
151
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var opts = {
28
28
29
29
var out = resolveParentPaths . sync ( [ 'package.json' , 'README.md' ] , opts ) ;
30
30
console . log ( out ) ;
31
- // => [ ' ...', '...' ]
31
+ // => [...]
32
32
33
33
out = resolveParentPaths . sync ( [ 'non_existent_basename' , 'package.json' ] , opts ) ;
34
34
console . log ( out ) ;
@@ -37,7 +37,7 @@ console.log( out );
37
37
opts . mode = 'first' ;
38
38
out = resolveParentPaths . sync ( [ 'non_existent_basename' , 'package.json' ] , opts ) ;
39
39
console . log ( out ) ;
40
- // => [ ' ...' ]
40
+ // => [...]
41
41
42
42
/* Async */
43
43
You can’t perform that action at this time.
0 commit comments