lingui-formats
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/lingui/js-lingui/compare/lingui-formats@1.0.2...lingui-formats@1.0.3) (2017-09-05) | ||
**Note:** Version bump only for package lingui-formats | ||
<a name="1.0.2"></a> | ||
@@ -8,0 +16,0 @@ ## [1.0.2](https://github.com/lingui/js-lingui/compare/lingui-formats@1.0.1...lingui-formats@1.0.2) (2017-09-04) |
@@ -1,9 +0,5 @@ | ||
import _typeof from 'babel-runtime/helpers/typeof'; | ||
var globalIntl = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? window.Intl : Intl; | ||
function date(language) { | ||
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var formatter = new globalIntl.DateTimeFormat(language, format); | ||
var formatter = new Intl.DateTimeFormat(language, format); | ||
return function (value) { | ||
@@ -14,8 +10,6 @@ return formatter.format(value); | ||
var globalIntl$1 = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? window.Intl : Intl; | ||
function number(language) { | ||
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var formatter = new globalIntl$1.NumberFormat(language, format); | ||
var formatter = new Intl.NumberFormat(language, format); | ||
return function (value) { | ||
@@ -22,0 +16,0 @@ return formatter.format(value); |
@@ -5,12 +5,6 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _typeof = _interopDefault(require('babel-runtime/helpers/typeof')); | ||
var globalIntl = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? window.Intl : Intl; | ||
function date(language) { | ||
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var formatter = new globalIntl.DateTimeFormat(language, format); | ||
var formatter = new Intl.DateTimeFormat(language, format); | ||
return function (value) { | ||
@@ -21,8 +15,6 @@ return formatter.format(value); | ||
var globalIntl$1 = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? window.Intl : Intl; | ||
function number(language) { | ||
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var formatter = new globalIntl$1.NumberFormat(language, format); | ||
var formatter = new Intl.NumberFormat(language, format); | ||
return function (value) { | ||
@@ -29,0 +21,0 @@ return formatter.format(value); |
{ | ||
"name": "lingui-formats", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Built-in formats for numbers and dates", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3251
33