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

@nlo/lazy-image-loader

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlo/lazy-image-loader - npm Package Compare versions

Comparing version 0.0.1-alpha.36 to 0.0.1-alpha.39

8

dist/lazy-image-loader.d.ts

@@ -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"
}
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