Socket
Socket
Sign inDemoInstall

react-localization

Package Overview
Dependencies
7
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.12 to 1.0.13

7

lib/LocalizedStrings.js

@@ -27,4 +27,2 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _react = require('react');

@@ -40,5 +38,2 @@

var isReactComponent = function isReactComponent(value) {
return _typeof(value.$$typeof) === 'symbol';
};
var placeholderRegex = /(\{[\d|\w]+\})/;

@@ -80,3 +75,3 @@

if (isReactComponent(valueForPlaceholder)) {
if (_react2.default.isValidElement(valueForPlaceholder)) {
hasObject = true;

@@ -83,0 +78,0 @@ return _react2.default.Children.toArray(valueForPlaceholder).map(function (component) {

2

package.json
{
"name": "react-localization",
"version": "1.0.12",
"version": "1.0.13",
"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