Skip to content

Commit a853854

Browse files
committed
Drop primitive from error messages
1 parent 35b8231 commit a853854

File tree

38 files changed

+61
-61
lines changed

38 files changed

+61
-61
lines changed

lib/node_modules/@stdlib/_tools/browserify/file-list/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var debug = logger( 'browserify:file-list' );
4242
* @param {StringArray} files - files to bundle
4343
* @param {string} [dest] - output file path
4444
* @param {Callback} clbk - callback to invoke after creating a bundle
45-
* @throws {TypeError} first argument must be an array of string primitives
45+
* @throws {TypeError} first argument must be an array of strings
4646
* @throws {TypeError} the output file path must be a string
4747
* @throws {TypeError} last argument must be a function
4848
*
@@ -65,7 +65,7 @@ function bundle( files, dest, clbk ) {
6565
var b;
6666

6767
if ( !isStringArray( files ) ) {
68-
throw new TypeError( format( 'invalid argument. First argument must be an array of string primitives. Value: `%s`.', files ) );
68+
throw new TypeError( format( 'invalid argument. First argument must be an array of strings. Value: `%s`.', files ) );
6969
}
7070
if ( arguments.length < 3 ) {
7171
cb = dest;

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/test/fixtures/valid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ test = {
367367
' },',
368368
' \'set\': function set( value ) {',
369369
' if ( !isNumber( value ) || isnan( value ) ) {',
370-
' throw new TypeError( \'invalid value. Must be a number primitive. Value: `\' + value + \'`\' );',
370+
' throw new TypeError( \'invalid value. Must be a number. Value: `\' + value + \'`\' );',
371371
' }',
372372
' mu = value;',
373373
' }',

lib/node_modules/@stdlib/_tools/github/create-issue/lib/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function validate( opts, options ) {
9292
if ( hasOwnProp( options, 'assignees' ) ) {
9393
opts.assignees = options.assignees;
9494
if ( !isStringArray( opts.assignees ) ) {
95-
return new TypeError( format( 'invalid option. `%s` option must be an array of string primitives. Option: `%s`.', 'assignees', opts.assignees ) );
95+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'assignees', opts.assignees ) );
9696
}
9797
}
9898
if ( hasOwnProp( options, 'milestone' ) ) {
@@ -104,7 +104,7 @@ function validate( opts, options ) {
104104
if ( hasOwnProp( options, 'labels' ) ) {
105105
opts.labels = options.labels;
106106
if ( !isStringArray( opts.labels ) ) {
107-
return new TypeError( format( 'invalid option. `%s` option must be an array of string primitives. Option: `%s`.', 'labels', opts.labels ) );
107+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'labels', opts.labels ) );
108108
}
109109
}
110110
return null;

lib/node_modules/@stdlib/_tools/github/set-topics/lib/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function factory( options, clbk ) {
7676
* @param {Array<string>} topics - array of topics
7777
* @throws {TypeError} repository slug must be a string
7878
* @throws {Error} repository slug must consist of an `owner` and a `repository`
79-
* @throws {TypeError} topics must be an array of string primitives
79+
* @throws {TypeError} topics must be an array of strings
8080
* @returns {void}
8181
*/
8282
function setTopics( slug, topics ) {
@@ -87,7 +87,7 @@ function factory( options, clbk ) {
8787
throw new Error( format( 'invalid argument. Repository slug must consist of an `owner` and a `repository`; e.g., `stdlib-js/utils`. Value: `%s`.', slug ) );
8888
}
8989
if ( !isStringArray( topics ) ) {
90-
throw new TypeError( format( 'invalid argument. Topics argument must be an array of string primitives. Value: `%s`.', topics ) );
90+
throw new TypeError( format( 'invalid argument. Topics argument must be an array of strings. Value: `%s`.', topics ) );
9191
}
9292
query( slug, topics, opts, done );
9393
/**

lib/node_modules/@stdlib/_tools/links/create/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function validate( opts, options ) {
8282
if ( hasOwnProp( options, 'keywords' ) ) {
8383
opts.keywords = options.keywords;
8484
if ( !isStringArray( opts.keywords ) ) {
85-
return new TypeError( format( 'invalid option. `%s` option must be an array of string primitives. Option: `%s`.', 'keywords', opts.keywords ) );
85+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'keywords', opts.keywords ) );
8686
}
8787
}
8888
return null;

lib/node_modules/@stdlib/_tools/links/create/test/test.validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ tape( 'the function returns an error if provided a `database` option which is no
199199
t.end();
200200
});
201201

202-
tape( 'the function returns an error if provided a `keywords` option which is not an array of string primitives', function test( t ) {
202+
tape( 'the function returns an error if provided a `keywords` option which is not an array of strings', function test( t ) {
203203
var values;
204204
var err;
205205
var i;

lib/node_modules/@stdlib/_tools/markdown/namespace-toc/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function validate( opts, options ) {
8484
if ( hasOwnProp( options, 'ignore' ) ) {
8585
opts.ignore = options.ignore;
8686
if ( !isStringArray( opts.ignore ) ) {
87-
return new TypeError( format( 'invalid option. `%s` option must be an array of string primitives. Option: `%s`.', 'ignore', opts.ignore ) );
87+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'ignore', opts.ignore ) );
8888
}
8989
}
9090
return null;

lib/node_modules/@stdlib/_tools/release/package-json/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function validate( opts, options ) {
5454
if ( hasOwnProp( options, 'devDependencies' ) ) {
5555
opts.devDependencies = options.devDependencies;
5656
if ( !isStringArray( opts.devDependencies ) ) {
57-
return new TypeError( format( 'invalid option. `%s` option must be an array of string primitives. Option: `%s`.', 'devDependencies', opts.devDependencies ) );
57+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'devDependencies', opts.devDependencies ) );
5858
}
5959
}
6060
return null;

lib/node_modules/@stdlib/datasets/cmudict/test/test.browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ tape( 'if the `data` option is `symbols`, the function returns an array of strin
192192
};
193193
data = cmudict( opts );
194194

195-
t.equal( isStringArray( data ), true, 'returns an array of string primitives' );
195+
t.equal( isStringArray( data ), true, 'returns an array of strings' );
196196

197197
// Should return a copy...
198198
d2 = cmudict( opts );

lib/node_modules/@stdlib/datasets/cmudict/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ tape( 'if the `data` option is `symbols`, the function returns an array of strin
200200
};
201201
data = cmudict( opts );
202202

203-
t.equal( isStringArray( data ), true, 'returns an array of string primitives' );
203+
t.equal( isStringArray( data ), true, 'returns an array of strings' );
204204

205205
// Should return a copy...
206206
d2 = cmudict( opts );

0 commit comments

Comments
 (0)