@hebcal/core 5.7.6 → 5.7.7

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/bundle.js CHANGED
@@ -1,10 +1,11 @@
1
- /*! @hebcal/core v5.7.6 */
1
+ /*! @hebcal/core v5.7.7 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
5
5
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
6
- const version = '5.7.6';
6
+ const version = '5.7.7';
7
7
 
8
+ /*! @hebcal/hdate v0.12.0 */
8
9
  /* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
9
10
  /** @private */
10
11
  const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -136,6 +137,8 @@ function abs2greg(abs) {
136
137
  return dt;
137
138
  }
138
139
 
140
+ /*! @hebcal/hdate v0.12.0 */
141
+
139
142
  /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
140
143
  /**
141
144
  * Gregorian date helper functions
@@ -148,6 +151,7 @@ exports.greg.greg2abs = greg2abs;
148
151
  exports.greg.isDate = isDate;
149
152
  exports.greg.isLeapYear = isGregLeapYear;
150
153
 
154
+ /*! @hebcal/hdate v0.12.0 */
151
155
  /*
152
156
  * More minimal HDate
153
157
  */
@@ -474,6 +478,7 @@ function monthFromName(monthName) {
474
478
  return ADAR_I$2;
475
479
  }
476
480
  return ADAR_II$2;
481
+ // else assume sheini
477
482
  }
478
483
  break;
479
484
  case 'ס':
@@ -510,6 +515,7 @@ function monthFromName(monthName) {
510
515
  throw new RangeError(`Unable to parse month name: ${monthName}`);
511
516
  }
512
517
 
518
+ /*! @hebcal/hdate v0.12.0 */
513
519
  const NISAN$3 = months.NISAN;
514
520
  const CHESHVAN = months.CHESHVAN;
515
521
  const KISLEV$1 = months.KISLEV;
@@ -604,6 +610,7 @@ function getBirthdayHD(hyear, date) {
604
610
  };
605
611
  }
606
612
 
613
+ /*! @hebcal/hdate v0.12.0 */
607
614
  const GERESH = '׳';
608
615
  const GERSHAYIM = '״';
609
616
  const alefbet = {
@@ -719,6 +726,7 @@ function gematriyaStrToNum(str) {
719
726
  return num;
720
727
  }
721
728
 
729
+ /*! @hebcal/hdate v0.12.0 */
722
730
  const sefirot = {
723
731
  en: {
724
732
  infix: 'within ',
@@ -893,6 +901,8 @@ function omerEmoji(omerDay) {
893
901
  return String.fromCodePoint(codePoint);
894
902
  }
895
903
 
904
+ /*! @hebcal/hdate v0.12.0 */
905
+
896
906
  /**
897
907
  * Calculates the molad for a Hebrew month
898
908
  */
@@ -923,6 +933,7 @@ function molad(year, month) {
923
933
  };
924
934
  }
925
935
 
936
+ /*! @hebcal/hdate v0.12.0 */
926
937
  /**
927
938
  * Formats a number with leading zeros so the resulting string is 4 digits long.
928
939
  * Similar to `string.padStart(4, '0')` but will also format
@@ -952,6 +963,7 @@ function pad2(num) {
952
963
  return String(num);
953
964
  }
954
965
 
966
+ /*! @hebcal/hdate v0.12.0 */
955
967
  const _formatters = new Map();
956
968
  /**
957
969
  * @private
@@ -1007,6 +1019,7 @@ function isoDateString(dt) {
1007
1019
  return pad4(dt.getFullYear()) + '-' + pad2(dt.getMonth() + 1) + '-' + pad2(dt.getDate());
1008
1020
  }
1009
1021
 
1022
+ /*! @hebcal/hdate v0.12.0 */
1010
1023
  var poAshkenazi$1 = {
1011
1024
  "headers": {
1012
1025
  "plural-forms": "nplurals=2; plural=(n > 1);"
@@ -1018,6 +1031,7 @@ var poAshkenazi$1 = {
1018
1031
  }
1019
1032
  };
1020
1033
 
1034
+ /*! @hebcal/hdate v0.12.0 */
1021
1035
  var poHe$1 = {
1022
1036
  "headers": {
1023
1037
  "plural-forms": "nplurals=2; plural=(n > 1);"
@@ -1042,6 +1056,7 @@ var poHe$1 = {
1042
1056
  }
1043
1057
  };
1044
1058
 
1059
+ /*! @hebcal/hdate v0.12.0 */
1045
1060
  const noopLocale = {
1046
1061
  headers: {
1047
1062
  'plural-forms': 'nplurals=2; plural=(n!=1);'
@@ -1250,6 +1265,8 @@ const poHeNoNikud$1 = {
1250
1265
  };
1251
1266
  Locale.addLocale('he-x-NoNikud', poHeNoNikud$1);
1252
1267
 
1268
+ /*! @hebcal/hdate v0.12.0 */
1269
+
1253
1270
  /*
1254
1271
  Hebcal - A Jewish Calendar Generator
1255
1272
  Copyright (c) 1994-2020 Danny Sadinoff