From a353db1e178b55813d003df49120ee30364bf64a Mon Sep 17 00:00:00 2001 From: Snehil Shah Date: Mon, 16 Sep 2024 23:40:55 +0530 Subject: [PATCH 1/4] docs: update `resolve-parent-paths` examples Signed-off-by: Snehil Shah --- lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md b/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md index 76c1d14a7ab..c1c1df812e9 100644 --- a/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md +++ b/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md @@ -44,7 +44,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => '...' + // => [ '...', '...' ] } ``` @@ -74,7 +74,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => '...' + // => [ '...', '...' ] } ``` @@ -92,7 +92,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => '...' + // => [ '...', '...' ] } ``` From d884a0af575f8fb7daa3e2969269fe24c8a67678 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 16 Sep 2024 14:19:15 -0700 Subject: [PATCH 2/4] Apply suggestions from code review Signed-off-by: Athan --- lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md b/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md index c1c1df812e9..ae9a84f1ea5 100644 --- a/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md +++ b/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md @@ -44,7 +44,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => [ '...', '...' ] + // => [...] } ``` @@ -74,7 +74,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => [ '...', '...' ] + // => [...] } ``` @@ -92,7 +92,7 @@ function onPaths( error, paths ) { throw error; } console.log( paths ); - // => [ '...', '...' ] + // => [...] } ``` From 732437e2b2ff367328e875b65bacdfcdf565b813 Mon Sep 17 00:00:00 2001 From: Snehil Shah Date: Tue, 17 Sep 2024 03:36:55 +0530 Subject: [PATCH 3/4] docs: fix other outputs Signed-off-by: Snehil Shah --- lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md b/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md index ae9a84f1ea5..4ae39ceaed2 100644 --- a/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md +++ b/lib/node_modules/@stdlib/fs/resolve-parent-paths/README.md @@ -102,7 +102,7 @@ Synchronously resolves paths from a set of paths by walking parent directories. ```javascript var paths = resolveParentPaths.sync( [ 'package.json', 'README.md' ] ); -// returns [ '...', '...' ] +// returns [...] ``` The function accepts the same `options` as [`resolveParentPaths()`](#resolve-parent-paths). @@ -138,14 +138,14 @@ var opts = { /* Sync */ var out = resolveParentPaths.sync( [ 'package.json', 'README.md' ], opts ); -// returns [ '...', '...' ] +// returns [...] out = resolveParentPaths.sync( [ 'non_existent_basename' ], opts ); // returns [] opts.mode = 'first'; out = resolveParentPaths.sync( [ 'non_existent_basename', 'package.json' ], opts ); -// returns [ '...' ] +// returns [...] /* Async */ From e2f6645937b46e32ce3afd16cd85c87e923c2fbf Mon Sep 17 00:00:00 2001 From: Snehil Shah Date: Tue, 17 Sep 2024 04:02:54 +0530 Subject: [PATCH 4/4] docs: fix examples Signed-off-by: Snehil Shah --- .../@stdlib/fs/resolve-parent-paths/examples/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/fs/resolve-parent-paths/examples/index.js b/lib/node_modules/@stdlib/fs/resolve-parent-paths/examples/index.js index c95bbb380bc..c7d5465b53b 100644 --- a/lib/node_modules/@stdlib/fs/resolve-parent-paths/examples/index.js +++ b/lib/node_modules/@stdlib/fs/resolve-parent-paths/examples/index.js @@ -28,7 +28,7 @@ var opts = { var out = resolveParentPaths.sync( [ 'package.json', 'README.md' ], opts ); console.log( out ); -// => [ '...', '...' ] +// => [...] out = resolveParentPaths.sync( [ 'non_existent_basename', 'package.json' ], opts ); console.log( out ); @@ -37,7 +37,7 @@ console.log( out ); opts.mode = 'first'; out = resolveParentPaths.sync( [ 'non_existent_basename', 'package.json' ], opts ); console.log( out ); -// => [ '...' ] +// => [...] /* Async */