@hebcal/core 5.9.3 → 5.9.5
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 +36 -12
- 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 +27 -9
- 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 +31 -10
- package/dist/index.cjs.map +1 -1
- package/dist/omer.d.ts +6 -1
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +11 -11
package/dist/bundle.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @hebcal/core v5.9.
|
|
1
|
+
/*! @hebcal/core v5.9.5, 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.5';
|
|
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 */
|
|
@@ -2705,10 +2705,10 @@ function requireSharedStore () {
|
|
|
2705
2705
|
var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
2706
2706
|
|
|
2707
2707
|
(store.versions || (store.versions = [])).push({
|
|
2708
|
-
version: '3.
|
|
2708
|
+
version: '3.42.0',
|
|
2709
2709
|
mode: IS_PURE ? 'pure' : 'global',
|
|
2710
2710
|
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
2711
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2711
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE',
|
|
2712
2712
|
source: 'https://github.com/zloirock/core-js'
|
|
2713
2713
|
});
|
|
2714
2714
|
return sharedStore.exports;
|
|
@@ -8185,6 +8185,9 @@ class GeoLocation {
|
|
|
8185
8185
|
* The timeZone to set.
|
|
8186
8186
|
*/
|
|
8187
8187
|
setTimeZone(timeZoneId) {
|
|
8188
|
+
if (!timeZoneId) {
|
|
8189
|
+
throw new RangeError('Invalid timeZoneId');
|
|
8190
|
+
}
|
|
8188
8191
|
this.timeZoneId = timeZoneId;
|
|
8189
8192
|
}
|
|
8190
8193
|
}
|
|
@@ -9278,6 +9281,9 @@ class Location extends GeoLocation {
|
|
|
9278
9281
|
if (isNaN(long) || long < -180 || long > 180) {
|
|
9279
9282
|
throw new RangeError(`Longitude ${longitude} out of range [-180,180]`);
|
|
9280
9283
|
}
|
|
9284
|
+
if (!tzid) {
|
|
9285
|
+
throw new RangeError(`Invalid timezone`);
|
|
9286
|
+
}
|
|
9281
9287
|
const elev = typeof elevation === 'number' && elevation > 0 ? elevation : 0;
|
|
9282
9288
|
super(cityName || null, lat, long, elev, tzid);
|
|
9283
9289
|
this.il = Boolean(il);
|
|
@@ -11229,19 +11235,30 @@ const sefirot = {
|
|
|
11229
11235
|
'Foundation',
|
|
11230
11236
|
'Majesty',
|
|
11231
11237
|
],
|
|
11238
|
+
pfxWords: null,
|
|
11232
11239
|
},
|
|
11233
11240
|
he: {
|
|
11234
|
-
infix:
|
|
11235
|
-
infix26:
|
|
11241
|
+
infix: null,
|
|
11242
|
+
infix26: null,
|
|
11236
11243
|
words: [
|
|
11237
11244
|
'',
|
|
11238
11245
|
'חֶֽסֶד',
|
|
11239
|
-
'
|
|
11246
|
+
'גְּבוּרָה',
|
|
11240
11247
|
'תִּפְאֶֽרֶת',
|
|
11241
11248
|
'נֶּֽצַח',
|
|
11242
11249
|
'הוֹד',
|
|
11243
11250
|
'יְּסוֹד',
|
|
11244
|
-
'
|
|
11251
|
+
'מַלְכוּת',
|
|
11252
|
+
],
|
|
11253
|
+
pfxWords: [
|
|
11254
|
+
'',
|
|
11255
|
+
'שֶׁבְּחֶֽסֶד',
|
|
11256
|
+
'שֶׁבִּגְבוּרָה',
|
|
11257
|
+
'שֶׁבְּתִפְאֶֽרֶת',
|
|
11258
|
+
'שֶׁבְּנֶֽצַח',
|
|
11259
|
+
'שֶׁבְּהוֹד',
|
|
11260
|
+
'שֶׁבִּיְסוֹד',
|
|
11261
|
+
'שֶׁבְּמַלְכוּת',
|
|
11245
11262
|
],
|
|
11246
11263
|
},
|
|
11247
11264
|
translit: {
|
|
@@ -11257,6 +11274,7 @@ const sefirot = {
|
|
|
11257
11274
|
'Yesod',
|
|
11258
11275
|
'Malkhut',
|
|
11259
11276
|
],
|
|
11277
|
+
pfxWords: null,
|
|
11260
11278
|
},
|
|
11261
11279
|
};
|
|
11262
11280
|
function checkDay(omerDay) {
|
|
@@ -11347,7 +11365,7 @@ function omerTodayIsHe(omerDay) {
|
|
|
11347
11365
|
}
|
|
11348
11366
|
if (omerDay > 6) {
|
|
11349
11367
|
str = str.trim(); // remove trailing space before comma
|
|
11350
|
-
str += ',
|
|
11368
|
+
str += ', שֶׁהֵם ';
|
|
11351
11369
|
const weeks = Math.floor(omerDay / 7);
|
|
11352
11370
|
const days = omerDay % 7;
|
|
11353
11371
|
if (weeks > 2) {
|
|
@@ -11412,9 +11430,15 @@ class OmerEvent extends Event {
|
|
|
11412
11430
|
}
|
|
11413
11431
|
const [weekNum, daysWithinWeeks] = getWeeks(this.omer);
|
|
11414
11432
|
const config = sefirot[lang];
|
|
11415
|
-
const
|
|
11416
|
-
const
|
|
11417
|
-
const
|
|
11433
|
+
const pfxWords = config.pfxWords;
|
|
11434
|
+
const words = config.words;
|
|
11435
|
+
const week = pfxWords ? pfxWords[weekNum] : words[weekNum];
|
|
11436
|
+
const dayWithinWeek = words[daysWithinWeeks];
|
|
11437
|
+
const infix = pfxWords
|
|
11438
|
+
? ''
|
|
11439
|
+
: weekNum === 2 || weekNum === 6
|
|
11440
|
+
? config.infix26
|
|
11441
|
+
: config.infix;
|
|
11418
11442
|
return (dayWithinWeek + ' ' + infix + week).normalize();
|
|
11419
11443
|
}
|
|
11420
11444
|
/**
|