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

suncalc3

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suncalc3 - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

10

package.json
{
"name": "suncalc3",
"version": "2.0.0",
"version": "2.0.1",
"description": "A tiny JavaScript library for calculating sun/moon positions and phases.",

@@ -38,2 +38,3 @@ "homepage": "https://github.com/hypnos3/suncalc3",

"main": "suncalc.js",
"types": "suncalc.d.ts",
"devDependencies": {

@@ -43,3 +44,4 @@ "eslint": ">=8.11.0",

"eslint-plugin-node": ">=11.1.0",
"tape": "^5.5.2"
"tape": "^5.5.2",
"typescript":"^4.6.2"
},

@@ -52,3 +54,5 @@ "files": [

"test": "node test.js",
"prepublishOnly": "npm test"
"prepublishOnly": "tsc && eslint suncalc.js test.js && npm test",
"build": "tsc --build",
"clean": "tsc --build --clean"
},

@@ -55,0 +59,0 @@ "jshintConfig": {

@@ -44,2 +44,3 @@

- [Changelog](#changelog)
- [2.0.1 — March 13, 2022](#201--march-13-2022)
- [2.0.0 — March 13, 2022](#200--march-13-2022)

@@ -516,5 +517,10 @@ - [1.8.0 — Dec 22, 2016](#180--dec-22-2016)

#### 2.0.1 — March 13, 2022
- added type definitions
#### 2.0.0 — March 13, 2022
- published as suncalc3 after this library was used by my own with various changes to the original one
- added getSolarTime and moonTransit

@@ -521,0 +527,0 @@ #### 1.8.0 — Dec 22, 2016

@@ -168,4 +168,2 @@ // @ts-check

'use strict';
const util = require('util'); // eslint-disable-line no-unused-vars
// sun calculations are based on http://aa.quae.nl/en/reken/zonpositie.html formulas

@@ -491,2 +489,3 @@

}
// @ts-ignore
const t = new Date(dateValue);

@@ -493,0 +492,0 @@ if (inUTC) {

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