@saber-usa/node-common 1.7.16-alpha.1 → 1.7.16-alpha.2

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.
Files changed (2) hide show
  1. package/package.json +10 -13
  2. package/src/astro.js +6 -5
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@saber-usa/node-common",
3
- "version": "1.7.16-alpha.1",
3
+ "version": "1.7.16-alpha.2",
4
4
  "description": "Common node functions for Saber",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
7
+ "engines": {
8
+ "node": ">=24.0.0"
9
+ },
7
10
  "scripts": {
8
11
  "lint": "eslint .",
9
12
  "lint:fix": "eslint . --fix",
@@ -17,37 +20,31 @@
17
20
  "author": "Saber USA",
18
21
  "license": "ISC",
19
22
  "dependencies": {
20
- "@aws-sdk/client-s3": "^3.1023.0",
23
+ "@aws-sdk/client-s3": "^3.1024.0",
21
24
  "date-fns": "^4.1.0",
22
25
  "lodash": "4.18.1",
23
26
  "mathjs": "^15.1.1",
24
27
  "pious-squid": "^2.3.0",
25
28
  "plotly": "^1.0.6",
26
- "satellite.js": "^6.0.2",
29
+ "satellite.js": "^7.0.0",
27
30
  "solar-calculator": "^0.3.0",
28
31
  "three": "^0.183.2",
29
32
  "winston": "3.19.0"
30
33
  },
31
34
  "devDependencies": {
32
- "@babel/core": "7.23.0",
33
- "@babel/plugin-transform-modules-commonjs": "7.23.0",
35
+ "@babel/preset-env": "^7.29.2",
34
36
  "@eslint/js": "^10.0.1",
35
- "@jest/globals": "27.4.4",
37
+ "@jest/globals": "^30.3.0",
36
38
  "eslint": "^10.1.0",
37
39
  "eslint-plugin-jest": "^29.15.1",
38
40
  "globals": "^16.5.0",
39
- "jest": "29.7.0",
40
- "jest-diff": "29.7.0",
41
+ "jest": "^30.3.0",
42
+ "jest-diff": "^30.3.0",
41
43
  "nodemon": "3.1.4",
42
44
  "sonarqube-scanner": "3.0.1"
43
45
  },
44
46
  "overrides": {
45
47
  "braces": "3.0.3",
46
48
  "lodash": "4.18.1"
47
- },
48
- "babel": {
49
- "plugins": [
50
- "@babel/plugin-transform-modules-commonjs"
51
- ]
52
49
  }
53
50
  }
package/src/astro.js CHANGED
@@ -11,7 +11,8 @@ import {twoline2satrec,
11
11
  eciToEcf,
12
12
  ecfToLookAngles,
13
13
  degreesLong,
14
- degreesLat} from "satellite.js";
14
+ degreesLat,
15
+ constants} from "satellite.js";
15
16
  import {lowerCaseObjectKeys} from "./transform.js";
16
17
  import {EpochUTC, Geodetic, J2000, Vector3D} from "pious-squid";
17
18
  import {normalize,
@@ -1393,11 +1394,11 @@ const GetElsetUdlFromTle = (
1393
1394
  // B-star in inverse earth radii
1394
1395
  elset.bStar = satrec.bstar;
1395
1396
 
1396
- // First derivative of mean motion
1397
- elset.meanMotionDot = satrec.ndot;
1397
+ // First derivative of mean motion (convert rad/min² to rev/day²)
1398
+ elset.meanMotionDot = satrec.ndot * (constants.xpdotp * 1440);
1398
1399
 
1399
- // Second derivative of mean motion
1400
- elset.meanMotionDDot = satrec.nddot;
1400
+ // Second derivative of mean motion (convert rad/min³ to rev/day³)
1401
+ elset.meanMotionDDot = satrec.nddot * (constants.xpdotp * 1440 * 1440);
1401
1402
 
1402
1403
  // Revolution number, parsed directly from line 2
1403
1404
  elset.revNo = parseInt(l2.slice(63, 68));