From 408c799ecb963754854fd7d112a11b882d80fabe Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 28 Mar 2022 21:50:46 +0000 Subject: [PATCH] Auto-generated commit --- .github/workflows/cancel.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/test_bundles.yml | 4 ++-- .github/workflows/test_coverage.yml | 4 ++-- .github/workflows/test_install.yml | 4 ++-- async/map-values/lib/factory.js | 2 +- compact-adjacency-matrix/lib/main.js | 16 ++++++++-------- map4d/lib/main.js | 6 +++--- map5d/lib/main.js | 8 ++++---- timeit/lib/timeit.js | 2 +- 11 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml index 11e08932..10697ebc 100644 --- a/.github/workflows/cancel.yml +++ b/.github/workflows/cancel.yml @@ -17,7 +17,7 @@ #/ # Workflow name: -name: Cancel Workflow Runs +name: cancel # Workflow triggers: on: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 24a6de0c..0d4273d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ #/ # Workflow name: -name: Publish Package +name: publish # Workflow triggers: on: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dfce1449..4251f7c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ #/ # Workflow name: -name: build +name: test # Workflow triggers: on: diff --git a/.github/workflows/test_bundles.yml b/.github/workflows/test_bundles.yml index 0bb487a3..1d78253c 100644 --- a/.github/workflows/test_bundles.yml +++ b/.github/workflows/test_bundles.yml @@ -17,12 +17,12 @@ #/ # Workflow name: -name: Test Loading Bundles +name: test_bundles # Workflow triggers: on: workflow_run: - workflows: ["bundle"] + workflows: ["test"] types: [completed] workflow_dispatch: diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 17ed34f7..ba787101 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -17,12 +17,12 @@ #/ # Workflow name: -name: coverage +name: test_coverage # Workflow triggers: on: workflow_run: - workflows: ["build"] + workflows: ["test"] types: [completed] workflow_dispatch: diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index c3adb44e..2549fefd 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -17,7 +17,7 @@ #/ # Workflow name: -name: Test Installing Dependencies +name: test_install # Workflow triggers: on: @@ -25,7 +25,7 @@ on: # * is a special character in YAML so you have to quote this string - cron: '30 1 * * 6' workflow_run: - workflows: ["Publish Package"] + workflows: ["publish"] types: [completed] workflow_dispatch: diff --git a/async/map-values/lib/factory.js b/async/map-values/lib/factory.js index 7d385fb3..026d6bc6 100644 --- a/async/map-values/lib/factory.js +++ b/async/map-values/lib/factory.js @@ -125,7 +125,7 @@ function factory( options, transform ) { */ function mapValuesAsync( obj, done ) { if ( typeof obj !== 'object' || obj === null ) { - throw new TypeError( 'invalid argument. First argument must be an object. Value: `'+obj+'.`' ); + throw new TypeError( format( 'invalid argument. First argument must be an object. Value: `%s`.', obj ) ); } if ( !isFunction( done ) ) { throw new TypeError( format( 'invalid argument. Last argument must be a function. Value: `%s`.', done ) ); diff --git a/compact-adjacency-matrix/lib/main.js b/compact-adjacency-matrix/lib/main.js index ed9174f0..aa395015 100644 --- a/compact-adjacency-matrix/lib/main.js +++ b/compact-adjacency-matrix/lib/main.js @@ -381,10 +381,10 @@ setReadOnly( CompactAdjacencyMatrix.prototype, 'addEdge', function addEdge( i, j throw new TypeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%s`.', j ) ); } if ( i >= this._N ) { - throw new RangeError( 'invalid argument. First argument exceeds matrix dimensions. Value: `' + i + '`.' ); + throw new RangeError( format( 'invalid argument. First argument exceeds matrix dimensions. Value: `%u`.', i ) ); } if ( j >= this._N ) { - throw new RangeError( 'invalid argument. Second argument exceeds matrix dimensions. Value: `' + j + '`.' ); + throw new RangeError( format( 'invalid argument. Second argument exceeds matrix dimensions. Value: `%u`.', j ) ); } // Resolve the `(i,j)` pair: idx = this._loc( i, j, [ 0, 0 ] ); @@ -487,10 +487,10 @@ setReadOnly( CompactAdjacencyMatrix.prototype, 'hasEdge', function hasEdge( i, j throw new TypeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%s`.', j ) ); } if ( i >= this._N ) { - throw new RangeError( 'invalid argument. First argument exceeds matrix dimensions. Value: `' + i + '`.' ); + throw new RangeError( format( 'invalid argument. First argument exceeds matrix dimensions. Value: `%u`.', i ) ); } if ( j >= this._N ) { - throw new RangeError( 'invalid argument. Second argument exceeds matrix dimensions. Value: `' + j + '`.' ); + throw new RangeError( format( 'invalid argument. Second argument exceeds matrix dimensions. Value: `%u`.', j ) ); } // Resolve the `(i,j)` pair: idx = this._loc( i, j, [ 0, 0 ] ); @@ -681,7 +681,7 @@ setReadOnly( CompactAdjacencyMatrix.prototype, 'outDegree', function outDegree( throw new TypeError( format( 'invalid argument. Must provide a nonnegative integer. Value: `%s`.', i ) ); } if ( i >= this._N ) { - throw new RangeError( 'invalid argument. Input argument cannot exceed matrix dimensions. Value: `' + i + '`.' ); + throw new RangeError( format( 'invalid argument. Input argument cannot exceed matrix dimensions. Value: `%u`.', i ) ); } // Iterate over the columns and add up the number of edges... deg = 0; @@ -730,7 +730,7 @@ setReadOnly( CompactAdjacencyMatrix.prototype, 'outEdges', function outEdges( i throw new TypeError( format( 'invalid argument. Must provide a nonnegative integer. Value: `%s`.', i ) ); } if ( i >= this._N ) { - throw new RangeError( 'invalid argument. Input argument cannot exceed matrix dimensions. Value: `' + i + '`.' ); + throw new RangeError( format( 'invalid argument. Input argument cannot exceed matrix dimensions. Value: `%u`.', i ) ); } // Iterate over the rows and retrieve edges... edges = []; @@ -786,10 +786,10 @@ setReadOnly( CompactAdjacencyMatrix.prototype, 'removeEdge', function removeEdge throw new TypeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%s`.', j ) ); } if ( i >= this._N ) { - throw new RangeError( 'invalid argument. First argument exceeds matrix dimensions. Value: `' + i + '`.' ); + throw new RangeError( format( 'invalid argument. First argument exceeds matrix dimensions. Value: `%u`.', i ) ); } if ( j >= this._N ) { - throw new RangeError( 'invalid argument. Second argument exceeds matrix dimensions. Value: `' + j + '`.' ); + throw new RangeError( format( 'invalid argument. Second argument exceeds matrix dimensions. Value: `%u`.', j ) ); } // Resolve the `(i,j)` pair: idx = this._loc( i, j, [ 0, 0 ] ); diff --git a/map4d/lib/main.js b/map4d/lib/main.js index 5e829300..63f02a21 100644 --- a/map4d/lib/main.js +++ b/map4d/lib/main.js @@ -88,21 +88,21 @@ function map4d( arr, fcn, thisArg ) { for ( i0 = 0; i0 < S0; i0++ ) { a1 = arr[ i0 ]; if ( !isArrayLikeObject( a1 ) ) { // note: cannot support the more general "collections" here (which includes typed arrays having more than 2^32-1 elements), as the output array is limited to 2^32-1 elements; thus, we opt for the lowest common denominator: generic arrays - throw new TypeError( 'invalid argument. First argument must be a four-dimensional nested array. Index: ' + i0 + '. Value: `' + a1 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a four-dimensional nested array. Index: `%u`. Value: `%s`.', i0, a1 ) ); } S1 = a1.length; t1 = []; for ( i1 = 0; i1 < S1; i1++ ) { a2 = a1[ i1 ]; if ( !isArrayLikeObject( a2 ) ) { - throw new TypeError( 'invalid argument. First argument must be a four-dimensional nested array. Indices: (' + i0 + ', ' + i1 + '). Value: `' + a2 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a four-dimensional nested array. Indices: (%u, %u). Value: `%s`.', i0, i1, a2 ) ); } S2 = a2.length; t2 = []; for ( i2 = 0; i2 < S2; i2++ ) { a3 = a2[ i2 ]; if ( !isArrayLikeObject( a3 ) ) { - throw new TypeError( 'invalid argument. First argument must be a four-dimensional nested array. Indices: (' + i0 + ', ' + i1 + ', ' + i2 + '). Value: `' + a3 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a four-dimensional nested array. Indices: (%u, %u, %u). Value: `%s`.', i0, i1, i2, a3 ) ); } S3 = a3.length; t3 = []; diff --git a/map5d/lib/main.js b/map5d/lib/main.js index 9df86fd3..731648c8 100644 --- a/map5d/lib/main.js +++ b/map5d/lib/main.js @@ -93,28 +93,28 @@ function map5d( arr, fcn, thisArg ) { for ( i0 = 0; i0 < S0; i0++ ) { a1 = arr[ i0 ]; if ( !isArrayLikeObject( a1 ) ) { // note: cannot support the more general "collections" here (which includes typed arrays having more than 2^32-1 elements), as the output array is limited to 2^32-1 elements; thus, we opt for the lowest common denominator: generic arrays - throw new TypeError( 'invalid argument. First argument must be a five-dimensional nested array. Index: ' + i0 + '. Value: `' + a1 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a five-dimensional nested array. Index: `%u`. Value: `%s`.', i0, a1 ) ); } S1 = a1.length; t1 = []; for ( i1 = 0; i1 < S1; i1++ ) { a2 = a1[ i1 ]; if ( !isArrayLikeObject( a2 ) ) { - throw new TypeError( 'invalid argument. First argument must be a five-dimensional nested array. Indices: (' + i0 + ', ' + i1 + '). Value: `' + a2 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a five-dimensional nested array. Indices: (%u, %u). Value: `%s`.', i0, i1, a2 ) ); } S2 = a2.length; t2 = []; for ( i2 = 0; i2 < S2; i2++ ) { a3 = a2[ i2 ]; if ( !isArrayLikeObject( a3 ) ) { - throw new TypeError( 'invalid argument. First argument must be a five-dimensional nested array. Indices: (' + i0 + ', ' + i1 + ', ' + i2 + '). Value: `' + a3 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a five-dimensional nested array. Indices: (%u, %u, %u). Value: `%s`.', i0, i1, i2, a3 ) ); } S3 = a3.length; t3 = []; for ( i3 = 0; i3 < S3; i3++ ) { a4 = a3[ i3 ]; if ( !isArrayLikeObject( a4 ) ) { - throw new TypeError( 'invalid argument. First argument must be a five-dimensional nested array. Indices: (' + i0 + ', ' + i1 + ', ' + i2 + ', ' + i3 + '). Value: `' + a4 + '`.' ); + throw new TypeError( format( 'invalid argument. First argument must be a five-dimensional nested array. Indices: (%u, %u, %u, %u). Value: `%s`.', i0, i1, i2, i3, a4 ) ); } S4 = a4.length; t4 = []; diff --git a/timeit/lib/timeit.js b/timeit/lib/timeit.js index 5e67c7ca..04489943 100644 --- a/timeit/lib/timeit.js +++ b/timeit/lib/timeit.js @@ -108,7 +108,7 @@ function timeit( code, options, clbk ) { try { evaluate( code, opts, FILENAME, dir, onTest ); } catch ( error ) { - err = new Error( 'evaluation error. Encountered an error when evaluating snippet. '+error.message ); + err = new Error( format( 'evaluation error. Encountered an error when evaluating snippet. %s', error.message ) ); return done( err ); }