@saber-usa/node-common 1.7.16-alpha.1 → 1.7.16-alpha.3
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.
- package/package.json +10 -13
- package/src/astro.js +16 -5
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saber-usa/node-common",
|
|
3
|
-
"version": "1.7.16-alpha.
|
|
3
|
+
"version": "1.7.16-alpha.3",
|
|
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.
|
|
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": "^
|
|
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/
|
|
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": "
|
|
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": "
|
|
40
|
-
"jest-diff": "
|
|
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
|
|
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));
|
|
@@ -3329,6 +3330,16 @@ export {REGIMES,
|
|
|
3329
3330
|
isSatInShadow,
|
|
3330
3331
|
calculateGeoCrossingTimes,
|
|
3331
3332
|
tryPropagateSatrec,
|
|
3333
|
+
twoline2satrec,
|
|
3334
|
+
sgp4,
|
|
3335
|
+
gstime,
|
|
3336
|
+
eciToGeodetic,
|
|
3337
|
+
eciToEcf,
|
|
3338
|
+
ecfToLookAngles,
|
|
3339
|
+
degreesToRadians,
|
|
3340
|
+
radiansToDegrees,
|
|
3341
|
+
degreesLong,
|
|
3342
|
+
degreesLat,
|
|
3332
3343
|
};
|
|
3333
3344
|
export const raDecToGeodetic = RaDecToGeodetic;
|
|
3334
3345
|
export const getResiduals = GetResiduals;
|