add-to-calendar-button 2.11.1 → 2.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.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: 3D
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Date
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Flat
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Neumorphism
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Round
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Simple
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Text
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Style: Default
7
7
  *
8
- * Version: 2.11.1
8
+ * Version: 2.11.2
9
9
  * Creator: Jens Kuerschner (https://jekuer.com)
10
10
  * Project: https://github.com/add2cal/add-to-calendar-button
11
11
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.11.1
226
+ * Version: 2.11.2
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.11.1';
233
+ const atcbVersion = '2.11.2';
234
234
  const atcbCssTemplate = {};
235
235
  const atcbIsBrowser = () => {
236
236
  if (typeof window === 'undefined') {
@@ -5047,10 +5047,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5047
5047
  if (response.ok) {
5048
5048
  const data = await response.json();
5049
5049
  if (proOverride) {
5050
- const host = window?.location.hostname || '';
5050
+ const host = window.location.hostname || '';
5051
5051
  const domain = host.split('.').slice(-2).join('.');
5052
5052
  atcbWcParams.forEach((key) => {
5053
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5053
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5054
5054
  data[`${key}`] = dataOverrides[`${key}`];
5055
5055
  }
5056
5056
  });
@@ -5088,8 +5088,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5088
5088
  return data;
5089
5089
  }
5090
5090
  throw new Error('Not possible to read proKey config from server...');
5091
- } catch {
5092
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5091
+ } catch (originalError) {
5092
+ console.error(originalError);
5093
+ throw new Error('proKey invalid or server not responding!');
5093
5094
  }
5094
5095
  }
5095
5096
  return {};
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.11.1
226
+ * Version: 2.11.2
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.11.1';
233
+ const atcbVersion = '2.11.2';
234
234
  const atcbCssTemplate = {
235
235
  if (typeof window === 'undefined') {
236
236
  return false;
@@ -5046,10 +5046,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5046
5046
  if (response.ok) {
5047
5047
  const data = await response.json();
5048
5048
  if (proOverride) {
5049
- const host = window?.location.hostname || '';
5049
+ const host = window.location.hostname || '';
5050
5050
  const domain = host.split('.').slice(-2).join('.');
5051
5051
  atcbWcParams.forEach((key) => {
5052
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5052
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5053
5053
  data[`${key}`] = dataOverrides[`${key}`];
5054
5054
  }
5055
5055
  });
@@ -5087,8 +5087,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5087
5087
  return data;
5088
5088
  }
5089
5089
  throw new Error('Not possible to read proKey config from server...');
5090
- } catch {
5091
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5090
+ } catch (originalError) {
5091
+ console.error(originalError);
5092
+ throw new Error('proKey invalid or server not responding!');
5092
5093
  }
5093
5094
  }
5094
5095
  return {};
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.11.1
226
+ * Version: 2.11.2
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.11.1';
233
+ const atcbVersion = '2.11.2';
234
234
  const atcbCssTemplate = {};
235
235
  const atcbIsBrowser = () => {
236
236
  if (typeof window === 'undefined') {
@@ -5767,10 +5767,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5767
5767
  if (response.ok) {
5768
5768
  const data = await response.json();
5769
5769
  if (proOverride) {
5770
- const host = window?.location.hostname || '';
5770
+ const host = window.location.hostname || '';
5771
5771
  const domain = host.split('.').slice(-2).join('.');
5772
5772
  atcbWcParams.forEach((key) => {
5773
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5773
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5774
5774
  data[`${key}`] = dataOverrides[`${key}`];
5775
5775
  }
5776
5776
  });
@@ -5808,8 +5808,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5808
5808
  return data;
5809
5809
  }
5810
5810
  throw new Error('Not possible to read proKey config from server...');
5811
- } catch {
5812
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5811
+ } catch (originalError) {
5812
+ console.error(originalError);
5813
+ throw new Error('proKey invalid or server not responding!');
5813
5814
  }
5814
5815
  }
5815
5816
  return {};
package/dist/atcb.js CHANGED
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.11.1
226
+ * Version: 2.11.2
227
227
  * Creator: Jens Kuerschner (https://jekuer.com)
228
228
  * Project: https://github.com/add2cal/add-to-calendar-button
229
229
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
230
230
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
231
231
  *
232
232
  */
233
- const atcbVersion = '2.11.1';
233
+ const atcbVersion = '2.11.2';
234
234
  const atcbCssTemplate = {
235
235
  if (typeof window === 'undefined') {
236
236
  return false;
@@ -5766,10 +5766,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5766
5766
  if (response.ok) {
5767
5767
  const data = await response.json();
5768
5768
  if (proOverride) {
5769
- const host = window?.location.hostname || '';
5769
+ const host = window.location.hostname || '';
5770
5770
  const domain = host.split('.').slice(-2).join('.');
5771
5771
  atcbWcParams.forEach((key) => {
5772
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5772
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5773
5773
  data[`${key}`] = dataOverrides[`${key}`];
5774
5774
  }
5775
5775
  });
@@ -5807,8 +5807,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5807
5807
  return data;
5808
5808
  }
5809
5809
  throw new Error('Not possible to read proKey config from server...');
5810
- } catch {
5811
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5810
+ } catch (originalError) {
5811
+ console.error(originalError);
5812
+ throw new Error('proKey invalid or server not responding!');
5812
5813
  }
5813
5814
  }
5814
5815
  return {};
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -5549,10 +5549,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5549
5549
  if (response.ok) {
5550
5550
  const data = await response.json();
5551
5551
  if (proOverride) {
5552
- const host = window?.location.hostname || '';
5552
+ const host = window.location.hostname || '';
5553
5553
  const domain = host.split('.').slice(-2).join('.');
5554
5554
  atcbWcParams.forEach((key) => {
5555
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5555
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5556
5556
  data[`${key}`] = dataOverrides[`${key}`];
5557
5557
  }
5558
5558
  });
@@ -5590,8 +5590,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5590
5590
  return data;
5591
5591
  }
5592
5592
  throw new Error('Not possible to read proKey config from server...');
5593
- } catch {
5594
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5593
+ } catch (originalError) {
5594
+ console.error(originalError);
5595
+ throw new Error('proKey invalid or server not responding!');
5595
5596
  }
5596
5597
  }
