add-to-calendar-button 2.12.5 → 2.12.6

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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
8
+ * Version: 2.12.6
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.12.5
226
+ * Version: 2.12.6
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.12.5';
233
+ const atcbVersion = '2.12.6';
234
234
  const atcbCssTemplate = {};
235
235
  const atcbIsBrowser = () => {
236
236
  if (typeof window === 'undefined') {
@@ -3607,13 +3607,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
3607
3607
  let count = 0;
3608
3608
  let maxIterations = 10000;
3609
3609
  while (true) {
3610
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3610
3611
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
3611
3612
  occurrences.push(currentDate);
3612
3613
  count++;
3613
3614
  if (rrule.COUNT && count >= rrule.COUNT) break;
3614
3615
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
3615
3616
  }
3616
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3617
3617
  currentDate = new Date(currentDate.getTime() + stepMs);
3618
3618
  if (--maxIterations <= 0) {
3619
3619
  break;
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.12.5
226
+ * Version: 2.12.6
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.12.5';
233
+ const atcbVersion = '2.12.6';
234
234
  const atcbCssTemplate = {
235
235
  if (typeof window === 'undefined') {
236
236
  return false;
@@ -3606,13 +3606,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
3606
3606
  let count = 0;
3607
3607
  let maxIterations = 10000;
3608
3608
  while (true) {
3609
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3609
3610
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
3610
3611
  occurrences.push(currentDate);
3611
3612
  count++;
3612
3613
  if (rrule.COUNT && count >= rrule.COUNT) break;
3613
3614
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
3614
3615
  }
3615
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3616
3616
  currentDate = new Date(currentDate.getTime() + stepMs);
3617
3617
  if (--maxIterations <= 0) {
3618
3618
  break;
@@ -223,14 +223,14 @@ function tzlib_get_timezones(jsonType = false) {
223
223
  * Add to Calendar Button
224
224
  * ++++++++++++++++++++++
225
225
  *
226
- * Version: 2.12.5
226
+ * Version: 2.12.6
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.12.5';
233
+ const atcbVersion = '2.12.6';
234
234
  const atcbCssTemplate = {};
235
235
  const atcbIsBrowser = () => {
236
236
  if (typeof window === 'undefined') {
@@ -4327,13 +4327,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
4327
4327
  let count = 0;
4328
4328
  let maxIterations = 10000;
4329
4329
  while (true) {
4330
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4330
4331
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
4331
4332
  occurrences.push(currentDate);
4332
4333
  count++;
4333
4334
  if (rrule.COUNT && count >= rrule.COUNT) break;
4334
4335
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
4335
4336
  }
4336
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4337
4337
  currentDate = new Date(currentDate.getTime() + stepMs);
4338
4338
  if (--maxIterations <= 0) {
4339
4339
  break;
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.12.5
226
+ * Version: 2.12.6
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.12.5';
233
+ const atcbVersion = '2.12.6';
234
234
  const atcbCssTemplate = {
235
235
  if (typeof window === 'undefined') {
236
236
  return false;
@@ -4326,13 +4326,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
4326
4326
  let count = 0;
4327
4327
  let maxIterations = 10000;
4328
4328
  while (true) {
4329
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4329
4330
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
4330
4331
  occurrences.push(currentDate);
4331
4332
  count++;
4332
4333
  if (rrule.COUNT && count >= rrule.COUNT) break;
4333
4334
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
4334
4335
  }
4335
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4336
4336
  currentDate = new Date(currentDate.getTime() + stepMs);
4337
4337
  if (--maxIterations <= 0) {
4338
4338
  break;
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -4109,13 +4109,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
4109
4109
  let count = 0;
4110
4110
  let maxIterations = 10000;
4111
4111
  while (true) {
4112
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4112
4113
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
4113
4114
  occurrences.push(currentDate);
4114
4115
  count++;
4115
4116
  if (rrule.COUNT && count >= rrule.COUNT) break;
4116
4117
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
4117
4118
  }
4118
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4119
4119
  currentDate = new Date(currentDate.getTime() + stepMs);
4120
4120
  if (--maxIterations <= 0) {
4121
4121
  break;
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -3389,13 +3389,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
3389
3389
  let count = 0;
3390
3390
  let maxIterations = 10000;
3391
3391
  while (true) {
3392
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3392
3393
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
3393
3394
  occurrences.push(currentDate);
3394
3395
  count++;
3395
3396
  if (rrule.COUNT && count >= rrule.COUNT) break;
3396
3397
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
3397
3398
  }
3398
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3399
3399
  currentDate = new Date(currentDate.getTime() + stepMs);
3400
3400
  if (--maxIterations <= 0) {
3401
3401
  break;
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -3390,13 +3390,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
3390
3390
  let count = 0;
3391
3391
  let maxIterations = 10000;
3392
3392
  while (true) {
3393
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3393
3394
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
3394
3395
  occurrences.push(currentDate);
3395
3396
  count++;
3396
3397
  if (rrule.COUNT && count >= rrule.COUNT) break;
3397
3398
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
3398
3399
  }
3399
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3400
3400
  currentDate = new Date(currentDate.getTime() + stepMs);
3401
3401
  if (--maxIterations <= 0) {
3402
3402
  break;
@@ -6,14 +6,14 @@ const tzlibActions = require('timezones-ical-library');
6
6
  * Add to Calendar Button
7
7
  * ++++++++++++++++++++++
8
8
  *
9
- * Version: 2.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -4110,13 +4110,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
4110
4110
  let count = 0;
4111
4111
  let maxIterations = 10000;
4112
4112
  while (true) {
4113
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4113
4114
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
4114
4115
  occurrences.push(currentDate);
4115
4116
  count++;
4116
4117
  if (rrule.COUNT && count >= rrule.COUNT) break;
4117
4118
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
4118
4119
  }
4119
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4120
4120
  currentDate = new Date(currentDate.getTime() + stepMs);
4121
4121
  if (--maxIterations <= 0) {
4122
4122
  break;
@@ -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.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -4109,13 +4109,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
4109
4109
  let count = 0;
4110
4110
  let maxIterations = 10000;
4111
4111
  while (true) {
4112
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4112
4113
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
4113
4114
  occurrences.push(currentDate);
4114
4115
  count++;
4115
4116
  if (rrule.COUNT && count >= rrule.COUNT) break;
4116
4117
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
4117
4118
  }
4118
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4119
4119
  currentDate = new Date(currentDate.getTime() + stepMs);
4120
4120
  if (--maxIterations <= 0) {
4121
4121
  break;
@@ -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.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {
18
18
  if (typeof window === 'undefined') {
19
19
  return false;
@@ -3389,13 +3389,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
3389
3389
  let count = 0;
3390
3390
  let maxIterations = 10000;
3391
3391
  while (true) {
3392
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3392
3393
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
3393
3394
  occurrences.push(currentDate);
3394
3395
  count++;
3395
3396
  if (rrule.COUNT && count >= rrule.COUNT) break;
3396
3397
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
3397
3398
  }
3398
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3399
3399
  currentDate = new Date(currentDate.getTime() + stepMs);
3400
3400
  if (--maxIterations <= 0) {
3401
3401
  break;
@@ -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.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -3390,13 +3390,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
3390
3390
  let count = 0;
3391
3391
  let maxIterations = 10000;
3392
3392
  while (true) {
3393
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3393
3394
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
3394
3395
  occurrences.push(currentDate);
3395
3396
  count++;
3396
3397
  if (rrule.COUNT && count >= rrule.COUNT) break;
3397
3398
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
3398
3399
  }
3399
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
3400
3400
  currentDate = new Date(currentDate.getTime() + stepMs);
3401
3401
  if (--maxIterations <= 0) {
3402
3402
  break;
@@ -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.12.5
9
+ * Version: 2.12.6
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.12.5';
16
+ const atcbVersion = '2.12.6';
17
17
  const atcbCssTemplate = {};
18
18
  const atcbIsBrowser = () => {
19
19
  if (typeof window === 'undefined') {
@@ -4110,13 +4110,13 @@ function atcb_getNextOccurrence(rruleStr, startDateTime, allday) {
4110
4110
  let count = 0;
4111
4111
  let maxIterations = 10000;
4112
4112
  while (true) {
4113
+ if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4113
4114
  if (matchesFreq(currentDate, rrule, startDateTime) && matchesRRule(currentDate, rrule, startDateTime)) {
4114
4115
  occurrences.push(currentDate);
4115
4116
  count++;
4116
4117
  if (rrule.COUNT && count >= rrule.COUNT) break;
4117
4118
  if (!rrule.COUNT && !rrule.UNTIL && occurrences.length > 0 && (allday ? currentDate >= now : currentDate > now)) break;
4118
4119
  }
4119
- if (rrule.UNTIL && currentDate > rrule.UNTIL) break;
4120
4120
  currentDate = new Date(currentDate.getTime() + stepMs);
4121
4121
  if (--maxIterations <= 0) {
4122
4122
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-to-calendar-button",
3
- "version": "2.12.5",
3
+ "version": "2.12.6",
4
4
  "engines": {
5
5
  "node": ">=18.17.0",
6
6
  "npm": ">=9.6.7"