cronstrue 2.10.0 → 2.12.0

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.
Files changed (102) hide show
  1. package/dist/cronstrue-i18n.js +100 -3
  2. package/dist/cronstrue-i18n.min.js +1 -1
  3. package/dist/cronstrue.js +5 -1
  4. package/dist/cronstrue.min.js +1 -1
  5. package/dist/i18n/locale.d.ts +1 -0
  6. package/dist/i18n/locales/af.d.ts +1 -0
  7. package/dist/i18n/locales/be.d.ts +1 -0
  8. package/dist/i18n/locales/ca.d.ts +1 -0
  9. package/dist/i18n/locales/cs.d.ts +1 -0
  10. package/dist/i18n/locales/da.d.ts +1 -0
  11. package/dist/i18n/locales/de.d.ts +1 -0
  12. package/dist/i18n/locales/en.d.ts +1 -0
  13. package/dist/i18n/locales/es.d.ts +1 -0
  14. package/dist/i18n/locales/fa.d.ts +1 -0
  15. package/dist/i18n/locales/fi.d.ts +1 -0
  16. package/dist/i18n/locales/fr.d.ts +1 -0
  17. package/dist/i18n/locales/he.d.ts +1 -0
  18. package/dist/i18n/locales/hu.d.ts +1 -0
  19. package/dist/i18n/locales/id.d.ts +1 -0
  20. package/dist/i18n/locales/it.d.ts +1 -0
  21. package/dist/i18n/locales/ja.d.ts +1 -0
  22. package/dist/i18n/locales/ko.d.ts +1 -0
  23. package/dist/i18n/locales/nb.d.ts +1 -0
  24. package/dist/i18n/locales/nl.d.ts +1 -0
  25. package/dist/i18n/locales/pl.d.ts +1 -0
  26. package/dist/i18n/locales/pt_BR.d.ts +1 -0
  27. package/dist/i18n/locales/pt_PT.d.ts +1 -0
  28. package/dist/i18n/locales/ro.d.ts +1 -0
  29. package/dist/i18n/locales/ru.d.ts +1 -0
  30. package/dist/i18n/locales/sk.d.ts +1 -0
  31. package/dist/i18n/locales/sl.d.ts +1 -0
  32. package/dist/i18n/locales/sv.d.ts +1 -0
  33. package/dist/i18n/locales/sw.d.ts +1 -0
  34. package/dist/i18n/locales/tr.d.ts +1 -0
  35. package/dist/i18n/locales/uk.d.ts +1 -0
  36. package/dist/i18n/locales/zh_CN.d.ts +1 -0
  37. package/dist/i18n/locales/zh_TW.d.ts +1 -0
  38. package/locales/af.js +3 -0
  39. package/locales/af.min.js +1 -1
  40. package/locales/be.js +3 -0
  41. package/locales/be.min.js +1 -1
  42. package/locales/ca.js +3 -0
  43. package/locales/ca.min.js +1 -1
  44. package/locales/cs.js +3 -0
  45. package/locales/cs.min.js +1 -1
  46. package/locales/da.js +3 -0
  47. package/locales/da.min.js +1 -1
  48. package/locales/de.js +3 -0
  49. package/locales/de.min.js +1 -1
  50. package/locales/en.js +3 -0
  51. package/locales/en.min.js +1 -1
  52. package/locales/es.js +3 -0
  53. package/locales/es.min.js +1 -1
  54. package/locales/fa.js +3 -0
  55. package/locales/fa.min.js +1 -1
  56. package/locales/fi.js +3 -0
  57. package/locales/fi.min.js +1 -1
  58. package/locales/fr.js +5 -2
  59. package/locales/fr.min.js +1 -1
  60. package/locales/he.js +3 -0
  61. package/locales/he.min.js +1 -1
  62. package/locales/hu.js +3 -0
  63. package/locales/hu.min.js +1 -1
  64. package/locales/id.js +3 -0
  65. package/locales/id.min.js +1 -1
  66. package/locales/it.js +3 -0
  67. package/locales/it.min.js +1 -1
  68. package/locales/ja.js +3 -0
  69. package/locales/ja.min.js +1 -1
  70. package/locales/ko.js +3 -0
  71. package/locales/ko.min.js +1 -1
  72. package/locales/nb.js +3 -0
  73. package/locales/nb.min.js +1 -1
  74. package/locales/nl.js +3 -0
  75. package/locales/nl.min.js +1 -1
  76. package/locales/pl.js +3 -0
  77. package/locales/pl.min.js +1 -1
  78. package/locales/pt_BR.js +3 -0
  79. package/locales/pt_BR.min.js +1 -1
  80. package/locales/pt_PT.js +3 -0
  81. package/locales/pt_PT.min.js +1 -1
  82. package/locales/ro.js +3 -0
  83. package/locales/ro.min.js +1 -1
  84. package/locales/ru.js +3 -0
  85. package/locales/ru.min.js +1 -1
  86. package/locales/sk.js +3 -0
  87. package/locales/sk.min.js +1 -1
  88. package/locales/sl.js +3 -0
  89. package/locales/sl.min.js +1 -1
  90. package/locales/sv.js +3 -0
  91. package/locales/sv.min.js +1 -1
  92. package/locales/sw.js +3 -0
  93. package/locales/sw.min.js +1 -1
  94. package/locales/tr.js +3 -0
  95. package/locales/tr.min.js +1 -1
  96. package/locales/uk.js +3 -0
  97. package/locales/uk.min.js +1 -1
  98. package/locales/zh_CN.js +3 -0
  99. package/locales/zh_CN.min.js +1 -1
  100. package/locales/zh_TW.js +3 -0
  101. package/locales/zh_TW.min.js +1 -1
  102. package/package.json +1 -1
