Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fullcalendar/moment-timezone

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/moment-timezone - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

index.cjs

4

index.global.js
/*!
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);

@@ -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 @@ },

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