@hebcal/core 5.9.3 → 5.9.4
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 +29 -8
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +3 -3
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +4 -1
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/omer.d.ts +6 -1
- package/dist/esm/omer.js +25 -7
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/index.cjs +29 -8
- package/dist/index.cjs.map +1 -1
- package/dist/omer.d.ts +6 -1
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +10 -10
package/dist/bundle.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @hebcal/core v5.9.
|
|
1
|
+
/*! @hebcal/core v5.9.4, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
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.9.
|
|
6
|
+
const version = '5.9.4';
|
|
7
7
|
|
|
8
8
|
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
@@ -9278,6 +9278,9 @@ class Location extends GeoLocation {
|
|
|
9278
9278
|
if (isNaN(long) || long < -180 || long > 180) {
|
|
9279
9279
|
throw new RangeError(`Longitude ${longitude} out of range [-180,180]`);
|
|
9280
9280
|
}
|
|
9281
|
+
if (!tzid) {
|
|
9282
|
+
throw new RangeError(`Invalid timezone`);
|
|
9283
|
+
}
|
|
9281
9284
|
const elev = typeof elevation === 'number' && elevation > 0 ? elevation : 0;
|
|
9282
9285
|
super(cityName || null, lat, long, elev, tzid);
|
|
9283
9286
|
this.il = Boolean(il);
|
|
@@ -11229,10 +11232,11 @@ const sefirot = {
|
|
|
11229
11232
|
'Foundation',
|
|
11230
11233
|
'Majesty',
|
|
11231
11234
|
],
|
|
11235
|
+
pfxWords: null,
|
|
11232
11236
|
},
|
|
11233
11237
|
he: {
|
|
11234
|
-
infix:
|
|
11235
|
-
infix26:
|
|
11238
|
+
infix: null,
|
|
11239
|
+
infix26: null,
|
|
11236
11240
|
words: [
|
|
11237
11241
|
'',
|
|
11238
11242
|
'חֶֽסֶד',
|
|
@@ -11243,6 +11247,16 @@ const sefirot = {
|
|
|
11243
11247
|
'יְּסוֹד',
|
|
11244
11248
|
'מַּלְכוּת',
|
|
11245
11249
|
],
|
|
11250
|
+
pfxWords: [
|
|
11251
|
+
'',
|
|
11252
|
+
'שֶׁבְּחֶֽסֶד',
|
|
11253
|
+
'שֶׁבִּגְבוּרָה',
|
|
11254
|
+
'שֶׁבְּתִפְאֶֽרֶת',
|
|
11255
|
+
'שֶׁבְּנֶֽצַח',
|
|
11256
|
+
'שֶׁבְּהוֹד',
|
|
11257
|
+
'שֶׁבִּיְּסוֹד',
|
|
11258
|
+
'שֶׁבְּמַלְכוּת',
|
|
11259
|
+
],
|
|
11246
11260
|
},
|
|
11247
11261
|
translit: {
|
|
11248
11262
|
infix: "sheb'",
|
|
@@ -11257,6 +11271,7 @@ const sefirot = {
|
|
|
11257
11271
|
'Yesod',
|
|
11258
11272
|
'Malkhut',
|
|
11259
11273
|
],
|
|
11274
|
+
pfxWords: null,
|
|
11260
11275
|
},
|
|
11261
11276
|
};
|
|
11262
11277
|
function checkDay(omerDay) {
|
|
@@ -11347,7 +11362,7 @@ function omerTodayIsHe(omerDay) {
|
|
|
11347
11362
|
}
|
|
11348
11363
|
if (omerDay > 6) {
|
|
11349
11364
|
str = str.trim(); // remove trailing space before comma
|
|
11350
|
-
str += ',
|
|
11365
|
+
str += ', שֶׁהֵם ';
|
|
11351
11366
|
const weeks = Math.floor(omerDay / 7);
|
|
11352
11367
|
const days = omerDay % 7;
|
|
11353
11368
|
if (weeks > 2) {
|
|
@@ -11412,9 +11427,15 @@ class OmerEvent extends Event {
|
|
|
11412
11427
|
}
|
|
11413
11428
|
const [weekNum, daysWithinWeeks] = getWeeks(this.omer);
|
|
11414
11429
|
const config = sefirot[lang];
|
|
11415
|
-
const
|
|
11416
|
-
const
|
|
11417
|
-
const
|
|
11430
|
+
const pfxWords = config.pfxWords;
|
|
11431
|
+
const words = config.words;
|
|
11432
|
+
const week = pfxWords ? pfxWords[weekNum] : words[weekNum];
|
|
11433
|
+
const dayWithinWeek = words[daysWithinWeeks];
|
|
11434
|
+
const infix = pfxWords
|
|
11435
|
+
? ''
|
|
11436
|
+
: weekNum === 2 || weekNum === 6
|
|
11437
|
+
? config.infix26
|
|
11438
|
+
: config.infix;
|
|
11418
11439
|
return (dayWithinWeek + ' ' + infix + week).normalize();
|
|
11419
11440
|
}
|
|
11420
11441
|
/**
|