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

lingui-formats

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lingui-formats - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

CHANGELOG.md

@@ -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)

10

dist/index.es.js

@@ -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);

12

dist/index.js

@@ -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

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