Socket
Socket
Sign inDemoInstall

@fullcalendar/luxon

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/luxon - npm Package Compare versions

Comparing version 5.7.0 to 5.7.2

2

main.cjs.js
/*!
FullCalendar v5.7.0
FullCalendar v5.7.2
Docs & License: https://fullcalendar.io/

@@ -4,0 +4,0 @@ (c) 2021 Adam Shaw

@@ -1,2 +0,3 @@

import { CalendarApi, Duration, PluginDef } from '@fullcalendar/common';
import * as _fullcalendar_common from '@fullcalendar/common';
import { CalendarApi, Duration } from '@fullcalendar/common';
import { DateTime, Duration as Duration$1 } from 'luxon';

@@ -6,5 +7,5 @@

declare function toLuxonDuration(duration: Duration, calendar: CalendarApi): Duration$1;
declare const _default: PluginDef;
declare const _default: _fullcalendar_common.PluginDef;
export default _default;
export { toLuxonDateTime, toLuxonDuration };
/*!
FullCalendar v5.7.0
FullCalendar v5.7.2
Docs & License: https://fullcalendar.io/

@@ -33,2 +33,4 @@ (c) 2021 Adam Shaw

function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -35,0 +37,0 @@ function __() { this.constructor = d; }

/*!
FullCalendar v5.7.0
FullCalendar v5.7.2
Docs & License: https://fullcalendar.io/
(c) 2021 Adam Shaw
*/
var FullCalendarLuxon=function(e,t,r){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.offsetForArray=function(e){return l(e,this.timeZoneName).offset},t.prototype.timestampToArray=function(e){return[(t=r.DateTime.fromMillis(e,{zone:this.timeZoneName})).year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond];var t},t}(t.NamedTimeZoneImpl);var i=t.createPlugin({cmdFormatter:function(e,t){var r=function e(t){var r=t.match(/^(.*?)\{(.*)\}(.*)$/);if(r){var n=e(r[2]);return{head:r[1],middle:n,tail:r[3],whole:r[1]+n.whole+r[3]}}return{head:null,middle:null,tail:null,whole:t}}(e);if(t.end){var n=l(t.start.array,t.timeZone,t.localeCodes[0]),o=l(t.end.array,t.timeZone,t.localeCodes[0]);return function e(t,r,n,o){if(t.middle){var a=r(t.head),i=e(t.middle,r,n,o),l=r(t.tail),u=n(t.head),c=e(t.middle,r,n,o),d=n(t.tail);if(a===u&&l===d)return a+(i===c?i:i+o+c)+l}var f=r(t.whole),m=n(t.whole);if(f===m)return f;return f+o+m}(r,n.toFormat.bind(n),o.toFormat.bind(o),t.defaultSeparator)}return l(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(r.whole)},namedTimeZonedImpl:a});function l(e,t,n){return r.DateTime.fromObject({zone:t,locale:n,year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]})}return t.globalPlugins.push(i),e.default=i,e.toLuxonDateTime=function(e,n){if(!(n instanceof t.CalendarApi))throw new Error("must supply a CalendarApi instance");var o=n.getCurrentData().dateEnv;return r.DateTime.fromJSDate(e,{zone:o.timeZone,locale:o.locale.codes[0]})},e.toLuxonDuration=function(e,n){if(!(n instanceof t.CalendarApi))throw new Error("must supply a CalendarApi instance");var a=n.getCurrentData().dateEnv;return r.Duration.fromObject(o(o({},e),{locale:a.locale.codes[0]}))},Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,luxon);
var FullCalendarLuxon=function(e,t,r){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.offsetForArray=function(e){return l(e,this.timeZoneName).offset},t.prototype.timestampToArray=function(e){return[(t=r.DateTime.fromMillis(e,{zone:this.timeZoneName})).year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond];var t},t}(t.NamedTimeZoneImpl);var i=t.createPlugin({cmdFormatter:function(e,t){var r=u(e);if(t.end){var n=l(t.start.array,t.timeZone,t.localeCodes[0]),o=l(t.end.array,t.timeZone,t.localeCodes[0]);return c(r,n.toFormat.bind(n),o.toFormat.bind(o),t.defaultSeparator)}return l(t.date.array,t.timeZone,t.localeCodes[0]).toFormat(r.whole)},namedTimeZonedImpl:a});function l(e,t,n){return r.DateTime.fromObject({zone:t,locale:n,year:e[0],month:e[1]+1,day:e[2],hour:e[3],minute:e[4],second:e[5],millisecond:e[6]})}function u(e){var t=e.match(/^(.*?)\{(.*)\}(.*)$/);if(t){var r=u(t[2]);return{head:t[1],middle:r,tail:t[3],whole:t[1]+r.whole+t[3]}}return{head:null,middle:null,tail:null,whole:e}}function c(e,t,r,n){if(e.middle){var o=t(e.head),a=c(e.middle,t,r,n),i=t(e.tail),l=r(e.head),u=c(e.middle,t,r,n),d=r(e.tail);if(o===l&&i===d)return o+(a===u?a:a+n+u)+i}var f=t(e.whole),s=r(e.whole);return f===s?f:f+n+s}return t.globalPlugins.push(i),e.default=i,e.toLuxonDateTime=function(e,n){if(!(n instanceof t.CalendarApi))throw new Error("must supply a CalendarApi instance");var o=n.getCurrentData().dateEnv;return r.DateTime.fromJSDate(e,{zone:o.timeZone,locale:o.locale.codes[0]})},e.toLuxonDuration=function(e,n){if(!(n instanceof t.CalendarApi))throw new Error("must supply a CalendarApi instance");var a=n.getCurrentData().dateEnv;return r.Duration.fromObject(o(o({},e),{locale:a.locale.codes[0]}))},Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,luxon);
/*!
FullCalendar v5.7.0
FullCalendar v5.7.2
Docs & License: https://fullcalendar.io/

@@ -4,0 +4,0 @@ (c) 2021 Adam Shaw

{
"name": "@fullcalendar/luxon",
"version": "5.7.0",
"version": "5.7.2",
"title": "FullCalendar Luxon Plugin",

@@ -8,3 +8,3 @@ "description": "A connector to the Luxon date library",

"dependencies": {
"@fullcalendar/common": "~5.7.0",
"@fullcalendar/common": "~5.7.2",
"tslib": "^2.0.3"

@@ -16,3 +16,3 @@ },

"devDependencies": {
"@fullcalendar/core-preact": "5.7.0",
"@fullcalendar/core-preact": "5.7.2",
"luxon": "^1.12.1"

@@ -19,0 +19,0 @@ },

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