Comparing version 1.0.3 to 1.0.4
@@ -84,2 +84,8 @@ var VAR = 0, TEXT = 1, OPEN = 2, CLOSE = 3, ATTR = 4 | ||
} | ||
if (tree[2].length > 2 | ||
|| (tree[2].length === 2 && /\S/.test(tree[2][1]))) { | ||
throw new Error( | ||
'multiple root elements must be wrapped in an enclosing tag' | ||
) | ||
} | ||
return tree[2][0] | ||
@@ -86,0 +92,0 @@ |
{ | ||
"name": "hyperx", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "tagged template string virtual dom builder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
19487
23
461