Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Mar 28, 2022
1 parent 658462d commit 408c799
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#/

# Workflow name:
name: Cancel Workflow Runs
name: cancel

# Workflow triggers:
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#/

# Workflow name:
name: Publish Package
name: publish

# Workflow triggers:
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#/

# Workflow name:
name: build
name: test

# Workflow triggers:
on:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_bundles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#/

# Workflow name:
name: coverage
name: test_coverage

# Workflow triggers:
on:
workflow_run:
workflows: ["build"]
workflows: ["test"]
types: [completed]
workflow_dispatch:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
#/

# Workflow name:
name: Test Installing Dependencies
name: test_install

# Workflow triggers:
on:
schedule:
# * 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:

Expand Down
2 changes: 1 addition & 1 deletion async/map-values/lib/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down
16 changes: 8 additions & 8 deletions compact-adjacency-matrix/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] );
Expand Down Expand Up @@ -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 ] );
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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 ] );
Expand Down
6 changes: 3 additions & 3 deletions map4d/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
8 changes: 4 additions & 4 deletions map5d/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion timeit/lib/timeit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 408c799

Please sign in to comment.