New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/react-i18n

Package Overview
Dependencies
Maintainers
12
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-i18n - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

16

CHANGELOG.md

@@ -11,2 +11,18 @@ # Changelog

## [0.11.1] - 2019-03-08
### Fixed
- Reverted a change that caused `I18n#getCurrencySymbol` to sometimes return an empty string
## [0.11.0] - 2019-03-07
### Added
- Added an optional `onError` field to the options for `I18nManager`, which controls how descendant `I18n` objects will respond to some types of recoverable errors [#550](https://github.com/Shopify/quilt/pull/550)
### Fixed
- Fixed an issue where `I18n` instances would be created with two copies of each translation dictionary when the locale was equal to the fallback locale [#553](https://github.com/Shopify/quilt/pull/553)
## [0.10.2] - 2019-02-13

@@ -13,0 +29,0 @@

2

dist/i18n.d.ts

@@ -42,3 +42,3 @@ /// <reference types="react" />

weekStartDay(argCountry?: I18n['defaultCountry']): Weekdays;
getCurrencySymbol: (currencyCode?: string | undefined) => "" | {
getCurrencySymbol: (currencyCode?: string | undefined) => {
symbol: string;

@@ -45,0 +45,0 @@ prefixed: boolean;

@@ -21,4 +21,3 @@ "use strict";

if (currency == null) {
_this.onError(new errors_1.MissingCurrencyCodeError("No currency code provided. formatCurrency cannot be called without a currency code."));
return '';
throw new errors_1.MissingCurrencyCodeError("No currency code provided. formatCurrency cannot be called without a currency code.");
}

@@ -25,0 +24,0 @@ return _this.getCurrencySymbolLocalized(_this.locale, currency);

{
"name": "@shopify/react-i18n",
"version": "0.11.0",
"version": "0.11.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "i18n utilities for React handling translations, formatting, and more.",

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