Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hebcal/core

Package Overview
Dependencies
Maintainers
0
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/core - npm Package Compare versions

Comparing version 5.4.11 to 5.5.0

2

dist/pkgVersion.d.ts
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
export declare const version = "5.4.11";
export declare const version = "5.5.0";

@@ -319,2 +319,24 @@ import 'temporal-polyfill/global';

sunsetOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
/**
* Returns the Hebrew date relative to the specified location and Gregorian date,
* taking into consideration whether the time is before or after sunset.
*
* For example, if the given date and is `2024-09-22T10:35` (before sunset), and
* sunset for the specified location is **19:04**, then this function would
* return a Hebrew date of `19th of Elul, 5784`.
* If the given date is the same Gregorian day after sunset
* (for example `2024-09-22T20:07`), this function would return a
* Hebrew date of `20th of Elul, 5784`.
* @example
* const {GeoLocation, Zmanim, HDate} = require('@hebcal/core');
* const latitude = 48.85341;
* const longitude = 2.3488;
* const timezone = 'Europe/Paris';
* const gloc = new GeoLocation(null, latitude, longitude, 0, timezone);
* const before = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T17:38:46.123Z'), false);
* console.log(before.toString()); // '19 Elul 5784'
* const after = Zmanim.makeSunsetAwareHDate(gloc, new Date('2024-09-22T23:45:18.345Z'), false);
* console.log(after.toString()); // '20 Elul 5784'
*/
static makeSunsetAwareHDate(gloc: GeoLocation, date: Date, useElevation: boolean): HDate;
}
{
"name": "@hebcal/core",
"version": "5.4.11",
"version": "5.5.0",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -67,7 +67,7 @@ "contributors": [

"peerDependencies": {
"temporal-polyfill": "^0.2.4"
"temporal-polyfill": "^0.2.5"
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/preset-env": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",

@@ -81,12 +81,12 @@ "@babel/register": "^7.24.6",

"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.10",
"core-js": "^3.37.1",
"@types/jest": "^29.5.13",
"@types/node": "^22.5.5",
"core-js": "^3.38.1",
"gts": "^5.3.1",
"jest": "^29.7.0",
"quick-lru": "<=6.1.2",
"rollup": "^4.18.1",
"rollup": "^4.22.4",
"ttag-cli": "^1.10.12",
"typedoc": "^0.26.4",
"typescript": "^5.5.3"
"typedoc": "^0.26.7",
"typescript": "^5.6.2"
},

@@ -96,4 +96,4 @@ "dependencies": {

"@hebcal/noaa": "^0.8.14",
"tslib": "^2.6.3"
"tslib": "^2.7.0"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc