Comparing version 1.4.0-alpha.4 to 1.4.0-alpha.5
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.4.0-alpha.4 | ||
* Globalize Runtime v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize Runtime v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/*! | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
@@ -13,0 +13,0 @@ (function( root, factory ) { |
/** | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -1480,3 +1480,3 @@ */ | ||
Globalize.prototype.numberFormatter = function( options ) { | ||
var args, cldr, pattern, pluralGenerator, properties, returnFn; | ||
var args, cldr, fnArgs, pattern, properties, returnFn; | ||
@@ -1501,2 +1501,3 @@ validateParameterTypePlainObject( options, "options" ); | ||
properties = numberFormatProperties( pattern, cldr, options ); | ||
fnArgs = [ properties ]; | ||
@@ -1508,9 +1509,6 @@ cldr.off( "get", validateCldr ); | ||
if ( options.compact ) { | ||
pluralGenerator = this.pluralGenerator(); | ||
returnFn = numberFormatterFn( properties, pluralGenerator ); | ||
runtimeBind( args, cldr, returnFn, [ properties, pluralGenerator ] ); | ||
} else { | ||
returnFn = numberFormatterFn( properties ); | ||
runtimeBind( args, cldr, returnFn, [ properties ] ); | ||
fnArgs.push( this.pluralGenerator() ); | ||
} | ||
returnFn = numberFormatterFn.apply( null, fnArgs ); | ||
runtimeBind( args, cldr, returnFn, fnArgs ); | ||
@@ -1540,2 +1538,7 @@ return returnFn; | ||
validateDefaultLocale( cldr ); | ||
if ( options.compact ) { | ||
throw createErrorUnsupportedFeature({ | ||
feature: "compact number parsing (not implemented)" | ||
}); | ||
} | ||
@@ -1542,0 +1545,0 @@ cldr.on( "get", validateCldr ); |
/** | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
/*! | ||
* Globalize v1.4.0-alpha.4 2018-07-17T01:57Z Released under the MIT license | ||
* Globalize v1.4.0-alpha.5 2018-07-17T20:03Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/*! | ||
* Globalize v1.4.0-alpha.4 | ||
* Globalize v1.4.0-alpha.5 | ||
* | ||
@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2018-07-17T01:57Z | ||
* Date: 2018-07-17T20:03Z | ||
*/ | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "globalize", | ||
"version": "1.4.0-alpha.4", | ||
"version": "1.4.0-alpha.5", | ||
"description": "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -100,11 +100,11 @@ # Globalize | ||
| File | Minified + gzipped size | Runtime minified + gzipped size | Summary | | ||
| -------------------------- | ----------------------: | ------------------------------: | ---------------------------------------- | | ||
| globalize.js | 1.5KB | 1.0KB | [Core library](#core-module) | | ||
| globalize/currency.js | 2.6KB | 0.6KB | [Currency module](#currency-module) provides currency formatting | | ||
| globalize/date.js | 7.6KB | 4.3KB | [Date module](#date-module) provides date formatting and parsing | | ||
| globalize/message.js | 5.4KB | 0.7KB | [Message module](#message-module) provides ICU message format support | | ||
| globalize/number.js | 3.8KB | 2.1KB | [Number module](#number-module) provides number formatting and parsing | | ||
| File | Minified + gzipped size | Runtime minified + gzipped size | Summary | | ||
| -------------------------- | ----------------------: | ------------------------------: | ------------------------------------------------------------ | | ||
| globalize.js | 1.5KB | 1.0KB | [Core library](#core-module) | | ||
| globalize/currency.js | 2.7KB | 0.6KB | [Currency module](#currency-module) provides currency formatting | | ||
| globalize/date.js | 7.7KB | 4.3KB | [Date module](#date-module) provides date formatting and parsing | | ||
| globalize/message.js | 5.3KB | 0.7KB | [Message module](#message-module) provides ICU message format support | | ||
| globalize/number.js | 4.1KB | 2.3KB | [Number module](#number-module) provides number formatting and parsing | | ||
| globalize/plural.js | 2.3KB | 0.4KB | [Plural module](#plural-module) provides pluralization support | | ||
| globalize/relative-time.js | 0.8KB | 0.6KB | [Relative time module](#relative-time-module) provides relative time formatting support | | ||
| globalize/relative-time.js | 0.8KB | 0.5KB | [Relative time module](#relative-time-module) provides relative time formatting support | | ||
| globalize/unit.js | 0.9KB | 0.6KB | [Unit module](#unit-module) provides unit formatting support | | ||
@@ -111,0 +111,0 @@ |
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
504916
10494