@fullcalendar/google-calendar 5.10.0 → 5.11.2

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/main.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
- FullCalendar v5.10.0
2
+ FullCalendar v5.11.2
3
3
  Docs & License: https://fullcalendar.io/
4
- (c) 2021 Adam Shaw
4
+ (c) 2022 Adam Shaw
5
5
  */
6
6
  'use strict';
7
7
 
package/main.global.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
- FullCalendar v5.10.0
2
+ FullCalendar v5.11.2
3
3
  Docs & License: https://fullcalendar.io/
4
- (c) 2021 Adam Shaw
4
+ (c) 2022 Adam Shaw
5
5
  */
6
6
  var FullCalendarGoogleCalendar = (function (exports, common) {
7
7
  'use strict';
@@ -1,6 +1,6 @@
1
1
  /*!
2
- FullCalendar v5.10.0
2
+ FullCalendar v5.11.2
3
3
  Docs & License: https://fullcalendar.io/
4
- (c) 2021 Adam Shaw
4
+ (c) 2022 Adam Shaw
5
5
  */
6
6
  var FullCalendarGoogleCalendar=function(e,a){"use strict";var r=function(){return(r=Object.assign||function(e){for(var a,r=1,n=arguments.length;r<n;r++)for(var t in a=arguments[r])Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t]);return e}).apply(this,arguments)},n={googleCalendarApiKey:String},t={googleCalendarApiKey:String,googleCalendarId:String,googleCalendarApiBase:String,extraParams:a.identity},o="https://www.googleapis.com/calendar/v3/calendars",l={parseMeta:function(e){var a=e.googleCalendarId;return!a&&e.url&&(a=function(e){var a;if(/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(e))return e;if((a=/^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(e))||(a=/^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(e)))return decodeURIComponent(a[1]);return null}(e.url)),a?{googleCalendarId:a,googleCalendarApiKey:e.googleCalendarApiKey,googleCalendarApiBase:e.googleCalendarApiBase,extraParams:e.extraParams}:null},fetch:function(e,n,t){var l=e.context,i=l.dateEnv,s=l.options,d=e.eventSource.meta,g=d.googleCalendarApiKey||s.googleCalendarApiKey;if(g){var c=function(e){var a=e.googleCalendarApiBase;a||(a=o);return a+"/"+encodeURIComponent(e.googleCalendarId)+"/events"}(d),u=d.extraParams,p="function"==typeof u?u():u,m=function(e,n,t,o){var l,i,s;o.canComputeOffset?(i=o.formatIso(e.start),s=o.formatIso(e.end)):(i=a.addDays(e.start,-1).toISOString(),s=a.addDays(e.end,1).toISOString());l=r(r({},t||{}),{key:n,timeMin:i,timeMax:s,singleEvents:!0,maxResults:9999}),"local"!==o.timeZone&&(l.timeZone=o.timeZone);return l}(e.range,g,p,i);a.requestJson("GET",c,m,(function(e,a){var r,o;e.error?t({message:"Google Calendar API: "+e.error.message,errors:e.error.errors,xhr:a}):n({rawEvents:(r=e.items,o=m.timeZone,r.map((function(e){return function(e,a){var r=e.htmlLink||null;r&&a&&(r=function(e,a){return e.replace(/(\?.*?)?(#|$)/,(function(e,r,n){return(r?r+"&":"?")+a+n}))}(r,"ctz="+a));return{id:e.id,title:e.summary,start:e.start.dateTime||e.start.date,end:e.end.dateTime||e.end.date,url:r,location:e.location,description:e.description,attachments:e.attachments||[],extendedProps:(e.extendedProperties||{}).shared||{}}}(e,o)}))),xhr:a})}),(function(e,a){t({message:e,xhr:a})}))}else t({message:"Specify a googleCalendarApiKey. See http://fullcalendar.io/docs/google_calendar/"})}};var i=a.createPlugin({eventSourceDefs:[l],optionRefiners:n,eventSourceRefiners:t});return a.globalPlugins.push(i),e.default=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar);
package/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
- FullCalendar v5.10.0
2
+ FullCalendar v5.11.2
3
3
  Docs & License: https://fullcalendar.io/
4
- (c) 2021 Adam Shaw
4
+ (c) 2022 Adam Shaw
5
5
  */
6
6
  import { __assign } from 'tslib';
7
7
  import { identity, createPlugin, requestJson, addDays } from '@fullcalendar/common';
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@fullcalendar/google-calendar",
3
- "version": "5.10.0",
3
+ "version": "5.11.2",
4
4
  "title": "FullCalendar Google Calendar Plugin",
5
5
  "description": "Fetch events from a public Google Calendar feed",
6
6
  "docs": "https://fullcalendar.io/docs/google-calendar",
7
7
  "dependencies": {
8
- "@fullcalendar/common": "~5.10.0",
8
+ "@fullcalendar/common": "~5.11.2",
9
9
  "tslib": "^2.1.0"
10
10
  },
11
11
  "main": "main.cjs.js",
@@ -27,6 +27,6 @@
27
27
  "url": "http://arshaw.com/"
28
28
  },
29
29
  "devDependencies": {
30
- "@fullcalendar/core-preact": "5.10.0"
30
+ "@fullcalendar/core-preact": "5.11.2"
31
31
  }
32
32
  }