@domql/element
Advanced tools
Comparing version 2.5.4 to 2.5.5
@@ -17,4 +17,2 @@ 'use strict' | ||
if (!ref.__if) return | ||
if (isGlobalTransformer && !hasContextDefine) { | ||
@@ -21,0 +19,0 @@ if (isFunction(isGlobalTransformer)) { |
@@ -50,3 +50,3 @@ 'use strict' | ||
if (checkIfPrimitive(element)) { | ||
return applyValueAsText(element, parent, key) | ||
element = applyValueAsText(element, parent, key) | ||
} | ||
@@ -53,0 +53,0 @@ |
@@ -34,4 +34,2 @@ "use strict"; | ||
const hasContextDefine = context && context.define && context.define[param]; | ||
if (!ref.__if) | ||
return; | ||
if (isGlobalTransformer && !hasContextDefine) { | ||
@@ -38,0 +36,0 @@ if ((0, import_utils.isFunction)(isGlobalTransformer)) { |
@@ -54,3 +54,3 @@ "use strict"; | ||
if (checkIfPrimitive(element)) { | ||
return applyValueAsText(element, parent, key); | ||
element = applyValueAsText(element, parent, key); | ||
} | ||
@@ -57,0 +57,0 @@ element = redefineElement(element, parent, key, options); |
@@ -48,6 +48,4 @@ "use strict"; | ||
let isNewNode; | ||
if (!node) { | ||
if (!node && !ref.__if) { | ||
isNewNode = true; | ||
if (!ref.__if) | ||
return element; | ||
if (tag === "shadow") { | ||
@@ -54,0 +52,0 @@ node = element.node = element.parent.node.attachShadow({ mode: "open" }); |
@@ -27,7 +27,5 @@ 'use strict' | ||
if (!node) { | ||
if (!node && !ref.__if) { | ||
isNewNode = true | ||
if (!ref.__if) return element | ||
if (tag === 'shadow') { | ||
@@ -34,0 +32,0 @@ node = element.node = element.parent.node.attachShadow({ mode: 'open' }) |
{ | ||
"name": "@domql/element", | ||
"version": "2.5.4", | ||
"version": "2.5.5", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "fc02db00cba060b9a8d0f485db6ca448bf8f5be3", | ||
"gitHead": "b242ff6277388145b79f97b97c33f1dd5e6563a3", | ||
"devDependencies": { | ||
@@ -37,0 +37,0 @@ "@babel/core": "^7.12.0" |
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
162143
4486