jcal-zmanim 1.2.0 → 1.2.1

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.
Files changed (58) hide show
  1. package/dist/index.cjs +13273 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +898 -0
  4. package/dist/index.d.ts +898 -2
  5. package/dist/index.js +3519 -35
  6. package/dist/index.js.map +1 -1
  7. package/package.json +10 -9
  8. package/dist/JCal/Dafyomi.d.ts +0 -28
  9. package/dist/JCal/Dafyomi.d.ts.map +0 -1
  10. package/dist/JCal/Dafyomi.js +0 -130
  11. package/dist/JCal/Dafyomi.js.map +0 -1
  12. package/dist/JCal/Location.d.ts +0 -33
  13. package/dist/JCal/Location.d.ts.map +0 -1
  14. package/dist/JCal/Location.js +0 -77
  15. package/dist/JCal/Location.js.map +0 -1
  16. package/dist/JCal/Molad.d.ts +0 -38
  17. package/dist/JCal/Molad.d.ts.map +0 -1
  18. package/dist/JCal/Molad.js +0 -90
  19. package/dist/JCal/Molad.js.map +0 -1
  20. package/dist/JCal/PirkeiAvos.d.ts +0 -14
  21. package/dist/JCal/PirkeiAvos.d.ts.map +0 -1
  22. package/dist/JCal/PirkeiAvos.js +0 -171
  23. package/dist/JCal/PirkeiAvos.js.map +0 -1
  24. package/dist/JCal/Sedra.d.ts +0 -64
  25. package/dist/JCal/Sedra.d.ts.map +0 -1
  26. package/dist/JCal/Sedra.js +0 -183
  27. package/dist/JCal/Sedra.js.map +0 -1
  28. package/dist/JCal/Zmanim.d.ts +0 -96
  29. package/dist/JCal/Zmanim.d.ts.map +0 -1
  30. package/dist/JCal/Zmanim.js +0 -223
  31. package/dist/JCal/Zmanim.js.map +0 -1
  32. package/dist/JCal/ZmanimUtils.d.ts +0 -72
  33. package/dist/JCal/ZmanimUtils.d.ts.map +0 -1
  34. package/dist/JCal/ZmanimUtils.js +0 -349
  35. package/dist/JCal/ZmanimUtils.js.map +0 -1
  36. package/dist/JCal/jDate.d.ts +0 -204
  37. package/dist/JCal/jDate.d.ts.map +0 -1
  38. package/dist/JCal/jDate.js +0 -648
  39. package/dist/JCal/jDate.js.map +0 -1
  40. package/dist/Locations.d.ts +0 -31
  41. package/dist/Locations.d.ts.map +0 -1
  42. package/dist/Locations.js +0 -153
  43. package/dist/Locations.js.map +0 -1
  44. package/dist/Notifications.d.ts +0 -18
  45. package/dist/Notifications.d.ts.map +0 -1
  46. package/dist/Notifications.js +0 -1039
  47. package/dist/Notifications.js.map +0 -1
  48. package/dist/README.md +0 -567
  49. package/dist/Utils.d.ts +0 -287
  50. package/dist/Utils.d.ts.map +0 -1
  51. package/dist/Utils.js +0 -822
  52. package/dist/Utils.js.map +0 -1
  53. package/dist/ZmanTypes.d.ts +0 -41
  54. package/dist/ZmanTypes.d.ts.map +0 -1
  55. package/dist/ZmanTypes.js +0 -187
  56. package/dist/ZmanTypes.js.map +0 -1
  57. package/dist/index.d.ts.map +0 -1
  58. package/dist/locations.json +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcal-zmanim",
3
3
  "description": "A very complete JavaScript library for the Jewish Calendar, Zmanim, Holidays, and daily Shul notes.",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "main": "./dist/index.js",
6
6
  "exports": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -10,20 +10,21 @@
10
10
  "dist"
11
11
  ],
