jcal-zmanim 1.2.3 → 1.2.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/README.md +3 -3
- package/dist/README.md +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -35
- package/dist/index.d.ts +37 -35
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ console.log(`Your jewish Birthday is the ${Utils.toSuffixed(jewishDob.Day)} day
|
|
|
67
67
|
On ${Utils.toStringDate(nextBirthdayDate)} you will become ${age + 1} in Jewish.`);
|
|
68
68
|
```
|
|
69
69
|
The code above prints out to the console:
|
|
70
|
-
>Your Jewish Birthday is the 20th day of Tamuz
|
|
70
|
+
>Your Jewish Birthday is the 20th day of Tamuz.<br>
|
|
71
71
|
>On Wednesday, the 16th of July 2025 you will become 29 in Jewish.
|
|
72
72
|
|
|
73
73
|
##### Get the current Jewish Date in Hong Kong - taking into consideration that it may be after sunset there right now.
|
|
@@ -541,7 +541,7 @@ The above code prints out:
|
|
|
541
541
|
|Parameter|Type|Description|
|
|
542
542
|
|-----:|:-------:|:--------|
|
|
543
543
|
|**date**|`Date` or `jDate`|Either a jDate or a javascript Date|
|
|
544
|
-
|**time**|`{hour, minute}
|
|
544
|
+
|**time**|`{hour, minute}`|The time of day for which to show notifications for. <br>For example, "Hallel" will not be shown at night etc.|
|
|
545
545
|
|**location**|`Location`|Where in the world to show notifications for?|
|
|
546
546
|
|**english**|`boolean`|Should the notifications be in English or Hebrew?|
|
|
547
547
|
|**showGaonShir**|`boolean`|Should the *Shir Shel Yom* of the Gr"a be shown?<br>If this paremeter is undefined, it will not be shown, unless the location is in Israel.|
|
|
@@ -594,4 +594,4 @@ It also has some extremely useful general functions.
|
|
|
594
594
|
|**Utils.setDefault(paramValue, defValue)**|`any`|Returns the first value unless it is undefined, null or NaN.<br>This is very useful for boolean, string and integer parameters<br>where we want to keep false, "" and 0 if they were supplied.<br>Similar purpose to default parameters with the difference being that this function will return the second value if the first is NaN or null, while default params will give give you the NaN or the null.|
|
|
595
595
|
|**Utils.log(string, ...optionalItems)**||Log message to console|
|
|
596
596
|
|**Utils.warn(string, ...optionalItems)**||Warn message to console|
|
|
597
|
-
|**Utils.error(string, ...optionalItems)**||Error message to console|
|
|
597
|
+
|**Utils.error(string, ...optionalItems)**||Error message to console|
|
package/dist/README.md
CHANGED
|
@@ -67,7 +67,7 @@ console.log(`Your jewish Birthday is the ${Utils.toSuffixed(jewishDob.Day)} day
|
|
|
67
67
|
On ${Utils.toStringDate(nextBirthdayDate)} you will become ${age + 1} in Jewish.`);
|
|
68
68
|
```
|
|
69
69
|
The code above prints out to the console:
|
|
70
|
-
>Your Jewish Birthday is the 20th day of Tamuz
|
|
70
|
+
>Your Jewish Birthday is the 20th day of Tamuz.<br>
|
|
71
71
|
>On Wednesday, the 16th of July 2025 you will become 29 in Jewish.
|
|
72
72
|
|
|
73
73
|
##### Get the current Jewish Date in Hong Kong - taking into consideration that it may be after sunset there right now.
|
|
@@ -541,7 +541,7 @@ The above code prints out:
|
|
|
541
541
|
|Parameter|Type|Description|
|
|
542
542
|
|-----:|:-------:|:--------|
|
|
543
543
|
|**date**|`Date` or `jDate`|Either a jDate or a javascript Date|
|
|
544
|
-
|**time**|`{hour, minute}
|
|
544
|
+
|**time**|`{hour, minute}`|The time of day for which to show notifications for. <br>For example, "Hallel" will not be shown at night etc.|
|
|
545
545
|
|**location**|`Location`|Where in the world to show notifications for?|
|
|
546
546
|
|**english**|`boolean`|Should the notifications be in English or Hebrew?|
|
|
547
547
|
|**showGaonShir**|`boolean`|Should the *Shir Shel Yom* of the Gr"a be shown?<br>If this paremeter is undefined, it will not be shown, unless the location is in Israel.|
|
|
@@ -594,4 +594,4 @@ It also has some extremely useful general functions.
|
|
|
594
594
|
|**Utils.setDefault(paramValue, defValue)**|`any`|Returns the first value unless it is undefined, null or NaN.<br>This is very useful for boolean, string and integer parameters<br>where we want to keep false, "" and 0 if they were supplied.<br>Similar purpose to default parameters with the difference being that this function will return the second value if the first is NaN or null, while default params will give give you the NaN or the null.|
|
|
595
595
|
|**Utils.log(string, ...optionalItems)**||Log message to console|
|
|
596
596
|
|**Utils.warn(string, ...optionalItems)**||Warn message to console|
|
|
597
|
-
|**Utils.error(string, ...optionalItems)**||Error message to console|
|
|
597
|
+
|**Utils.error(string, ...optionalItems)**||Error message to console|
|