@@ -420,7 +420,8 @@ var ExpressionDescriptor = (function () {
420
420
  return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(), s);
421
421
  }
422
422
  }, function (s) {
423
- return _this.i18n.commaX0ThroughX1();
423
+ var domSpecified = _this.expressionParts[3] != "*";
424
+ return domSpecified ? _this.i18n.commaAndX0ThroughX1() : _this.i18n.commaX0ThroughX1();
424
425
  }, function (s) {
425
426
  var format = null;
426
427
  if (s.indexOf("#") > -1) {
@@ -843,6 +844,9 @@ var af = (function () {
843
844
  af.prototype.commaX0ThroughX1 = function () {
844
845
  return ", %s deur na %s";
845
846
  };
847
+ af.prototype.commaAndX0ThroughX1 = function () {
848
+ return ", en %s deur na %s";
849
+ };
846
850
  af.prototype.first = function () {
847
851
  return "eerste";
848
852
  };
@@ -1028,6 +1032,9 @@ var be = (function () {
1028
1032
  be.prototype.commaX0ThroughX1 = function () {
1029
1033
  return ", %s па %s";
1030
1034
  };
1035
+ be.prototype.commaAndX0ThroughX1 = function () {
1036
+ return ", і %s па %s";
1037
+ };
1031
1038
  be.prototype.first = function () {
1032
1039
  return "першы";
1033
1040
  };
@@ -1219,6 +1226,9 @@ var ca = (function () {
1219
1226
  ca.prototype.commaX0ThroughX1 = function () {
1220
1227
  return ", de %s a %s";
1221
1228
  };
1229
+ ca.prototype.commaAndX0ThroughX1 = function () {
1230
+ return ", i de %s a %s";
1231
+ };
1222
1232
  ca.prototype.everyHour = function () {
1223
1233
  return "cada hora";
1224
1234
  };
@@ -1392,6 +1402,9 @@ var cs = (function () {
1392
1402
  cs.prototype.commaX0ThroughX1 = function () {
1393
1403
  return ", od %s do %s";
1394
1404
  };
1405
+ cs.prototype.commaAndX0ThroughX1 = function () {
1406
+ return ", a od %s do %s";
1407
+ };
1395
1408
  cs.prototype.first = function () {
1396
1409
  return "první";
1397
1410
  };
@@ -1574,6 +1587,9 @@ var da = (function () {
1574
1587
  da.prototype.commaX0ThroughX1 = function () {
1575
1588
  return ", %s til og med %s";
1576
1589
  };
1590
+ da.prototype.commaAndX0ThroughX1 = function () {
1591
+ return ", og %s til og med %s";
1592
+ };
1577
1593
  da.prototype.everyHour = function () {
1578
1594
  return "hver time";
1579
1595
  };
@@ -1756,6 +1772,9 @@ var de = (function () {
1756
1772
  de.prototype.commaX0ThroughX1 = function () {
1757
1773
  return ", %s bis %s";
1758
1774
  };
1775
+ de.prototype.commaAndX0ThroughX1 = function () {
1776
+ return ", und %s bis %s";
1777
+ };
1759
1778
  de.prototype.first = function () {
1760
1779
  return "ersten";
1761
1780
  };
@@ -1938,6 +1957,9 @@ var en = (function () {
1938
1957
  en.prototype.commaX0ThroughX1 = function () {
1939
1958
  return ", %s through %s";
1940
1959
  };
1960
+ en.prototype.commaAndX0ThroughX1 = function () {
1961
+ return ", %s through %s";
1962
+ };
1941
1963
  en.prototype.first = function () {
1942
1964
  return "first";
1943
1965
  };
@@ -2132,6 +2154,9 @@ var es = (function () {
2132
2154
  es.prototype.commaX0ThroughX1 = function () {
2133
2155
  return ", de %s a %s";
2134
2156
  };
2157
+ es.prototype.commaAndX0ThroughX1 = function () {
2158
+ return ", y de %s a %s";
2159
+ };
2135
2160
  es.prototype.everyHour = function () {
2136
2161
  return "cada hora";
2137
2162
  };
@@ -2305,6 +2330,9 @@ var fa = (function () {
2305
2330
  fa.prototype.commaX0ThroughX1 = function () {
2306
2331
  return ", %s تا %s";
2307
2332
  };
2333
+ fa.prototype.commaAndX0ThroughX1 = function () {
2334
+ return ", و %s تا %s";
2335
+ };
2308
2336
  fa.prototype.first = function () {
2309
2337
  return "اول";
2310
2338
  };
@@ -2483,6 +2511,9 @@ var fi = (function () {
2483
2511
  fi.prototype.commaX0ThroughX1 = function () {
2484
2512
  return ", %s - %s";
2485
2513
  };
2514
+ fi.prototype.commaAndX0ThroughX1 = function () {
2515
+ return ", %s - %s";
2516
+ };
2486
2517
  fi.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
2487
2518
  return ", %s päivää ennen kuukauden viimeistä päivää";
2488
2519
  };
@@ -2666,11 +2697,14 @@ var fr = (function () {
2666
2697
  return ", tous les jours";
2667
2698
  };
2668
2699
  fr.prototype.commaEveryX0DaysOfTheWeek = function () {
2669
- return ", every %s days of the week";
2700
+ return ", tous les %s jours de la semaine";
2670
2701
  };
2671
2702
  fr.prototype.commaX0ThroughX1 = function () {
2672
2703
  return ", de %s à %s";
2673
2704
  };
2705
+ fr.prototype.commaAndX0ThroughX1 = function () {
2706
+ return ", et de %s à %s";
2707
+ };
2674
2708
  fr.prototype.first = function () {
2675
2709
  return "premier";
2676
2710
  };
@@ -2744,7 +2778,7 @@ var fr = (function () {
2744
2778
  return ", du %s au %s";
2745
2779
  };
2746
2780
  fr.prototype.commaStartingX0 = function () {
2747
- return ", départ %s";
2781
+ return ", à partir de %s";
2748
2782
  };
2749
2783
  fr.prototype.daysOfTheWeek = function () {
2750
2784
  return ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"];
@@ -2856,6 +2890,9 @@ var he = (function () {
2856
2890
  he.prototype.commaX0ThroughX1 = function () {
2857
2891
  return ", %s עד %s";
2858
2892
  };
2893
+ he.prototype.commaAndX0ThroughX1 = function () {
2894
+ return ", ו %s עד %s";
2895
+ };
2859
2896
  he.prototype.first = function () {
2860
2897
  return "ראשון";
2861
2898
  };
@@ -3025,6 +3062,9 @@ var hu = (function () {
3025
3062
  hu.prototype.commaX0ThroughX1 = function () {
3026
3063
  return ", %s - %s";
3027
3064
  };
3065
+ hu.prototype.commaAndX0ThroughX1 = function () {
3066
+ return ", és %s - %s";
3067
+ };
3028
3068
  hu.prototype.first = function () {
3029
3069
  return "első";
3030
3070
  };
@@ -3210,6 +3250,9 @@ var id = (function () {
3210
3250
  id.prototype.commaX0ThroughX1 = function () {
3211
3251
  return ", %s sampai %s";
3212
3252
  };
3253
+ id.prototype.commaAndX0ThroughX1 = function () {
3254
+ return ", dan %s sampai %s";
3255
+ };
3213
3256
  id.prototype.first = function () {
3214
3257
  return "pertama";
3215
3258
  };
@@ -3407,6 +3450,9 @@ var it = (function () {
3407
3450
  it.prototype.commaX0ThroughX1 = function () {
3408
3451
  return ", %s al %s";
3409
3452
  };
3453
+ it.prototype.commaAndX0ThroughX1 = function () {
3454
+ return ", e %s al %s";
3455
+ };
3410
3456
  it.prototype.everyHour = function () {
3411
3457
  return "ogni ora";
3412
3458
  };
@@ -3565,6 +3611,9 @@ var ja = (function () {
3565
3611
  ja.prototype.commaX0ThroughX1 = function () {
3566
3612
  return "、%s から %s まで";
3567
3613
  };
3614
+ ja.prototype.commaAndX0ThroughX1 = function () {
3615
+ return "、%s から %s まで";
3616
+ };
3568
3617
  ja.prototype.first = function () {
3569
3618
  return "1 番目";
3570
3619
  };
@@ -3770,6 +3819,9 @@ var ko = (function () {
3770
3819
  ko.prototype.commaX0ThroughX1 = function () {
3771
3820
  return ", %s에서 %s까지";
3772
3821
  };
3822
+ ko.prototype.commaAndX0ThroughX1 = function () {
3823
+ return ", 및%s에서 %s까지";
3824
+ };
3773
3825
  ko.prototype.first = function () {
3774
3826
  return "첫 번째";
3775
3827
  };
@@ -3957,6 +4009,9 @@ var nb = (function () {
3957
4009
  nb.prototype.commaX0ThroughX1 = function () {
3958
4010
  return ", %s til og med %s";
3959
4011
  };
4012
+ nb.prototype.commaAndX0ThroughX1 = function () {
4013
+ return ", og %s til og med %s";
4014
+ };
3960
4015
  nb.prototype.everyHour = function () {
3961
4016
  return "hver time";
3962
4017
  };
@@ -4127,6 +4182,9 @@ var nl = (function () {
4127
4182
  nl.prototype.commaX0ThroughX1 = function () {
4128
4183
  return ", %s t/m %s";
4129
4184
  };
4185
+ nl.prototype.commaAndX0ThroughX1 = function () {
4186
+ return ", en %s t/m %s";
4187
+ };
4130
4188
  nl.prototype.first = function () {
4131
4189
  return "eerste";
4132
4190
  };
@@ -4321,6 +4379,9 @@ var pl = (function () {
4321
4379
  pl.prototype.commaX0ThroughX1 = function () {
4322
4380
  return ", od %s do %s";
4323
4381
  };
4382
+ pl.prototype.commaAndX0ThroughX1 = function () {
4383
+ return ", i od %s do %s";
4384
+ };
4324
4385
  pl.prototype.everyHour = function () {
4325
4386
  return "co godzinę";
4326
4387
  };
@@ -4500,6 +4561,9 @@ var pt_BR = (function () {
4500
4561
  pt_BR.prototype.commaX0ThroughX1 = function () {
4501
4562
  return ", de %s a %s";
4502
4563
  };
4564
+ pt_BR.prototype.commaAndX0ThroughX1 = function () {
4565
+ return ", e de %s a %s";
4566
+ };
4503
4567
  pt_BR.prototype.everyHour = function () {
4504
4568
  return "a cada hora";
4505
4569
  };
@@ -4682,6 +4746,9 @@ var pt_PT = (function () {
4682
4746
  pt_PT.prototype.commaX0ThroughX1 = function () {
4683
4747
  return ", de %s a %s";
4684
4748
  };
4749
+ pt_PT.prototype.commaAndX0ThroughX1 = function () {
4750
+ return ", e de %s a %s";
4751
+ };
4685
4752
  pt_PT.prototype.everyHour = function () {
4686
4753
  return "a cada hora";
4687
4754
  };
@@ -4855,6 +4922,9 @@ var ro = (function () {
4855
4922
  ro.prototype.commaX0ThroughX1 = function () {
4856
4923
  return ", de %s până %s";
4857
4924
  };
4925
+ ro.prototype.commaAndX0ThroughX1 = function () {
4926
+ return ", și de %s până %s";
4927
+ };
4858
4928
  ro.prototype.everyHour = function () {
4859
4929
  return "în fiecare oră";
4860
4930
  };
@@ -5037,6 +5107,9 @@ var ru = (function () {
5037
5107
  ru.prototype.commaX0ThroughX1 = function () {
5038
5108
  return ", %s по %s";
5039
5109
  };
5110
+ ru.prototype.commaAndX0ThroughX1 = function () {
5111
+ return ", и %s по %s";
5112
+ };
5040
5113
  ru.prototype.first = function () {
5041
5114
  return "первый";
5042
5115
  };
@@ -5219,6 +5292,9 @@ var sk = (function () {
5219
5292
  sk.prototype.commaX0ThroughX1 = function () {
5220
5293
  return ", od %s do %s";
5221
5294
  };
5295
+ sk.prototype.commaAndX0ThroughX1 = function () {
5296
+ return ", a od %s do %s";
5297
+ };
5222
5298
  sk.prototype.first = function () {
5223
5299
  return "prvý";
5224
5300
  };
@@ -5401,6 +5477,9 @@ var sl = (function () {
5401
5477
  sl.prototype.commaX0ThroughX1 = function () {
5402
5478
  return ", od %s do %s";
5403
5479
  };
5480
+ sl.prototype.commaAndX0ThroughX1 = function () {
5481
+ return ", in od %s do %s";
5482
+ };
5404
5483
  sl.prototype.everyHour = function () {
5405
5484
  return "vsako uro";
5406
5485
  };
@@ -5583,6 +5662,9 @@ var sv = (function () {
5583
5662
  sv.prototype.commaX0ThroughX1 = function () {
5584
5663
  return ", %s till %s";
5585
5664
  };
5665
+ sv.prototype.commaAndX0ThroughX1 = function () {
5666
+ return ", och %s till %s";
5667
+ };
5586
5668
  sv.prototype.first = function () {
5587
5669
  return "första";
5588
5670
  };
@@ -5765,6 +5847,9 @@ var sw = (function () {
5765
5847
  sw.prototype.commaX0ThroughX1 = function () {
5766
5848
  return ", %s hadi %s";
5767
5849
  };
5850
+ sw.prototype.commaAndX0ThroughX1 = function () {
5851
+ return ", na %s hadi %s";
5852
+ };
5768
5853
  sw.prototype.first = function () {
5769
5854
  return "ya kwanza";
5770
5855
  };
@@ -5947,6 +6032,9 @@ var tr = (function () {
5947
6032
  tr.prototype.commaX0ThroughX1 = function () {
5948
6033
  return ", %s ile %s arasında";
5949
6034
  };
6035
+ tr.prototype.commaAndX0ThroughX1 = function () {
6036
+ return ", ve %s ile %s arasında";
6037
+ };
5950
6038
  tr.prototype.first = function () {
5951
6039
  return "ilk";
5952
6040
  };
@@ -6129,6 +6217,9 @@ var uk = (function () {
6129
6217
  uk.prototype.commaX0ThroughX1 = function () {
6130
6218
  return ", %s по %s";
6131
6219
  };
6220
+ uk.prototype.commaAndX0ThroughX1 = function () {
6221
+ return ", та %s по %s";
6222
+ };
6132
6223
  uk.prototype.first = function () {
6133
6224
  return "перший";
6134
6225
  };
@@ -6320,6 +6411,9 @@ var zh_CN = (function () {
6320
6411
  zh_CN.prototype.commaX0ThroughX1 = function () {
6321
6412
  return ", %s至%s";
6322
6413
  };
6414
+ zh_CN.prototype.commaAndX0ThroughX1 = function () {
6415
+ return ", 和%s至%s";
6416
+ };
6323
6417
  zh_CN.prototype.first = function () {
6324
6418
  return "第一个";
6325
6419
  };
@@ -6498,6 +6592,9 @@ var zh_TW = (function () {
6498
6592
  zh_TW.prototype.commaX0ThroughX1 = function () {
6499
6593
  return ", %s 到 %s";
6500
6594
  };
6595
+ zh_TW.prototype.commaAndX0ThroughX1 = function () {
6596
+ return ", 和 %s 到 %s";
6597
+ };
6501
6598
  zh_TW.prototype.first = function () {
6502
6599
  return "第一個";
6503
6600
  };