12
12
  "devDependencies": {
13
+ "@swc/core": "1.3.96",
13
14
  "@types/jest": "^29.5.8",
14
15
  "@types/node": "20.8.10",
15
16
  "copyfiles": "^2.4.1",
16
17
  "jest": "^29.7.0",
17
18
  "rimraf": "5.0.5",
18
- "typescript": "5.2.2"
19
+ "tsup": "7.3.0"
19
20
  },
20
21
  "scripts": {
21
- "test": "tsc && jest",
22
- "build": "rimraf ./dist && NODE_ENV=production && tsc && copyfiles -u 1 ./docs/README.md dist/",
23
- "build-win": "rimraf ./dist && SET NODE_ENV=production && tsc && copyfiles -u 1 ./docs/README.md dist/",
24
- "build-dev": "NODE_ENV=development && tsc",
25
- "build-dev-win": "SET NODE_ENV=development && tsc",
26
- "tsc": "tsc"
22
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
23
+ "build": "rimraf ./dist && NODE_ENV=production && tsup && copyfiles -u 1 ./docs/README.md dist/",
24
+ "build-win": "rimraf ./dist && SET NODE_ENV=production && tsup && copyfiles -u 1 ./docs/README.md dist/",
25
+ "build-dev": "NODE_ENV=development && tsup",
26
+ "build-dev-win": "SET NODE_ENV=development && tsup",
27
+ "tsup": "tsup"
27
28
  },
28
29
  "url": "git+https://github.com/cbsom/jcal-zmanim.git",
29
30
  "repository": "git+https://github.com/cbsom/jcal-zmanim.git",
@@ -43,4 +44,4 @@
43
44
  "dependencies": {
44
45
  "closest-match": "1.3.3"
45
46
  }
46
- }
47
+ }
@@ -1,28 +0,0 @@
1
- import jDate from './jDate.js';
2
- /** *********************************************************************************************************
3
- * Computes the Day Yomi for the given day.
4
- * Sample of use - to get todays daf:
5
- * const dafEng = Dafyomi.toString(jDate.now());
6
- * const dafHeb = Dafyomi.toStringHeb(jDate.now());
7
- * The code was converted to typescript and tweaked by CBS.
8
- * It is directly based on the C code in Danny Sadinoff's HebCal - Copyright (C) 1994.
9
- * The HebCal code for dafyomi was adapted by Aaron Peromsik from Bob Newell's public domain daf.el.
10
- ***********************************************************************************************************/
11
- export default class Dafyomi {
12
- static masechtaList: {
13
- eng: string;
14
- heb: string;
15
- daf: number;
16
- }[];
17
- static getDaf(jdate: jDate): {
18
- masechet: {
19
- eng: string;
20
- heb: string;
21
- daf: number;
22
- };
23
- daf: number;
24
- } | null;
25
- static toString(jd: jDate): string | undefined;
26
- static toStringHeb(jd: jDate): string | undefined;
27
- }
28
- //# sourceMappingURL=Dafyomi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dafyomi.d.ts","sourceRoot":"","sources":["../../src/JCal/Dafyomi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAG/B;;;;;;;;4GAQ4G;AAC5G,MAAM,CAAC,OAAO,OAAO,OAAO;IACxB,MAAM,CAAC,YAAY;;;;QAwCyB;IAE5C,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,GAAI;QAAE,QAAQ,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IA+DzG,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS;IAQ9C,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS;CAMpD"}
@@ -1,130 +0,0 @@
1
- import { Utils } from '../Utils.js';
2
- import jDate from './jDate.js';
3
- 'use strict';
4
- /** *********************************************************************************************************
5
- * Computes the Day Yomi for the given day.
6
- * Sample of use - to get todays daf:
7
- * const dafEng = Dafyomi.toString(jDate.now());
8
- * const dafHeb = Dafyomi.toStringHeb(jDate.now());
9
- * The code was converted to typescript and tweaked by CBS.
10
- * It is directly based on the C code in Danny Sadinoff's HebCal - Copyright (C) 1994.
11
- * The HebCal code for dafyomi was adapted by Aaron Peromsik from Bob Newell's public domain daf.el.
12
- ***********************************************************************************************************/
13
- var Dafyomi = /** @class */ (function () {
14
- function Dafyomi() {
15
- }
16
- Dafyomi.getDaf = function (jdate) {
17
- var absoluteDate = jdate.Abs;
18
- var dafcnt = 40, cno, dno, osday, nsday, total, count, j, blatt;
19
- osday = jDate.absSd(new Date(1923, 8, 11));
20
- nsday = jDate.absSd(new Date(1975, 5, 24));
21
- /* No cycle, new cycle, old cycle */
22
- if (absoluteDate < osday)
23
- return null; /* daf yomi hadn't started yet */
24
- if (absoluteDate >= nsday) {
25
- cno = 8 + Utils.toInt(((absoluteDate - nsday) / 2711));
26
- dno = (absoluteDate - nsday) % 2711;
27
- }
28
- else {
29
- cno = 1 + Utils.toInt((absoluteDate - osday) / 2702);
30
- dno = Utils.toInt((absoluteDate - osday) / 2702);
31
- }
32
- /* Find the daf taking note that the cycle changed slightly after cycle 7. */
33
- total = blatt = 0;
34
- count = -1;
35
- /* Fix Shekalim for old cycles */
36
- if (cno <= 7)
37
- Dafyomi.masechtaList[4].daf = 13;
38
- else
39
- Dafyomi.masechtaList[4].daf = 22;
40
- /* Find the daf */
41
- j = 0;
42
- while (j < dafcnt) {
43
- count++;
44
- total = total + Dafyomi.masechtaList[j].daf - 1;
45
- if (dno < total) {
46
- blatt = (Dafyomi.masechtaList[j].daf + 1) - (total - dno);
47
- /* fiddle with the weird ones near the end */
48
- switch (count) {
49
- case 36:
50
- blatt = blatt + 21;
51
- break;
52
- case 37:
53
- blatt = blatt + 24;
54
- break;
55
- case 38:
56
- blatt = blatt + 33;
57
- break;
58
- default:
59
- break;
60
- }
61
- /* Bailout */
62
- j = 1 + dafcnt;
63
- }
64
- j++;
65
- }
66
- return {
67
- masechet: Dafyomi.masechtaList[count],
68
- daf: blatt
69
- };
70
- };
71
- // Returns the name of the Masechta and daf number in English, For example: Sukkah, Daf 3
72
- Dafyomi.toString = function (jd) {
73
- var d = Dafyomi.getDaf(jd);
74
- if (d !== null) {
75
- return d.masechet.eng + ', Daf ' + d.daf.toString();
76
- }
77
- };
78
- //Returns the name of the Masechta and daf number in Hebrew. For example: 'סוכה דף כ.
79
- Dafyomi.toStringHeb = function (jd) {
80
- var d = Dafyomi.getDaf(jd);
81
- if (d !== null) {
82
- return d.masechet.heb + ' דף ' + Utils.toJewishNumber(d.daf);
83
- }
84
- };
85
- Dafyomi.masechtaList = [
86
- { eng: 'Berachos', heb: 'ברכות', daf: 64 },
87
- { eng: 'Shabbos', heb: 'שבת', daf: 157 },
88
- { eng: 'Eruvin', heb: 'ערובין', daf: 105 },
89
- { eng: 'Pesachim', heb: 'פסחים', daf: 121 },
90
- { eng: 'Shekalim', heb: 'שקלים', daf: 22 },
91
- { eng: 'Yoma', heb: 'יומא', daf: 88 },
92
- { eng: 'Sukkah', heb: 'סוכה', daf: 56 },
93
- { eng: 'Beitzah', heb: 'ביצה', daf: 40 },
94
- { eng: 'Rosh Hashana', heb: 'ראש השנה', daf: 35 },
95
- { eng: 'Taanis', heb: 'תענית', daf: 31 },
96
- { eng: 'Megillah', heb: 'מגילה', daf: 32 },
97
- { eng: 'Moed Katan', heb: 'מועד קטן', daf: 29 },
98
- { eng: 'Chagigah', heb: 'חגיגה', daf: 27 },
99
- { eng: 'Yevamos', heb: 'יבמות', daf: 122 },
100
- { eng: 'Kesubos', heb: 'כתובות', daf: 112 },
101
- { eng: 'Nedarim', heb: 'נדרים', daf: 91 },
102
- { eng: 'Nazir', heb: 'נזיר', daf: 66 },
103
- { eng: 'Sotah', heb: 'סוטה', daf: 49 },
104
- { eng: 'Gitin', heb: 'גיטין', daf: 90 },
105
- { eng: 'Kiddushin', heb: 'קדושין', daf: 82 },
106
- { eng: 'Baba Kamma', heb: 'בבא קמא', daf: 119 },
107
- { eng: 'Baba Metzia', heb: 'בבא מציעא', daf: 119 },
108
- { eng: 'Baba Basra', heb: 'בבא בתרא', daf: 176 },
109
- { eng: 'Sanhedrin', heb: 'סנהדרין', daf: 113 },
110
- { eng: 'Makkot', heb: 'מכות', daf: 24 },
111
- { eng: 'Shevuot', heb: 'שבועות', daf: 49 },
112
- { eng: 'Avodah Zarah', heb: 'עבודה זרה', daf: 76 },
113
- { eng: 'Horayot', heb: 'הוריות', daf: 14 },
114
- { eng: 'Zevachim', heb: 'זבחים', daf: 120 },
115
- { eng: 'Menachos', heb: 'מנחות', daf: 110 },
116
- { eng: 'Chullin', heb: 'חולין', daf: 142 },
117
- { eng: 'Bechoros', heb: 'בכורות', daf: 61 },
118
- { eng: 'Arachin', heb: 'ערכין', daf: 34 },
119
- { eng: 'Temurah', heb: 'תמורה', daf: 34 },
120
- { eng: 'Kerisos', heb: 'כריתות', daf: 28 },
121
- { eng: 'Meilah', heb: 'מעילה', daf: 22 },
122
- { eng: 'Kinnim', heb: 'קנים', daf: 4 },
123
- { eng: 'Tamid', heb: 'תמיד', daf: 10 },
124
- { eng: 'Midos', heb: 'מדות', daf: 4 },
125
- { eng: 'Niddah', heb: 'נדה', daf: 73 }
126
- ];
127
- return Dafyomi;
128
- }());
129
- export default Dafyomi;
130
- //# sourceMappingURL=Dafyomi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dafyomi.js","sourceRoot":"","sources":["../../src/JCal/Dafyomi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAClC,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,YAAY,CAAC;AACb;;;;;;;;4GAQ4G;AAC5G;IAAA;IAwHA,CAAC;IA7EU,cAAM,GAAb,UAAc,KAAY;QACtB,IAAM,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC;QAC/B,IAAI,MAAM,GAAG,EAAE,EAAE,GAAW,EAAE,GAAW,EAAE,KAAa,EAAE,KAAa,EAAE,KAAa,EAAE,KAAa,EAAE,CAAS,EAAE,KAAa,CAAC;QAEhI,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC3C,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAE3C,qCAAqC;QACrC,IAAI,YAAY,GAAG,KAAK;YACpB,OAAO,IAAI,CAAC,CAAC,iCAAiC;QAClD,IAAI,YAAY,IAAI,KAAK,EAAE;YACvB,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YACvD,GAAG,GAAG,CAAC,YAAY,GAAG,KAA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E,EAAE,EAAE;QAC1C,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE;QACxC,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE;QACtC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE;QACtC,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE;QACrC,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;KAAC,CAAC;IA+EhD,cAAC;CAAA,AAxHD,IAwHC;eAxHoB,OAAO"}
@@ -1,33 +0,0 @@
1
- /** Represents a geographic Location. Needed for calculating Zmanim.
2
- If Israel is undefined, if the given coordinates are near the vicinity of Israel it will be assumed that it is in Israel.
3
- UTCOffset is the time zone. Israel is always 2 and the US East coast is -5. England is 0 of course.
4
- If UTCOffset is not specifically supplied, the longitude will be used to get a quasi-educated guess.*/
5
- export default class Location {
6
- Name: string;
7
- NameHebrew?: string;
8
- Israel: boolean;
9
- Latitude: number;
10
- Longitude: number;
11
- UTCOffset: number;
12
- Elevation: number;
13
- CandleLighting?: number;
14
- /**
15
- * Describe a new Location.
16
- * @param {String} name The name of the Location
17
- * @param {String} nameHeb The name of the Location
18
- * @param {Boolean} israel Is this Location in Israel?
19
- * @param {Number} latitude
20
- * @param {Number} longitude
21
- * @param {Number} utcOffset The time zone. Israel is 2 and New York is -5.
22
- * @param {Number} elevation Elevation in meters
23
- * @param {Number} [candleLighting] Number of minutes before sunset the candles are lit on Friday
24
- */
25
- constructor(name: string, nameHeb: string | undefined, israel: boolean, latitude: number, longitude: number, utcOffset: number, elevation: number, candleLighting?: number);
26
- static clone(location: Location): Location;
27
- static getCandles(location: Location): number;
28
- /**Gets the Location for Jerusalem.*/
29
- static getJerusalem(): Location;
30
- /**Gets the Location for Lakewood NJ*/
31
- static getLakewood(): Location;
32
- }
33
- //# sourceMappingURL=Location.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Location.d.ts","sourceRoot":"","sources":["../../src/JCal/Location.ts"],"names":[],"mappings":"AAAA;;;sGAGsG;AACtG,MAAM,CAAC,OAAO,OAAO,QAAQ;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;OAUG;gBACS,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IA+B1K,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ;IAY/B,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,QAAQ;IAoBpC,qCAAqC;IACrC,MAAM,CAAC,YAAY;IAGnB,sCAAsC;IACtC,MAAM,CAAC,WAAW;CAGrB"}
@@ -1,77 +0,0 @@
1
- /** Represents a geographic Location. Needed for calculating Zmanim.
2
- If Israel is undefined, if the given coordinates are near the vicinity of Israel it will be assumed that it is in Israel.
3
- UTCOffset is the time zone. Israel is always 2 and the US East coast is -5. England is 0 of course.
4
- If UTCOffset is not specifically supplied, the longitude will be used to get a quasi-educated guess.*/
5
- var Location = /** @class */ (function () {
6
- /**
7
- * Describe a new Location.
8
- * @param {String} name The name of the Location
9
- * @param {String} nameHeb The name of the Location
10
- * @param {Boolean} israel Is this Location in Israel?
11
- * @param {Number} latitude
12
- * @param {Number} longitude
13
- * @param {Number} utcOffset The time zone. Israel is 2 and New York is -5.
14
- * @param {Number} elevation Elevation in meters
15
- * @param {Number} [candleLighting] Number of minutes before sunset the candles are lit on Friday
16
- */
17
- function Location(name, nameHeb, israel, latitude, longitude, utcOffset, elevation, candleLighting) {
18
- //If the israel argument was not set at all.
19
- if (typeof israel === 'undefined' || israel === null) {
20
- //If the user is within Israels general coordinates,
21
- //we feel pretty safe assuming they are in Israel.
22
- //Where else on the map is the user? (Note, the probability of our users Jewishness: 99.99%)
23
- //Sinai, Lebanon, Syria, Jordan, in a submarine under the Mediterranean ...
24
- israel = (latitude > 29.45 && latitude < 33 && longitude < -34.23 && longitude > -35.9);
25
- }
26
- if (israel) {
27
- //Israel has only one immutable time zone
28
- utcOffset = 2;
29
- }
30
- //If the utcOffset argument was not set at all.
31
- else if (typeof utcOffset === 'undefined' || utcOffset === null) {
32
- //Try to determine the "correct" time zone using the simple fact that Greenwich is both TZ 0 and longitude 0.
33
- //Even though technically this is the way it should be,
34
- //it will be often incorrect as time zones are almost always tweaked to accommodate the closest border.
35
- utcOffset = -Math.round(longitude / 15);
36
- }
37
- this.Name = (name || 'Unknown Location');
38
- this.NameHebrew = nameHeb;
39
- this.Israel = !!israel;
40
- this.Latitude = latitude;
41
- this.Longitude = longitude;
42
- this.UTCOffset = utcOffset || 0;
43
- this.Elevation = elevation || 0;
44
- this.CandleLighting = candleLighting || Location.getCandles(this);
45
- }
46
- Location.clone = function (location) {
47
- return new Location(location.Name, location.NameHebrew, location.Israel, location.Latitude, location.Longitude, location.UTCOffset, location.Elevation, location.CandleLighting || 0);
48
- };
49
- Location.getCandles = function (location) {
50
- if (location.CandleLighting) {
51
- return location.CandleLighting;
52
- }
53
- else if (!location.Israel) {
54
- return 18;
55
- }
56
- else {
57
- var special = [{ names: ['jerusalem', 'yerush', 'petach', 'petah', 'petak', 'beit shemesh', 'ירושלים', 'פתח תקוה', 'בית שמש'], min: 40 },
58
- { names: ['haifa', 'chaifa', 'be\'er sheva', 'beersheba', 'חיפה', 'באר שבע'], min: 22 }], loclc_1 = location.Name.toLowerCase(), city = special.find(function (sp) {
59
- return sp.names.find(function (spi) {
60
- return loclc_1.indexOf(spi) > -1;
61
- });
62
- });
63
- return city ? city.min : 30;
64
- }
65
- };
66
- /**Gets the Location for Jerusalem.*/
67
- Location.getJerusalem = function () {
68
- return new Location('Jerusalem', 'ירושלים', true, 31.78, -35.22, 2, 800, 40);
69
- };
70
- /**Gets the Location for Lakewood NJ*/
71
- Location.getLakewood = function () {
72
- return new Location('Lakewood NJ', undefined, false, 40.1, 74.23, -5, 0, 18);
73
- };
74
- return Location;
75
- }());
76
- export default Location;
77
- //# sourceMappingURL=Location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Location.js","sourceRoot":"","sources":["../../src/JCal/Location.ts"],"names":[],"mappings":"AAAA;;;sGAGsG;AACtG;IASI;;;;;;;;;;OAUG;IACH,kBAAY,IAAY,EAAE,OAA2B,EAAE,MAAe,EAAE,QAAgB,EAAE,SAAiB,EAAE,SAAiB,EAAE,SAAiB,EAAE,cAAuB;QACtK,4CAA4C;QAC5C,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,IAAI,EAAE;YAClD,oDAAoD;YACpD,kDAAkD;YAClD,4FAA4F;YAC5F,2EAA2E;YAC3E,MAAM,GAAG,CAAC,QAAQ,GAAG,KAAK,IAAI,QAAQ,GAAG,EAAE,IAAI,SAAS,GAAG,CAAC,KAAK,IAAI,SAAS,GAAG,CAAC,IAAI,CAAC,CAAC;SAC3F;QACD,IAAI,MAAM,EAAE;YACR,yCAAyC;YACzC,SAAS,GAAG,CAAC,CAAC;SACjB;QACD,+CAA+C;aAC1C,IAAI,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,KAAK,IAAI,EAAE;YAC7D,6GAA6G;YAC7G,uDAAuD;YACvD,uGAAuG;YACvG,SAAS,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EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EACpF,OAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,EACnC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,UAAA,EAAE;gBAClB,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAA,GAAG;oBACpB,OAAO,OAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;gBACnC,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;YACP,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;SAC/B;IACL,CAAC;IAED,qCAAqC;IAC9B,qBAAY,GAAnB;QACI,OAAO,IAAI,QAAQ,CAAC,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IACD,sCAAsC;IAC/B,oBAAW,GAAlB;QACI,OAAO,IAAI,QAAQ,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IACL,eAAC;AAAD,CAAC,AA3FD,IA2FC"}
@@ -1,38 +0,0 @@
1
- import jDate from './jDate.js';
2
- import { Time } from '../jcal-zmanim.js';
3
- /**
4
- * Gets the molad for the given jewish month and year.
5
- * Algorithm was adapted from Hebcal by Danny Sadinoff
6
- *
7
- * Example of use:
8
- * const moladString = Molad.getString(5776, 10);
9
- */
10
- export default class Molad {
11
- /**
12
- * @param {Number} month
13
- * @param {Number} year
14
- * @returns {{jDate:jDate,time:Time,chalakim:number}}
15
- */
16
- static getMolad(month: number, year: number): {
17
- jDate: jDate;
18
- time: Time;
19
- chalakim: number;
20
- };
21
- /**
22
- * Returns the time of the molad as a string in the format: Monday Night, 8:33 PM and 12 Chalakim
23
- * The molad is always in Jerusalem so we use the Jerusalem sunset times
24
- * to determine whether to display "Night" or "Motzai Shabbos" etc. (check this...)
25
- * @param {Number} year
26
- * @param {Number} month
27
- */
28
- static getString(year: number, month: number): string;
29
- /**
30
- * Returns the time of the molad as a string in the format: ליל שני 20:33 12 חלקים
31
- * The molad is always in Jerusalem so we use the Jerusalem sunset times
32
- * to determine whether to display "ליל/יום" or "מוצאי שב"ק" etc.
33
- * @param {Number} year
34
- * @param {Number} month
35
- */
36
- static getStringHeb(year: number, month: number): string;
37
- }
38
- //# sourceMappingURL=Molad.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Molad.d.ts","sourceRoot":"","sources":["../../src/JCal/Molad.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,KAAK;IACtB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IAoB5F;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAyBrD;;;;;;OAMG;IACH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;CAuB3D"}
@@ -1,90 +0,0 @@
1
- import { Utils, DaysOfWeekHeb, DaysOfWeekEng } from '../Utils.js';
2
- import jDate from './jDate.js';
3
- import Location from './Location.js';
4
- /**
5
- * Gets the molad for the given jewish month and year.
6
- * Algorithm was adapted from Hebcal by Danny Sadinoff
7
- *
8
- * Example of use:
9
- * const moladString = Molad.getString(5776, 10);
10
- */
11
- var Molad = /** @class */ (function () {
12
- function Molad() {
13
- }
14
- /**
15
- * @param {Number} month
16
- * @param {Number} year
17
- * @returns {{jDate:jDate,time:Time,chalakim:number}}
18
- */
19
- Molad.getMolad = function (month, year) {
20
- var totalMonths, partsElapsed, hoursElapsed, parts, monthAdj = month - 7;
21
- if (monthAdj < 0) {
22
- monthAdj += jDate.monthsJYear(year);
23
- }
24
- totalMonths = Utils.toInt(monthAdj + 235 * Utils.toInt((year - 1) / 19) + 12 * ((year - 1) % 19) +
25
- ((((year - 1) % 19) * 7) + 1) / 19);
26
- partsElapsed = 204 + (793 * (totalMonths % 1080));
27
- hoursElapsed = 5 + (12 * totalMonths) + 793 * Utils.toInt(totalMonths / 1080) +
28
- Utils.toInt(partsElapsed / 1080) - 6;
29
- parts = Utils.toInt((partsElapsed % 1080) + 1080 * (hoursElapsed % 24));
30
- return {
31
- jDate: new jDate((1 + (29 * Utils.toInt(totalMonths))) + Utils.toInt((hoursElapsed / 24))),
32
- time: { hour: Utils.toInt(hoursElapsed) % 24, minute: Utils.toInt((parts % 1080) / 18), second: 0 },
33
- chalakim: parts % 18
34
- };
35
- };
36
- /**
37
- * Returns the time of the molad as a string in the format: Monday Night, 8:33 PM and 12 Chalakim
38
- * The molad is always in Jerusalem so we use the Jerusalem sunset times
39
- * to determine whether to display "Night" or "Motzai Shabbos" etc. (check this...)
40
- * @param {Number} year
41
- * @param {Number} month
42
- */
43
- Molad.getString = function (year, month) {
44
- var molad = Molad.getMolad(month, year), zmanim = molad.jDate.getSunriseSunset(Location.getJerusalem()), isNight = Utils.isTimeAfter(zmanim.sunset, molad.time), dow = molad.jDate.getDayOfWeek();
45
- var str = '';
46
- if (!zmanim.sunset || isNaN(zmanim.sunset.hour)) {
47
- str += DaysOfWeekEng[dow];
48
- }
49
- else if (dow === 6 && isNight) {
50
- str += 'Motzai Shabbos,';
51
- }
52
- else if (dow === 5 && isNight) {
53
- str += 'Shabbos Night,';
54
- }
55
- else {
56
- str += DaysOfWeekEng[dow] + (isNight ? ' Night' : '');
57
- }
58
- str += ' ' + Utils.getTimeString(molad.time) + ' and ' +
59
- molad.chalakim.toString() + ' Chalakim';
60
- return str;
61
- };
62
- /**
63
- * Returns the time of the molad as a string in the format: ליל שני 20:33 12 חלקים
64
- * The molad is always in Jerusalem so we use the Jerusalem sunset times
65
- * to determine whether to display "ליל/יום" or "מוצאי שב"ק" etc.
66
- * @param {Number} year
67
- * @param {Number} month
68
- */
69
- Molad.getStringHeb = function (year, month) {
70
- var molad = Molad.getMolad(month, year), zmanim = molad.jDate.getSunriseSunset(Location.getJerusalem()), isNight = Utils.isTimeAfter(zmanim.sunset, molad.time) &&
71
- Utils.isTimeAfter(molad.time, zmanim.sunrise), dow = molad.jDate.getDayOfWeek();
72
- var str = '';
73
- if (dow === 6) {
74
- str += (isNight ? 'מוצאי שב"ק' : 'יום שב"ק');
75
- }
76
- else if (dow === 5) {
77
- str += (isNight ? 'ליל שב"ק' : 'ערב שב"ק');
78
- }
79
- else {
80
- str += (isNight ? 'ליל' : 'יום') +
81
- DaysOfWeekHeb[dow].replace('יום', '');
82
- }
83
- str += ' ' + Utils.getTimeString(molad.time, 1, true) + ' ' +
84
- molad.chalakim.toString() + ' חלקים';
85
- return str;
86
- };
87
- return Molad;
88
- }());
89
- export default Molad;
90
- //# sourceMappingURL=Molad.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Molad.js","sourceRoot":"","sources":["../../src/JCal/Molad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,aAAa,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,QAAQ,MAAM,eAAe,CAAC;AAGrC;;;;;;GAMG;AACH;IAAA;IAwFA,CAAC;IAvFG;;;;OAIG;IAC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C,AAxFD,IAwFC"}
@@ -1,14 +0,0 @@
1
- import jDate from './jDate.js';
2
- /****************************************************************************************************************
3
- * Computes the Perek/Prakim of the week for the given Shabbos.
4
- * Returns an array of prakim (integers) (either one or two) for the given Jewish Date
5
- * Sample of use to get todays sedra in Israel:
6
- * const prakim = PirkeiAvos.getPrakim(new jDate(), true);
7
- * const str = 'Pirkei Avos: ' + prakim.map(s => `${Utils.toSuffixed(s)} Perek`).join(' and ');
8
- * ***************************************************************************************************************/
9
- export default class PirkeiAvos {
10
- static getPrakim(jd: jDate, israel: boolean): number[];
11
- static _get1stPerek: (jd: jDate, israel: boolean) => number;
12
- static _ellul: (jd: jDate, israel: boolean) => number[];
13
- }
14
- //# sourceMappingURL=PirkeiAvos.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PirkeiAvos.d.ts","sourceRoot":"","sources":["../../src/JCal/PirkeiAvos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAK/B;;;;;;mHAMmH;AACnH,MAAM,CAAC,OAAO,OAAO,UAAU;IAC3B,MAAM,CAAC,SAAS,CAAC,EAAE,EAAC,KAAK,EAAE,MAAM,EAAC,OAAO;IAyBzC,MAAM,CAAC,YAAY,OAAgB,KAAK,UAAS,OAAO,YAyBvD;IACD,MAAM,CAAC,MAAM,OAAgB,KAAK,UAAS,OAAO,cAkHjD;CACJ"}