@cosmotech/core 1.6.1 → 1.6.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/dist/index.cjs.js CHANGED
@@ -41273,101 +41273,6 @@ function subMilliseconds(dirtyDate, dirtyAmount) {
41273
41273
  return addMilliseconds(dirtyDate, -amount);
41274
41274
  }
41275
41275
 
41276
- function addLeadingZeros(number, targetLength) {
41277
- var sign = number < 0 ? '-' : '';
41278
- var output = Math.abs(number).toString();
41279
-
41280
- while (output.length < targetLength) {
41281
- output = '0' + output;
41282
- }
41283
-
41284
- return sign + output;
41285
- }
41286
-
41287
- /*
41288
- * | | Unit | | Unit |
41289
- * |-----|--------------------------------|-----|--------------------------------|
41290
- * | a | AM, PM | A* | |
41291
- * | d | Day of month | D | |
41292
- * | h | Hour [1-12] | H | Hour [0-23] |
41293
- * | m | Minute | M | Month |
41294
- * | s | Second | S | Fraction of second |
41295
- * | y | Year (abs) | Y | |
41296
- *
41297
- * Letters marked by * are not implemented but reserved by Unicode standard.
41298
- */
41299
-
41300
- var formatters$2 = {
41301
- // Year
41302
- y: function (date, token) {
41303
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
41304
- // | Year | y | yy | yyy | yyyy | yyyyy |
41305
- // |----------|-------|----|-------|-------|-------|
41306
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
41307
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
41308
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
41309
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
41310
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
41311
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
41312
-
41313
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
41314
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
41315
- },
41316
- // Month
41317
- M: function (date, token) {
41318
- var month = date.getUTCMonth();
41319
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
41320
- },
41321
- // Day of the month
41322
- d: function (date, token) {
41323
- return addLeadingZeros(date.getUTCDate(), token.length);
41324
- },
41325
- // AM or PM
41326
- a: function (date, token) {
41327
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
41328
-
41329
- switch (token) {
41330
- case 'a':
41331
- case 'aa':
41332
- return dayPeriodEnumValue.toUpperCase();
41333
-
41334
- case 'aaa':
41335
- return dayPeriodEnumValue;
41336
-
41337
- case 'aaaaa':
41338
- return dayPeriodEnumValue[0];
41339
-
41340
- case 'aaaa':
41341
- default:
41342
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
41343
- }
41344
- },
41345
- // Hour [1-12]
41346
- h: function (date, token) {
41347
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
41348
- },
41349
- // Hour [0-23]
41350
- H: function (date, token) {
41351
- return addLeadingZeros(date.getUTCHours(), token.length);
41352
- },
41353
- // Minute
41354
- m: function (date, token) {
41355
- return addLeadingZeros(date.getUTCMinutes(), token.length);
41356
- },
41357
- // Second
41358
- s: function (date, token) {
41359
- return addLeadingZeros(date.getUTCSeconds(), token.length);
41360
- },
41361
- // Fraction of second
41362
- S: function (date, token) {
41363
- var numberOfDigits = token.length;
41364
- var milliseconds = date.getUTCMilliseconds();
41365
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
41366
- return addLeadingZeros(fractionalSeconds, token.length);
41367
- }
41368
- };
41369
- var formatters$3 = formatters$2;
41370
-
41371
41276
  var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
41372
41277
  // See issue: https://github.com/date-fns/date-fns/issues/376
41373
41278
 
@@ -41530,6 +41435,101 @@ function getUTCWeek(dirtyDate, options) {
41530
41435
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
41531
41436
  }
41532
41437
 
41438
+ function addLeadingZeros(number, targetLength) {
41439
+ var sign = number < 0 ? '-' : '';
41440
+ var output = Math.abs(number).toString();
41441
+
41442
+ while (output.length < targetLength) {
41443
+ output = '0' + output;
41444
+ }
41445
+
41446
+ return sign + output;
41447
+ }
41448
+
41449
+ /*
41450
+ * | | Unit | | Unit |
41451
+ * |-----|--------------------------------|-----|--------------------------------|
41452
+ * | a | AM, PM | A* | |
41453
+ * | d | Day of month | D | |
41454
+ * | h | Hour [1-12] | H | Hour [0-23] |
41455
+ * | m | Minute | M | Month |
41456
+ * | s | Second | S | Fraction of second |
41457
+ * | y | Year (abs) | Y | |
41458
+ *
41459
+ * Letters marked by * are not implemented but reserved by Unicode standard.
41460
+ */
41461
+
41462
+ var formatters$2 = {
41463
+ // Year
41464
+ y: function (date, token) {
41465
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
41466
+ // | Year | y | yy | yyy | yyyy | yyyyy |
41467
+ // |----------|-------|----|-------|-------|-------|
41468
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
41469
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
41470
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
41471
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
41472
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
41473
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
41474
+
41475
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
41476
+ return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
41477
+ },
41478
+ // Month
41479
+ M: function (date, token) {
41480
+ var month = date.getUTCMonth();
41481
+ return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
41482
+ },
41483
+ // Day of the month
41484
+ d: function (date, token) {
41485
+ return addLeadingZeros(date.getUTCDate(), token.length);
41486
+ },
41487
+ // AM or PM
41488
+ a: function (date, token) {
41489
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
41490
+
41491
+ switch (token) {
41492
+ case 'a':
41493
+ case 'aa':
41494
+ return dayPeriodEnumValue.toUpperCase();
41495
+
41496
+ case 'aaa':
41497
+ return dayPeriodEnumValue;
41498
+
41499
+ case 'aaaaa':
41500
+ return dayPeriodEnumValue[0];
41501
+
41502
+ case 'aaaa':
41503
+ default:
41504
+ return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
41505
+ }
41506
+ },
41507
+ // Hour [1-12]
41508
+ h: function (date, token) {
41509
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
41510
+ },
41511
+ // Hour [0-23]
41512
+ H: function (date, token) {
41513
+ return addLeadingZeros(date.getUTCHours(), token.length);
41514
+ },
41515
+ // Minute
41516
+ m: function (date, token) {
41517
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
41518
+ },
41519
+ // Second
41520
+ s: function (date, token) {
41521
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
41522
+ },
41523
+ // Fraction of second
41524
+ S: function (date, token) {
41525
+ var numberOfDigits = token.length;
41526
+ var milliseconds = date.getUTCMilliseconds();
41527
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
41528
+ return addLeadingZeros(fractionalSeconds, token.length);
41529
+ }
41530
+ };
41531
+ var formatters$3 = formatters$2;
41532
+
41533
41533
  var dayPeriodEnum = {
41534
41534
  am: 'am',
41535
41535
  pm: 'pm',
@@ -42356,7 +42356,7 @@ var formatters = {
42356
42356
  }
42357
42357
  };
42358
42358
 
42359
- function formatTimezoneShort(offset, delimiter) {
42359
+ function formatTimezoneShort(offset, dirtyDelimiter) {
42360
42360
  var sign = offset > 0 ? '-' : '+';
42361
42361
  var absOffset = Math.abs(offset);
42362
42362
  var hours = Math.floor(absOffset / 60);
@@ -42366,6 +42366,7 @@ function formatTimezoneShort(offset, delimiter) {
42366
42366
  return sign + String(hours);
42367
42367
  }
42368
42368
 
42369
+ var delimiter = dirtyDelimiter || '';
42369
42370
  return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
42370
42371
  }
42371
42372
 
@@ -42771,7 +42772,7 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
42771
42772
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
42772
42773
  * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
42773
42774
  *
42774
- * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
42775
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
42775
42776
  * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
42776
42777
  *
42777
42778
  * ### v2.0.0 breaking changes:
@@ -44143,7 +44144,7 @@ var parsers = {
44143
44144
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
44144
44145
  return date;
44145
44146
  },
44146
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
44147
+ incompatibleTokens: ['b', 'B', 'H', 'k', 't', 'T']
44147
44148
  },
44148
44149
  // AM, PM, midnight
44149
44150
  b: {
@@ -44185,7 +44186,7 @@ var parsers = {
44185
44186
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
44186
44187
  return date;
44187
44188
  },
44188
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
44189
+ incompatibleTokens: ['a', 'B', 'H', 'k', 't', 'T']
44189
44190
  },
44190
44191
  // in the morning, in the afternoon, in the evening, at night
44191
44192
  B: {
@@ -44321,7 +44322,7 @@ var parsers = {
44321
44322
 
44322
44323
  return date;
44323
44324
  },
44324
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
44325
+ incompatibleTokens: ['h', 'H', 'k', 't', 'T']
44325
44326
  },
44326
44327
  // Hour [1-24]
44327
44328
  k: {
@@ -44679,7 +44680,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
44679
44680
  * | | | tt | ... | 2 |
44680
44681
  * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
44681
44682
  * | | | SS | 00, 01, ..., 99 | |
44682
- * | | | SSS | 000, 0001, ..., 999 | |
44683
+ * | | | SSS | 000, 001, ..., 999 | |
44683
44684
  * | | | SSSS | ... | 2 |
44684
44685
  * | Milliseconds timestamp | 20 | T | 512969520900 | |
44685
44686
  * | | | TT | ... | 2 |
@@ -45202,7 +45203,7 @@ function cleanEscapedString(input) {
45202
45203
  * | | | tt | ... | 2 |
45203
45204
  * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
45204
45205
  * | | | SS | 00, 01, ..., 99 | |
45205
- * | | | SSS | 000, 0001, ..., 999 | |
45206
+ * | | | SSS | 000, 001, ..., 999 | |
45206
45207
  * | | | SSSS | ... | 2 |
45207
45208
  * | Milliseconds timestamp | 20 | T | 512969520900 | |
45208
45209
  * | | | TT | ... | 2 |
package/dist/index.esm.js CHANGED
@@ -41264,101 +41264,6 @@ function subMilliseconds(dirtyDate, dirtyAmount) {
41264
41264
  return addMilliseconds(dirtyDate, -amount);
41265
41265
  }
41266
41266
 
41267
- function addLeadingZeros(number, targetLength) {
41268
- var sign = number < 0 ? '-' : '';
41269
- var output = Math.abs(number).toString();
41270
-
41271
- while (output.length < targetLength) {
41272
- output = '0' + output;
41273
- }
41274
-
41275
- return sign + output;
41276
- }
41277
-
41278
- /*
41279
- * | | Unit | | Unit |
41280
- * |-----|--------------------------------|-----|--------------------------------|
41281
- * | a | AM, PM | A* | |
41282
- * | d | Day of month | D | |
41283
- * | h | Hour [1-12] | H | Hour [0-23] |
41284
- * | m | Minute | M | Month |
41285
- * | s | Second | S | Fraction of second |
41286
- * | y | Year (abs) | Y | |
41287
- *
41288
- * Letters marked by * are not implemented but reserved by Unicode standard.
41289
- */
41290
-
41291
- var formatters$2 = {
41292
- // Year
41293
- y: function (date, token) {
41294
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
41295
- // | Year | y | yy | yyy | yyyy | yyyyy |
41296
- // |----------|-------|----|-------|-------|-------|
41297
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
41298
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
41299
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
41300
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
41301
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
41302
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
41303
-
41304
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
41305
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
41306
- },
41307
- // Month
41308
- M: function (date, token) {
41309
- var month = date.getUTCMonth();
41310
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
41311
- },
41312
- // Day of the month
41313
- d: function (date, token) {
41314
- return addLeadingZeros(date.getUTCDate(), token.length);
41315
- },
41316
- // AM or PM
41317
- a: function (date, token) {
41318
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
41319
-
41320
- switch (token) {
41321
- case 'a':
41322
- case 'aa':
41323
- return dayPeriodEnumValue.toUpperCase();
41324
-
41325
- case 'aaa':
41326
- return dayPeriodEnumValue;
41327
-
41328
- case 'aaaaa':
41329
- return dayPeriodEnumValue[0];
41330
-
41331
- case 'aaaa':
41332
- default:
41333
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
41334
- }
41335
- },
41336
- // Hour [1-12]
41337
- h: function (date, token) {
41338
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
41339
- },
41340
- // Hour [0-23]
41341
- H: function (date, token) {
41342
- return addLeadingZeros(date.getUTCHours(), token.length);
41343
- },
41344
- // Minute
41345
- m: function (date, token) {
41346
- return addLeadingZeros(date.getUTCMinutes(), token.length);
41347
- },
41348
- // Second
41349
- s: function (date, token) {
41350
- return addLeadingZeros(date.getUTCSeconds(), token.length);
41351
- },
41352
- // Fraction of second
41353
- S: function (date, token) {
41354
- var numberOfDigits = token.length;
41355
- var milliseconds = date.getUTCMilliseconds();
41356
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
41357
- return addLeadingZeros(fractionalSeconds, token.length);
41358
- }
41359
- };
41360
- var formatters$3 = formatters$2;
41361
-
41362
41267
  var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
41363
41268
  // See issue: https://github.com/date-fns/date-fns/issues/376
41364
41269
 
@@ -41521,6 +41426,101 @@ function getUTCWeek(dirtyDate, options) {
41521
41426
  return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
41522
41427
  }
41523
41428
 
41429
+ function addLeadingZeros(number, targetLength) {
41430
+ var sign = number < 0 ? '-' : '';
41431
+ var output = Math.abs(number).toString();
41432
+
41433
+ while (output.length < targetLength) {
41434
+ output = '0' + output;
41435
+ }
41436
+
41437
+ return sign + output;
41438
+ }
41439
+
41440
+ /*
41441
+ * | | Unit | | Unit |
41442
+ * |-----|--------------------------------|-----|--------------------------------|
41443
+ * | a | AM, PM | A* | |
41444
+ * | d | Day of month | D | |
41445
+ * | h | Hour [1-12] | H | Hour [0-23] |
41446
+ * | m | Minute | M | Month |
41447
+ * | s | Second | S | Fraction of second |
41448
+ * | y | Year (abs) | Y | |
41449
+ *
41450
+ * Letters marked by * are not implemented but reserved by Unicode standard.
41451
+ */
41452
+
41453
+ var formatters$2 = {
41454
+ // Year
41455
+ y: function (date, token) {
41456
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
41457
+ // | Year | y | yy | yyy | yyyy | yyyyy |
41458
+ // |----------|-------|----|-------|-------|-------|
41459
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
41460
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
41461
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
41462
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
41463
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
41464
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
41465
+
41466
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
41467
+ return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
41468
+ },
41469
+ // Month
41470
+ M: function (date, token) {
41471
+ var month = date.getUTCMonth();
41472
+ return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
41473
+ },
41474
+ // Day of the month
41475
+ d: function (date, token) {
41476
+ return addLeadingZeros(date.getUTCDate(), token.length);
41477
+ },
41478
+ // AM or PM
41479
+ a: function (date, token) {
41480
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
41481
+
41482
+ switch (token) {
41483
+ case 'a':
41484
+ case 'aa':
41485
+ return dayPeriodEnumValue.toUpperCase();
41486
+
41487
+ case 'aaa':
41488
+ return dayPeriodEnumValue;
41489
+
41490
+ case 'aaaaa':
41491
+ return dayPeriodEnumValue[0];
41492
+
41493
+ case 'aaaa':
41494
+ default:
41495
+ return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
41496
+ }
41497
+ },
41498
+ // Hour [1-12]
41499
+ h: function (date, token) {
41500
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
41501
+ },
41502
+ // Hour [0-23]
41503
+ H: function (date, token) {
41504
+ return addLeadingZeros(date.getUTCHours(), token.length);
41505
+ },
41506
+ // Minute
41507
+ m: function (date, token) {
41508
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
41509
+ },
41510
+ // Second
41511
+ s: function (date, token) {
41512
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
41513
+ },
41514
+ // Fraction of second
41515
+ S: function (date, token) {
41516
+ var numberOfDigits = token.length;
41517
+ var milliseconds = date.getUTCMilliseconds();
41518
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
41519
+ return addLeadingZeros(fractionalSeconds, token.length);
41520
+ }
41521
+ };
41522
+ var formatters$3 = formatters$2;
41523
+
41524
41524
  var dayPeriodEnum = {
41525
41525
  am: 'am',
41526
41526
  pm: 'pm',
@@ -42347,7 +42347,7 @@ var formatters = {
42347
42347
  }
42348
42348
  };
42349
42349
 
42350
- function formatTimezoneShort(offset, delimiter) {
42350
+ function formatTimezoneShort(offset, dirtyDelimiter) {
42351
42351
  var sign = offset > 0 ? '-' : '+';
42352
42352
  var absOffset = Math.abs(offset);
42353
42353
  var hours = Math.floor(absOffset / 60);
@@ -42357,6 +42357,7 @@ function formatTimezoneShort(offset, delimiter) {
42357
42357
  return sign + String(hours);
42358
42358
  }
42359
42359
 
42360
+ var delimiter = dirtyDelimiter || '';
42360
42361
  return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
42361
42362
  }
42362
42363
 
@@ -42762,7 +42763,7 @@ var unescapedLatinCharacterRegExp$1 = /[a-zA-Z]/;
42762
42763
  * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
42763
42764
  * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
42764
42765
  *
42765
- * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
42766
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
42766
42767
  * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
42767
42768
  *
42768
42769
  * ### v2.0.0 breaking changes:
@@ -44134,7 +44135,7 @@ var parsers = {
44134
44135
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
44135
44136
  return date;
44136
44137
  },
44137
- incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
44138
+ incompatibleTokens: ['b', 'B', 'H', 'k', 't', 'T']
44138
44139
  },
44139
44140
  // AM, PM, midnight
44140
44141
  b: {
@@ -44176,7 +44177,7 @@ var parsers = {
44176
44177
  date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
44177
44178
  return date;
44178
44179
  },
44179
- incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
44180
+ incompatibleTokens: ['a', 'B', 'H', 'k', 't', 'T']
44180
44181
  },
44181
44182
  // in the morning, in the afternoon, in the evening, at night
44182
44183
  B: {
@@ -44312,7 +44313,7 @@ var parsers = {
44312
44313
 
44313
44314
  return date;
44314
44315
  },
44315
- incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
44316
+ incompatibleTokens: ['h', 'H', 'k', 't', 'T']
44316
44317
  },
44317
44318
  // Hour [1-24]
44318
44319
  k: {
@@ -44670,7 +44671,7 @@ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
44670
44671
  * | | | tt | ... | 2 |
44671
44672
  * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
44672
44673
  * | | | SS | 00, 01, ..., 99 | |
44673
- * | | | SSS | 000, 0001, ..., 999 | |
44674
+ * | | | SSS | 000, 001, ..., 999 | |
44674
44675
  * | | | SSSS | ... | 2 |
44675
44676
  * | Milliseconds timestamp | 20 | T | 512969520900 | |
44676
44677
  * | | | TT | ... | 2 |
@@ -45193,7 +45194,7 @@ function cleanEscapedString(input) {
45193
45194
  * | | | tt | ... | 2 |
45194
45195
  * | Fraction of second | 30 | S | 0, 1, ..., 9 | |
45195
45196
  * | | | SS | 00, 01, ..., 99 | |
45196
- * | | | SSS | 000, 0001, ..., 999 | |
45197
+ * | | | SSS | 000, 001, ..., 999 | |
45197
45198
  * | | | SSSS | ... | 2 |
45198
45199
  * | Milliseconds timestamp | 20 | T | 512969520900 | |
45199
45200
  * | | | TT | ... | 2 |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cosmotech/core",
3
3
  "private": false,
4
- "version": "1.6.1",
4
+ "version": "1.6.2",
5
5
  "description": "",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.esm.js",