Socket
Socket
Sign inDemoInstall

react-localization

Package Overview
Dependencies
2
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

8

lib/LocalizedStrings.js

@@ -13,5 +13,5 @@ 'use strict';

*
* This library has been refactored to use the newly created localized-strings package so to
* This library has been refactored to use the newly created localized-strings package so to
* unify the code and make it easier to mantain
*
*
* How to use:

@@ -53,3 +53,3 @@ * Check the instructions at:

*
* THIS METHOD OVERRIDE the one of the parent class by adding support for JSX code
* THIS METHOD OVERRIDE the one of the parent class by adding support for JSX code
*/

@@ -62,3 +62,3 @@ _localizedStrings2.default.prototype.formatString = function (str) {

var hasObject = false;
var res = str.split(placeholderRegex).filter(function (textPart) {
var res = (str || '').split(placeholderRegex).filter(function (textPart) {
return !!textPart;

@@ -65,0 +65,0 @@ }).map(function (textPart, index) {

{
"name": "react-localization",
"version": "1.0.9",
"version": "1.0.10",
"description": "Simple module to localize the React interface using the same syntax used in the ReactNativeLocalization module, use 'npm run build' before publishing",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc