New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elements-lite

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elements-lite - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

4

elements-lite.js

@@ -5,3 +5,3 @@

/*
* @version 0.1.5
* @version 0.1.6
* @author Lauri Rooden - https://github.com/litejs/elements-lite

@@ -109,3 +109,3 @@ * @license MIT License - http://lauri.rooden.ee/mit-license.txt

*/
return RegExp("\b" + name + "\b").test(this.className)
return RegExp("\\b" + name + "\\b").test(this.className)
}

@@ -112,0 +112,0 @@

!function(l,f,g){function e(a,b){var d,c={};a=a.replace(m,function(a,b,d,e){c["."==b?(b="class",c[b]&&(d=c[b]+" "+d),b):"#"==b?"id":d]=e||d;return""})||"div";d=(h[a]||(h[a]=f.createElement(a))).cloneNode(!0).set(c);return j[a]&&j[a](d,b)||d.set(b)}function k(a,b,d){if(a)for(d in b=e[g],b)a[d]=b[d];return a}var h={},j={},c=(l.HTMLElement||l.Element||e)[g],m=/([.#:[])([-\w]+)(?:=([-\w]+)])?/g;c.append=function(a,b){if(a){if("string"==typeof a||"number"==typeof a)a=e.text(a);else if(!("nodeType"in a)&&
"length"in a){for(var d=a.length,c=0,g=f.createDocumentFragment();c<d;)this.append.call(g,a[c++]);a=g}a.nodeType&&this.insertBefore(a,(!0===b?this.firstChild:"number"==typeof b?this.childNodes[b]:b)||null);a.append_hook&&a.append_hook()}return this};c.after=function(a,b){a.parentNode.append(this,b?a:a.nextSibling);return this};c.to=function(a,b){a.append(this,b);return this};c.hasClass=function(a){return RegExp("\b"+a+"\b").test(this.className)};c.addClass=function(a){this.className+=""==this.className?
"length"in a){for(var d=a.length,c=0,g=f.createDocumentFragment();c<d;)this.append.call(g,a[c++]);a=g}a.nodeType&&this.insertBefore(a,(!0===b?this.firstChild:"number"==typeof b?this.childNodes[b]:b)||null);a.append_hook&&a.append_hook()}return this};c.after=function(a,b){a.parentNode.append(this,b?a:a.nextSibling);return this};c.to=function(a,b){a.append(this,b);return this};c.hasClass=function(a){return RegExp("\\b"+a+"\\b").test(this.className)};c.addClass=function(a){this.className+=""==this.className?
a:this.hasClass(a)?"":" "+a;return this};c.rmClass=function(a){this.className=(" "+this.className+" ").replace(" "+a+" "," ").trim();return this};c.toggleClass=function(a,b){1==arguments.length&&(b=!this.hasClass(a));this[b?"addClass":"rmClass"](a);return b};c.empty=function(){for(var a;a=this.firstChild;)this.kill.call(a);return this};c.kill=function(){this.parentNode&&this.parentNode.removeChild(this);Event.removeAll&&Event.removeAll(this);this.kill_hook&&this.kill_hook();this.empty&&this.empty();

@@ -4,0 +4,0 @@ return this};c.on=function(a,b){Event.add(this,a,b);return this};c.non=function(a,b){Event.remove(this,a,b);return this};c.set=function(a){var b=typeof a,d;if(a)if("string"==b||"number"==b||a.nodeType||"length"in a)this.append(a);else for(b in a)d=a[b],"class"==b?this.addClass(d):"string"==typeof d?(this.setAttribute(b,d),"name"==b&&"\v"=="v"&&this.mergeAttributes(f.createElement("<INPUT name='"+b+"'/>"),!1)):d?this[b]=d:this.removeAttribute(b);return this};c._find=function(a){var b=0,d=["_"];a=a.replace(m,

{
"name": "elements-lite",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "DOM buildel for browser",

@@ -11,3 +11,3 @@

Download [compressed][1]
(2739 bytes, 1210 bytes gzipped)
(2741 bytes, 1210 bytes gzipped)
or [uncompressed][2] source.

@@ -14,0 +14,0 @@

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