@fullcalendar/moment-timezone
Advanced tools
Comparing version 6.0.2 to 6.0.3
/*! | ||
FullCalendar Moment Timezone Plugin v6.0.2 | ||
FullCalendar Moment Timezone Plugin v6.0.3 | ||
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin | ||
@@ -4,0 +4,0 @@ (c) 2022 Adam Shaw |
/*! | ||
FullCalendar Moment Timezone Plugin v6.0.2 | ||
FullCalendar Moment Timezone Plugin v6.0.3 | ||
Docs & License: https://fullcalendar.io/docs/moment-timezone-plugin | ||
@@ -4,0 +4,0 @@ (c) 2022 Adam Shaw |
25
index.js
@@ -1,15 +0,23 @@ | ||
import { createPlugin } from '@fullcalendar/core/index.js'; | ||
import moment from 'moment-timezone'; | ||
import { NamedTimeZoneImpl } from '@fullcalendar/core/internal.js'; | ||
'use strict'; | ||
class MomentNamedTimeZone extends NamedTimeZoneImpl { | ||
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 { | ||
offsetForArray(a) { | ||
return moment.tz(a, this.timeZoneName).utcOffset(); | ||
return moment__default["default"].tz(a, this.timeZoneName).utcOffset(); | ||
} | ||
timestampToArray(ms) { | ||
return moment.tz(ms, this.timeZoneName).toArray(); | ||
return moment__default["default"].tz(ms, this.timeZoneName).toArray(); | ||
} | ||
} | ||
var index = createPlugin({ | ||
var index = core.createPlugin({ | ||
name: '@fullcalendar/moment-timezone', | ||
@@ -19,3 +27,2 @@ namedTimeZonedImpl: MomentNamedTimeZone, | ||
export { index as default }; | ||
//# sourceMappingURL=index.js.map | ||
exports["default"] = index; |
{ | ||
"name": "@fullcalendar/moment-timezone", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"title": "FullCalendar Moment Timezone Plugin", | ||
@@ -17,3 +17,3 @@ "description": "Enhanced named time zone functionality with Moment Timezone", | ||
"peerDependencies": { | ||
"@fullcalendar/core": "~6.0.2", | ||
"@fullcalendar/core": "~6.0.3", | ||
"moment-timezone": "^0.5.31" | ||
@@ -35,5 +35,5 @@ }, | ||
"copyright": "2022 Adam Shaw", | ||
"main": "./index.cjs", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"main": "./index.js", | ||
"module": "./index.esm.js", | ||
"unpkg": "./index.global.min.js", | ||
@@ -43,8 +43,6 @@ "jsdelivr": "./index.global.min.js", | ||
"./package.json": "./package.json", | ||
"./index.cjs": "./index.cjs", | ||
"./index.js": "./index.js", | ||
".": { | ||
"types": "./index.d.ts", | ||
"require": "./index.cjs", | ||
"import": "./index.js" | ||
"require": "./index.js", | ||
"import": "./index.esm.js" | ||
} | ||
@@ -51,0 +49,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
6613
8
71