Socket
Socket
Sign inDemoInstall

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.3.0-rc.1 to 1.3.0-rc.2

examples/app-npm-webpack-2/.npmignore

6

dist/globalize-runtime.js
/**
* 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

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