@domql/element
Advanced tools
Comparing version 2.4.5 to 2.4.6
@@ -74,3 +74,3 @@ 'use strict' | ||
// define KEY | ||
const assignedKey = (element.key || key || createKey()).toString() | ||
const assignedKey = (key || element.key || createKey()).toString() | ||
@@ -77,0 +77,0 @@ if (checkIfKeyIsComponent(assignedKey)) { |
@@ -83,3 +83,3 @@ "use strict"; | ||
} | ||
const assignedKey = (element.key || key || (0, import_utils.createKey)()).toString(); | ||
const assignedKey = (key || element.key || (0, import_utils.createKey)()).toString(); | ||
if ((0, import_component.checkIfKeyIsComponent)(assignedKey)) { | ||
@@ -86,0 +86,0 @@ element = (0, import_component.applyKeyComponentAsExtend)(element, parent, assignedKey); |
@@ -42,4 +42,5 @@ "use strict"; | ||
const __contentRef = element.content && element.content.__ref; | ||
if (__contentRef && __contentRef.__cached && (0, import_utils.isEqualDeep)(params, element.content)) | ||
if (__contentRef && __contentRef.__cached && (0, import_utils.isEqualDeep)(params, element.content)) { | ||
return element; | ||
} | ||
(0, import_content.removeContent)(element); | ||
@@ -46,0 +47,0 @@ if (params) { |
{ | ||
"name": "@domql/element", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
}, | ||
"gitHead": "cfecf526677d09def0ff77d09d8b9e43e4f379fa", | ||
"gitHead": "7d5af56fe712bac2369db9e07e8ec70df585764e", | ||
"devDependencies": { | ||
@@ -37,0 +37,0 @@ "@babel/core": "^7.12.0" |
@@ -14,3 +14,5 @@ 'use strict' | ||
if (__contentRef && __contentRef.__cached && isEqualDeep(params, element.content)) return element | ||
if (__contentRef && __contentRef.__cached && isEqualDeep(params, element.content)) { | ||
return element | ||
} | ||
removeContent(element) | ||
@@ -17,0 +19,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
160146
4427