jcal-zmanim 1.5.1 → 1.5.2
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/index.cjs +15 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +15 -12
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4305,19 +4305,19 @@ var _Utils = /*#__PURE__*/ function() {
|
|
|
4305
4305
|
*/ function getTimeIntervalTextStringHeb(time) {
|
|
4306
4306
|
var t = "";
|
|
4307
4307
|
if (time.hour > 0) {
|
|
4308
|
-
t += "".concat(time.hour.toString(), " ").concat(time.hour === 1 ? "\u05E9\u05E2\u05D4" : "\u05E9\u05E2\u05D5\u05EA");
|
|
4308
|
+
t += "".concat(time.hour.toString(), " ").concat(time.hour === 1 ? "\u05E9\u05E2\u05D4" : "\u05E9\u05E2\u05D5\u05EA", "\xad");
|
|
4309
4309
|
}
|
|
4310
4310
|
if (time.minute > 0) {
|
|
4311
4311
|
if (t.length) {
|
|
4312
4312
|
t += " ";
|
|
4313
4313
|
}
|
|
4314
|
-
t += "".concat(time.minute.toString(), " ").concat(time.minute === 1 ? "\u05D3\u05E7\u05D4" : "\u05D3\u05E7\u05D5\u05EA");
|
|
4314
|
+
t += "".concat(time.minute.toString(), " ").concat(time.minute === 1 ? "\u05D3\u05E7\u05D4" : "\u05D3\u05E7\u05D5\u05EA", "\xad");
|
|
4315
4315
|
}
|
|
4316
4316
|
if ((time.second || 0) > 0) {
|
|
4317
4317
|
if (t.length) {
|
|
4318
4318
|
t += " ";
|
|
4319
4319
|
}
|
|
4320
|
-
t += "".concat(Math.trunc(time.second || 0).toString(), " ").concat(time.second === 1 ? "\u05E9\u05E0\u05D9\u05D9\u05D4" : "\u05E9\u05E0\u05D9\u05D5\u05EA");
|
|
4320
|
+
t += "".concat(Math.trunc(time.second || 0).toString(), " ").concat(time.second === 1 ? "\u05E9\u05E0\u05D9\u05D9\u05D4" : "\u05E9\u05E0\u05D9\u05D5\u05EA", "\xad");
|
|
4321
4321
|
}
|
|
4322
4322
|
return t;
|
|
4323
4323
|
}
|
|
@@ -4330,19 +4330,19 @@ var _Utils = /*#__PURE__*/ function() {
|
|
|
4330
4330
|
*/ function getTimeIntervalTextString(time) {
|
|
4331
4331
|
var t = "";
|
|
4332
4332
|
if (time.hour > 0) {
|
|
4333
|
-
t += "".concat(time.hour.toString(), " ").concat(time.hour === 1 ? "hour" : "hours");
|
|
4333
|
+
t += "".concat(time.hour.toString(), " ").concat(time.hour === 1 ? "hour" : "hours", "\xad");
|
|
4334
4334
|
}
|
|
4335
4335
|
if (time.minute > 0) {
|
|
4336
4336
|
if (t.length) {
|
|
4337
4337
|
t += " ";
|
|
4338
4338
|
}
|
|
4339
|
-
t += "".concat(time.minute.toString(), " ").concat(time.minute === 1 ? "minute" : "minutes");
|
|
4339
|
+
t += "".concat(time.minute.toString(), " ").concat(time.minute === 1 ? "minute" : "minutes", "\xad");
|
|
4340
4340
|
}
|
|
4341
4341
|
if ((time.second || 0) > 0) {
|
|
4342
4342
|
if (t.length) {
|
|
4343
4343
|
t += " ";
|
|
4344
4344
|
}
|
|
4345
|
-
t += "".concat(Math.trunc(time.second || 0).toString(), " ").concat(time.second === 1 ? "second" : "seconds");
|
|
4345
|
+
t += "".concat(Math.trunc(time.second || 0).toString(), " ").concat(time.second === 1 ? "second" : "seconds", "\xad");
|
|
4346
4346
|
}
|
|
4347
4347
|
return t;
|
|
4348
4348
|
}
|
|
@@ -4409,7 +4409,7 @@ var _Utils = /*#__PURE__*/ function() {
|
|
|
4409
4409
|
value: /**
|
|
4410
4410
|
* Returns the given time in a formatted string.
|
|
4411
4411
|
* @param {Time} time An object in the format {hour : 23, minute :42, second: 18 }
|
|
4412
|
-
* @param {1 | -1} [sign]
|
|
4412
|
+
* @param {1 | -1} [sign]
|
|
4413
4413
|
* @param {Boolean} [army] If falsey, the returned string will be: 11:42:18 PM otherwise it will be 23:42:18
|
|
4414
4414
|
* @param {Boolean} [roundUp] If falsey, the numbers will converted to a whole number by rounding down, otherwise, up.
|
|
4415
4415
|
*/ function getTimeString(time, sign, army, roundUp) {
|
|
@@ -4597,10 +4597,10 @@ var _Utils = /*#__PURE__*/ function() {
|
|
|
4597
4597
|
{
|
|
4598
4598
|
key: "bothDates",
|
|
4599
4599
|
value: /***
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4600
|
+
* Takes either a jDate or a Date and returns both
|
|
4601
|
+
* @param date {Date |jDate}
|
|
4602
|
+
* @returns {{ sdate:Date, jdate:jDate }}
|
|
4603
|
+
*/ function bothDates(date) {
|
|
4604
4604
|
var jdate = _instanceof(date, Date) ? new jDate(date) : date;
|
|
4605
4605
|
var sdate = _instanceof(date, Date) ? date : jdate.getDate();
|
|
4606
4606
|
return {
|
|
@@ -13569,7 +13569,7 @@ function getNotifications(date, time, location, english, showGaonShir, showDafYo
|
|
|
13569
13569
|
var _Utils_bothDates = Utils.bothDates(date), sdate = _Utils_bothDates.sdate, jdate = _Utils_bothDates.jdate;
|
|
13570
13570
|
dayNotes.length = 0;
|
|
13571
13571
|
tefillahNotes.length = 0;
|
|
13572
|
-
var month = jdate.Month, day = jdate.Day, dow = jdate.DayOfWeek, _ZmanimUtils_getBasicShulZmanim = ZmanimUtils.getBasicShulZmanim(date, location), chatzosHayom = _ZmanimUtils_getBasicShulZmanim.chatzosHayom, chatzosHalayla = _ZmanimUtils_getBasicShulZmanim.chatzosHalayla, alos = _ZmanimUtils_getBasicShulZmanim.alos, shkia = _ZmanimUtils_getBasicShulZmanim.shkia, isAfterChatzosHayom = Utils.isTimeAfter(chatzosHayom, time), isAfterChatzosHalayla = typeof chatzosHalayla !== "undefined" && (Utils.isTimeAfter(chatzosHalayla, time) || chatzosHalayla.hour > 12 && time.hour < 12), isAfterAlos = Utils.isTimeAfter(alos, time), isAfterShkia = Utils.isTimeAfter(shkia, time), isDaytime = isAfterAlos && !isAfterShkia, isNightTime = !isDaytime, isNotBeinHasmashos = !isAfterShkia || Utils.isTimeAfter(Utils.addMinutes(shkia, 18), time), isMorning = isDaytime && !isAfterChatzosHayom, isAfternoon = isDaytime && isAfterChatzosHayom, isYomTov = jdate.isYomTovOrCholHamoed(location.Israel), isLeapYear = jDate.isJdLeapY(jdate.Year), noTachnun = isAfternoon && (dow === DaysOfWeek.FRIDAY || day === 29);
|
|
13572
|
+
var month = jdate.Month, day = jdate.Day, dow = jdate.DayOfWeek, _ZmanimUtils_getBasicShulZmanim = ZmanimUtils.getBasicShulZmanim(date, location), chatzosHayom = _ZmanimUtils_getBasicShulZmanim.chatzosHayom, chatzosHalayla = _ZmanimUtils_getBasicShulZmanim.chatzosHalayla, alos = _ZmanimUtils_getBasicShulZmanim.alos, shkia = _ZmanimUtils_getBasicShulZmanim.shkia, isAfterChatzosHayom = Utils.isTimeAfter(chatzosHayom, time), isAfterChatzosHalayla = typeof chatzosHalayla !== "undefined" && (Utils.isTimeAfter(chatzosHalayla, time) || chatzosHalayla.hour > 12 && time.hour < 12), isAfterAlos = Utils.isTimeAfter(alos, time), isAfterShkia = Utils.isTimeAfter(shkia, time), isDaytime = isAfterAlos && !isAfterShkia, isNightTime = !isDaytime, isNotBeinHasmashos = !isAfterShkia || Utils.isTimeAfter(Utils.addMinutes(shkia, 18), time), isMorning = isDaytime && !isAfterChatzosHayom, isAfternoon = isDaytime && isAfterChatzosHayom && isNotBeinHasmashos, isYomTov = jdate.isYomTovOrCholHamoed(location.Israel), isLeapYear = jDate.isJdLeapY(jdate.Year), noTachnun = isAfternoon && (dow === DaysOfWeek.FRIDAY || day === 29);
|
|
13573
13573
|
dayInfo = {
|
|
13574
13574
|
jdate: jdate,
|
|
13575
13575
|
sdate: sdate,
|
|
@@ -13743,6 +13743,9 @@ function getAroundTheYearNotifications() {
|
|
|
13743
13743
|
if (dow !== DaysOfWeek.SHABBOS && day > 15 && day !== 21) {
|
|
13744
13744
|
addTefillahNote("Vesain Bracha", "\u05D5\u05EA\u05DF \u05D1\u05E8\u05DB\u05D4");
|
|
13745
13745
|
}
|
|
13746
|
+
if (isNightTime && (dow !== DaysOfWeek.FRIDAY && day === 14 || dow === DaysOfWeek.THURSDAY && day === 13)) {
|
|
13747
|
+
addDayNote("Bedikas Chometz", "\u05D1\u05D3\u05D9\u05E7\u05EA \u05D7\u05DE\u05E5");
|
|
13748
|
+
}
|
|
13746
13749
|
if (isMorning && dow !== DaysOfWeek.SHABBOS && [
|
|
13747
13750
|
14,
|
|
13748
13751
|
16,
|