format-message
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -6,7 +6,7 @@ 'use strict' | ||
function applyChildren (element, children) { | ||
if (process.env.NODE_ENV !== 'production' && !element.setChildren) { | ||
if (process.env.NODE_ENV !== 'production' && !element.flags) { | ||
throw new Error(JSON.stringify(element) + ' is not a valid element') | ||
} | ||
if (children) { | ||
element.setChildren(children.length === 1 ? children[0] : children) | ||
element.children = children.length === 1 ? children[0] : children | ||
} | ||
@@ -13,0 +13,0 @@ return element |
{ | ||
"name": "format-message", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Internationalize text, numbers, and dates using ICU Message Format", | ||
@@ -5,0 +5,0 @@ "author": "Andy VanWagoner <thetalecrafter@gmail.com> (https://thetalecrafter.com/)", |
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
28966