From 4cbd3d66545c2fae12c63f0bb2b0a5954836d0ce Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 12:23:34 +0000 Subject: [PATCH 1/2] docs: fix `@throws` annotation for invalid options in `blas/ext/one-to` Align the `@throws` JSDoc tag for "must provide valid options" with the namespace convention used by 14 of 16 sibling packages in `blas/ext/` (87.5% conformance), as well as the same package's own `lib/base.js`, which already documents the case as `@throws {Error}`. Touches `lib/main.js` and `lib/assign.js`; no runtime change. --- lib/node_modules/@stdlib/blas/ext/one-to/lib/assign.js | 2 +- lib/node_modules/@stdlib/blas/ext/one-to/lib/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/one-to/lib/assign.js b/lib/node_modules/@stdlib/blas/ext/one-to/lib/assign.js index 240e7f8256ba..adecd684a366 100644 --- a/lib/node_modules/@stdlib/blas/ext/one-to/lib/assign.js +++ b/lib/node_modules/@stdlib/blas/ext/one-to/lib/assign.js @@ -47,7 +47,7 @@ var base = require( './base.js' ); * @throws {TypeError} first argument must be an ndarray-like object having at least one dimension * @throws {TypeError} first argument must have a supported data type * @throws {TypeError} options argument must be an object -* @throws {TypeError} must provide valid options +* @throws {Error} must provide valid options * @throws {RangeError} dimension indices must not exceed input ndarray bounds * @throws {RangeError} number of dimension indices must not exceed the number of input ndarray dimensions * @returns {ndarray} input ndarray diff --git a/lib/node_modules/@stdlib/blas/ext/one-to/lib/main.js b/lib/node_modules/@stdlib/blas/ext/one-to/lib/main.js index 8f83d3ae17a5..fe609470eab8 100644 --- a/lib/node_modules/@stdlib/blas/ext/one-to/lib/main.js +++ b/lib/node_modules/@stdlib/blas/ext/one-to/lib/main.js @@ -52,7 +52,7 @@ var base = require( './base.js' ); * @param {ArrayLikeObject} [options.submode=["throw"]] - specifies how to handle subscripts which exceed ndarray dimensions on a per dimension basis * @throws {TypeError} first argument must be either a nonnegative integer or an array of nonnegative integers * @throws {TypeError} options argument must be an object -* @throws {TypeError} must provide valid options +* @throws {Error} must provide valid options * @throws {RangeError} dimension indices must not exceed input ndarray bounds * @throws {RangeError} number of dimension indices must not exceed the number of input ndarray dimensions * @returns {ndarray} output ndarray From 6bba026f40e42efdfe8288b63ac6d3d1c2c16a58 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 May 2026 12:23:39 +0000 Subject: [PATCH 2/2] docs: fix `@throws` annotation for invalid options in `blas/ext/zero-to` Align the `@throws` JSDoc tag for "must provide valid options" with the namespace convention used by 14 of 16 sibling packages in `blas/ext/` (87.5% conformance), as well as the same package's own `lib/base.js`, which already documents the case as `@throws {Error}`. Touches `lib/main.js` and `lib/assign.js`; no runtime change. --- lib/node_modules/@stdlib/blas/ext/zero-to/lib/assign.js | 2 +- lib/node_modules/@stdlib/blas/ext/zero-to/lib/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/zero-to/lib/assign.js b/lib/node_modules/@stdlib/blas/ext/zero-to/lib/assign.js index 3e287f2b6ce7..83af1afd9412 100644 --- a/lib/node_modules/@stdlib/blas/ext/zero-to/lib/assign.js +++ b/lib/node_modules/@stdlib/blas/ext/zero-to/lib/assign.js @@ -47,7 +47,7 @@ var base = require( './base.js' ); * @throws {TypeError} first argument must be an ndarray-like object having at least one dimension * @throws {TypeError} first argument must have a supported data type * @throws {TypeError} options argument must be an object -* @throws {TypeError} must provide valid options +* @throws {Error} must provide valid options * @throws {RangeError} dimension indices must not exceed input ndarray bounds * @throws {RangeError} number of dimension indices must not exceed the number of input ndarray dimensions * @returns {ndarray} input ndarray diff --git a/lib/node_modules/@stdlib/blas/ext/zero-to/lib/main.js b/lib/node_modules/@stdlib/blas/ext/zero-to/lib/main.js index 9f30dfb834c0..6c3630d36cb5 100644 --- a/lib/node_modules/@stdlib/blas/ext/zero-to/lib/main.js +++ b/lib/node_modules/@stdlib/blas/ext/zero-to/lib/main.js @@ -52,7 +52,7 @@ var base = require( './base.js' ); * @param {ArrayLikeObject} [options.submode=["throw"]] - specifies how to handle subscripts which exceed ndarray dimensions on a per dimension basis * @throws {TypeError} first argument must be either a nonnegative integer or an array of nonnegative integers * @throws {TypeError} options argument must be an object -* @throws {TypeError} must provide valid options +* @throws {Error} must provide valid options * @throws {RangeError} dimension indices must not exceed input ndarray bounds * @throws {RangeError} number of dimension indices must not exceed the number of input ndarray dimensions * @returns {ndarray} output ndarray