Skip to content

Commit cf8e680

Browse files
committed
Remove primitive from error messages
1 parent d2afaa6 commit cf8e680

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed

lib/node_modules/@stdlib/plot/ctor/lib/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ defineProperty( Plot.prototype, 'paddingBottom', {
900900
* @name xMin
901901
* @memberof Plot.prototype
902902
* @type {(FiniteNumber|null)}
903-
* @throws {TypeError} must be a finite number primitive or null
903+
* @throws {TypeError} must be a finite number or null
904904
* @default null
905905
*
906906
* @example
@@ -931,7 +931,7 @@ defineProperty( Plot.prototype, 'xMin', {
931931
* @name xMax
932932
* @memberof Plot.prototype
933933
* @type {(FiniteNumber|null)}
934-
* @throws {TypeError} must be a finite number primitive or null
934+
* @throws {TypeError} must be a finite number or null
935935
* @default null
936936
*
937937
* @example
@@ -962,7 +962,7 @@ defineProperty( Plot.prototype, 'xMax', {
962962
* @name yMin
963963
* @memberof Plot.prototype
964964
* @type {(FiniteNumber|null)}
965-
* @throws {TypeError} must be a finite number primitive or null
965+
* @throws {TypeError} must be a finite number or null
966966
* @default null
967967
*
968968
* @example
@@ -993,7 +993,7 @@ defineProperty( Plot.prototype, 'yMin', {
993993
* @name yMax
994994
* @memberof Plot.prototype
995995
* @type {(FiniteNumber|null)}
996-
* @throws {TypeError} must be a finite number primitive or null
996+
* @throws {TypeError} must be a finite number or null
997997
* @default null
998998
*
999999
* @example

lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var debug = logger( 'plot:set:x-min' );
3838
*
3939
* @private
4040
* @param {(Date|FiniteNumber|null)} min - minimum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
* @returns {void}
4343
*/
4444
function set( min ) {

lib/node_modules/@stdlib/plot/ctor/lib/props/y-max/set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var debug = logger( 'plot:set:y-max' );
3838
*
3939
* @private
4040
* @param {(FiniteNumber|null)} max - maximum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
* @returns {void}
4343
*/
4444
function set( max ) {

lib/node_modules/@stdlib/plot/ctor/lib/props/y-min/set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var debug = logger( 'plot:set:y-min' );
3838
*
3939
* @private
4040
* @param {(FiniteNumber|null)} min - minimum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
* @returns {void}
4343
*/
4444
function set( min ) {

lib/node_modules/@stdlib/plot/sparklines/unicode/column/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ defineProperty( ColumnChart.prototype, 'infinities', {
195195
* @name yMax
196196
* @memberof ColumnChart.prototype
197197
* @type {(FiniteNumber|null)}
198-
* @throws {TypeError} must be a finite number primitive or null
198+
* @throws {TypeError} must be a finite number or null
199199
*
200200
* @example
201201
* var chart = new ColumnChart();
@@ -221,7 +221,7 @@ defineProperty( ColumnChart.prototype, 'yMax', {
221221
* @name yMin
222222
* @memberof ColumnChart.prototype
223223
* @type {(FiniteNumber|null)}
224-
* @throws {TypeError} must be a finite number primitive or null
224+
* @throws {TypeError} must be a finite number or null
225225
*
226226
* @example
227227
* var chart = new ColumnChart();

lib/node_modules/@stdlib/plot/sparklines/unicode/column/lib/props/y-max/set.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ var debug = logger( 'sparkline:column-chart:unicode:set:y-max' );
3838
*
3939
* @private
4040
* @param {(FiniteNumber|null)} max - maximum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
*/
4343
function set( max ) {
4444
/* eslint-disable no-invalid-this */
4545
if ( !isFiniteNumber( max ) && !isNull( max ) ) {
46-
throw new TypeError( format( 'invalid value. `%s` must be a finite number primitive or null. Value: `%s`.', 'yMax', max ) );
46+
throw new TypeError( format( 'invalid value. `%s` must be a finite number or null. Value: `%s`.', 'yMax', max ) );
4747
}
4848
if ( max !== this._yMax ) {
4949
debug( 'Current value: %s.', this._yMax );

lib/node_modules/@stdlib/plot/sparklines/unicode/column/lib/props/y-min/set.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ var debug = logger( 'sparkline:column-chart:unicode:set:y-min' );
3838
*
3939
* @private
4040
* @param {(FiniteNumber|null)} min - minimum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
*/
4343
function set( min ) {
4444
/* eslint-disable no-invalid-this */
4545
if ( !isFiniteNumber( min ) && !isNull( min ) ) {
46-
throw new TypeError( format( 'invalid value. `%s` must be a finite number primitive or null. Value: `%s`.', 'yMin', min ) );
46+
throw new TypeError( format( 'invalid value. `%s` must be a finite number or null. Value: `%s`.', 'yMin', min ) );
4747
}
4848
if ( min !== this._yMin ) {
4949
debug( 'Current value: %s.', this._yMin );

lib/node_modules/@stdlib/plot/sparklines/unicode/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ defineProperty( UnicodeSparkline.prototype, 'type', {
227227
* @name yMax
228228
* @memberof UnicodeSparkline.prototype
229229
* @type {(FiniteNumber|null)}
230-
* @throws {TypeError} must be a finite number primitive or null
230+
* @throws {TypeError} must be a finite number or null
231231
*
232232
* @example
233233
* var chart = new UnicodeSparkline();
@@ -253,7 +253,7 @@ defineProperty( UnicodeSparkline.prototype, 'yMax', {
253253
* @name yMin
254254
* @memberof UnicodeSparkline.prototype
255255
* @type {(FiniteNumber|null)}
256-
* @throws {TypeError} must be a finite number primitive or null
256+
* @throws {TypeError} must be a finite number or null
257257
*
258258
* @example
259259
* var chart = new UnicodeSparkline();

lib/node_modules/@stdlib/plot/sparklines/unicode/lib/props/y-max/set.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ var debug = logger( 'sparkline:unicode:set:y-max' );
3838
*
3939
* @private
4040
* @param {(FiniteNumber|null)} max - maximum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
*/
4343
function set( max ) {
4444
/* eslint-disable no-invalid-this */
4545
if ( !isFiniteNumber( max ) && !isNull( max ) ) {
46-
throw new TypeError( format( 'invalid value. `%s` must be a finite number primitive or null. Value: `%s`.', 'yMax', max ) );
46+
throw new TypeError( format( 'invalid value. `%s` must be a finite number or null. Value: `%s`.', 'yMax', max ) );
4747
}
4848
if ( max !== this._yMax ) {
4949
debug( 'Current value: %s.', this._yMax );

lib/node_modules/@stdlib/plot/sparklines/unicode/lib/props/y-min/set.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ var debug = logger( 'sparkline:unicode:set:y-min' );
3838
*
3939
* @private
4040
* @param {(FiniteNumber|null)} min - minimum value
41-
* @throws {TypeError} must be a finite number primitive or null
41+
* @throws {TypeError} must be a finite number or null
4242
*/
4343
function set( min ) {
4444
/* eslint-disable no-invalid-this */
4545
if ( !isFiniteNumber( min ) && !isNull( min ) ) {
46-
throw new TypeError( format( 'invalid value. `%s` must be a finite number primitive or null. Value: `%s.', 'yMin', min ) );
46+
throw new TypeError( format( 'invalid value. `%s` must be a finite number or null. Value: `%s.', 'yMin', min ) );
4747
}
4848
if ( min !== this._yMin ) {
4949
debug( 'Current value: %s.', this._yMin );

0 commit comments

Comments
 (0)