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 18, 2022
1 parent aecf5bc commit 2ead6f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

3 changes: 2 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// MODULES //

var isString = require( '@stdlib/assert-is-string' ).isPrimitive;
var format = require( '@stdlib/string-format' );
var ALIAS_TO_SIGNATURE = require( './../data/data.json' );


Expand All @@ -41,7 +42,7 @@ function signature( alias ) {
var out;
var i;
if ( !isString( alias ) ) {
throw new TypeError( 'invalid argument. Must provide a string. Value: `' + alias + '`.' );
throw new TypeError( format( 'invalid argument. Must provide a string. Value: `%s`.', alias ) );
}
out = [];
for ( i = 0; i < ALIAS_TO_SIGNATURE.length; i++ ) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"dependencies": {
"@stdlib/assert-is-string": "^0.0.x",
"@stdlib/cli-ctor": "^0.0.x",
"@stdlib/fs-read-file": "^0.0.x"
"@stdlib/fs-read-file": "^0.0.x",
"@stdlib/string-format": "^0.0.x"
},
"devDependencies": {
"@stdlib/assert-is-browser": "^0.0.x",
Expand Down

0 comments on commit 2ead6f7

Please sign in to comment.