Comparing version 1.3.0-rc.1 to 1.3.0-rc.2
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -142,8 +142,2 @@ */ | ||
// Minimum fraction digits | ||
if ( minimumFractionDigits ) { | ||
number = String( number ).split( "." ); | ||
number[ 1 ] = stringPad( number[ 1 ] || "", minimumFractionDigits, true ); | ||
number = number.join( "." ); | ||
} | ||
} else { | ||
@@ -155,2 +149,24 @@ number = round( number ); | ||
// Maximum integer digits (post string phase) | ||
if ( maximumFractionDigits && /e-/.test( number ) ) { | ||
// Use toFixed( maximumFractionDigits ) to make sure small numbers like 1e-7 are | ||
// displayed using plain digits instead of scientific notation. | ||
// 1: Remove leading decimal zeros. | ||
// 2: Remove leading decimal separator. | ||
// Note: String() is still preferred so it doesn't mess up with a number precision | ||
// unnecessarily, e.g., (123456789.123).toFixed(10) === "123456789.1229999959", | ||
// String(123456789.123) === "123456789.123". | ||
number = ( +number ).toFixed( maximumFractionDigits ) | ||
.replace( /0+$/, "" ) /* 1 */ | ||
.replace( /\.$/, "" ) /* 2 */; | ||
} | ||
// Minimum fraction digits (post string phase) | ||
if ( minimumFractionDigits ) { | ||
number = number.split( "." ); | ||
number[ 1 ] = stringPad( number[ 1 ] || "", minimumFractionDigits, true ); | ||
number = number.join( "." ); | ||
} | ||
// Minimum integer digits | ||
@@ -157,0 +173,0 @@ if ( minimumIntegerDigits ) { |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.3.0-rc.1 | ||
* Globalize Runtime v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize Runtime v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/*! | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
@@ -13,0 +13,0 @@ (function( root, factory ) { |
/** | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -156,8 +156,2 @@ */ | ||
// Minimum fraction digits | ||
if ( minimumFractionDigits ) { | ||
number = String( number ).split( "." ); | ||
number[ 1 ] = stringPad( number[ 1 ] || "", minimumFractionDigits, true ); | ||
number = number.join( "." ); | ||
} | ||
} else { | ||
@@ -169,2 +163,24 @@ number = round( number ); | ||
// Maximum integer digits (post string phase) | ||
if ( maximumFractionDigits && /e-/.test( number ) ) { | ||
// Use toFixed( maximumFractionDigits ) to make sure small numbers like 1e-7 are | ||
// displayed using plain digits instead of scientific notation. | ||
// 1: Remove leading decimal zeros. | ||
// 2: Remove leading decimal separator. | ||
// Note: String() is still preferred so it doesn't mess up with a number precision | ||
// unnecessarily, e.g., (123456789.123).toFixed(10) === "123456789.1229999959", | ||
// String(123456789.123) === "123456789.123". | ||
number = ( +number ).toFixed( maximumFractionDigits ) | ||
.replace( /0+$/, "" ) /* 1 */ | ||
.replace( /\.$/, "" ) /* 2 */; | ||
} | ||
// Minimum fraction digits (post string phase) | ||
if ( minimumFractionDigits ) { | ||
number = number.split( "." ); | ||
number[ 1 ] = stringPad( number[ 1 ] || "", minimumFractionDigits, true ); | ||
number = number.join( "." ); | ||
} | ||
// Minimum integer digits | ||
@@ -171,0 +187,0 @@ if ( minimumIntegerDigits ) { |
/** | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
/*! | ||
* Globalize v1.3.0-rc.1 2017-06-27T14:01Z Released under the MIT license | ||
* Globalize v1.3.0-rc.2 2017-07-03T18:24Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/*! | ||
* Globalize v1.3.0-rc.1 | ||
* Globalize v1.3.0-rc.2 | ||
* | ||
@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2017-06-27T14:01Z | ||
* Date: 2017-07-03T18:24Z | ||
*/ | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "globalize", | ||
"version": "1.3.0-rc.1", | ||
"version": "1.3.0-rc.2", | ||
"description": "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1
100
477262
96
10221