Added missing changes and modified dist assets.
This commit is contained in:
parent
e4fe134b73
commit
a77ecbc238
25
dist/index.js
generated
vendored
25
dist/index.js
generated
vendored
@ -13054,12 +13054,30 @@ var zeroPad = __nccwpck_require__( 6267 );
|
|||||||
// VARIABLES //
|
// VARIABLES //
|
||||||
|
|
||||||
var fromCharCode = String.fromCharCode;
|
var fromCharCode = String.fromCharCode;
|
||||||
var isnan = isNaN; // NOTE: We use the global `isNaN` function here instead of `@stdlib/math/base/assert/is-nan` to avoid circular dependencies.
|
|
||||||
var isArray = Array.isArray; // NOTE: We use the global `Array.isArray` function here instead of `@stdlib/assert/is-array` to avoid circular dependencies.
|
var isArray = Array.isArray; // NOTE: We use the global `Array.isArray` function here instead of `@stdlib/assert/is-array` to avoid circular dependencies.
|
||||||
|
|
||||||
|
|
||||||
// FUNCTIONS //
|
// FUNCTIONS //
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a boolean indicating whether a value is `NaN`.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {*} value - input value
|
||||||
|
* @returns {boolean} boolean indicating whether a value is `NaN`
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* var bool = isnan( NaN );
|
||||||
|
* // returns true
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* var bool = isnan( 4 );
|
||||||
|
* // returns false
|
||||||
|
*/
|
||||||
|
function isnan( value ) { // explicitly define a function here instead of `@stdlib/math/base/assert/is-nan` in order to avoid circular dependencies
|
||||||
|
return ( value !== value );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes token object with properties of supplied format identifier object or default values if not present.
|
* Initializes token object with properties of supplied format identifier object or default values if not present.
|
||||||
*
|
*
|
||||||
@ -13189,6 +13207,7 @@ function formatInterpolate( tokens ) {
|
|||||||
case 's':
|
case 's':
|
||||||
// Case: %s (string)
|
// Case: %s (string)
|
||||||
token.maxWidth = ( hasPeriod ) ? token.precision : -1;
|
token.maxWidth = ( hasPeriod ) ? token.precision : -1;
|
||||||
|
token.arg = String( token.arg );
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
// Case: %c (character)
|
// Case: %c (character)
|
||||||
@ -13197,9 +13216,7 @@ function formatInterpolate( tokens ) {
|
|||||||
if ( num < 0 || num > 127 ) {
|
if ( num < 0 || num > 127 ) {
|
||||||
throw new Error( 'invalid character code. Value: ' + token.arg );
|
throw new Error( 'invalid character code. Value: ' + token.arg );
|
||||||
}
|
}
|
||||||
token.arg = ( isnan( num ) ) ?
|
token.arg = ( isnan( num ) ) ? String( token.arg ) : fromCharCode( num ); // eslint-disable-line max-len
|
||||||
String( token.arg ) :
|
|
||||||
fromCharCode( num );
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'e':
|
case 'e':
|
||||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user