@domql/element
Advanced tools
Comparing version 2.5.63 to 2.5.65
@@ -266,3 +266,3 @@ 'use strict' | ||
// If the element doesn't have a scope, initialize it using the parent's scope or the root's scope. | ||
if (!element.scope) element.scope = parent.scope || ref.__root.scope || {} | ||
if (!element.scope) element.scope = parent.scope || ref.root.scope || {} | ||
} | ||
@@ -307,3 +307,3 @@ | ||
const hasRoot = parent && parent.key === ':root' | ||
if (!ref.__root) ref.__root = hasRoot ? element : parentRef.__root | ||
if (!ref.root) ref.root = hasRoot ? element : parentRef.root | ||
@@ -346,5 +346,5 @@ // set the PATH array | ||
// Add __root element property | ||
// Add root element property | ||
// const hasRoot = parent && parent.key === ':root' | ||
// if (!ref.__root) ref.__root = hasRoot ? element : parentRef.__root | ||
// if (!ref.root) ref.root = hasRoot ? element : parentRef.root | ||
@@ -351,0 +351,0 @@ addMethods(element, parent) |
@@ -204,3 +204,3 @@ "use strict"; | ||
if (!element.scope) | ||
element.scope = parent.scope || ref.__root.scope || {}; | ||
element.scope = parent.scope || ref.root.scope || {}; | ||
}; | ||
@@ -236,4 +236,4 @@ const createIfConditionFlag = (element, parent) => { | ||
const hasRoot = parent && parent.key === ":root"; | ||
if (!ref.__root) | ||
ref.__root = hasRoot ? element : parentRef.__root; | ||
if (!ref.root) | ||
ref.root = hasRoot ? element : parentRef.root; | ||
if (ENV === "test" || ENV === "development") { | ||
@@ -240,0 +240,0 @@ if (!parentRef) |
{ | ||
"name": "@domql/element", | ||
"version": "2.5.63", | ||
"version": "2.5.65", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "318bb5d6c6b3989cc97b2a2f12c0169599786ffa", | ||
"gitHead": "473e5569815c8e062b8e584549889557330c249a", | ||
"devDependencies": { | ||
@@ -37,0 +37,0 @@ "@babel/core": "^7.12.0" |
@@ -49,5 +49,5 @@ 'use strict' | ||
// Add __root element property | ||
// Add root element property | ||
// const hasRoot = parent && parent.key === ':root' | ||
// if (!ref.__root) ref.__root = hasRoot ? element : parentRef.__root | ||
// if (!ref.root) ref.root = hasRoot ? element : parentRef.root | ||
} | ||
@@ -54,0 +54,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
180805