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

terra-i18n

Package Overview
Dependencies
Maintainers
9
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-i18n - npm Package Compare versions

Comparing version 2.32.0 to 2.32.1

5

CHANGELOG.md

@@ -7,2 +7,7 @@ Changelog

2.31.1 - (April 11, 2019)
------------------
### Fixed
Guard against a bad Intl object.
2.31.0 - (January 22, 2019)

@@ -9,0 +14,0 @@ ------------------

7

lib/i18nLoader.js

@@ -17,4 +17,9 @@ 'use strict';

var hasIntl = typeof Intl !== 'undefined'; /* eslint-disable */
var hasIntl = void 0; /* eslint-disable */
try {
hasIntl = typeof Intl !== 'undefined' && Intl.DateTimeFormat !== 'undefined';
} catch (error) {
hasIntl = false;
}

@@ -21,0 +26,0 @@ var permitParams = function permitParams(locale, callback) {

2

package.json
{
"name": "terra-i18n",
"main": "lib/I18n.js",
"version": "2.32.0",
"version": "2.32.1",
"description": "The terra-i18n package provides on-demand internationalization of React components.",

@@ -6,0 +6,0 @@ "repository": {

@@ -7,4 +7,10 @@ /* eslint-disable */

const hasIntl = typeof (Intl) !== 'undefined';
let hasIntl;
try {
hasIntl = typeof (Intl) !== 'undefined' && Intl.DateTimeFormat !== 'undefined';
} catch (error) {
hasIntl = false;
}
const permitParams = (locale, callback) => {

@@ -11,0 +17,0 @@ if (process.env.NODE_ENV !== 'production' && supportedLocales.indexOf(locale) < 0) {

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