react-localization
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -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) { |
{ | ||
"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": { |
12981
126