Comparing version 2.0.0 to 2.0.1
{ | ||
"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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78229
573
5