From 184dd49b4307aabc84cc3ca553bfca2c01afec0e Mon Sep 17 00:00:00 2001 From: Krie <112789870+R-Kri@users.noreply.github.com> Date: Thu, 23 Oct 2025 17:10:25 +0530 Subject: [PATCH 1/6] chore: fix JavaScript lint errors - Replace './boop.js' with './example.js' in JSDoc examples - Replace new Array() with array literal and push in bessely0-by test --- .../math/strided/special/bessely0-by/test/test.main.js | 10 ++++++++-- .../utils/async/for-each-right/docs/types/index.d.ts | 10 +++++----- .../@stdlib/utils/async/for-each-right/lib/factory.js | 2 +- .../@stdlib/utils/async/for-each-right/lib/index.js | 2 +- .../@stdlib/utils/async/for-each-right/lib/main.js | 2 +- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js index 592be8a89128..f671b14a02a2 100644 --- a/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js @@ -74,7 +74,10 @@ tape( 'the function computes the Bessel function of the second kind of order zer bessely0By( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + for ( i = 0; i < 5; i++ ) { + x.push( void 0 ); + } y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -82,7 +85,10 @@ tape( 'the function computes the Bessel function of the second kind of order zer bessely0By( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + for ( i = 0; i < 5; i++ ) { + x.push( void 0 ); + } x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts index 812f1438fe30..fd1d6ce33c50 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts @@ -161,7 +161,7 @@ interface ForEachRightAsync { * * var files = [ * './beep.js', - * './boop.js' + * './path/to/file.js' * ]; * * forEachRightAsync( files, read, done ); @@ -212,7 +212,7 @@ interface ForEachRightAsync { * * var files = [ * './beep.js', - * './boop.js' + * './path/to/file.js' * ]; * * forEachRightAsync( files, read, done ); @@ -263,7 +263,7 @@ interface ForEachRightAsync { * // Create a collection over which to iterate: * var files = [ * './beep.js', - * './boop.js' + * './path/to/file.js' * ]; * * // Define a callback which handles errors: @@ -314,7 +314,7 @@ interface ForEachRightAsync { * // Create a collection over which to iterate: * var files = [ * './beep.js', - * './boop.js' + * './path/to/file.js' * ]; * * // Define a callback which handles errors: @@ -375,7 +375,7 @@ interface ForEachRightAsync { * * var files = [ * './beep.js', -* './boop.js' +* './path/to/file.js' * ]; * * forEachRightAsync( files, read, done ); diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js index d00b514c5847..04b93230b2a0 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js @@ -76,7 +76,7 @@ var limit = require( './limit.js' ); * // Create a collection over which to iterate: * var files = [ * './beep.js', -* './boop.js' +* './path/to/file.js' * ]; * * // Define a callback which handles errors: diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js index a63708eb0e50..229adbacd29c 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js @@ -29,7 +29,7 @@ * * var files = [ * './beep.js', -* './boop.js' +* './path/to/file.js' * ]; * * function done( error ) { diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js index 94606dd05636..2756faf0f5aa 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js @@ -74,7 +74,7 @@ var factory = require( './factory.js' ); * * var files = [ * './beep.js', -* './boop.js' +* './path/to/file.js' * ]; * * forEachRightAsync( files, read, done ); From 21e0db70cafb44c8fcdcd12eb12924adcc499d6e Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:46:02 -0700 Subject: [PATCH 2/6] test: revert densification changes Signed-off-by: Athan --- .../strided/special/bessely0-by/test/test.main.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js index f671b14a02a2..3219716a3a00 100644 --- a/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/bessely0-by/test/test.main.js @@ -74,10 +74,8 @@ tape( 'the function computes the Bessel function of the second kind of order zer bessely0By( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = []; - for ( i = 0; i < 5; i++ ) { - x.push( void 0 ); - } + // eslint-disable-next-line stdlib/no-new-array + x = new Array( 5 ); // sparse array y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -85,10 +83,8 @@ tape( 'the function computes the Bessel function of the second kind of order zer bessely0By( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = []; - for ( i = 0; i < 5; i++ ) { - x.push( void 0 ); - } + // eslint-disable-next-line stdlib/no-new-array + x = new Array( 5 ); // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; From 1d89cb673e04aad95a0664f482abe4fc18632b26 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:46:57 -0700 Subject: [PATCH 3/6] Discard changes to lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts --- .../utils/async/for-each-right/docs/types/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts b/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts index fd1d6ce33c50..812f1438fe30 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/docs/types/index.d.ts @@ -161,7 +161,7 @@ interface ForEachRightAsync { * * var files = [ * './beep.js', - * './path/to/file.js' + * './boop.js' * ]; * * forEachRightAsync( files, read, done ); @@ -212,7 +212,7 @@ interface ForEachRightAsync { * * var files = [ * './beep.js', - * './path/to/file.js' + * './boop.js' * ]; * * forEachRightAsync( files, read, done ); @@ -263,7 +263,7 @@ interface ForEachRightAsync { * // Create a collection over which to iterate: * var files = [ * './beep.js', - * './path/to/file.js' + * './boop.js' * ]; * * // Define a callback which handles errors: @@ -314,7 +314,7 @@ interface ForEachRightAsync { * // Create a collection over which to iterate: * var files = [ * './beep.js', - * './path/to/file.js' + * './boop.js' * ]; * * // Define a callback which handles errors: @@ -375,7 +375,7 @@ interface ForEachRightAsync { * * var files = [ * './beep.js', -* './path/to/file.js' +* './boop.js' * ]; * * forEachRightAsync( files, read, done ); From dcc2941bf445f3ccfba6874fbd246897350c6328 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:47:06 -0700 Subject: [PATCH 4/6] Discard changes to lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js --- .../@stdlib/utils/async/for-each-right/lib/factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js index 04b93230b2a0..d00b514c5847 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/factory.js @@ -76,7 +76,7 @@ var limit = require( './limit.js' ); * // Create a collection over which to iterate: * var files = [ * './beep.js', -* './path/to/file.js' +* './boop.js' * ]; * * // Define a callback which handles errors: From 859c5ac45577d0ef7c9e6ea688ea8a83e31bbc28 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:47:12 -0700 Subject: [PATCH 5/6] Discard changes to lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js --- .../@stdlib/utils/async/for-each-right/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js index 229adbacd29c..a63708eb0e50 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/index.js @@ -29,7 +29,7 @@ * * var files = [ * './beep.js', -* './path/to/file.js' +* './boop.js' * ]; * * function done( error ) { From e92dfa355359885240899085fabc31aecc28d8a5 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 27 Oct 2025 19:47:17 -0700 Subject: [PATCH 6/6] Discard changes to lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js --- lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js index 2756faf0f5aa..94606dd05636 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/lib/main.js @@ -74,7 +74,7 @@ var factory = require( './factory.js' ); * * var files = [ * './beep.js', -* './path/to/file.js' +* './boop.js' * ]; * * forEachRightAsync( files, read, done );