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

@financial-times/community-event-teaser

Package Overview
Dependencies
Maintainers
17
Versions
215
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 1.1.0 to 1.1.1

6

dist/index.js

@@ -15,2 +15,3 @@ 'use strict';

var daysAway = Math.floor((date.getTime() - today) / (24 * 60 * 60 * 1000));
var isSameYear = new Date(today).getFullYear() === date.getFullYear();
var dateString;

@@ -25,6 +26,3 @@ switch (daysAway) {

default:
dateString =
ftDateFormat__default['default'].format(date, "EEEE") +
", " +
ftDateFormat__default['default'].format(date, "do MMMM");
dateString = ftDateFormat__default['default'].format(date, isSameYear ? "EEEE, do MMMM" : "EEEE, do MMMM yyyy");
break;

@@ -31,0 +29,0 @@ }

{
"name": "@financial-times/community-event-teaser",
"version": "1.1.0",
"version": "1.1.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

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