8000 Auto-generated commit · stdlib-js/utils-async-compose@5134a0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5134a0e

Browse files
committed
Auto-generated commit
1 parent e4daa5a commit 5134a0e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/compose_async.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var isFunction = require( '@stdlib/assert-is-function' );
24+
var format = require( '@stdlib/string-format' );
2425

2526

2627
// MAIN //
@@ -79,7 +80,7 @@ function composeAsync() {
7980
for ( i = 0; i < nFuncs; i++ ) {
8081
f[ i ] = arguments[ i ];
8182
if ( !isFunction( f[ i ] ) ) {
82-
throw new TypeError( 'invalid argument. All arguments must be functions. Value: `'+f[ i ]+'`.' );
83+
throw new TypeError( format( 'invalid argument. All arguments must be functions. Value: `%s`.', f[ i ] ) );
8384
}
8485
}
8586
return composite;
< 8A84 div class="d-flex flex-row">

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/assert-is-function": "^0.0.x"
40+
"@stdlib/assert-is-function": "^0.0.x",
41+
"@stdlib/string-format": "^0.0.x"
4142
},
4243
"devDependencies": {
4344
"@stdlib/bench": "^0.0.x",

0 commit comments

Comments
 (0)
0