globalize
Advanced tools
Comparing version 1.6.0 to 1.7.0
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -189,3 +189,3 @@ */ | ||
var runtimeStringify = function( args ) { | ||
return JSON.stringify( args, function( key, value ) { | ||
return JSON.stringify( args, function( _key, value ) { | ||
if ( value && value.runtimeKey ) { | ||
@@ -192,0 +192,0 @@ return value.runtimeKey; |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -15,0 +15,0 @@ */ |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -802,3 +802,3 @@ */ | ||
*/ | ||
var dateParse = function( value, tokens, properties ) { | ||
var dateParse = function( _value, tokens, properties ) { | ||
var amPm, day, daysOfYear, month, era, hour, hour12, timezoneOffset, valid, | ||
@@ -1082,4 +1082,6 @@ YEAR = 0, | ||
/* eslint-disable no-unused-expressions */ | ||
/** | ||
@@ -1086,0 +1088,0 @@ * tokenizer( value, numberParser, properties ) |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -80,3 +80,3 @@ */ | ||
Globalize._messageFormatterFn = messageFormatterFn; | ||
/* jshint ignore:start */ | ||
/* eslint-disable */ | ||
Globalize._messageFormat = (function() { | ||
@@ -101,3 +101,3 @@ var number = function(value, offset) { | ||
}()); | ||
/* jshint ignore:end */ | ||
/* eslint-enable */ | ||
Globalize._validateParameterTypeMessageVariables = validateParameterTypeMessageVariables; | ||
@@ -104,0 +104,0 @@ |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -182,3 +182,3 @@ */ | ||
.replace( /0+$/, "" ) /* 1 */ | ||
.replace( /\.$/, "" ) /* 2 */; | ||
.replace( /\.$/, "" ); /* 2 */ | ||
} | ||
@@ -282,52 +282,2 @@ | ||
/** | ||
* EBNF representation: | ||
* | ||
* number_pattern_re = prefix? | ||
* padding? | ||
* (integer_fraction_pattern | significant_pattern) | ||
* scientific_notation? | ||
* suffix? | ||
* | ||
* prefix = non_number_stuff | ||
* | ||
* padding = "*" regexp(.) | ||
* | ||
* integer_fraction_pattern = integer_pattern | ||
* fraction_pattern? | ||
* | ||
* integer_pattern = regexp([#,]*[0,]*0+) | ||
* | ||
* fraction_pattern = "." regexp(0*[0-9]*#*) | ||
* | ||
* significant_pattern = regexp([#,]*@+#*) | ||
* | ||
* scientific_notation = regexp(E\+?0+) | ||
* | ||
* suffix = non_number_stuff | ||
* | ||
* non_number_stuff = regexp(('[^']+'|''|[^*#@0,.E])*) | ||
* | ||
* | ||
* Regexp groups: | ||
* | ||
* 0: number_pattern_re | ||
* 1: prefix | ||
* 2: - | ||
* 3: - | ||
* 4: padding | ||
* 5: (integer_fraction_pattern | significant_pattern) | ||
* 6: integer_fraction_pattern | ||
* 7: integer_pattern | ||
* 8: fraction_pattern | ||
* 9: significant_pattern | ||
* 10: scientific_notation | ||
* 11: suffix | ||
* 12: - | ||
*/ | ||
var numberPatternRe = ( /^(('([^']|'')*'|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/ ); | ||
var numberSymbolName = { | ||
@@ -381,6 +331,5 @@ ".": "decimal", | ||
minimumFractionDigits, minimumIntegerDigits, minimumSignificantDigits, nanSymbol, | ||
nuDigitsMap, padding, prefix, primaryGroupingSize, pattern, round, roundIncrement, | ||
nuDigitsMap, prefix, primaryGroupingSize, pattern, round, roundIncrement, | ||
secondaryGroupingSize, stringToParts, suffix, symbolMap; | ||
padding = properties[ 1 ]; | ||
minimumIntegerDigits = properties[ 2 ]; | ||
@@ -442,3 +391,3 @@ minimumFractionDigits = properties[ 3 ]; | ||
} | ||
partsPush( parts, numberSymbolName[symbol], symbolMap[ symbol ] ); | ||
partsPush( parts, numberSymbolName[ symbol ], symbolMap[ symbol ] ); | ||
@@ -535,3 +484,3 @@ // "Erase" handled character. | ||
var parts = []; | ||
string.replace( /(\s+)|([^\s0]+)/g, function( garbage, space, compact ) { | ||
string.replace( /(\s+)|([^\s0]+)/g, function( _garbage, space, compact ) { | ||
@@ -595,9 +544,9 @@ // Literals | ||
* var regenerate = require( "regenerate" ); | ||
* var formatSymbols = require( * "unicode-8.0.0/General_Category/Format/symbols" ); | ||
* var formatSymbols = require( "@unicode/unicode-13.0.0/General_Category/Format/symbols" ); | ||
* regenerate().add( formatSymbols ).toString(); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-8.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
*/ | ||
var regexpCfG = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g; | ||
var regexpCfG = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g; | ||
@@ -611,11 +560,11 @@ | ||
* var regenerate = require( "regenerate" ); | ||
* var dashSymbols = require( * "unicode-8.0.0/General_Category/Dash_Punctuation/symbols" ); | ||
* var dashSymbols = require( "https://github.com/node-unicode/unicode-13.0.0/General_Category/Dash_Punctuation/symbols" ); | ||
* regenerate().add( dashSymbols ).toString(); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-8.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
* | ||
* NOTE: In addition to [:dash:], the below includes MINUS SIGN U+2212. | ||
*/ | ||
var regexpDashG = /[\-\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u2E40\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D\u2212]/g; | ||
var regexpDashG = /[\x2D\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u2E40\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D\u2212]|\uD803\uDEAD/g; | ||
@@ -629,7 +578,7 @@ | ||
* var regenerate = require( "regenerate" ); | ||
* var spaceSeparatorSymbols = require( "unicode-8.0.0/General_Category/Space_Separator/symbols" ); | ||
* var spaceSeparatorSymbols = require( "@unicode/unicode-13.0.0/General_Category/Space_Separator/symbols" ); | ||
* regenerate().add( spaceSeparatorSymbols ).toString(); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-8.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
*/ | ||
@@ -636,0 +585,0 @@ var regexpZsG = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/g; |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -15,0 +15,0 @@ */ |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -74,4 +74,4 @@ */ | ||
relativeTime = value <= 0 ? properties[ "relativeTime-type-past" ] | ||
: properties[ "relativeTime-type-future" ]; | ||
relativeTime = value <= 0 ? properties[ "relativeTime-type-past" ] : | ||
properties[ "relativeTime-type-future" ]; | ||
@@ -78,0 +78,0 @@ value = Math.abs( value ); |
/** | ||
* Globalize Runtime v1.6.0 | ||
* Globalize Runtime v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize Runtime v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -88,3 +88,3 @@ */ | ||
dividend = formatMessage( dividendProperties[ pluralValue ], [ formattedValue ] ); | ||
divisor = formatMessage( divisorProperties[oneProperty], [ "" ] ).trim(); | ||
divisor = formatMessage( divisorProperties[ oneProperty ], [ "" ] ).trim(); | ||
@@ -91,0 +91,0 @@ return formatMessage( compoundUnitPattern, [ dividend, divisor ] ); |
/** | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -188,3 +188,3 @@ */ | ||
var runtimeStringify = function( args ) { | ||
return JSON.stringify( args, function( key, value ) { | ||
return JSON.stringify( args, function( _key, value ) { | ||
if ( value && value.runtimeKey ) { | ||
@@ -191,0 +191,0 @@ return value.runtimeKey; |
/*! | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
@@ -156,15 +156,18 @@ (function( root, factory ) { | ||
/** | ||
* Unicode regular expression for: everything except math symbols, currency signs, dingbats, and | ||
* box-drawing characters. | ||
* Unicode regular expression for: everything except symbols from the category S | ||
* | ||
* Generated by: | ||
* | ||
* regenerate() | ||
* var s = regenerate() | ||
* .addRange( 0x0, 0x10FFFF ) | ||
* .remove( require( "unicode-7.0.0/categories/S/symbols" ) ).toString(); | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Math_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Currency_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Modifier_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Other_Symbol/symbols" ) ) | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-7.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
* http://www.unicode.org/reports/tr44/#General_Category_Values | ||
*/ | ||
var regexpNotS = /[\0-#%-\*,-;\?-\]_a-\{\}\x7F-\xA1\xA7\xAA\xAB\xAD\xB2\xB3\xB5-\xB7\xB9-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u0383\u0386-\u03F5\u03F7-\u0481\u0483-\u058C\u0590-\u0605\u0609\u060A\u060C\u060D\u0610-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF-\u07F5\u07F7-\u09F1\u09F4-\u09F9\u09FC-\u0AF0\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C7E\u0C80-\u0D78\u0D7A-\u0E3E\u0E40-\u0F00\u0F04-\u0F12\u0F14\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39-\u0FBD\u0FC6\u0FCD\u0FD0-\u0FD4\u0FD9-\u109D\u10A0-\u138F\u139A-\u17DA\u17DC-\u193F\u1941-\u19DD\u1A00-\u1B60\u1B6B-\u1B73\u1B7D-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF-\u2043\u2045-\u2051\u2053-\u2079\u207D-\u2089\u208D-\u209F\u20BE-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u218F\u2308-\u230B\u2329\u232A\u23FB-\u23FF\u2427-\u243F\u244B-\u249B\u24EA-\u24FF\u2768-\u2793\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2B74\u2B75\u2B96\u2B97\u2BBA-\u2BBC\u2BC9\u2BD2-\u2CE4\u2CEB-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u3003\u3005-\u3011\u3014-\u301F\u3021-\u3035\u3038-\u303D\u3040-\u309A\u309D-\u318F\u3192-\u3195\u31A0-\u31BF\u31E4-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u32FF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uAA76\uAA7A-\uAB5A\uAB5C-\uD7FF\uDC00-\uFB28\uFB2A-\uFBB1\uFBC2-\uFDFB\uFDFE-\uFE61\uFE63\uFE67\uFE68\uFE6A-\uFF03\uFF05-\uFF0A\uFF0C-\uFF1B\uFF1F-\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5F-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8D-\uDD8F\uDD9C-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDFFF]|[\uD801\uD803-\uD819\uD81B-\uD82E\uD830-\uD833\uD836-\uD83A\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDC76\uDC79-\uDEC7\uDEC9-\uDFFF]|\uD81A[\uDC00-\uDF3B\uDF40-\uDF44\uDF46-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDDE-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD83B[\uDC00-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0F\uDD2F\uDD6C-\uDD6F\uDD9B-\uDDE5\uDE03-\uDE0F\uDE3B-\uDE3F\uDE49-\uDE4F\uDE52-\uDEFF\uDF2D-\uDF2F\uDF7E\uDF7F\uDFCF-\uDFD3\uDFF8-\uDFFF]|\uD83D[\uDCFF\uDD4B-\uDD4F\uDD7A\uDDA4\uDE43\uDE44\uDED0-\uDEDF\uDEED-\uDEEF\uDEF4-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDFFF]|[\uD800-\uDBFF]/; | ||
var regexpNotS = /[\0-#%-\*,-;\?-\]_a-\{\}\x7F-\xA1\xA7\xAA\xAB\xAD\xB2\xB3\xB5-\xB7\xB9-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u0383\u0386-\u03F5\u03F7-\u0481\u0483-\u058C\u0590-\u0605\u0609\u060A\u060C\u060D\u0610-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF-\u07F5\u07F7-\u07FD\u0800-\u09F1\u09F4-\u09F9\u09FC-\u0AF0\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C7E\u0C80-\u0D4E\u0D50-\u0D78\u0D7A-\u0E3E\u0E40-\u0F00\u0F04-\u0F12\u0F14\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39-\u0FBD\u0FC6\u0FCD\u0FD0-\u0FD4\u0FD9-\u109D\u10A0-\u138F\u139A-\u166C\u166E-\u17DA\u17DC-\u193F\u1941-\u19DD\u1A00-\u1B60\u1B6B-\u1B73\u1B7D-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF-\u2043\u2045-\u2051\u2053-\u2079\u207D-\u2089\u208D-\u209F\u20C0-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u2308-\u230B\u2329\u232A\u2427-\u243F\u244B-\u249B\u24EA-\u24FF\u2768-\u2793\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2B74\u2B75\u2B96\u2C00-\u2CE4\u2CEB-\u2E4F\u2E52-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u3003\u3005-\u3011\u3014-\u301F\u3021-\u3035\u3038-\u303D\u3040-\u309A\u309D-\u318F\u3192-\u3195\u31A0-\u31BF\u31E4-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uAA76\uAA7A-\uAB5A\uAB5C-\uAB69\uAB6C-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBC2-\uFDFB\uFDFE-\uFE61\uFE63\uFE67\uFE68\uFE6A-\uFF03\uFF05-\uFF0A\uFF0C-\uFF1B\uFF1F-\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5F-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDFFF]|[\uD801\uD803\uD804\uD806\uD808-\uD819\uD81B-\uD82E\uD830-\uD833\uD837\uD839\uD83A\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDC76\uDC79-\uDEC7\uDEC9-\uDFFF]|\uD805[\uDC00-\uDF3E\uDF40-\uDFFF]|\uD807[\uDC00-\uDFD4\uDFF2-\uDFFF]|\uD81A[\uDC00-\uDF3B\uDF40-\uDF44\uDF46-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDE9-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE87-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED8-\uDEDF\uDEED-\uDEEF\uDEFD-\uDEFF\uDF74-\uDF7F\uDFD9-\uDFDF\uDFEC-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCB2-\uDCFF\uDD79\uDDCC\uDE54-\uDE5F\uDE6E\uDE6F\uDE75-\uDE77\uDE7B-\uDE7F\uDE87-\uDE8F\uDEA9-\uDEAF\uDEB7-\uDEBF\uDEC3-\uDECF\uDED7-\uDEFF\uDF93\uDFCB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; | ||
@@ -175,2 +178,26 @@ | ||
/** | ||
* Unicode regular expression for: everything except symbols from categories S and Z | ||
* | ||
* Generated by: | ||
* | ||
* var s = regenerate() | ||
* .addRange( 0x0, 0x10FFFF ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Math_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Currency_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Modifier_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Other_Symbol/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Space_Separator/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Line_Separator/symbols" ) ) | ||
* .remove( require( "@unicode/unicode-13.0.0/General_Category/Paragraph_Separator/symbols" ) ); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
* http://www.unicode.org/reports/tr44/#General_Category_Values | ||
*/ | ||
var regexpNotSAndZ = /[\0-\x1F!-#%-\*,-;\?-\]_a-\{\}\x7F-\x9F\xA1\xA7\xAA\xAB\xAD\xB2\xB3\xB5-\xB7\xB9-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u0383\u0386-\u03F5\u03F7-\u0481\u0483-\u058C\u0590-\u0605\u0609\u060A\u060C\u060D\u0610-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF-\u07F5\u07F7-\u07FD\u0800-\u09F1\u09F4-\u09F9\u09FC-\u0AF0\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C7E\u0C80-\u0D4E\u0D50-\u0D78\u0D7A-\u0E3E\u0E40-\u0F00\u0F04-\u0F12\u0F14\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39-\u0FBD\u0FC6\u0FCD\u0FD0-\u0FD4\u0FD9-\u109D\u10A0-\u138F\u139A-\u166C\u166E-\u167F\u1681-\u17DA\u17DC-\u193F\u1941-\u19DD\u1A00-\u1B60\u1B6B-\u1B73\u1B7D-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u2043\u2045-\u2051\u2053-\u205E\u2060-\u2079\u207D-\u2089\u208D-\u209F\u20C0-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u2308-\u230B\u2329\u232A\u2427-\u243F\u244B-\u249B\u24EA-\u24FF\u2768-\u2793\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2B74\u2B75\u2B96\u2C00-\u2CE4\u2CEB-\u2E4F\u2E52-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u2FFC-\u2FFF\u3001-\u3003\u3005-\u3011\u3014-\u301F\u3021-\u3035\u3038-\u303D\u3040-\u309A\u309D-\u318F\u3192-\u3195\u31A0-\u31BF\u31E4-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uAA76\uAA7A-\uAB5A\uAB5C-\uAB69\uAB6C-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBC2-\uFDFB\uFDFE-\uFE61\uFE63\uFE67\uFE68\uFE6A-\uFF03\uFF05-\uFF0A\uFF0C-\uFF1B\uFF1F-\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5F-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDFFF]|[\uD801\uD803\uD804\uD806\uD808-\uD819\uD81B-\uD82E\uD830-\uD833\uD837\uD839\uD83A\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD802[\uDC00-\uDC76\uDC79-\uDEC7\uDEC9-\uDFFF]|\uD805[\uDC00-\uDF3E\uDF40-\uDFFF]|\uD807[\uDC00-\uDFD4\uDFF2-\uDFFF]|\uD81A[\uDC00-\uDF3B\uDF40-\uDF44\uDF46-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDE9-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE87-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED8-\uDEDF\uDEED-\uDEEF\uDEFD-\uDEFF\uDF74-\uDF7F\uDFD9-\uDFDF\uDFEC-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCB2-\uDCFF\uDD79\uDDCC\uDE54-\uDE5F\uDE6E\uDE6F\uDE75-\uDE77\uDE7B-\uDE7F\uDE87-\uDE8F\uDEA9-\uDEAF\uDEB7-\uDEBF\uDEC3-\uDECF\uDED7-\uDEFF\uDF93\uDFCB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; | ||
/** | ||
* symbolProperties( currency, cldr ) | ||
@@ -184,3 +211,4 @@ * | ||
"[:digit:]": /\d/, | ||
"[:^S:]": regexpNotS | ||
"[:^S:]": regexpNotS, | ||
"[[:^S:]&[:^Z:]]": regexpNotSAndZ | ||
}; | ||
@@ -187,0 +215,0 @@ |
/** | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -48,3 +48,3 @@ */ | ||
var MessageFormat; | ||
/* jshint ignore:start */ | ||
/* eslint-disable */ | ||
MessageFormat = (function() { | ||
@@ -1863,3 +1863,3 @@ MessageFormat._parse = (function() { | ||
}()); | ||
/* jshint ignore:end */ | ||
/* eslint-enable */ | ||
@@ -1866,0 +1866,0 @@ |
/** | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -269,3 +269,3 @@ */ | ||
if ( significantPattern ) { | ||
significantPattern.replace( /(@+)(#*)/, function( match, minimumSignificantDigitsMatch, maximumSignificantDigitsMatch ) { | ||
significantPattern.replace( /(@+)(#*)/, function( _match, minimumSignificantDigitsMatch, maximumSignificantDigitsMatch ) { | ||
minimumSignificantDigits = minimumSignificantDigitsMatch.length; | ||
@@ -296,3 +296,3 @@ maximumSignificantDigits = minimumSignificantDigits + | ||
// 1: ignore decimal character | ||
maximumFractionDigits = fractionPattern.length - 1 /* 1 */; | ||
maximumFractionDigits = fractionPattern.length - 1; /* 1 */ | ||
} else { | ||
@@ -594,5 +594,5 @@ minimumFractionDigits = 0; | ||
properties[ 5 ] = // minimumSignificantDigits & | ||
properties[ 6 ] = undefined ; // maximumSignificantDigits | ||
properties[ 6 ] = undefined; // maximumSignificantDigits | ||
properties[20] = numberCompact( options.compact, cldr ); | ||
properties[ 20 ] = numberCompact( options.compact, cldr ); | ||
} | ||
@@ -646,9 +646,9 @@ | ||
* var regenerate = require( "regenerate" ); | ||
* var formatSymbols = require( * "unicode-8.0.0/General_Category/Format/symbols" ); | ||
* var formatSymbols = require( "@unicode/unicode-13.0.0/General_Category/Format/symbols" ); | ||
* regenerate().add( formatSymbols ).toString(); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-8.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
*/ | ||
var regexpCfG = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g; | ||
var regexpCfG = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g; | ||
@@ -662,11 +662,11 @@ | ||
* var regenerate = require( "regenerate" ); | ||
* var dashSymbols = require( * "unicode-8.0.0/General_Category/Dash_Punctuation/symbols" ); | ||
* var dashSymbols = require( "https://github.com/node-unicode/unicode-13.0.0/General_Category/Dash_Punctuation/symbols" ); | ||
* regenerate().add( dashSymbols ).toString(); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-8.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
* | ||
* NOTE: In addition to [:dash:], the below includes MINUS SIGN U+2212. | ||
*/ | ||
var regexpDashG = /[\-\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u2E40\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D\u2212]/g; | ||
var regexpDashG = /[\x2D\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u2E40\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D\u2212]|\uD803\uDEAD/g; | ||
@@ -680,7 +680,7 @@ | ||
* var regenerate = require( "regenerate" ); | ||
* var spaceSeparatorSymbols = require( "unicode-8.0.0/General_Category/Space_Separator/symbols" ); | ||
* var spaceSeparatorSymbols = require( "@unicode/unicode-13.0.0/General_Category/Space_Separator/symbols" ); | ||
* regenerate().add( spaceSeparatorSymbols ).toString(); | ||
* | ||
* https://github.com/mathiasbynens/regenerate | ||
* https://github.com/mathiasbynens/unicode-8.0.0 | ||
* https://github.com/node-unicode/unicode-13.0.0 | ||
*/ | ||
@@ -1051,3 +1051,3 @@ var regexpZsG = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/g; | ||
infinity: new RegExp( "^" + regexpEscape( infinitySymbol ) ), | ||
nan: new RegExp( "^" + regexpEscape( nanSymbol ) ), | ||
nan: new RegExp( "^" + regexpEscape( nanSymbol ) ), | ||
negativePrefix: new RegExp( "^" + regexpEscape( negativePrefix ) ), | ||
@@ -1198,3 +1198,3 @@ negativeSuffix: new RegExp( "^" + regexpEscape( negativeSuffix ) ), | ||
.replace( /0+$/, "" ) /* 1 */ | ||
.replace( /\.$/, "" ) /* 2 */; | ||
.replace( /\.$/, "" ); /* 2 */ | ||
} | ||
@@ -1311,6 +1311,5 @@ | ||
minimumFractionDigits, minimumIntegerDigits, minimumSignificantDigits, nanSymbol, | ||
nuDigitsMap, padding, prefix, primaryGroupingSize, pattern, round, roundIncrement, | ||
nuDigitsMap, prefix, primaryGroupingSize, pattern, round, roundIncrement, | ||
secondaryGroupingSize, stringToParts, suffix, symbolMap; | ||
padding = properties[ 1 ]; | ||
minimumIntegerDigits = properties[ 2 ]; | ||
@@ -1372,3 +1371,3 @@ minimumFractionDigits = properties[ 3 ]; | ||
} | ||
partsPush( parts, numberSymbolName[symbol], symbolMap[ symbol ] ); | ||
partsPush( parts, numberSymbolName[ symbol ], symbolMap[ symbol ] ); | ||
@@ -1465,3 +1464,3 @@ // "Erase" handled character. | ||
var parts = []; | ||
string.replace( /(\s+)|([^\s0]+)/g, function( garbage, space, compact ) { | ||
string.replace( /(\s+)|([^\s0]+)/g, function( _garbage, space, compact ) { | ||
@@ -1468,0 +1467,0 @@ // Literals |
/** | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -46,3 +46,3 @@ */ | ||
var MakePlural; | ||
/* jshint ignore:start */ | ||
/* eslint-disable */ | ||
MakePlural = (function() { | ||
@@ -266,3 +266,3 @@ 'use strict'; | ||
}()); | ||
/* jshint ignore:end */ | ||
/* eslint-enable */ | ||
@@ -269,0 +269,0 @@ |
/** | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -72,4 +72,4 @@ */ | ||
relativeTime = value <= 0 ? properties[ "relativeTime-type-past" ] | ||
: properties[ "relativeTime-type-future" ]; | ||
relativeTime = value <= 0 ? properties[ "relativeTime-type-past" ] : | ||
properties[ "relativeTime-type-future" ]; | ||
@@ -76,0 +76,0 @@ value = Math.abs( value ); |
/** | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
/*! | ||
* Globalize v1.6.0 2020-09-08T11:54Z Released under the MIT license | ||
* Globalize v1.7.0 2021-08-02T11:53Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -83,3 +83,3 @@ */ | ||
dividend = formatMessage( dividendProperties[ pluralValue ], [ formattedValue ] ); | ||
divisor = formatMessage( divisorProperties[oneProperty], [ "" ] ).trim(); | ||
divisor = formatMessage( divisorProperties[ oneProperty ], [ "" ] ).trim(); | ||
@@ -86,0 +86,0 @@ return formatMessage( compoundUnitPattern, [ dividend, divisor ] ); |
/*! | ||
* Globalize v1.6.0 | ||
* Globalize v1.7.0 | ||
* | ||
* http://github.com/jquery/globalize | ||
* https://github.com/globalizejs/globalize | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Copyright OpenJS Foundation and other contributors | ||
* Released under the MIT license | ||
* http://jquery.org/license | ||
* https://jquery.org/license | ||
* | ||
* Date: 2020-09-08T11:54Z | ||
* Date: 2021-08-02T11:53Z | ||
*/ | ||
@@ -12,0 +12,0 @@ |
@@ -5,3 +5,3 @@ ## Globalize.load( cldrJSONData, ... ) | ||
This method can be called as many time as needed. All passed JSON objects are deeply merged internally. | ||
This method can be called as many times as needed. All passed JSON objects are deeply merged internally. | ||
@@ -8,0 +8,0 @@ For more information, see https://github.com/rxaviers/cldrjs#readme. |
@@ -98,8 +98,8 @@ /** | ||
datetime: "medium" | ||
}).map(function( part ) { | ||
switch(part.type) { | ||
}).map( function( part ) { | ||
switch ( part.type ) { | ||
case "month": return "<strong>" + part.value + "</strong>"; | ||
default: return part.value; | ||
} | ||
}).reduce(function( memo, value ) { | ||
}).reduce( function( memo, value ) { | ||
return memo + value; | ||
@@ -106,0 +106,0 @@ }); |
{ | ||
"name": "globalize", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.", | ||
@@ -34,6 +34,6 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/jquery/globalize", | ||
"homepage": "https://github.com/globalizejs/globalize", | ||
"author": { | ||
"name": "jQuery Foundation and other contributors", | ||
"url": "https://github.com/jquery/jquery/blob/master/AUTHORS.txt" | ||
"name": "OpenJS Foundation and other contributors", | ||
"url": "https://github.com/globalizejs/globalize/blob/master/AUTHORS.txt" | ||
}, | ||
@@ -68,6 +68,6 @@ "maintainers": [ | ||
"type": "git", | ||
"url": "git://github.com/jquery/globalize.git" | ||
"url": "git://github.com/globalizejs/globalize.git" | ||
}, | ||
"bugs": { | ||
"url": "http://github.com/jquery/globalize/issues" | ||
"url": "https://github.com/globalizejs/globalize/issues" | ||
}, | ||
@@ -79,5 +79,6 @@ "dependencies": { | ||
"cldr-data-downloader": "^0.3.1", | ||
"eslint-config-jquery": "3.0.0", | ||
"glob": "^7.1.2", | ||
"globalize-compiler": "^1.1.1", | ||
"grunt": "1.0.1", | ||
"grunt": "1.2.0", | ||
"grunt-check-dependencies": "1.0.0", | ||
@@ -89,3 +90,2 @@ "grunt-commitplease": "0.0.6", | ||
"grunt-contrib-copy": "1.0.0", | ||
"grunt-contrib-jshint": "1.1.0", | ||
"grunt-contrib-qunit": "2.0.0", | ||
@@ -95,4 +95,4 @@ "grunt-contrib-requirejs": "1.0.0", | ||
"grunt-contrib-watch": "1.0.0", | ||
"grunt-eslint": "23.0.0", | ||
"grunt-git-authors": "^3.2.0", | ||
"grunt-jscs": "1.8.0", | ||
"grunt-mocha-test": "^0.13.2", | ||
@@ -103,4 +103,5 @@ "gzip-js": "0.3.2", | ||
"mocha": "^3.4.2", | ||
"qunit": "2.12.0", | ||
"semver": "^5.3.0", | ||
"zoned-date-time": "1.0.0" | ||
"zoned-date-time": "1.1.0" | ||
}, | ||
@@ -107,0 +108,0 @@ "commitplease": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
516157
0
100
25
10698