@lightningtv/core
Advanced tools
Comparing version 2.5.7 to 2.5.8-beta1
@@ -1,2 +0,2 @@ | ||
import { isTextNode } from './utils.js'; | ||
import { isTextNode, isElementText } from './utils.js'; | ||
export default function (node) { | ||
@@ -8,2 +8,5 @@ const children = []; | ||
const c = node.children[i]; | ||
if (isElementText(c) && c.text && !(c.width || c.height)) { | ||
return false; | ||
} | ||
// Filter empty text nodes which are place holders for <Show> and elements missing dimensions | ||
@@ -10,0 +13,0 @@ if (isTextNode(c) || c.flexItem === false) { |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.5.7", | ||
"version": "2.5.8-beta1", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
import { type ElementNode } from './elementNode.js'; | ||
import { isTextNode } from './utils.js'; | ||
import { isTextNode, isElementText } from './utils.js'; | ||
import { ElementText } from './intrinsicTypes.js'; | ||
@@ -11,2 +11,7 @@ | ||
const c = node.children[i]!; | ||
if (isElementText(c) && c.text && !(c.width || c.height)) { | ||
return false; | ||
} | ||
// Filter empty text nodes which are place holders for <Show> and elements missing dimensions | ||
@@ -13,0 +18,0 @@ if (isTextNode(c) || c.flexItem === false) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
228474
3532
3