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-alpha.7 to 0.0.1-beta.1

40

index.js

@@ -254,2 +254,24 @@ import { is_function } from 'svelte/internal';

function createView(view, _viewTitle, _currentRange, _activeRange) {
return {
type: view,
title: _viewTitle,
currentStart: _currentRange.start,
currentEnd: _currentRange.end,
activeStart: _activeRange.start,
activeEnd: _activeRange.end,
calendar: undefined
};
}
function toViewWithLocalDates(view) {
view = assign({}, view);
view.currentStart = toLocalDate(view.currentStart);
view.currentEnd = toLocalDate(view.currentEnd);
view.activeStart = toLocalDate(view.activeStart);
view.activeEnd = toLocalDate(view.activeEnd);
return view;
}
let eventId = 1;

@@ -310,5 +332,5 @@ function createEvents(input) {

? eventContent({
event: chunk.event,
event: toEventWithLocalDates(chunk.event),
timeText,
view: _view
view: toViewWithLocalDates(_view)
})

@@ -396,14 +418,2 @@ : eventContent;

function createView(view, _viewTitle, _currentRange, _activeRange) {
return {
type: view,
title: _viewTitle,
currentStart: _currentRange.start,
currentEnd: _currentRange.end,
activeStart: _activeRange.start,
activeEnd: _activeRange.end,
calendar: undefined
};
}
export { DAY_IN_SECONDS, action, addDay, addDuration, assign, cloneDate, createDate, createDuration, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, derived2, formatRange, hasYScroll, intl, intlRange, nextClosestDay, prevClosestDay, setMidnight, sortEventChunks, subtractDay, subtractDuration, toEventWithLocalDates, toISOString, toLocalDate, writable2 };
export { DAY_IN_SECONDS, action, addDay, addDuration, assign, cloneDate, createDate, createDuration, createEventChunk, createEventContent, createEventSources, createEvents, createView, datesEqual, derived2, formatRange, hasYScroll, intl, intlRange, nextClosestDay, prevClosestDay, setMidnight, sortEventChunks, subtractDay, subtractDuration, toEventWithLocalDates, toISOString, toLocalDate, toViewWithLocalDates, writable2 };
{
"name": "@event-calendar/common",
"version": "0.0.1-alpha.7",
"version": "0.0.1-beta.1",
"title": "EventCalendar Common Package",
"description": "Full-sized event calendar with resource view",
"keywords": ["calendar", "event", "resource", "full-sized"],
"homepage": "https://vkurko.github.io/calendar/",
"repository": {
"type": "git",
"url": "https://github.com/vkurko/calendar.git",
"directory": "packages/common"
},
"type": "module",

@@ -5,0 +14,0 @@ "exports": {

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