@event-calendar/common
Advanced tools
Comparing version 0.0.1-alpha.1 to 0.0.1-alpha.2
import { is_function } from 'svelte/internal'; | ||
const DAY_IN_SECONDS = 86400; | ||
function createDate(input) { | ||
@@ -227,3 +229,3 @@ return input !== undefined | ||
return input.map(source => ({ | ||
url: new URL(source.url, fakeBase), // for relative URLs we need to provide something as a base, | ||
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, | ||
@@ -310,2 +312,2 @@ extraParams: source.extraParams || {} | ||
export { addDay, addDuration, assign, cloneDate, createDate, createDuration, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, formatRange, hasYScroll, nextClosestDay, prevClosestDay, setMidnight, sortEventChunks, subtractDay, subtractDuration, toISOString }; | ||
export { DAY_IN_SECONDS, addDay, addDuration, assign, cloneDate, createDate, createDuration, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, formatRange, hasYScroll, nextClosestDay, prevClosestDay, setMidnight, sortEventChunks, subtractDay, subtractDuration, toISOString }; |
{ | ||
"name": "@event-calendar/common", | ||
"version": "0.0.1-alpha.1", | ||
"version": "0.0.1-alpha.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": { |
8881
263