Added missing changes and modified dist assets.
This commit is contained in:
parent
e4fe134b73
commit
a77ecbc238
31
dist/index.js
generated
vendored
31
dist/index.js
generated
vendored
@ -12712,7 +12712,7 @@ function formatDouble( token ) {
|
||||
}
|
||||
if ( !token.alternate ) {
|
||||
out = replace.call( out, RE_ZERO_BEFORE_EXP, '$1e' );
|
||||
out = replace.call( out, RE_PERIOD_ZERO_EXP, 'e');
|
||||
out = replace.call( out, RE_PERIOD_ZERO_EXP, 'e' );
|
||||
out = replace.call( out, RE_TRAILING_PERIOD_ZERO, '' );
|
||||
}
|
||||
break;
|
||||
@ -13054,12 +13054,30 @@ var zeroPad = __nccwpck_require__( 6267 );
|
||||
// VARIABLES //
|
||||
|
||||
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.
|
||||
|
||||
|
||||
// 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.
|
||||
*
|
||||
@ -13189,6 +13207,7 @@ function formatInterpolate( tokens ) {
|
||||
case 's':
|
||||
// Case: %s (string)
|
||||
token.maxWidth = ( hasPeriod ) ? token.precision : -1;
|
||||
token.arg = String( token.arg );
|
||||
break;
|
||||
case 'c':
|
||||
// Case: %c (character)
|
||||
@ -13197,9 +13216,7 @@ function formatInterpolate( tokens ) {
|
||||
if ( num < 0 || num > 127 ) {
|
||||
throw new Error( 'invalid character code. Value: ' + token.arg );
|
||||
}
|
||||
token.arg = ( isnan( num ) ) ?
|
||||
String( token.arg ) :
|
||||
fromCharCode( num );
|
||||
token.arg = ( isnan( num ) ) ? String( token.arg ) : fromCharCode( num ); // eslint-disable-line max-len
|
||||
}
|
||||
break;
|
||||
case 'e':
|
||||
@ -13746,7 +13763,7 @@ module.exports = main;
|
||||
* return capitalize( p1 );
|
||||
* }
|
||||
*
|
||||
* var out = replace( str, /([^\s]*)/gi, replacer);
|
||||
* var out = replace( str, /([^\s]*)/gi, replacer );
|
||||
* // returns 'Oranges And Lemons Say The Bells Of St. Clement\'s'
|
||||
*/
|
||||
function replace( str, search, newval ) {
|
||||
@ -14053,7 +14070,7 @@ var base = __nccwpck_require__( 2569 );
|
||||
* return capitalize( p1 );
|
||||
* }
|
||||
*
|
||||
* var out = replace( str, /([^\s]*)/gi, replacer);
|
||||
* var out = replace( str, /([^\s]*)/gi, replacer );
|
||||
* // returns 'Oranges And Lemons Say The Bells Of St. Clement\'s'
|
||||
*/
|
||||
function replace( str, search, newval ) {
|
||||
|
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