@hebcal/core 5.4.10 → 5.5.0
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 +190 -158
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +2 -2
- package/dist/bundle.min.js.map +1 -1
- package/dist/index.cjs +152 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +152 -128
- package/dist/index.mjs.map +1 -1
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/zmanim.d.ts +22 -0
- package/package.json +12 -12
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
2
|
-
export declare const version = "5.
|
|
2
|
+
export declare const version = "5.5.0";
|
package/dist/zmanim.d.ts
CHANGED
|
@@ -316,4 +316,26 @@ export declare class Zmanim {
|
|
|
316
316
|
* @param forceSeaLevel use sea-level sunset (default false)
|
|
317
317
|
*/
|
|
318
318
|
sunsetOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
|
|
319
|
+
/**
|
|
320
|
+
* Returns the Hebrew date relative to the specified location and Gregorian date,
|
|
321
|
+
* taking into consideration whether the time is before or after sunset.
|
|
322
|
+
*
|
|
323
|
+
* For example, if the given date and is `2024-09-22T10:35` (before sunset), and
|
|
324
|
+
* sunset for the specified location is **19:04**, then this function would
|
|
325
|
+
* return a Hebrew date of `19th of Elul, 5784`.
|
|
326
|
+
* If the given date is the same Gregorian day after sunset
|
|
327
|
+
* (for example `2024-09-22T20:07`), this function would return a
|
|
328
|
+
* Hebrew date of `20th of Elul, 5784`.
|
|
329
|
+
* @example
|
|
330
|
+
* const {GeoLocation, Zmanim, HDate} = require('@hebcal/core');
|
|
331
|
+
* const latitude = 48.85341;
|
|
332
|
+
* const longitude = 2.3488;
|
|
333
|
+
* const timezone = 'Europe/Paris';
|
|
334
|
+
* const gloc = new GeoLocation(null, latitude, longitude, 0, timezone);
|
|
335
|
+
* const before = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T17:38:46.123Z'), false);
|
|
336
|
+
* console.log(before.toString()); // '19 Elul 5784'
|
|
337
|
+
* const after = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T23:45:18.345Z'), false);
|
|
338
|
+
* console.log(after.toString()); // '20 Elul 5784'
|
|
339
|
+
*/
|
|
340
|
+
static makeSunsetAwareHDate(gloc: GeoLocation, date: Date, useElevation: boolean): HDate;
|
|
319
341
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"temporal-polyfill": "^0.2.
|
|
67
|
+
"temporal-polyfill": "^0.2.5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@babel/core": "^7.
|
|
71
|
-
"@babel/preset-env": "^7.
|
|
70
|
+
"@babel/core": "^7.25.2",
|
|
71
|
+
"@babel/preset-env": "^7.25.4",
|
|
72
72
|
"@babel/preset-typescript": "^7.24.7",
|
|
73
73
|
"@babel/register": "^7.24.6",
|
|
74
74
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -77,20 +77,20 @@
|
|
|
77
77
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
78
78
|
"@rollup/plugin-terser": "^0.4.4",
|
|
79
79
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
80
|
-
"@types/jest": "^29.5.
|
|
81
|
-
"@types/node": "^
|
|
82
|
-
"core-js": "^3.
|
|
80
|
+
"@types/jest": "^29.5.13",
|
|
81
|
+
"@types/node": "^22.5.5",
|
|
82
|
+
"core-js": "^3.38.1",
|
|
83
83
|
"gts": "^5.3.1",
|
|
84
84
|
"jest": "^29.7.0",
|
|
85
85
|
"quick-lru": "<=6.1.2",
|
|
86
|
-
"rollup": "^4.
|
|
86
|
+
"rollup": "^4.22.4",
|
|
87
87
|
"ttag-cli": "^1.10.12",
|
|
88
|
-
"typedoc": "^0.26.
|
|
89
|
-
"typescript": "^5.
|
|
88
|
+
"typedoc": "^0.26.7",
|
|
89
|
+
"typescript": "^5.6.2"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@hebcal/hdate": "^0.11.
|
|
92
|
+
"@hebcal/hdate": "^0.11.4",
|
|
93
93
|
"@hebcal/noaa": "^0.8.14",
|
|
94
|
-
"tslib": "^2.
|
|
94
|
+
"tslib": "^2.7.0"
|
|
95
95
|
}
|
|
96
96
|
}
|