From 596909784840b25e02b9d8b14d8cf3f92bfffaf4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 20:23:32 +0000 Subject: [PATCH 1/6] refactor: align `ndarray/iter/column-entries` with namespace error-construction conventions Wrapped the dim-check `TypeError` in `format(...)` to match the dominant error-construction pattern in the file (other throws already use `format()`, including a static-string `Error` on line 113) and across the `ndarray/iter` namespace, where sibling packages with analogous dim-checks (`subarrays`, `stacks`, `interleave-subarrays`) wrap the throw in `format()`. Message text is preserved exactly. --- .../@stdlib/ndarray/iter/column-entries/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/iter/column-entries/lib/main.js b/lib/node_modules/@stdlib/ndarray/iter/column-entries/lib/main.js index 1a905f033d7f..6b45f14e7719 100644 --- a/lib/node_modules/@stdlib/ndarray/iter/column-entries/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/iter/column-entries/lib/main.js @@ -120,7 +120,7 @@ function nditerColumnEntries( x ) { // Ensure that the input array has sufficient dimensions... if ( ndims < 2 ) { - throw new TypeError( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ); + throw new TypeError( format( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ) ); } // Check whether the input array is empty... From da28b8fc4dd7d78de5bbaba67481cc6588c31fae Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 20:23:37 +0000 Subject: [PATCH 2/6] refactor: align `ndarray/iter/columns` with namespace error-construction conventions Wrapped the dim-check `TypeError` in `format(...)` to match the dominant error-construction pattern in the file (other throws already use `format()`, including a static-string `Error` on line 113) and across the `ndarray/iter` namespace, where sibling packages with analogous dim-checks (`subarrays`, `stacks`, `interleave-subarrays`) wrap the throw in `format()`. Message text is preserved exactly. --- lib/node_modules/@stdlib/ndarray/iter/columns/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/iter/columns/lib/main.js b/lib/node_modules/@stdlib/ndarray/iter/columns/lib/main.js index ff7da68a5d86..90bca2203814 100644 --- a/lib/node_modules/@stdlib/ndarray/iter/columns/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/iter/columns/lib/main.js @@ -120,7 +120,7 @@ function nditerColumns( x ) { // Ensure that the input array has sufficient dimensions... if ( ndims < 2 ) { - throw new TypeError( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ); + throw new TypeError( format( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ) ); } // Check whether the input array is empty... N = numel( shape ); From 97f450ec75376e30c0453413e4ec8f088ed21d79 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 20:23:42 +0000 Subject: [PATCH 3/6] refactor: align `ndarray/iter/matrices` with namespace error-construction conventions Wrapped the dim-check `TypeError` in `format(...)` to match the dominant error-construction pattern in the file (other throws already use `format()`, including a static-string `Error` on line 107) and across the `ndarray/iter` namespace, where sibling packages with analogous dim-checks (`subarrays`, `stacks`, `interleave-subarrays`) wrap the throw in `format()`. Message text is preserved exactly. --- lib/node_modules/@stdlib/ndarray/iter/matrices/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/iter/matrices/lib/main.js b/lib/node_modules/@stdlib/ndarray/iter/matrices/lib/main.js index 517c2a210e26..6d098e5f08ba 100644 --- a/lib/node_modules/@stdlib/ndarray/iter/matrices/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/iter/matrices/lib/main.js @@ -114,7 +114,7 @@ function nditerMatrices( x ) { // Ensure that the input array has sufficient dimensions... if ( ndims < 3 ) { - throw new TypeError( 'invalid argument. First argument must be an ndarray having at least three dimensions.' ); + throw new TypeError( format( 'invalid argument. First argument must be an ndarray having at least three dimensions.' ) ); } // Check whether the input array is empty... N = numel( shape ); From fa71457690d461338eaaf76610c8caba6f41df11 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 20:23:47 +0000 Subject: [PATCH 4/6] refactor: align `ndarray/iter/matrix-entries` with namespace error-construction conventions Wrapped the dim-check `TypeError` in `format(...)` to match the dominant error-construction pattern in the file (other throws already use `format()`, including a static-string `Error` on line 113) and across the `ndarray/iter` namespace, where sibling packages with analogous dim-checks (`subarrays`, `stacks`, `interleave-subarrays`) wrap the throw in `format()`. Message text is preserved exactly. --- .../@stdlib/ndarray/iter/matrix-entries/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/iter/matrix-entries/lib/main.js b/lib/node_modules/@stdlib/ndarray/iter/matrix-entries/lib/main.js index 294cabf77c43..ea6ba6a23b5b 100644 --- a/lib/node_modules/@stdlib/ndarray/iter/matrix-entries/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/iter/matrix-entries/lib/main.js @@ -120,7 +120,7 @@ function nditerMatrixEntries( x ) { // Ensure that the input array has sufficient dimensions... if ( ndims < 3 ) { - throw new TypeError( 'invalid argument. First argument must be an ndarray having at least three dimensions.' ); + throw new TypeError( format( 'invalid argument. First argument must be an ndarray having at least three dimensions.' ) ); } // Check whether the input array is empty... From 320f969bbb985968960482275916e448a6ebe83b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 20:23:52 +0000 Subject: [PATCH 5/6] refactor: align `ndarray/iter/row-entries` with namespace error-construction conventions Wrapped the dim-check `TypeError` in `format(...)` to match the dominant error-construction pattern in the file (other throws already use `format()`, including a static-string `Error` on line 113) and across the `ndarray/iter` namespace, where sibling packages with analogous dim-checks (`subarrays`, `stacks`, `interleave-subarrays`) wrap the throw in `format()`. Message text is preserved exactly. --- lib/node_modules/@stdlib/ndarray/iter/row-entries/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/iter/row-entries/lib/main.js b/lib/node_modules/@stdlib/ndarray/iter/row-entries/lib/main.js index 2f6d21e84864..98a370602a9e 100644 --- a/lib/node_modules/@stdlib/ndarray/iter/row-entries/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/iter/row-entries/lib/main.js @@ -120,7 +120,7 @@ function nditerRowEntries( x ) { // Ensure that the input array has sufficient dimensions... if ( ndims < 2 ) { - throw new TypeError( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ); + throw new TypeError( format( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ) ); } // Check whether the input array is empty... From 3ca059fc1a611de7bcc63c82d07a853c54cf6331 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 26 Apr 2026 20:23:57 +0000 Subject: [PATCH 6/6] refactor: align `ndarray/iter/rows` with namespace error-construction conventions Wrapped the dim-check `TypeError` in `format(...)` to match the dominant error-construction pattern in the file (other throws already use `format()`, including a static-string `Error` on line 113) and across the `ndarray/iter` namespace, where sibling packages with analogous dim-checks (`subarrays`, `stacks`, `interleave-subarrays`) wrap the throw in `format()`. Message text is preserved exactly. --- lib/node_modules/@stdlib/ndarray/iter/rows/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/iter/rows/lib/main.js b/lib/node_modules/@stdlib/ndarray/iter/rows/lib/main.js index 44214b507195..8e443db6ded6 100644 --- a/lib/node_modules/@stdlib/ndarray/iter/rows/lib/main.js +++ b/lib/node_modules/@stdlib/ndarray/iter/rows/lib/main.js @@ -120,7 +120,7 @@ function nditerRows( x ) { // Ensure that the input array has sufficient dimensions... if ( ndims < 2 ) { - throw new TypeError( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ); + throw new TypeError( format( 'invalid argument. First argument must be an ndarray having at least two dimensions.' ) ); } // Check whether the input array is empty... N = numel( shape );