@hebcal/core 5.8.5 → 5.8.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.
package/dist/bundle.js CHANGED
@@ -1,11 +1,11 @@
1
- /*! @hebcal/core v5.8.5 */
1
+ /*! @hebcal/core v5.8.6 */
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.8.5';
6
+ const version = '5.8.6';
7
7
 
8
- /*! @hebcal/hdate v0.12.0 */
8
+ /*! @hebcal/hdate v0.13.2 */
9
9
  /* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
10
10
  /** @private */
11
11
  const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -137,7 +137,7 @@ function abs2greg(abs) {
137
137
  return dt;
138
138
  }
139
139
 
140
- /*! @hebcal/hdate v0.12.0 */
140
+ /*! @hebcal/hdate v0.13.2 */
141
141
 
142
142
  /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
143
143
  /**
@@ -151,7 +151,7 @@ exports.greg.greg2abs = greg2abs;
151
151
  exports.greg.isDate = isDate;
152
152
  exports.greg.isLeapYear = isGregLeapYear;
153
153
 
154
- /*! @hebcal/hdate v0.12.0 */
154
+ /*! @hebcal/hdate v0.13.2 */
155
155
  /*
156
156
  * More minimal HDate
157
157
  */
@@ -207,7 +207,7 @@ const monthNames0 = ['', 'Nisan', 'Iyyar', 'Sivan', 'Tamuz', 'Av', 'Elul', 'Tish
207
207
  * Regular years are index 0 and leap years are index 1.
208
208
  * @private
209
209
  */
210
- const monthNames = [monthNames0.concat(['Adar', 'Nisan']), monthNames0.concat(['Adar I', 'Adar II', 'Nisan'])];
210
+ const monthNames = [[...monthNames0, 'Adar', 'Nisan'], [...monthNames0, 'Adar I', 'Adar II', 'Nisan']];
211
211
  const edCache = new Map();
212
212
  const EPOCH = -1373428;
213
213
  // Avg year length in the cycle (19 solar years with 235 lunar months)
@@ -515,7 +515,7 @@ function monthFromName(monthName) {
515
515
  throw new RangeError(`Unable to parse month name: ${monthName}`);
516
516
  }
517
517
 
518
- /*! @hebcal/hdate v0.12.0 */
518
+ /*! @hebcal/hdate v0.13.2 */
519
519
  const NISAN$3 = months.NISAN;
520
520
  const CHESHVAN = months.CHESHVAN;
521
521
  const KISLEV$1 = months.KISLEV;
@@ -610,7 +610,7 @@ function getBirthdayHD(hyear, date) {
610
610
  };
611
611
  }
612
612
 
613
- /*! @hebcal/hdate v0.12.0 */
613
+ /*! @hebcal/hdate v0.13.2 */
614
614
  const GERESH = '׳';
615
615
  const GERSHAYIM = '״';
616
616
  const alefbet = {
@@ -726,7 +726,7 @@ function gematriyaStrToNum(str) {
726
726
  return num;
727
727
  }
728
728
 
729
- /*! @hebcal/hdate v0.12.0 */
729
+ /*! @hebcal/hdate v0.13.2 */
730
730
  const sefirot = {
731
731
  en: {
732
732
  infix: 'within ',
@@ -901,7 +901,7 @@ function omerEmoji(omerDay) {
901
901
  return String.fromCodePoint(codePoint);
902
902
  }
903
903
 
904
- /*! @hebcal/hdate v0.12.0 */
904
+ /*! @hebcal/hdate v0.13.2 */
905
905
 
906
906
  /**
907
907
  * Calculates the molad for a Hebrew month
@@ -933,7 +933,7 @@ function molad(year, month) {
933
933
  };
934
934
  }
935
935
 
936
- /*! @hebcal/hdate v0.12.0 */
936
+ /*! @hebcal/hdate v0.13.2 */
937
937
  /**
938
938
  * Formats a number with leading zeros so the resulting string is 4 digits long.
939
939
  * Similar to `string.padStart(4, '0')` but will also format
@@ -963,7 +963,7 @@ function pad2(num) {
963
963
  return String(num);
964
964
  }
965
965
 
966
- /*! @hebcal/hdate v0.12.0 */
966
+ /*! @hebcal/hdate v0.13.2 */
967
967
  const _formatters = new Map();
968
968
  /**
969
969
  * @private
@@ -1019,7 +1019,7 @@ function isoDateString(dt) {
1019
1019
  return pad4(dt.getFullYear()) + '-' + pad2(dt.getMonth() + 1) + '-' + pad2(dt.getDate());
1020
1020
  }
1021
1021
 
1022
- /*! @hebcal/hdate v0.12.0 */
1022
+ /*! @hebcal/hdate v0.13.2 */
1023
1023
  var poAshkenazi$1 = {
1024
1024
  "headers": {
1025
1025
  "plural-forms": "nplurals=2; plural=(n > 1);"
@@ -1031,7 +1031,7 @@ var poAshkenazi$1 = {
1031
1031
  }
1032
1032
  };
1033
1033
 
1034
- /*! @hebcal/hdate v0.12.0 */
1034
+ /*! @hebcal/hdate v0.13.2 */
1035
1035
  var poHe$1 = {
1036
1036
  "headers": {
1037
1037
  "plural-forms": "nplurals=2; plural=(n > 1);"
@@ -1056,7 +1056,7 @@ var poHe$1 = {
1056
1056
  }
1057
1057
  };
1058
1058
 
1059
- /*! @hebcal/hdate v0.12.0 */
1059
+ /*! @hebcal/hdate v0.13.2 */
1060
1060
  const noopLocale = {
1061
1061
  headers: {
1062
1062
  'plural-forms': 'nplurals=2; plural=(n!=1);'
@@ -1186,6 +1186,7 @@ class Locale {
1186
1186
  * After setting the locale to be used, all strings marked for translations
1187
1187
  * will be represented by the corresponding translation in the specified locale.
1188
1188
  * @param locale Locale name (i.e: `'he'`, `'fr'`)
1189
+ * @deprecated
1189
1190
  */
1190
1191
  static useLocale(locale) {
1191
1192
  const locale0 = checkLocale(locale);
@@ -1196,6 +1197,7 @@ class Locale {
1196
1197
  }
1197
1198
  /**
1198
1199
  * Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
1200
+ * @deprecated
1199
1201
  */
1200
1202
  static getLocaleName() {
1201
1203
  return activeName;
@@ -1265,7 +1267,7 @@ const poHeNoNikud$1 = {
1265
1267
  };
1266
1268
  Locale.addLocale('he-x-NoNikud', poHeNoNikud$1);
1267
1269
 
1268
- /*! @hebcal/hdate v0.12.0 */
1270
+ /*! @hebcal/hdate v0.13.2 */
1269
1271
 
1270
1272
  /*
1271
1273
  Hebcal - A Jewish Calendar Generator