Socket
Socket
Sign inDemoInstall

@financial-times/community-event-teaser

Package Overview
Dependencies
Maintainers
18
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/community-event-teaser - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

6

dist/index.js

@@ -170,3 +170,3 @@ 'use strict';

function Image(_a) {
var url = _a.url, title = _a.title, eventUrl = _a.eventUrl, lazyLoad = _a.lazyLoad, _b = _a.imageSize, imageSize = _b === void 0 ? DEFAULT_IMAGE_SIZE : _b;
var url = _a.url, eventUrl = _a.eventUrl, lazyLoad = _a.lazyLoad, _b = _a.imageSize, imageSize = _b === void 0 ? DEFAULT_IMAGE_SIZE : _b;
if (!url) {

@@ -181,3 +181,3 @@ return null;

xEngine.h("a", { "data-trackable": "event-teaser-image", href: eventUrl, tabIndex: -1, "aria-hidden": "true" },
xEngine.h("div", { className: "event-teaser__image-placeholder" }, lazyLoad ? (xEngine.h("img", { className: "event-teaser__image " + (typeof lazyLoad === "string" ? lazyLoad : ""), "data-src": imageSrc, alt: title })) : (xEngine.h("img", { className: "event-teaser__image", src: imageSrc, alt: title }))))));
xEngine.h("div", { className: "event-teaser__image-placeholder" }, lazyLoad ? (xEngine.h("img", { className: "event-teaser__image " + (typeof lazyLoad === "string" ? lazyLoad : ""), "data-src": imageSrc, alt: "" })) : (xEngine.h("img", { className: "event-teaser__image", src: imageSrc, alt: "" }))))));
}

@@ -197,3 +197,3 @@

return (xEngine.h("div", { className: "event-teaser", "data-trackable": "event-teaser" },
showImage && imgUrl && (xEngine.h(Image, { url: imgUrl, title: title, eventUrl: eventUrl, imageSize: "Small", lazyLoad: lazyLoadImage })),
showImage && imgUrl && (xEngine.h(Image, { url: imgUrl, eventUrl: eventUrl, imageSize: "Small", lazyLoad: lazyLoadImage })),
xEngine.h("div", { className: "event-teaser__content-container" },

@@ -200,0 +200,0 @@ xEngine.h("div", { className: "event-teaser__details" },

{
"name": "@financial-times/community-event-teaser",
"version": "2.2.0",
"version": "2.2.1",
"description": "UI for community events",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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