Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

min-dom

Package Overview
Dependencies
Maintainers
8
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

min-dom - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

dist/index.esm.js

20

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc