terra-i18n
Advanced tools
Comparing version 2.32.0 to 2.32.1
@@ -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 @@ ------------------ |
@@ -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) { |
{ | ||
"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) { |
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
107121
2029