5597
5598
  return {};
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -4829,10 +4829,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4829
4829
  if (response.ok) {
4830
4830
  const data = await response.json();
4831
4831
  if (proOverride) {
4832
- const host = window?.location.hostname || '';
4832
+ const host = window.location.hostname || '';
4833
4833
  const domain = host.split('.').slice(-2).join('.');
4834
4834
  atcbWcParams.forEach((key) => {
4835
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
4835
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
4836
4836
  data[`${key}`] = dataOverrides[`${key}`];
4837
4837
  }
4838
4838
  });
@@ -4870,8 +4870,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4870
4870
  return data;
4871
4871
  }
4872
4872
  throw new Error('Not possible to read proKey config from server...');
4873
- } catch {
4874
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
4873
+ } catch (originalError) {
4874
+ console.error(originalError);
4875
+ throw new Error('proKey invalid or server not responding!');
4875
4876
  }
4876
4877
  }
4877
4878
  return {};
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -4830,10 +4830,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4830
4830
  if (response.ok) {
4831
4831
  const data = await response.json();
4832
4832
  if (proOverride) {
4833
- const host = window?.location.hostname || '';
4833
+ const host = window.location.hostname || '';
4834
4834
  const domain = host.split('.').slice(-2).join('.');
4835
4835
  atcbWcParams.forEach((key) => {
4836
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
4836
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
4837
4837
  data[`${key}`] = dataOverrides[`${key}`];
4838
4838
  }
4839
4839
  });
@@ -4871,8 +4871,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4871
4871
  return data;
4872
4872
  }
4873
4873
  throw new Error('Not possible to read proKey config from server...');
4874
- } catch {
4875
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
4874
+ } catch (originalError) {
4875
+ console.error(originalError);
4876
+ throw new Error('proKey invalid or server not responding!');
4876
4877
  }
4877
4878
  }
4878
4879
  return {};
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -5550,10 +5550,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5550
5550
  if (response.ok) {
5551
5551
  const data = await response.json();
5552
5552
  if (proOverride) {
5553
- const host = window?.location.hostname || '';
5553
+ const host = window.location.hostname || '';
5554
5554
  const domain = host.split('.').slice(-2).join('.');
5555
5555
  atcbWcParams.forEach((key) => {
5556
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5556
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5557
5557
  data[`${key}`] = dataOverrides[`${key}`];
5558
5558
  }
5559
5559
  });
@@ -5591,8 +5591,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5591
5591
  return data;
5592
5592
  }
5593
5593
  throw new Error('Not possible to read proKey config from server...');
5594
- } catch {
5595
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5594
+ } catch (originalError) {
5595
+ console.error(originalError);
5596
+ throw new Error('proKey invalid or server not responding!');
5596
5597
  }
5597
5598
  }
