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

@event-calendar/common

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@event-calendar/common - npm Package Compare versions

Comparing version 0.0.1-beta.2 to 0.0.1-beta.3

10

index.js

@@ -292,8 +292,6 @@ import { is_function } from 'svelte/internal';

let absURL = new RegExp('^(?:[a-z]+:)?//', 'i');
let fakeBase = 'http://a';
function createEventSources(input) {
return input.map(source => ({
url: new URL(source.url, fakeBase), // for relative URLs we need to provide something as a base
urlFrom: absURL.test(source.url) ? 0 : fakeBase.length,
url: (source.url && source.url.trimEnd('&')) || '',
method: (source.method && source.method.toUpperCase()) || 'GET',
extraParams: source.extraParams || {}

@@ -324,3 +322,3 @@ }));

function createEventContent(chunk, displayEventEnd, eventContent, theme, _intlEventTime, _view, withDot, dotColor) {
function createEventContent(chunk, displayEventEnd, eventContent, theme, _intlEventTime, _view) {
let timeText = _intlEventTime.format(chunk.start), content;

@@ -349,4 +347,2 @@ if (displayEventEnd) {

html: `<div class="${theme.eventTime}">${timeText}</div>` +
// ie11 needs nested div
(withDot ? `<div><div class="${theme.eventDot}"${dotColor ? ` style="border-color:${dotColor}"` : ''}></div></div>` : '') +
`<div class="${theme.eventTitle}">${chunk.event.title}</div>`

@@ -353,0 +349,0 @@ };

{
"name": "@event-calendar/common",
"version": "0.0.1-beta.2",
"version": "0.0.1-beta.3",
"title": "EventCalendar Common Package",

@@ -13,2 +13,3 @@ "description": "Full-sized event calendar with resource view",

},
"license": "MIT",
"type": "module",

@@ -20,4 +21,4 @@ "exports": {

"dependencies": {
"svelte": "^3.25.0"
"svelte": "^3.31.2"
}
}
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