Socket
Socket
Sign inDemoInstall

@hebcal/core

Package Overview
Dependencies
2
Maintainers
1
Versions
247
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.1 to 5.2.2

50

hebcal.d.ts

@@ -1,3 +0,1 @@

import { GeoLocation } from '@hebcal/noaa';
declare module '@hebcal/core' {

@@ -284,2 +282,50 @@ export const version: string;

/**
* A class that contains location information such as latitude and longitude required for astronomical calculations. The
* elevation field may not be used by some calculation engines and would be ignored if set.
*
* @author © Eliyahu Hershfeld 2004 - 2016
* @version 1.1
*/
export class GeoLocation {
/**
* GeoLocation constructor with parameters for all required fields.
*
* @param name
* The location name for display use such as "Lakewood, NJ"
* @param latitude
* the latitude in a double format such as 40.095965 for Lakewood, NJ.
* <b>Note: </b> For latitudes south of the equator, a negative value should be used.
* @param longitude
* longitude in a double format such as -74.222130 for Lakewood, NJ.
* <b>Note: </b> For longitudes west of the <a href="http://en.wikipedia.org/wiki/Prime_Meridian">Prime
* Meridian </a> (Greenwich), a negative value should be used.
* @param elevation
* the elevation above sea level in Meters. Elevation is not used in most algorithms used for calculating
* sunrise and set.
* @param timeZoneId
* the <code>TimeZone</code> for the location.
*/
constructor(name: string | null, latitude: number, longitude: number, elevation: number, timeZoneId: string);
/**
* get the elevation in Meters
* @return {number} Returns the elevation in Meters
*/
getElevation(): number;
/**
* set the elevation in Meters <b>above </b> sea level
* @param elevation
* The elevation to set in Meters. An Error will be thrown if the value is a negative.
*/
setElevation(elevation: number): void;
setLatitude(latitude: number): void;
getLatitude(): number;
setLongitude(longitude: number): void;
getLongitude(): number;
getLocationName(): string | null;
setLocationName(name: string | null): void;
getTimeZone(): string;
setTimeZone(timeZoneId: string): void;
}
/**
* A Hebcal location is used for Zmanim and a latitude, longitude, timezone, and more

@@ -286,0 +332,0 @@ */

6

package.json
{
"name": "@hebcal/core",
"version": "5.2.1",
"version": "5.2.2",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -71,3 +71,3 @@ "contributors": [

"peerDependencies": {
"temporal-polyfill": "^0.1.1"
"temporal-polyfill": "^0.2.1"
},

@@ -79,3 +79,3 @@ "devDependencies": {

"@hebcal/hdate": "^0.9.1",
"@hebcal/noaa": "^0.8.11",
"@hebcal/noaa": "^0.8.12",
"@rollup/plugin-babel": "^6.0.4",

@@ -82,0 +82,0 @@ "@rollup/plugin-commonjs": "^25.0.7",

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

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc