Comparing version 1.5.3 to 1.5.4
@@ -1,2 +0,2 @@ | ||
// DLL.js v1.5.2 | 2020 © thednp | MIT-License | ||
// DLL.js v1.5.4 | 2020 © thednp | MIT-License | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).dll=e()}(this,(function(){"use strict";function t(t,e,n,r){!function(t,e,n,r){r=r||!1,t.addEventListener(e,n,r)}(t,e,(function o(c){c.target===t&&(n(c),function(t,e,n,r){r=r||!1,t.removeEventListener(e,n,r)}(t,e,o,r))}),r)}function e(e,n){var r="SOURCE"===e.tagName,o=r?"loadstart":"load",c=r?document.createElement("VIDEO"):0,u=r?document.createElement("SOURCE"):new Image,a=r?c:u,d=e.getAttribute("data-src");t(a,o,(function(){"IMG"===e.tagName?e.src=d:"SOURCE"===e.tagName?(e.src=d,e.parentNode.load()):e.style.backgroundImage='url("'+d+'")',e.removeAttribute("data-src"),n&&n()})),u.src=d,c&&c.appendChild(u)}function n(t,n){!function(t,e){try{t()}catch(t){console.error(e+": "+t)}}((function(){var r,o,c;r=t,c=o&&o instanceof Element?o:document,t=r instanceof Element?r:c.querySelector(r),n="function"==typeof n?n:null;var u=function(t){var e,n=[],r=t.querySelectorAll("[data-src]"),o=t?t.getAttribute("data-src"):null;return o&&!r?e=[t]:!o&&r?e=r:o&&r?(e=r,n.unshift(t)):o||r||(e=document.querySelectorAll("[data-src]")),Array.from(e).map((function(t){return n.push(t)})),n}(t);((t?t.getAttribute("data-src"):null)||null!==t.querySelector("[data-src]"))&&u.map((function(t,r){r===u.length-1&&n?e(t,n):e(t)}))}),"DLL.js:")}function r(){Array.from(document.querySelectorAll("[data-src]")).map((function(t){return new n(t)}))}return document.body?r():t(document,"DOMContentLoaded",r),n})); |
{ | ||
"name": "dll.js", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "Double Lazy Load for Images, Videos and Background Images.", | ||
"main": "dist/dll.min.js", | ||
"module": "dist/dll-esm.min.js", | ||
"files": [ | ||
"dist/{css,js}/*.{css,js,map}" | ||
"module": "dist/dll-esm.js", | ||
"jsnext": "src/dll.js", | ||
"files" :[ | ||
"dist/*.{js,map}", | ||
"src/*.{js,map}" | ||
], | ||
@@ -10,0 +12,0 @@ "scripts": { |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
18177
12
277