@event-calendar/common
Advanced tools
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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
0
12072
354
Updatedsvelte@^3.31.2