@fullcalendar/moment-timezone
Advanced tools
Comparing version 6.1.0 to 6.1.1
/*! | ||
FullCalendar Moment Timezone Plugin v6.1.0 | ||
FullCalendar Moment Timezone Plugin v6.1.1 | ||
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin | ||
(c) 2022 Adam Shaw | ||
(c) 2023 Adam Shaw | ||
*/ | ||
@@ -6,0 +6,0 @@ FullCalendar.MomentTimezone = (function (exports, core, moment, internal) { |
/*! | ||
FullCalendar Moment Timezone Plugin v6.1.0 | ||
FullCalendar Moment Timezone Plugin v6.1.1 | ||
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin | ||
(c) 2022 Adam Shaw | ||
(c) 2023 Adam Shaw | ||
*/ | ||
FullCalendar.MomentTimezone=function(e,t,n,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}var r=l(n);class u extends a.NamedTimeZoneImpl{offsetForArray(e){return r.default.tz(e,this.timeZoneName).utcOffset()}timestampToArray(e){return r.default.tz(e,this.timeZoneName).toArray()}}var m=t.createPlugin({name:"@fullcalendar/moment-timezone",namedTimeZonedImpl:u});return t.globalPlugins.push(m),e.default=m,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,moment,FullCalendar.Internal); |
24
index.js
@@ -1,23 +0,15 @@ | ||
'use strict'; | ||
import { createPlugin } from '@fullcalendar/core'; | ||
import moment from 'moment-timezone'; | ||
import { NamedTimeZoneImpl } from '@fullcalendar/core/internal'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var core = require('@fullcalendar/core'); | ||
var moment = require('moment-timezone'); | ||
var internal = require('@fullcalendar/core/internal'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment); | ||
class MomentNamedTimeZone extends internal.NamedTimeZoneImpl { | ||
class MomentNamedTimeZone extends NamedTimeZoneImpl { | ||
offsetForArray(a) { | ||
return moment__default["default"].tz(a, this.timeZoneName).utcOffset(); | ||
return moment.tz(a, this.timeZoneName).utcOffset(); | ||
} | ||
timestampToArray(ms) { | ||
return moment__default["default"].tz(ms, this.timeZoneName).toArray(); | ||
return moment.tz(ms, this.timeZoneName).toArray(); | ||
} | ||
} | ||
var index = core.createPlugin({ | ||
var index = createPlugin({ | ||
name: '@fullcalendar/moment-timezone', | ||
@@ -27,2 +19,2 @@ namedTimeZonedImpl: MomentNamedTimeZone, | ||
exports["default"] = index; | ||
export { index as default }; |
{ | ||
"name": "@fullcalendar/moment-timezone", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"title": "FullCalendar Moment Timezone Plugin", | ||
@@ -17,3 +17,3 @@ "description": "Enhanced named time zone functionality with Moment Timezone", | ||
"peerDependencies": { | ||
"@fullcalendar/core": "~6.1.0", | ||
"@fullcalendar/core": "~6.1.1", | ||
"moment-timezone": "^0.5.40" | ||
@@ -34,6 +34,6 @@ }, | ||
}, | ||
"copyright": "2022 Adam Shaw", | ||
"copyright": "2023 Adam Shaw", | ||
"types": "./index.d.ts", | ||
"main": "./index.js", | ||
"module": "./index.esm.js", | ||
"main": "./index.cjs", | ||
"module": "./index.js", | ||
"unpkg": "./index.global.min.js", | ||
@@ -43,6 +43,7 @@ "jsdelivr": "./index.global.min.js", | ||
"./package.json": "./package.json", | ||
"./index.cjs": "./index.cjs", | ||
".": { | ||
"types": "./index.d.ts", | ||
"require": "./index.js", | ||
"import": "./index.esm.js" | ||
"require": "./index.cjs", | ||
"import": "./index.js" | ||
} | ||
@@ -49,0 +50,0 @@ }, |
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
6673