@fullcalendar/moment 6.1.12 → 6.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.global.js +2 -2
- package/index.global.min.js +2 -2
- package/package.json +3 -3
package/index.global.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Moment Plugin v6.1.
|
|
2
|
+
FullCalendar Moment Plugin v6.1.13
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/moment-plugin
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2024 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
FullCalendar.Moment = (function (exports, core, moment, internal) {
|
|
7
7
|
'use strict';
|
package/index.global.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Moment Plugin v6.1.
|
|
2
|
+
FullCalendar Moment Plugin v6.1.13
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/moment-plugin
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2024 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
FullCalendar.Moment=function(e,t,l,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var r=a(l);function u(e,t,l,n){let a;return"local"===t?a=r.default(e):"UTC"===t?a=r.default.utc(e):r.default.tz?a=r.default.tz(e,t):(a=r.default.utc(e),null!=l&&a.utcOffset(l)),a.locale(n),a}function o(e){return t=>t?e.format(t):""}var d=t.createPlugin({name:"@fullcalendar/moment",cmdFormatter:function(e,t){let l=function e(t){let l=t.match(/^(.*?)\{(.*)\}(.*)$/);if(l){let t=e(l[2]);return{head:l[1],middle:t,tail:l[3],whole:l[1]+t.whole+l[3]}}return{head:null,middle:null,tail:null,whole:t}}(e);if(t.end){let e=u(t.start.array,t.timeZone,t.start.timeZoneOffset,t.localeCodes[0]),n=u(t.end.array,t.timeZone,t.end.timeZoneOffset,t.localeCodes[0]);return function e(t,l,n,a){if(t.middle){let r=l(t.head),u=e(t.middle,l,n,a),o=l(t.tail),d=n(t.head),i=e(t.middle,l,n,a),f=n(t.tail);if(r===d&&o===f)return r+(u===i?u:u+a+i)+o}let r=l(t.whole),u=n(t.whole);if(r===u)return r;return r+a+u}(l,o(e),o(n),t.defaultSeparator)}return u(t.date.array,t.timeZone,t.date.timeZoneOffset,t.localeCodes[0]).format(l.whole)}});return t.globalPlugins.push(d),e.default=d,e.toMoment=function(e,t){if(!(t instanceof n.CalendarImpl))throw new Error("must supply a CalendarApi instance");let{dateEnv:l}=t.getCurrentData();return u(e,l.timeZone,null,l.locale.codes[0])},e.toMomentDuration=function(e){return r.default.duration(e)},Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,moment,FullCalendar.Internal);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullcalendar/moment",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.13",
|
|
4
4
|
"title": "FullCalendar Moment Plugin",
|
|
5
5
|
"description": "Enhanced date formatting and conversion with Moment",
|
|
6
6
|
"keywords": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"homepage": "https://fullcalendar.io/docs/moment-plugin",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@fullcalendar/core": "~6.1.
|
|
15
|
+
"@fullcalendar/core": "~6.1.13",
|
|
16
16
|
"moment": "^2.29.1"
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"email": "arshaw@arshaw.com",
|
|
29
29
|
"url": "http://arshaw.com/"
|
|
30
30
|
},
|
|
31
|
-
"copyright": "
|
|
31
|
+
"copyright": "2024 Adam Shaw",
|
|
32
32
|
"types": "./index.d.ts",
|
|
33
33
|
"main": "./index.cjs",
|
|
34
34
|
"module": "./index.js",
|