dll.js
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -1,2 +0,2 @@ | ||
// DLL.js v1.5.1 | 2020 © thednp | MIT-License | ||
// DLL.js v1.5.2 | 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.1", | ||
"version": "1.5.2", | ||
"description": "Double Lazy Load for Images, Videos and Background Images.", | ||
"main": "dist/dll.min.js", | ||
"module": "src/dll.js", | ||
"module": "dist/dll-esm.min.js", | ||
"files": [ | ||
"dist/{css,js}/*.{css,js,map}" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "npm run build-umd && npm run build-umd-min", | ||
"build": "npm-run-all --parallel build-*", | ||
"build-esm": "rollup --environment FORMAT:esm,MIN:false -c", | ||
"build-esm-min": "rollup --environment FORMAT:esm,MIN:true -c", | ||
"build-umd": "rollup --environment FORMAT:umd,MIN:false -c", | ||
@@ -39,2 +44,3 @@ "build-umd-min": "rollup --environment FORMAT:umd,MIN:true -c" | ||
"@rollup/plugin-node-resolve": "^7.1.0", | ||
"npm-run-all": "^4.1.5", | ||
"rollup": "^1.32.1", | ||
@@ -41,0 +47,0 @@ "rollup-plugin-cleanup": "^3.1.1", |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
0
6575
7
4
7
2