Comparing version 5.1.0 to 5.1.1
@@ -206,10 +206,20 @@ import { forEach } from 'min-dash'; | ||
/** | ||
* Remove all children from the given element. | ||
* Clear utility | ||
*/ | ||
/** | ||
* Removes all children from the given element | ||
* | ||
* @param {Element} el | ||
* @param {Element} element | ||
* | ||
* @return {Element} the element (for chaining) | ||
*/ | ||
function clear(el) { | ||
el.replaceChildren(); | ||
function clear(element) { | ||
var child; | ||
return el; | ||
while ((child = element.firstChild)) { | ||
element.removeChild(child); | ||
} | ||
return element; | ||
} | ||
@@ -216,0 +226,0 @@ |
{ | ||
"name": "min-dom", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "A minimal dom utility toolbelt", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
96534
11
1340
1