From 8d10abde7eb14e166ad88dea9864cd5a5a217091 Mon Sep 17 00:00:00 2001 From: NotFoundOvO Date: Mon, 6 Jul 2026 10:44:19 +0800 Subject: [PATCH 1/7] fix: correct doctest expected value in read-dir examples --- lib/node_modules/@stdlib/fs/read-dir/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js index 244a18f2d158..41b102b260a9 100644 --- a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js +++ b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js @@ -32,7 +32,7 @@ out = readDir.sync( 'beepboop' ); // returns console.log( out instanceof Error ); -// => true +// => false /* Async */ From bd99132c1632a9c42bb5b16450a5778fa7368051 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:48:39 +0800 Subject: [PATCH 2/7] fix: replace new Array constructor with array literal in ztest2 examples --- lib/node_modules/@stdlib/stats/ztest2/examples/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/ztest2/examples/index.js b/lib/node_modules/@stdlib/stats/ztest2/examples/index.js index d49169f4fff5..1fe6f2864496 100644 --- a/lib/node_modules/@stdlib/stats/ztest2/examples/index.js +++ b/lib/node_modules/@stdlib/stats/ztest2/examples/index.js @@ -28,14 +28,14 @@ var y; var i; // Values drawn from a Normal(4,2) distribution -x = new Array( 100 ); +x = []; for ( i = 0; i < 100; i++ ) { - x[ i ] = rnorm( 4.0, 2.0 ); + x.push( rnorm( 4.0, 2.0 ) ); } // Values drawn from a Normal(3,2) distribution -y = new Array( 80 ); +y = []; for ( i = 0; i < 80; i++ ) { - y[ i ] = rnorm( 3.0, 2.0 ); + y.push( rnorm( 3.0, 2.0 ) ); } out = ztest2( x, y, 2.0, 2.0 ); From 63809f5c93a4b612fad1cf9d5dc9ba8dcaf4f346 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:49:22 +0800 Subject: [PATCH 3/7] fix: use relative path in evalpoly-compile example require --- .../@stdlib/math/base/tools/evalpoly-compile/examples/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js index 74c2c078cd22..9089582fd50d 100644 --- a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js +++ b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js @@ -18,11 +18,10 @@ 'use strict'; -var resolve = require( 'path' ).resolve; var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var tryRequire = require( '@stdlib/utils/try-require' ); -var compile = tryRequire( resolve( __dirname, '..', 'lib' ) ); +var compile = tryRequire( './../lib' ); if ( compile instanceof Error ) { console.log( 'Unable to run example. Unsupported environment.' ); } else { From c8f67a518921874b04ac35d0748388c82c8b01ca Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:52:46 +0800 Subject: [PATCH 4/7] fix: remove empty lines between require statements in hermitepoly test --- .../@stdlib/math/base/tools/hermitepoly/test/test.factory.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js b/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js index 13fdd0a5c7db..e18f4681f855 100644 --- a/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js +++ b/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js @@ -30,23 +30,18 @@ var factory = require( './../lib' ).factory; // FIXTURES // var random2 = require( './fixtures/python/random2.json' ); - var mediumNegative1 = require( './fixtures/python/medium_negative_1.json' ); var mediumNegative2 = require( './fixtures/python/medium_negative_2.json' ); var mediumNegative5 = require( './fixtures/python/medium_negative_5.json' ); - var mediumPositive1 = require( './fixtures/python/medium_positive_1.json' ); var mediumPositive2 = require( './fixtures/python/medium_positive_2.json' ); var mediumPositive5 = require( './fixtures/python/medium_positive_5.json' ); - var smallPositive1 = require( './fixtures/python/small_positive_1.json' ); var smallPositive2 = require( './fixtures/python/small_positive_2.json' ); var smallPositive5 = require( './fixtures/python/small_positive_5.json' ); - var smallNegative1 = require( './fixtures/python/small_negative_1.json' ); var smallNegative2 = require( './fixtures/python/small_negative_2.json' ); var smallNegative5 = require( './fixtures/python/small_negative_5.json' ); - var tiny1 = require( './fixtures/python/tiny_1.json' ); var tiny2 = require( './fixtures/python/tiny_2.json' ); var tiny5 = require( './fixtures/python/tiny_5.json' ); From 97626fc0849fbcd6a0fe548c470d67f750a04b88 Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:55:51 +0800 Subject: [PATCH 5/7] fix: replace new Array with array literal in async/until --- lib/node_modules/@stdlib/utils/async/until/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/async/until/lib/main.js b/lib/node_modules/@stdlib/utils/async/until/lib/main.js index bc849497ab91..a5253d73c6ed 100644 --- a/lib/node_modules/@stdlib/utils/async/until/lib/main.js +++ b/lib/node_modules/@stdlib/utils/async/until/lib/main.js @@ -112,9 +112,9 @@ function untilAsync( predicate, fcn, done, thisArg ) { // Cache the most recent results... if ( arguments.length > 1 ) { - args = new Array( arguments.length-1 ); + args = []; for ( i = 1; i < arguments.length; i++ ) { - args[ i-1 ] = arguments[ i ]; + args.push( arguments[ i ] ); } } // Run the test condition: From 9f81b57536a6de6f66ec1f5697bedfa46cd711ea Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:56:18 +0800 Subject: [PATCH 6/7] fix: replace new Array with array literal in pluck benchmark --- .../@stdlib/utils/pluck/benchmark/benchmark.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js b/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js index 13c6b9a9e374..9b670a103c32 100644 --- a/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js @@ -37,13 +37,13 @@ bench( pkg, function benchmark( b ) { var i; var j; - arr = new Array( 100 ); - for ( i = 0; i < arr.length; i++ ) { - tmp = new Array( 5 ); - for ( j = 0; j < tmp.length; j++ ) { - tmp[ j ] = round( randu()*100.0*(j+1.0) ); + arr = []; + for ( i = 0; i < 100; i++ ) { + tmp = []; + for ( j = 0; j < 5; j++ ) { + tmp.push( round( randu()*100.0*(j+1.0) ) ); } - arr[ i ] = tmp; + arr.push( tmp ); } b.tic(); for ( i = 0; i < b.iterations; i++ ) { From 94ff142bec08ab5ce4c80959c1c2ca2ef87fc31d Mon Sep 17 00:00:00 2001 From: NotFoundOvO <1264472267@qq.com> Date: Mon, 6 Jul 2026 10:56:36 +0800 Subject: [PATCH 7/7] fix: remove extra spaces before opts in org-repos validate --- .../@stdlib/_tools/github/org-repos/lib/validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js b/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js index 6676d503d2ba..627eff876546 100644 --- a/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js +++ b/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js @@ -56,13 +56,13 @@ function validate( opts, options ) { if ( hasOwnProp( options, 'token' ) ) { opts.token = options.token; if ( !isString( opts.token ) ) { - return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'token', opts.token ) ); + return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'token', opts.token ) ); } } if ( hasOwnProp( options, 'useragent' ) ) { opts.useragent = options.useragent; if ( !isString( opts.useragent ) ) { - return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'useragent', opts.useragent ) ); + return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'useragent', opts.useragent ) ); } } return null;