@saber-usa/node-common 1.7.7 → 1.7.9-alpha.1
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/README.md +13 -42
- package/package.json +51 -52
- package/src/FrameConverter.js +1120 -1121
- package/src/LLA.js +179 -179
- package/src/LaunchNominalClass.js +772 -753
- package/src/NodeVector3D.js +71 -71
- package/src/OrbitUtils.js +490 -309
- package/src/PropagateUtils.js +100 -100
- package/src/ShadowGEOCalculator.js +203 -203
- package/src/TimeConverter.js +309 -309
- package/src/astro.js +3315 -3301
- package/src/ballisticPropagator.js +1037 -1037
- package/src/constants.js +35 -37
- package/src/fixDate.js +62 -62
- package/src/index.js +47 -47
- package/src/launchNominal.js +208 -208
- package/src/s3.js +59 -59
- package/src/transform.js +35 -35
- package/src/udl.js +231 -116
- package/src/utils.js +406 -406
package/README.md
CHANGED
|
@@ -1,42 +1,13 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Usage
|
|
15
|
-
|
|
16
|
-
To create a new logger, just pass in options to the factory:
|
|
17
|
-
|
|
18
|
-
```javascript
|
|
19
|
-
const logger = loggerFactory(opts);
|
|
20
|
-
|
|
21
|
-
logger.debug("This is a debug message");
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
For further usage, consult [winston](https://github.com/winstonjs/winston)
|
|
25
|
-
|
|
26
|
-
### Options
|
|
27
|
-
|
|
28
|
-
- `nameSpace` help distinguish where the logger message comes from.
|
|
29
|
-
- `additionalData` Data to include with each message
|
|
30
|
-
- `level` overwrite the `LOG_LEVEL` environment level
|
|
31
|
-
|
|
32
|
-
## Transformer
|
|
33
|
-
|
|
34
|
-
A transformer for object keys is provided. This will take an object and transform the keys using a function.
|
|
35
|
-
|
|
36
|
-
## Publishing changes
|
|
37
|
-
|
|
38
|
-
1. Change the version in package.json
|
|
39
|
-
2. Run `npm publish && npm install`
|
|
40
|
-
3. Enable GPG in GIT: `git config --global commit.gpgsign true`
|
|
41
|
-
4. Run `gpg --list-keys` to get your <id>
|
|
42
|
-
5. Tell the GIT to use your key `git config user.signingkey <id>`
|
|
1
|
+
# Node Common
|
|
2
|
+
|
|
3
|
+
Common nodejs functions used across a number of saber's applications.
|
|
4
|
+
|
|
5
|
+
## License
|
|
6
|
+
AGPLv3
|
|
7
|
+
|
|
8
|
+
## Publishing changes
|
|
9
|
+
|
|
10
|
+
1. Increment the version in `package.json`
|
|
11
|
+
2. Check you are logged in to npm using `npm whoami`
|
|
12
|
+
3. You may need to login using `npm login` note your npm user must have 2FA enabled (in your profile)
|
|
13
|
+
4. Run `npm install` then `npm publish`
|
package/package.json
CHANGED
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@saber-usa/node-common",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Common node functions for Saber",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"lint": "eslint . --ext js",
|
|
9
|
-
"lint:fix": "eslint . --ext js --fix",
|
|
10
|
-
"test": "jest --no-coverage --silent",
|
|
11
|
-
"test:unit": "jest --coverage --runInBand --no-watch",
|
|
12
|
-
"sonar": "node --experimental-vm-modules sonar-project.js"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@babel/
|
|
34
|
-
"@babel/
|
|
35
|
-
"@
|
|
36
|
-
"
|
|
37
|
-
"eslint-
|
|
38
|
-
"
|
|
39
|
-
"jest": "29.7.0",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@saber-usa/node-common",
|
|
3
|
+
"version": "1.7.9-alpha.1",
|
|
4
|
+
"description": "Common node functions for Saber",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lint": "eslint . --ext js",
|
|
9
|
+
"lint:fix": "eslint . --ext js --fix",
|
|
10
|
+
"test": "jest --no-coverage --silent",
|
|
11
|
+
"test:unit": "jest --coverage --runInBand --no-watch",
|
|
12
|
+
"sonar": "node --experimental-vm-modules sonar-project.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"src/**/*"
|
|
16
|
+
],
|
|
17
|
+
"author": "Saber USA",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@aws-sdk/client-s3": "^3.666.0",
|
|
21
|
+
"date-fns": "^4.1.0",
|
|
22
|
+
"lodash": "4.17.21",
|
|
23
|
+
"mathjs": "^14.7.0",
|
|
24
|
+
"pious-squid": "^2.3.0",
|
|
25
|
+
"plotly": "^1.0.6",
|
|
26
|
+
"satellite.js": "^6.0.1",
|
|
27
|
+
"solar-calculator": "^0.3.0",
|
|
28
|
+
"three": "^0.178.0",
|
|
29
|
+
"winston": "3.3.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/core": "7.16.0",
|
|
33
|
+
"@babel/eslint-parser": "7.16.3",
|
|
34
|
+
"@babel/plugin-transform-modules-commonjs": "7.16.0",
|
|
35
|
+
"@jest/globals": "27.4.4",
|
|
36
|
+
"eslint-config-google": "0.14.0",
|
|
37
|
+
"eslint-plugin-jest": "25.3.0",
|
|
38
|
+
"jest": "29.7.0",
|
|
39
|
+
"jest-diff": "29.7.0",
|
|
40
|
+
"nodemon": "3.1.4",
|
|
41
|
+
"sonarqube-scanner": "3.0.1"
|
|
42
|
+
},
|
|
43
|
+
"overrides": {
|
|
44
|
+
"braces": "3.0.3"
|
|
45
|
+
},
|
|
46
|
+
"babel": {
|
|
47
|
+
"plugins": [
|
|
48
|
+
"@babel/plugin-transform-modules-commonjs"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|