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

yall-js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yall-js - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

dist/yall.js

@@ -90,6 +90,6 @@ 'use strict';

if (io in win && `${io}Entry` in win) {
if (io in win && `${io}Entry` in win && "isIntersecting" in win[`${io}Entry`].prototype) {
var intersectionListener = new win[io]((entries, observer) => {
entries.forEach(entry => {
if (entry.intersectionRatio) {
if (entry.isIntersecting) {
const element = entry.target;

@@ -96,0 +96,0 @@

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

var yall=function(){"use strict";return function(e){var n=(e=e||{}).lazyClass||"lazy",o=e.lazyBackgroundClass||"lazy-bg",t="idleLoadTimeout"in e?e.idleLoadTimeout:200,r=e.observeChanges||!1,i=e.events||{},a=window,s="requestIdleCallback",c="IntersectionObserver",u=["srcset","src","poster"],d=[],l=function(e,t){return d.slice.call((t||document).querySelectorAll(e||"img."+n+",video."+n+",iframe."+n+",."+o))},f=function(n){var t,r,i=n.parentNode;for(var a in"PICTURE"==i.nodeName&&(r=i),"VIDEO"==n.nodeName&&(r=n),t=l("source",r))b(t[a]);b(n),n.autoplay&&n.load();var s=n.classList;s.contains(o)&&(s.remove(o),s.add(e.lazyBackgroundLoaded||"lazy-bg-loaded"))},v=function(e){for(var n in i)e.addEventListener(n,i[n].listener||i[n],i[n].options||void 0);h.observe(e)},b=function(e){u.forEach(function(n){n in e.dataset&&a.requestAnimationFrame(function(){e[n]=e.dataset[n]})})},g=l();if(/baidu|(?:google|bing|yandex|duckduck)bot/i.test(navigator.userAgent))for(var m in g)f(g[m]);else if(c in a&&c+"Entry"in a){var h=new a[c](function(e,o){e.forEach(function(e){if(e.intersectionRatio){var i=e.target;s in a&&t?a[s](function(){f(i)},{timeout:t}):f(i),i.classList.remove(n),o.unobserve(i),(g=g.filter(function(e){return e!=i})).length||r||h.disconnect()}})},{rootMargin:("threshold"in e?e.threshold:200)+"px 0%"});for(var y in g)v(g[y]);r&&new MutationObserver(function(){l().forEach(function(e){g.indexOf(e)<0&&(g.push(e),v(e))})}).observe(l(e.observeRootSelector||"body")[0],e.mutationObserverOptions||{childList:!0,subtree:!0})}}}();
var yall=function(){"use strict";return function(e){var n=(e=e||{}).lazyClass||"lazy",t=e.lazyBackgroundClass||"lazy-bg",o="idleLoadTimeout"in e?e.idleLoadTimeout:200,r=e.observeChanges||!1,i=e.events||{},a=window,s="requestIdleCallback",c="IntersectionObserver",u=["srcset","src","poster"],d=[],l=function(e,o){return d.slice.call((o||document).querySelectorAll(e||"img."+n+",video."+n+",iframe."+n+",."+t))},f=function(n){var o,r,i=n.parentNode;for(var a in"PICTURE"==i.nodeName&&(r=i),"VIDEO"==n.nodeName&&(r=n),o=l("source",r))b(o[a]);b(n),n.autoplay&&n.load();var s=n.classList;s.contains(t)&&(s.remove(t),s.add(e.lazyBackgroundLoaded||"lazy-bg-loaded"))},v=function(e){for(var n in i)e.addEventListener(n,i[n].listener||i[n],i[n].options||void 0);y.observe(e)},b=function(e){u.forEach(function(n){n in e.dataset&&a.requestAnimationFrame(function(){e[n]=e.dataset[n]})})},g=l();if(/baidu|(?:google|bing|yandex|duckduck)bot/i.test(navigator.userAgent))for(var m in g)f(g[m]);else if(c in a&&c+"Entry"in a&&"isIntersecting"in a[c+"Entry"].prototype){var y=new a[c](function(e,t){e.forEach(function(e){if(e.isIntersecting){var i=e.target;s in a&&o?a[s](function(){f(i)},{timeout:o}):f(i),i.classList.remove(n),t.unobserve(i),(g=g.filter(function(e){return e!=i})).length||r||y.disconnect()}})},{rootMargin:("threshold"in e?e.threshold:200)+"px 0%"});for(var h in g)v(g[h]);r&&new MutationObserver(function(){l().forEach(function(e){g.indexOf(e)<0&&(g.push(e),v(e))})}).observe(l(e.observeRootSelector||"body")[0],e.mutationObserverOptions||{childList:!0,subtree:!0})}}}();
{
"name": "yall-js",
"version": "3.1.1",
"version": "3.1.2",
"description": "Yet Another Lazy Loader",

@@ -41,14 +41,14 @@ "main": "./dist/yall.js",

"devDependencies": {
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"eslint": "^5.16.0",
"express": "^4.16.4",
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/preset-env": "^7.5.4",
"eslint": "^6.0.1",
"express": "^4.17.1",
"rimraf": "^2.6.3",
"rollup": "^1.8.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-copy": "^0.2.3",
"rollup-plugin-terser": "^4.0.4"
"rollup": "^1.16.7",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-copy": "^3.0.0",
"rollup-plugin-terser": "^5.1.1"
},
"dependencies": {}
}

Sorry, the diff of this file is not supported yet

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