5598
5599
  return {};
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -5549,10 +5549,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5549
5549
  if (response.ok) {
5550
5550
  const data = await response.json();
5551
5551
  if (proOverride) {
5552
- const host = window?.location.hostname || '';
5552
+ const host = window.location.hostname || '';
5553
5553
  const domain = host.split('.').slice(-2).join('.');
5554
5554
  atcbWcParams.forEach((key) => {
5555
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5555
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5556
5556
  data[`${key}`] = dataOverrides[`${key}`];
5557
5557
  }
5558
5558
  });
@@ -5590,8 +5590,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5590
5590
  return data;
5591
5591
  }
5592
5592
  throw new Error('Not possible to read proKey config from server...');
5593
- } catch {
5594
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5593
+ } catch (originalError) {
5594
+ console.error(originalError);
5595
+ throw new Error('proKey invalid or server not responding!');
5595
5596
  }
5596
5597
  }
5597
5598
  return {};
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -4829,10 +4829,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4829
4829
  if (response.ok) {
4830
4830
  const data = await response.json();
4831
4831
  if (proOverride) {
4832
- const host = window?.location.hostname || '';
4832
+ const host = window.location.hostname || '';
4833
4833
  const domain = host.split('.').slice(-2).join('.');
4834
4834
  atcbWcParams.forEach((key) => {
4835
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
4835
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
4836
4836
  data[`${key}`] = dataOverrides[`${key}`];
4837
4837
  }
4838
4838
  });
@@ -4870,8 +4870,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4870
4870
  return data;
4871
4871
  }
4872
4872
  throw new Error('Not possible to read proKey config from server...');
4873
- } catch {
4874
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
4873
+ } catch (originalError) {
4874
+ console.error(originalError);
4875
+ throw new Error('proKey invalid or server not responding!');
4875
4876
  }
4876
4877
  }
4877
4878
  return {};
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -4830,10 +4830,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4830
4830
  if (response.ok) {
4831
4831
  const data = await response.json();
4832
4832
  if (proOverride) {
4833
- const host = window?.location.hostname || '';
4833
+ const host = window.location.hostname || '';
4834
4834
  const domain = host.split('.').slice(-2).join('.');
4835
4835
  atcbWcParams.forEach((key) => {
4836
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
4836
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
4837
4837
  data[`${key}`] = dataOverrides[`${key}`];
4838
4838
  }
4839
4839
  });
@@ -4871,8 +4871,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
4871
4871
  return data;
4872
4872
  }
4873
4873
  throw new Error('Not possible to read proKey config from server...');
4874
- } catch {
4875
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
4874
+ } catch (originalError) {
4875
+ console.error(originalError);
4876
+ throw new Error('proKey invalid or server not responding!');
4876
4877
  }
4877
4878
  }
4878
4879
  return {};
@@ -6,14 +6,14 @@ import { tzlib_get_ical_block, tzlib_get_offset, tzlib_get_timezones } from 'tim
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.11.1
9
+ * Version: 2.11.2
10
10
  * Creator: Jens Kuerschner (https://jekuer.com)
11
11
  * Project: https://github.com/add2cal/add-to-calendar-button
12
12
  * License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
13
13
  * Note: DO NOT REMOVE THE COPYRIGHT NOTICE ABOVE!
14
14
  *
15
15
  */
16
- const atcbVersion = '2.11.1';
16
+ const atcbVersion = '2.11.2';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -5550,10 +5550,10 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5550
5550
  if (response.ok) {
5551
5551
  const data = await response.json();
5552
5552
  if (proOverride) {
5553
- const host = window?.location.hostname || '';
5553
+ const host = window.location.hostname || '';
5554
5554
  const domain = host.split('.').slice(-2).join('.');
5555
5555
  atcbWcParams.forEach((key) => {
5556
- if ((Object.prototype.hasOwnProperty.call(dataOverrides, key) && ['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1) || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com') {
5556
+ if (Object.prototype.hasOwnProperty.call(dataOverrides, key) && (['hideBranding', 'ty', 'rsvp'].indexOf(key) === -1 || domain === 'caldn.net' || domain === 'add-to-calendar-pro.com')) {
5557
5557
  data[`${key}`] = dataOverrides[`${key}`];
5558
5558
  }
5559
5559
  });
@@ -5591,8 +5591,9 @@ async function atcb_get_pro_data(licenseKey, el = null, directData = {}) {
5591
5591
  return data;
5592
5592
  }
5593
5593
  throw new Error('Not possible to read proKey config from server...');
5594
- } catch {
5595
- throw new Error('Add to Calendar Button proKey invalid or server not responding!');
5594
+ } catch (originalError) {
5595
+ console.error(originalError);
5596
+ throw new Error('proKey invalid or server not responding!');
5596
5597
  }
5597
5598
  }
5598
5599
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-to-calendar-button",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "engines": {
5
5
  "node": ">=18.17.0",
6
6
  "npm": ">=9.6.7"