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

lazy-class

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lazy-class - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

dist/lazy-class.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(this,function(){"use strict";var e=function(e,t,n){switch(t){case"add":e.classList.add(n);break;case"remove":e.classList.remove(n);break;case"toggle":e.classList.toggle(n);break;default:console.log("invalid value for change option specified")}},t=function(t,n,o){var i=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],a=i.change||"add",c=function(t){setTimeout(function(){e(t,a,n)},o)};t.length?Array.from(t,function(e){c(e)}):c(t)};exports.lazy=t});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(this,function(){"use strict";var e=function(e,t,n){switch(t){case"add":e.classList.add(n);break;case"remove":e.classList.remove(n);break;case"toggle":e.classList.toggle(n);break;default:console.log("invalid value for change option specified")}},t=function(t,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.change||"add",c=function(t){setTimeout(function(){e(t,a,n)},o)};t.length?[].forEach.call(t,function(e){c(e)}):c(t)};exports.lazy=t});
{
"name": "lazy-class",
"version": "0.1.2",
"version": "0.1.3",
"description": "Lazy add classes to DOM elements",

@@ -5,0 +5,0 @@ "main": "dist/lazy-class.min.js",

@@ -30,5 +30,5 @@

}
el.length ? Array.from(el, (e) => { sT(e) }) : sT(el)
el.length ? [].forEach.call(el, (e) => { sT(e) }) : sT(el)
}
exports.lazy = lazy

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