@nlo/lazy-image-loader
Advanced tools
Comparing version 0.0.1-alpha.36 to 0.0.1-alpha.39
@@ -11,7 +11,8 @@ declare global { | ||
} | ||
declare class LazyImageLoader { | ||
export default class LazyImageLoader { | ||
private observer; | ||
private images; | ||
private imageCount; | ||
constructor(); | ||
private appId; | ||
constructor(appId: string); | ||
init(): void; | ||
@@ -23,3 +24,2 @@ private observeImages; | ||
} | ||
declare const _default: LazyImageLoader; | ||
export default _default; | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var LazyImageLoader = /** @class */ (function () { | ||
function LazyImageLoader() { | ||
function LazyImageLoader(appId) { | ||
this.observer = null; | ||
this.images = '[data-src],[data-srcset]'; | ||
this.imageCount = 0; | ||
this.appId = appId; | ||
} | ||
@@ -96,3 +97,3 @@ LazyImageLoader.prototype.init = function () { | ||
var mutationObserver = new MutationObserver(callback); | ||
var portalSiteEl = document.getElementById('portal-site'); | ||
var portalSiteEl = document.getElementById(this.appId); | ||
if (portalSiteEl) { | ||
@@ -108,2 +109,2 @@ mutationObserver.observe(portalSiteEl, { | ||
}()); | ||
exports.default = new LazyImageLoader(); | ||
exports.default = LazyImageLoader; |
{ | ||
"name": "@nlo/lazy-image-loader", | ||
"version": "0.0.1-alpha.36+0288bb5", | ||
"version": "0.0.1-alpha.39+1b33cfd", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "0288bb5acce08106966cc906340e0ee0c78f56df" | ||
"gitHead": "1b33cfde301dce290ed5588e546b74e8774d5f17" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
5723
140