Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

globalize

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globalize - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

doc/api/currency/currency-to-parts-formatter.md

6

dist/globalize-runtime.js
/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -83,7 +83,7 @@ */

Globalize._messageFormat = (function() {
var number = function (value, offset) {
var number = function(value, offset) {
if (isNaN(value)) throw new Error("'" + value + "' isn't a number.");
return value - (offset || 0);
};
var plural = function (value, offset, lcfunc, data, isOrdinal) {
var plural = function(value, offset, lcfunc, data, isOrdinal) {
if ({}.hasOwnProperty.call(data, value)) return data[value]();

@@ -95,3 +95,3 @@ if (offset) value -= offset;

};
var select = function (value, data) {
var select = function(value, data) {
if ({}.hasOwnProperty.call(data, value)) return data[value]();

@@ -98,0 +98,0 @@ return data.other()

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -218,2 +218,6 @@ */

if ( number === 0 ) { // Fix #706
return number;
}
roundOrder = Math.ceil( Math.log( Math.abs( number ) ) / Math.log( 10 ) );

@@ -331,3 +335,3 @@ roundOrder -= precision;

* Return:
* - `` if input string is `''`.
* - `'` if input string is `''`.
* - `o'clock` if input string is `'o''clock'`.

@@ -342,3 +346,3 @@ * - `foo` if input string is `foo`, i.e., return the same value in case it isn't a single-quoted

if ( string === "''" ) {
return "";
return "'";
}

@@ -345,0 +349,0 @@ return string.replace( /''/g, "'" ).slice( 1, -1 );

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize Runtime v1.4.2
* Globalize Runtime v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize Runtime v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize Runtime v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/*!
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/

@@ -364,9 +364,12 @@ (function( root, factory ) {

cldr.on( "get", validateRequiredCldr );
properties = ({
accounting: currencySymbolProperties,
code: currencyCodeProperties,
name: currencyNameProperties,
symbol: currencySymbolProperties
}[ style ] )( currency, cldr, options );
cldr.off( "get", validateRequiredCldr );
try {
properties = ({
accounting: currencySymbolProperties,
code: currencyCodeProperties,
name: currencyNameProperties,
symbol: currencySymbolProperties
}[ style] )( currency, cldr, options );
} finally {
cldr.off( "get", validateRequiredCldr );
}

@@ -373,0 +376,0 @@ // options = options minus style, plus raw pattern.

/**
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/**
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -232,2 +232,6 @@ */

if ( number === 0 ) { // Fix #706
return number;
}
roundOrder = Math.ceil( Math.log( Math.abs( number ) ) / Math.log( 10 ) );

@@ -345,3 +349,3 @@ roundOrder -= precision;

* Return:
* - `` if input string is `''`.
* - `'` if input string is `''`.
* - `o'clock` if input string is `'o''clock'`.

@@ -356,3 +360,3 @@ * - `foo` if input string is `foo`, i.e., return the same value in case it isn't a single-quoted

if ( string === "''" ) {
return "";
return "'";
}

@@ -1495,14 +1499,15 @@ return string.replace( /''/g, "'" ).slice( 1, -1 );

cldr.on( "get", validateCldr );
try {
if ( options.raw ) {
pattern = options.raw;
} else {
pattern = numberPattern( options.style || "decimal", cldr );
}
if ( options.raw ) {
pattern = options.raw;
} else {
pattern = numberPattern( options.style || "decimal", cldr );
properties = numberFormatProperties( pattern, cldr, options );
fnArgs = [ properties ];
} finally {
cldr.off( "get", validateCldr );
}
properties = numberFormatProperties( pattern, cldr, options );
fnArgs = [ properties ];
cldr.off( "get", validateCldr );
validateDigits( properties );

@@ -1509,0 +1514,0 @@

/**
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -351,4 +351,7 @@ */

cldr.on( "get", validateCldr );
cldr.supplemental([ "plurals-type-" + type, "{language}" ]);
cldr.off( "get", validateCldr );
try {
cldr.supplemental([ "plurals-type-" + type, "{language}" ]);
} finally {
cldr.off( "get", validateCldr );
}

@@ -355,0 +358,0 @@ MakePlural.rules = {};

/**
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -184,5 +184,7 @@ */

cldr.on( "get", validateCldr );
properties = relativeTimeProperties( unit, cldr, options );
cldr.off( "get", validateCldr );
try {
properties = relativeTimeProperties( unit, cldr, options );
} finally {
cldr.off( "get", validateCldr );
}
numberFormatter = this.numberFormatter( options );

@@ -189,0 +191,0 @@ pluralGenerator = this.pluralGenerator();

/**
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/
/*!
* Globalize v1.4.2 2019-03-07T13:47Z Released under the MIT license
* Globalize v1.4.3 2020-03-19T12:34Z Released under the MIT license
* http://git.io/TrdQbw

@@ -16,0 +16,0 @@ */

/*!
* Globalize v1.4.2
* Globalize v1.4.3
*

@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize

*
* Date: 2019-03-07T13:47Z
* Date: 2020-03-19T12:34Z
*/

@@ -13,0 +13,0 @@

{
"name": "globalize",
"version": "1.4.2",
"version": "1.4.3",
"description": "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -279,3 +279,3 @@ # Globalize

You can find us on [Slack](https://globalizejs.slack.com/). If you're new, [join here](https://join.slack.com/t/globalizejs/shared_invite/enQtMjk4OTUwNzM1Nzk0LTk2YmY0YjY3Yzk4YzU3M2NkMDZjNThlNzcwNTkyNGJhNDhiNjdkMWUyN2Q2MjVmNTk0ZjkyNGQ3MWEyNzNmMWU).
You can find us on [Slack](https://globalizejs.slack.com/). If you're new, [join here](https://join.slack.com/t/globalizejs/shared_invite/zt-3tc3js1e-ETn09rNHL_5fclun8jtckQ).

@@ -282,0 +282,0 @@ ## API

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc