From bf576e2db1dfe2a78acd49c44483c5eba4ed5623 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Dec 2020 12:23:10 +0000 Subject: [PATCH 01/21] Bump node-notifier from 8.0.0 to 8.0.1 Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1. - [Release notes](https://github.com/mikaelbr/node-notifier/releases) - [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md) - [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1) Signed-off-by: dependabot[bot] --- yarn.lock | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/yarn.lock b/yarn.lock index d5622ab..476d51c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3907,9 +3907,9 @@ node-modules-regexp@^1.0.0: integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= node-notifier@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.0.tgz#a7eee2d51da6d0f7ff5094bc7108c911240c1620" - integrity sha512-46z7DUmcjoYdaWyXouuFNNfUo6eFa94t23c53c+lG/9Cvauk4a98rAUp9672X5dxGdQmLpPzTxzu8f/OeEPaFA== + version "8.0.1" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.1.tgz#f86e89bbc925f2b068784b31f382afdc6ca56be1" + integrity sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA== dependencies: growly "^1.3.0" is-wsl "^2.2.0" @@ -4685,12 +4685,7 @@ semver@^6.0.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.2.1, semver@^7.3.2: - version "7.3.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" - integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== - -semver@^7.3.4: +semver@^7.2.1, semver@^7.3.2, semver@^7.3.4: version "7.3.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== @@ -5322,9 +5317,9 @@ uuid@^3.3.2: integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== uuid@^8.3.0: - version "8.3.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.0.tgz#ab738085ca22dc9a8c92725e459b1d507df5d6ea" - integrity sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ== + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== v8-compile-cache@^2.0.3: version "2.1.1" From ea28d2581751c86dddb471f0264445a775435ecd Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Wed, 23 Dec 2020 07:55:56 -0500 Subject: [PATCH 02/21] Added information on ES5 vs ES6+ --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fa54b1e..9086d65 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,14 @@ These is a full list of all available NPM scripts: COVERALLS_REPO_TOKEN= npm run test:coveralls ``` +## ES5 and satellite.min.js + +Some people are confused that they can't just download a single satellite.js or satellite.min.js file. That is because satellite.js is not written in plain old JavaScript (ES5) anymore but ported to latter JavaScript versions ES6+. + +Only the "src" directory is included in the Git repository, "dist" and "lib" directories are ignored. It's done intentionally to retain the size of the repository as small as possible. A full detailed explanation of why is located [here](https://github.com/shashwatak/satellite-js/issues/80#issuecomment-749225324). + +You should install satellite.js with your package manager (npm or yarn) and then find satellite.js and satellite.min.js in node_modules/satellite.js/dist directory. + ## TODO Optional functions that utilize Worker Threads From 1e6c4f0d14de5abab0d52b91a27b70028a0a0221 Mon Sep 17 00:00:00 2001 From: Dmitriy Pushkov Date: Thu, 7 Jan 2021 17:30:24 +0300 Subject: [PATCH 03/21] Node 14 and 15 are added to CI configuration. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index b473be2..b5287a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: node_js node_js: + - "15" + - "14" - "13" - "12" - "11" From 5957c90c4ef261fdbd4c668429e2817d162e84ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 8 May 2021 07:27:57 +0000 Subject: [PATCH 04/21] Bump lodash from 4.17.20 to 4.17.21 Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 476d51c..384dedd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3711,9 +3711,9 @@ lodash.sortby@^4.7.0: integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= lodash@^4.17.14, lodash@^4.17.19: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-driver@^1.2.7: version "1.2.7" From 6efadd2c183067d31ae1717a46ef62f9068dbe9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 01:36:33 +0000 Subject: [PATCH 05/21] Bump hosted-git-info from 2.8.8 to 2.8.9 Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 384dedd..b28f91e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2738,9 +2738,9 @@ has@^1.0.3: function-bind "^1.1.1" hosted-git-info@^2.1.4: - version "2.8.8" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" - integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== + version "2.8.9" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== html-encoding-sniffer@^2.0.1: version "2.0.1" From ea67c6b551c13cda347ea4526118778c532b34cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 May 2021 00:49:47 +0000 Subject: [PATCH 06/21] Bump browserslist from 4.14.2 to 4.16.6 Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.2 to 4.16.6. - [Release notes](https://github.com/browserslist/browserslist/releases) - [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md) - [Commits](https://github.com/browserslist/browserslist/compare/4.14.2...4.16.6) Signed-off-by: dependabot[bot] --- yarn.lock | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/yarn.lock b/yarn.lock index 384dedd..3420fa9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1555,14 +1555,15 @@ browser-process-hrtime@^1.0.0: integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== browserslist@^4.12.0, browserslist@^4.8.5: - version "4.14.2" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.14.2.tgz#1b3cec458a1ba87588cc5e9be62f19b6d48813ce" - integrity sha512-HI4lPveGKUR0x2StIz+2FXfDk9SfVMrxn6PLh1JeGUwcuoDkdKZebWiyLRJ68iIPDpMI4JLVDf7S7XzslgWOhw== + version "4.16.6" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2" + integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ== dependencies: - caniuse-lite "^1.0.30001125" - electron-to-chromium "^1.3.564" - escalade "^3.0.2" - node-releases "^1.1.61" + caniuse-lite "^1.0.30001219" + colorette "^1.2.2" + electron-to-chromium "^1.3.723" + escalade "^3.1.1" + node-releases "^1.1.71" bser@2.1.1: version "2.1.1" @@ -1606,10 +1607,10 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.0.0.tgz#5259f7c30e35e278f1bdc2a4d91230b37cad981e" integrity sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w== -caniuse-lite@^1.0.30001125: - version "1.0.30001129" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001129.tgz#e6514b94c0ef50f98cf7476daa91228ddd2ef7bc" - integrity sha512-9945fTVKS810DZITpsAbuhQG7Lam0tEfVbZlsBaCFZaszepbryrArS05PWmJSBQ6mta+v9iz0pUIAbW1eBILIg== +caniuse-lite@^1.0.30001219: + version "1.0.30001228" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001228.tgz#bfdc5942cd3326fa51ee0b42fbef4da9d492a7fa" + integrity sha512-QQmLOGJ3DEgokHbMSA8cj2a+geXqmnpyOFT0lhQV6P3/YOJvGDEwoedcwxEQ30gJIwIIunHIicunJ2rzK5gB2A== capture-exit@^2.0.0: version "2.0.0" @@ -1754,6 +1755,11 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +colorette@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" + integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== + combined-stream@^1.0.6, combined-stream@~1.0.6: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" @@ -2017,10 +2023,10 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" -electron-to-chromium@^1.3.564: - version "1.3.567" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.567.tgz#7a404288952ac990e447a7a86470d460ea953b8f" - integrity sha512-1aKkw0Hha1Bw9JA5K5PT5eFXC/TXbkJvUfNSNEciPUMgSIsRJZM1hF2GUEAGZpAbgvd8En21EA+Lv820KOhvqA== +electron-to-chromium@^1.3.723: + version "1.3.736" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.736.tgz#f632d900a1f788dab22fec9c62ec5c9c8f0c4052" + integrity sha512-DY8dA7gR51MSo66DqitEQoUMQ0Z+A2DSXFi7tK304bdTVqczCAfUuyQw6Wdg8hIoo5zIxkU1L24RQtUce1Ioig== emittery@^0.7.1: version "0.7.1" @@ -2102,11 +2108,6 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -escalade@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.0.2.tgz#6a580d70edb87880f22b4c91d0d56078df6962c4" - integrity sha512-gPYAU37hYCUhW5euPeR+Y74F7BL+IBsV93j5cvGriSaD1aG6MGsqsV1yamRdrWrb2j3aiZvb0X+UBOWpx3JWtQ== - escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -3918,10 +3919,10 @@ node-notifier@^8.0.0: uuid "^8.3.0" which "^2.0.2" -node-releases@^1.1.61: - version "1.1.61" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.61.tgz#707b0fca9ce4e11783612ba4a2fcba09047af16e" - integrity sha512-DD5vebQLg8jLCOzwupn954fbIiZht05DAZs0k2u8NStSe6h9XdsuIQL8hSRKYiU8WUQRznmSDrKGbv3ObOmC7g== +node-releases@^1.1.71: + version "1.1.72" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.72.tgz#14802ab6b1039a79a0c7d662b610a5bbd76eacbe" + integrity sha512-LLUo+PpH3dU6XizX3iVoubUNheF/owjXCZZ5yACDxNnPtgFuludV1ZL3ayK1kVep42Rmm0+R9/Y60NQbZ2bifw== noms@0.0.0: version "0.0.0" From 6d49ac9412212cc7b8f549543303c008a464aa02 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 30 May 2021 00:15:21 +0000 Subject: [PATCH 07/21] Bump ws from 7.3.1 to 7.4.6 Bumps [ws](https://github.com/websockets/ws) from 7.3.1 to 7.4.6. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/7.3.1...7.4.6) Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6a89477..45149c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5470,9 +5470,9 @@ write@1.0.3: mkdirp "^0.5.1" ws@^7.2.3: - version "7.3.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.3.1.tgz#d0547bf67f7ce4f12a72dfe31262c68d7dc551c8" - integrity sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA== + version "7.4.6" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" + integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== xml-name-validator@^3.0.0: version "3.0.0" From da353eeadf5724c6de00c2bd5111218c6d336696 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Wed, 2 Jun 2021 03:48:23 -0400 Subject: [PATCH 08/21] test(test): added multiple tests to expand code coverage --- test/.eslintrc.json | 12 +- test/dopplerFactor.test.js | 24 +- test/io.json | 34 +++ test/io.test.js | 9 +- test/propagation/dsinit.json | 222 ++++++++++++++ test/propagation/dsinit.test.js | 11 + test/propagation/initl.test.js | 31 ++ test/propagation/sgp4.json | 514 +++++++++++++++++--------------- test/transforms.json | 315 +++++++++++++++---- test/transforms.test.js | 50 +++- 10 files changed, 915 insertions(+), 307 deletions(-) create mode 100644 test/io.json create mode 100644 test/propagation/dsinit.json create mode 100644 test/propagation/dsinit.test.js create mode 100644 test/propagation/initl.test.js diff --git a/test/.eslintrc.json b/test/.eslintrc.json index 8524cf1..85d36ac 100644 --- a/test/.eslintrc.json +++ b/test/.eslintrc.json @@ -1,6 +1,6 @@ -{ - "extends": "airbnb-base", - "env": { - "jest": true - } -} +{ + "extends": "airbnb-base", + "env": { + "jest": true + } +} diff --git a/test/dopplerFactor.test.js b/test/dopplerFactor.test.js index 6b575f7..7b1b06c 100644 --- a/test/dopplerFactor.test.js +++ b/test/dopplerFactor.test.js @@ -1,4 +1,4 @@ -import dopplerFactor from '../src/dopplerFactor'; // eslint-disable-line +import dopplerFactor from "../src/dopplerFactor"; // eslint-disable-line const numDigits = 8; @@ -67,4 +67,26 @@ describe('Doppler factor', () => { const dopFactor = dopplerFactor(observerEcf, positionEcf, velocityEcf); expect(dopFactor).toBeCloseTo(1.0000107847789212, numDigits); }); + + it('calculated from a negative range rate', () => { + // North Pole + const observerEcf = { + x: -500, + y: 0, + z: earthRadius + 500, + }; + const positionEcf = { + x: 500, + y: 0, + z: earthRadius, + }; + // Escape velocity + const velocityEcf = { + x: -7.91, + y: -3.12, + z: 0, + }; + const dopFactor = dopplerFactor(observerEcf, positionEcf, velocityEcf); + expect(dopFactor).toBeCloseTo(1.0000235993898179, numDigits); + }); }); diff --git a/test/io.json b/test/io.json new file mode 100644 index 0000000..01adcfa --- /dev/null +++ b/test/io.json @@ -0,0 +1,34 @@ +[ + { + "tleLine1": "1 00001U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00001 34.2508 325.6936 1846988 181.8107 177.4919 00.00000000227203", + "description": "Mean motion is zero and that is not allowed.", + "results": [{ + "error": 2 + }] + }, + { + "tleLine1": "1 00002U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00002 34.2508 325.6936 1846988 181.8107 177.4919 00.00000001227203", + "description": "Eccentricity is way too high because mean motion is nearly zero.", + "results": [{ + "error": 3 + }] + }, + { + "tleLine1": "1 00004U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00004 34.2508 325.6936 9999999 181.8107 177.4919 10.84863720227203", + "description": "Mean motion is zero and that is not allowed.", + "results": [{ + "error": 4 + }] + }, + { + "tleLine1": "1 00006U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00005 34.2508 325.6936 1846988 181.8107 177.4919 25.84863720227203", + "description": "Satellite should be decayed already.", + "results": [{ + "error": 6 + }] + } +] \ No newline at end of file diff --git a/test/io.test.js b/test/io.test.js index f401dab..50973fc 100644 --- a/test/io.test.js +++ b/test/io.test.js @@ -1,7 +1,14 @@ import twoline2satrec from '../src/io'; // eslint-disable-line +import badTleData from './io.json'; describe('Twoline', () => { it('twoline to satellite record', () => { - // TODO: + badTleData.forEach((tleDataItem) => { + const satrec = twoline2satrec(tleDataItem.tleLine1, tleDataItem.tleLine2); + tleDataItem.results.forEach((expected) => { + // Fetching satellite record from incorrectly formatted TLE lines + expect(satrec.error).toEqual(expected.error); + }); + }); }); }); diff --git a/test/propagation/dsinit.json b/test/propagation/dsinit.json new file mode 100644 index 0000000..f536db2 --- /dev/null +++ b/test/propagation/dsinit.json @@ -0,0 +1,222 @@ +[ + { + "tleLine1": "1 00001U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00004 34.2508 325.6936 5000000 181.8107 177.4919 001.8999000000203", + "options": { + "argpm": 0, + "argpo": 3.1731953303556546, + "atime": 0, + "cosim": 0.8265818908073872, + "d2201": 0, + "d2211": 0, + "d3210": 0, + "d3222": 0, + "d4410": 0, + "d4422": 0, + "d5220": 0, + "d5232": 0, + "d5421": 0, + "d5433": 0, + "dedt": 0, + "del1": 0, + "del2": 0, + "del3": 0, + "didt": 0, + "dmdt": 0, + "dnodt": 0, + "domdt": 0, + "ecco": 0.5, + "eccsq": 0.25, + "em": 0.5, + "emsq": 0.25, + "gsto": 5.220883431349307, + "inclm": 0.5977892314420737, + "irez": 0, + "mdot": 0.008289877617360376, + "mm": 0, + "mo": 3.097818050620523, + "nm": 0.00828929401348305, + "no": 0.00828929401348305, + "nodedot": -0.0000010615465631002147, + "nodem": 0, + "nodeo": 5.684425672673404, + "s1": -0.0003758603820133531, + "s2": -0.00003340981173452028, + "s3": 0.000057867491395499995, + "s4": 0.00005011471760178041, + "s5": -0.0814586266145132, + "sinim": 0.5628164690103556, + "ss1": -0.0023400973145719425, + "ss2": -0.0002080086501841727, + "ss3": 0.0003602815505328084, + "ss4": 0.000312012975276259, + "ss5": -0.05506592822076295, + "sz1": 10.0266126658567, + "sz3": 11.96755448889018, + "sz11": -0.26695105200172087, + "sz13": 2.85835691924874, + "sz21": -0.10879395395455185, + "sz23": -0.9817900146669546, + "sz31": 3.2268633174603867, + "sz33": 5.297255866008874, + "t": 0, + "tc": 0, + "xfact": 0, + "xlamo": 0, + "xli": 0, + "xni": 0, + "xpidot": 4.898991347062741e-7, + "z1": 4.101694478238579, + "z3": 16.932733892867283, + "z11": 1.429557720331177, + "z13": 1.9707634473989213, + "z21": -1.4644752902058293, + "z23": 0.2884276608142515, + "z31": -0.8856293737107999, + "z33": 8.908977597159325 + }, + "results": { + "argpm": 0, + "atime": 0, + "d2201": -1.2099452515548102e-11, + "d2211": 1.0011506195793891e-11, + "d3210": -5.0866898135037016e-12, + "d3222": -3.987984720569471e-13, + "d4410": 4.109492519702797e-13, + "d4422": 9.349618846253649e-14, + "d5220": 2.4097891471717693e-13, + "d5232": 1.6478793629942387e-13, + "d5421": -2.138743302011661e-13, + "d5433": -9.311246040525512e-15, + "dedt": 6.387624124699951e-9, + "del1": 0, + "del2": 0, + "del3": 0, + "didt": -2.4428711570103973e-8, + "dmdt": -7.866458523057076e-8, + "dndt": 0, + "dnodt": -1.5869893761619698e-8, + "domdt": 3.8582690952174514e-8, + "em": 0.5, + "inclm": 0.5977892314420737, + "irez": 2, + "mm": 0, + "nm": 0.00828929401348305, + "nodem": 0, + "xfact": -0.008752188069644229, + "xlamo": 4.024902533268717, + "xli": 4.024902533268717, + "xni": 0.00828929401348305 + } + }, + { + "tleLine1": "1 00001U 57001B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00004 34.2508 325.6936 9000000 181.8107 177.4919 001.8999000000203", + "options": { + "argpm": 0, + "argpo": 3.1731953303556546, + "atime": 0, + "cosim": 0.8265818908073872, + "d2201": 0, + "d2211": 0, + "d3210": 0, + "d3222": 0, + "d4410": 0, + "d4422": 0, + "d5220": 0, + "d5232": 0, + "d5421": 0, + "d5433": 0, + "dedt": 0, + "del1": 0, + "del2": 0, + "del3": 0, + "didt": 0, + "dmdt": 0, + "dnodt": 0, + "domdt": 0, + "ecco": 0.9, + "eccsq": 0.81, + "em": 0.9, + "emsq": 0.81, + "gsto": 5.220883431349307, + "inclm": 0.5977892314420737, + "irez": 0, + "mdot": 0.008289882914214362, + "mm": 0, + "mo": 3.097818050620523, + "nm": 0.008285301381233555, + "no": 0.008285301381233555, + "nodedot": -0.000016615977679572516, + "nodem": 0, + "nodeo": 5.684425672673404, + "s1": -0.00034068613392845755, + "s2": -0.0000664105524227013, + "s3": 0.000057895377359053036, + "s4": 0.000025236009920626485, + "s5": -0.0814586266145132, + "sinim": 0.5628164690103556, + "ss1": -0.0021211033279095576, + "ss2": -0.00041347043429036223, + "ss3": 0.00036045516784271263, + "ss4": 0.0001571187650303376, + "ss5": -0.05506592822076295, + "sz1": 11.833656123634515, + "sz3": 14.934017773855151, + "sz11": -0.559025056566349, + "sz13": 6.1122684947234225, + "sz21": -0.012026488033904603, + "sz23": -0.41905685490385947, + "sz31": 3.2268633174603867, + "sz33": 5.297255866008874, + "t": 0, + "tc": 0, + "xfact": 0, + "xlamo": 0, + "xli": 0, + "xni": 0, + "xpidot": 0.000007654165958004881, + "z1": 3.6057420289605315, + "z3": 21.9217613472765, + "z11": 3.1143324610298544, + "z13": 4.157342147158473, + "z21": -0.4580055602764077, + "z23": -0.042575346093936206, + "z31": -0.8856293737107999, + "z33": 8.908977597159325 + }, + "results": { + "argpm": 0, + "atime": 0, + "d2201": -2.077924583398718e-11, + "d2211": 8.354983905797916e-11, + "d3210": -7.971726821781479e-11, + "d3222": -1.5879590871766552e-11, + "d4410": 1.5757473446619235e-11, + "d4422": 7.56870174312408e-12, + "d5220": 3.642170086460131e-11, + "d5232": 6.090615241770774e-11, + "d5421": -4.636788210900563e-11, + "d5433": -5.740340181834411e-12, + "dedt": 5.789849295568645e-9, + "del1": 0, + "del2": 0, + "del3": 0, + "didt": -1.0389979451500435e-7, + "dmdt": -9.517687076400692e-8, + "dndt": 0, + "dnodt": -1.3136567693239499e-8, + "domdt": 2.3681689509031805e-8, + "em": 0.9, + "inclm": 0.5977892314420737, + "irez": 2, + "mm": 0, + "nm": 0.008285301381233555, + "nodem": 0, + "xfact": -0.00877931004840709, + "xlamo": 4.024902533268717, + "xli": 4.024902533268717, + "xni": 0.008285301381233555 + } + } +] diff --git a/test/propagation/dsinit.test.js b/test/propagation/dsinit.test.js new file mode 100644 index 0000000..d2eae80 --- /dev/null +++ b/test/propagation/dsinit.test.js @@ -0,0 +1,11 @@ +import dsinit from "../../src/propagation/dsinit"; // eslint-disable-line +import dsOptionSets from './dsinit.json'; + +describe('Initialize Resonance Terms', () => { + it('Geopotential Resonance for 12 Hour Orbits', () => { + dsOptionSets.forEach((testSet) => { + const results = dsinit(testSet.options); + expect(results).toEqual(testSet.results); + }); + }); +}); diff --git a/test/propagation/initl.test.js b/test/propagation/initl.test.js new file mode 100644 index 0000000..70ef4af --- /dev/null +++ b/test/propagation/initl.test.js @@ -0,0 +1,31 @@ +import initl from "../../src/propagation/initl"; // eslint-disable-line + +describe('Propagator Initialization', () => { + it('Legacy Sidereal Time Calculations', () => { + const options = { + ecco: 0.1846988, + epoch: 25938.538312919904, + inclo: 0, + method: 'n', + no: 0.0037028783237264057, + opsmode: 'a', + satn: '00001', + }; + const results = initl(options); + expect(results.ainv).toBeCloseTo(0.1353414893496189); + expect(results.ao).toBeCloseTo(7.3887172721793); + expect(results.con41).toEqual(2); + expect(results.con42).toEqual(-4); + expect(results.cosio).toEqual(1); + expect(results.cosio2).toEqual(1); + expect(results.eccsq).toBeCloseTo(0.034113646721439995); + expect(results.gsto).toBeCloseTo(5.220883431398299); + expect(results.method).toEqual('n'); + expect(results.no).toBeCloseTo(0.003702762286531528); + expect(results.omeosq).toBeCloseTo(0.96588635327856); + expect(results.posq).toBeCloseTo(50.931932818552305); + expect(results.rp).toBeCloseTo(6.02403005846851); + expect(results.rteosq).toBeCloseTo(0.9827951736137902); + expect(results.sinio).toEqual(0); + }); +}); diff --git a/test/propagation/sgp4.json b/test/propagation/sgp4.json index 522371e..8edc380 100644 --- a/test/propagation/sgp4.json +++ b/test/propagation/sgp4.json @@ -1,241 +1,273 @@ -[{ - "tleLine1": "1 88888U 80275.98708465 .00073094 13844-3 66816-4 0 8", - "tleLine2": "2 88888 72.8435 115.9689 0086731 52.6988 110.5714 16.05824518 105", - "results": [{ - "time": 0.0, - "position": { - "x": 2328.957357263014, - "y": -5995.219305262678, - "z": 1720.0073114076358 - }, - "velocity": { - "x": 2.91207765874696, - "y": -0.9834360870126623, - "z": -7.090803298325344 - } - }, { - "time": 360.0, - "position": { - "x": 2456.089652220053, - "y": -6071.940386186373, - "z": 1222.9342493789352 - }, - "velocity": { - "x": 2.6793960876510083, - "y": -0.4483139198146117, - "z": -7.228781912039579 - } - }, { - "time": 720.0, - "position": { - "x": 2567.540106442206, - "y": -6112.50918063211, - "z": 714.0019601514776 - }, - "velocity": { - "x": 2.440254031643538, - "y": 0.09808220218774294, - "z": -7.319952245888289 - } - }, { - "time": 1080.0, - "position": { - "x": 2663.062956505525, - "y": -6115.492075231422, - "z": 196.43997125154644 - }, - "velocity": { - "x": 2.1961326037094726, - "y": 0.6523859581455292, - "z": -7.362820741307043 - } - }, { - "time": 1440.0, - "position": { - "x": 2742.5231263865253, - "y": -6079.683233691672, - "z": -326.350514126162 - }, - "velocity": { - "x": 1.9485119418860857, - "y": 1.211042603674053, - "z": -7.356193489571535 - } - }] -}, { - "tleLine1": "1 11801U 80230.29629788 .01431103 00000-0 14311-1 ", - "tleLine2": "2 11801 46.7916 230.4354 7318036 47.4722 10.4117 2.28537848 ", - "results": [{ - "time": 0.0, - "position": { - "x": 7473.3599032879365, - "y": 428.90099009406805, - "z": 5828.770850028464 - }, - "velocity": { - "x": 5.10716775131343, - "y": 6.444664842035081, - "z": -0.18611269941800382 - } - }, { - "time": 360.0, - "position": { - "x": -3305.2047838547987, - "y": 32410.796658377898, - "z": -24697.124806172797 - }, - "velocity": { - "x": -1.3011409273028303, - "y": -1.151318003512851, - "z": -0.2833371179184987 - } - }, { - "time": 720.0, - "position": { - "x": 14271.309350739291, - "y": 24110.459756353135, - "z": -4725.760339366821 - }, - "velocity": { - "x": -0.3205094712462314, - "y": 2.6798324974506915, - "z": -2.0840523146670265 - } - }, { - "time": 1080.0, - "position": { - "x": -9990.126360275444, - "y": 22717.081117427293, - "z": -23616.76382489919 - }, - "velocity": { - "x": -1.01667117261397, - "y": -2.2902907031491804, - "z": 0.7289415577329694 - } - }, { - "time": 1440.0, - "position": { - "x": 9787.757441373433, - "y": 33753.339067624205, - "z": -15030.91096060269 - }, - "velocity": { - "x": -1.0942645167263871, - "y": 0.9235593523204051, - "z": -1.5223007481343744 - } - }] -}, { - "tleLine1": "1 38778U 12051A 12288.95265372 .00000136 00000-0 00000+0 0 217", - "tleLine2": "2 38778 000.0698 254.6769 0000479 231.1384 284.5280 01.00269150 226", - "results": [{ - "time": 0.0, - "position": { - "x": 26932.01821553, - "y": 32442.36380581, - "z": 18.67203987 - }, - "velocity": { - "x": -2.365855637, - "y": 1.963833427, - "z": -0.004652773 - } - }, { - "time": 500000.0, - "position": { - "x": -41642.98362540, - "y": 6521.85388710, - "z": -484.73552503 - }, - "velocity": { - "x": -0.475966361, - "y": -3.038100957, - "z": 0.005837330 - } - }, { - "time": 1000000.0, - "position": { - "x": -41679.89221227, - "y": -6406.44765047, - "z": -888.19222905 - }, - "velocity": { - "x": 0.466036434, - "y": -3.038415548, - "z": 0.041394568 - } - }, { - "time": 1500000.0, - "position": { - "x": 89.92166006, - "y": -42138.48887821, - "z": 783.16731078 - }, - "velocity": { - "x": 3.073618177, - "y": 0.008372197, - "z": 0.102829394 - } - }, { - "time": 2000000.0, - "position": { - "x": 40249.05825173, - "y": -12456.01761882, - "z": 2073.91657116 - }, - "velocity": { - "x": 0.910791707, - "y": 2.935583446, - "z": -0.045177132 - } - }, { - "time": 2500000.0, - "position": { - "x": 41670.98646874, - "y": 6091.87422335, - "z": 1846.43614861 - }, - "velocity": { - "x": -0.438088814, - "y": 3.040224736, - "z": -0.144569657 - } - }, { - "time": 3000000.0, - "position": { - "x": -24943.38429627, - "y": 33846.85571434, - "z": -3202.53618091 - }, - "velocity": { - "x": -2.473012005, - "y": -1.826475386, - "z": -0.041201988 - } - }, { - "time": 3500000.0, - "position": { - "x": -25743.03216099, - "y": 33183.50696319, - "z": -3784.96326117 - }, - "velocity": { - "x": -2.428125057, - "y": -1.885980854, - "z": -0.019143710 - } - }, { - "time": 4000000.0, - "position": { - "x": -19165.85184790, - "y": -37493.19360463, - "z": 1884.67124427 - }, - "velocity": { - "x": 2.732242938, - "y": -1.382445535, - "z": 0.284603946 - } - }] -}] +[{ + "tleLine1": "1 88888U 80275.98708465 .00073094 13844-3 66816-4 0 8", + "tleLine2": "2 88888 72.8435 115.9689 0086731 52.6988 110.5714 16.05824518 105", + "results": [{ + "time": 0.0, + "position": { + "x": 2328.957357263014, + "y": -5995.219305262678, + "z": 1720.0073114076358 + }, + "velocity": { + "x": 2.91207765874696, + "y": -0.9834360870126623, + "z": -7.090803298325344 + } + }, { + "time": 360.0, + "position": { + "x": 2456.089652220053, + "y": -6071.940386186373, + "z": 1222.9342493789352 + }, + "velocity": { + "x": 2.6793960876510083, + "y": -0.4483139198146117, + "z": -7.228781912039579 + } + }, { + "time": 720.0, + "position": { + "x": 2567.540106442206, + "y": -6112.50918063211, + "z": 714.0019601514776 + }, + "velocity": { + "x": 2.440254031643538, + "y": 0.09808220218774294, + "z": -7.319952245888289 + } + }, { + "time": 1080.0, + "position": { + "x": 2663.062956505525, + "y": -6115.492075231422, + "z": 196.43997125154644 + }, + "velocity": { + "x": 2.1961326037094726, + "y": 0.6523859581455292, + "z": -7.362820741307043 + } + }, { + "time": 1440.0, + "position": { + "x": 2742.5231263865253, + "y": -6079.683233691672, + "z": -326.350514126162 + }, + "velocity": { + "x": 1.9485119418860857, + "y": 1.211042603674053, + "z": -7.356193489571535 + } + }] +}, { + "tleLine1": "1 11801U 80230.29629788 .01431103 00000-0 14311-1 ", + "tleLine2": "2 11801 46.7916 230.4354 7318036 47.4722 10.4117 2.28537848 ", + "results": [{ + "time": 0.0, + "position": { + "x": 7473.3599032879365, + "y": 428.90099009406805, + "z": 5828.770850028464 + }, + "velocity": { + "x": 5.10716775131343, + "y": 6.444664842035081, + "z": -0.18611269941800382 + } + }, { + "time": 360.0, + "position": { + "x": -3305.2047838547987, + "y": 32410.796658377898, + "z": -24697.124806172797 + }, + "velocity": { + "x": -1.3011409273028303, + "y": -1.151318003512851, + "z": -0.2833371179184987 + } + }, { + "time": 720.0, + "position": { + "x": 14271.309350739291, + "y": 24110.459756353135, + "z": -4725.760339366821 + }, + "velocity": { + "x": -0.3205094712462314, + "y": 2.6798324974506915, + "z": -2.0840523146670265 + } + }, { + "time": 1080.0, + "position": { + "x": -9990.126360275444, + "y": 22717.081117427293, + "z": -23616.76382489919 + }, + "velocity": { + "x": -1.01667117261397, + "y": -2.2902907031491804, + "z": 0.7289415577329694 + } + }, { + "time": 1440.0, + "position": { + "x": 9787.757441373433, + "y": 33753.339067624205, + "z": -15030.91096060269 + }, + "velocity": { + "x": -1.0942645167263871, + "y": 0.9235593523204051, + "z": -1.5223007481343744 + } + }] +}, { + "tleLine1": "1 38778U 12051A 12288.95265372 .00000136 00000-0 00000+0 0 217", + "tleLine2": "2 38778 000.0698 254.6769 0000479 231.1384 284.5280 01.00269150 226", + "results": [{ + "time": 0.0, + "position": { + "x": 26932.01821553, + "y": 32442.36380581, + "z": 18.67203987 + }, + "velocity": { + "x": -2.365855637, + "y": 1.963833427, + "z": -0.004652773 + } + }, { + "time": 500000.0, + "position": { + "x": -41642.98362540, + "y": 6521.85388710, + "z": -484.73552503 + }, + "velocity": { + "x": -0.475966361, + "y": -3.038100957, + "z": 0.005837330 + } + }, { + "time": 1000000.0, + "position": { + "x": -41679.89221227, + "y": -6406.44765047, + "z": -888.19222905 + }, + "velocity": { + "x": 0.466036434, + "y": -3.038415548, + "z": 0.041394568 + } + }, { + "time": 1500000.0, + "position": { + "x": 89.92166006, + "y": -42138.48887821, + "z": 783.16731078 + }, + "velocity": { + "x": 3.073618177, + "y": 0.008372197, + "z": 0.102829394 + } + }, { + "time": 2000000.0, + "position": { + "x": 40249.05825173, + "y": -12456.01761882, + "z": 2073.91657116 + }, + "velocity": { + "x": 0.910791707, + "y": 2.935583446, + "z": -0.045177132 + } + }, { + "time": 2500000.0, + "position": { + "x": 41670.98646874, + "y": 6091.87422335, + "z": 1846.43614861 + }, + "velocity": { + "x": -0.438088814, + "y": 3.040224736, + "z": -0.144569657 + } + }, { + "time": 3000000.0, + "position": { + "x": -24943.38429627, + "y": 33846.85571434, + "z": -3202.53618091 + }, + "velocity": { + "x": -2.473012005, + "y": -1.826475386, + "z": -0.041201988 + } + }, { + "time": 3500000.0, + "position": { + "x": -25743.03216099, + "y": 33183.50696319, + "z": -3784.96326117 + }, + "velocity": { + "x": -2.428125057, + "y": -1.885980854, + "z": -0.019143710 + } + }, { + "time": 4000000.0, + "position": { + "x": -19165.85184790, + "y": -37493.19360463, + "z": 1884.67124427 + }, + "velocity": { + "x": 2.732242938, + "y": -1.382445535, + "z": 0.284603946 + } + }] +}, { + "tleLine1": "1 35009U 09029B 20211.00610242 .02277784 -35844-4 26606-3 0 9997", + "tleLine2": "2 35009 63.2954 149.0177 7112622 249.4396 25.6425 2.59932820 95205", + "results": [{ + "time": 0.0, + "position": { + "x": -12653.51813495988, + "y": 7594.314114280105, + "z": 0.06400625597441757 + }, + "velocity": { + "x": -4.461734922545598, + "y": 0.31971388450669386, + "z": 4.022200806172491 + } + }] +}, { + "tleLine1": "1 00005U 58002B 21005.53831292 -.00000083 00000-0 -11575-3 0 9996", + "tleLine2": "2 00005 180.0000 325.6936 1846988 181.8107 177.4919 10.84863720227203", + "results": [{ + "time": 0.0, + "position": { + "x": 8426.147415794167, + "y": -5761.018919510716, + "z": 1.1836170303804414e-15 + }, + "velocity": { + "x": -3.154518844384156, + "y": -4.683223976820316, + "z": 6.914910726640889e-16 + } + }] +}] diff --git a/test/transforms.json b/test/transforms.json index 03266b8..1b2ff94 100644 --- a/test/transforms.json +++ b/test/transforms.json @@ -1,54 +1,261 @@ -{ - "validLatitudes": [{ - "radians": 0, - "degrees": 0 - }, { - "radians": 1.0471975511965976, - "degrees": 60 - }, { - "radians": 1.5707963267948966, - "degrees": 90 - }, { - "radians": -1.0471975511965976, - "degrees": -60 - }, { - "radians": -1.5707963267948966, - "degrees": -90 - }], - "validLongitudes": [{ - "radians": 0, - "degrees": 0 - }, { - "radians": 1.0471975511965976, - "degrees": 60 - }, { - "radians": 2.356194490192345, - "degrees": 135 - }, { - "radians": 3.141592653589793, - "degrees": 180 - }, { - "radians": -1.0471975511965976, - "degrees": -60 - }, { - "radians": -2.356194490192345, - "degrees": -135 - }, { - "radians": -3.141592653589793, - "degrees": -180 - }], - "invalidLatitudes": [{ - "radians": 2.0943951023931953, - "degrees": 120 - }, { - "radians": -2.0943951023931953, - "degrees": -120 - }], - "invalidLongitudes": [{ - "radians": 4.71238898038469, - "degrees": 270 - }, { - "radians": -4.71238898038469, - "degrees": -270 - }] -} +{ + "validLatitudes": [{ + "radians": 0, + "degrees": 0 + }, { + "radians": 1.0471975511965976, + "degrees": 60 + }, { + "radians": 1.5707963267948966, + "degrees": 90 + }, { + "radians": -1.0471975511965976, + "degrees": -60 + }, { + "radians": -1.5707963267948966, + "degrees": -90 + }], + "validLongitudes": [{ + "radians": 0, + "degrees": 0 + }, { + "radians": 1.0471975511965976, + "degrees": 60 + }, { + "radians": 2.356194490192345, + "degrees": 135 + }, { + "radians": 3.141592653589793, + "degrees": 180 + }, { + "radians": -1.0471975511965976, + "degrees": -60 + }, { + "radians": -2.356194490192345, + "degrees": -135 + }, { + "radians": -3.141592653589793, + "degrees": -180 + }], + "validGeodeticToEcf": [ + { + "lla": + { + "longitude": 0, + "latitude": 0, + "height": 0 + }, + "ecf": + { + "x": 6378.137, + "y": 0, + "z": 0 + } + }, + { + "lla": + { + "longitude": 380, + "latitude": 40, + "height": 1 + }, + "ecf": + { + "x": 4224.936136182726, + "y": -564.0109140102323, + "z": 4730.161371331031 + } + }, + { + "lla": + { + "longitude": -400, + "latitude": 80, + "height": 2 + }, + "ecf": + { + "x": 371.1876676842122, + "y": -601.2811231618838, + "z": -6319.632371290254 + } + } + ], + "validEciToGeodetic": [ + { + "eci": + { + "x": 6400, + "y": 100, + "z": 0 + }, + "gmst": 0, + "lla": + { + "longitude": 0.015623, + "latitude": 0, + "height": 22.6442 + } + }, + { + "eci": + { + "x": 5000, + "y": 45000, + "z": 0 + }, + "gmst": 10, + "lla": + { + "longitude": -2.256675587199412, + "latitude": 0, + "height": 38898.78869068708 + } + }, + { + "eci": + { + "x": 5000, + "y": 45000, + "z": 0 + }, + "gmst": -10, + "lla": + { + "longitude": -1.1062315087381709, + "latitude": 0, + "height": 38898.78869068708 + } + } + ], + "validEciToEcf": [ + { + "eci": + { + "x": 6400, + "y": 0, + "z": 0 + }, + "gmst": 10, + "ecf": + { + "x": -5370.057786089295, + "y": 3481.7351096919665, + "z": 0 + } + }, + { + "eci": + { + "x": 8000, + "y": 0, + "z": 8000 + }, + "gmst": 10, + "ecf": + { + "x": -6712.572232611619, + "y": 4352.168887114958, + "z": 8000 + } + }, + { + "eci": + { + "x": 8000, + "y": -4000, + "z": -8000 + }, + "gmst": -30, + "ecf": + { + "x": -2718.114897270775, + "y": -8521.25879229323, + "z": -8000 + } + } + ], + "validEcfToEci": [ + { + "ecf": + { + "x": 5555, + "y": 3000, + "z": 0 + }, + "gmst": 100, + "eci": + { + "x": 6309.278258887361, + "y": -225.90451950165834, + "z": 0 + } + }, + { + "ecf": + { + "x": 12000, + "y": 0, + "z": 9999 + }, + "gmst": 5000, + "eci": + { + "x": 1856.0208741689655, + "y": -11855.597265201322, + "z": 9999 + } + }, + { + "ecf": + { + "x": 54321, + "y": 12345, + "z": 12345 + }, + "gmst": 12345, + "eci": + { + "x": 18321.41422594596, + "y": -52606.994276059, + "z": 12345 + } + } + ], + "validEcfToLookangles": [ + { + "lla": + { + "longitude": -71, + "latitude": 41, + "height": 1 + }, + "satelliteEcf": + { + "x": 4000, + "y": 7000, + "z": 3000 + }, + "rae": + { + "rangeSat": 4612.7279304771755, + "azimuth": 2.769701913047414, + "elevation": 0.2050152036110117 + } + } + ], + "invalidLatitudes": [{ + "radians": 2.0943951023931953, + "degrees": 120 + }, { + "radians": -2.0943951023931953, + "degrees": -120 + }], + "invalidLongitudes": [{ + "radians": 4.71238898038469, + "degrees": 270 + }, { + "radians": -4.71238898038469, + "degrees": -270 + }] +} diff --git a/test/transforms.test.js b/test/transforms.test.js index d4d75ce..8dd2ee7 100644 --- a/test/transforms.test.js +++ b/test/transforms.test.js @@ -1,4 +1,3 @@ -/* eslint-disable */ import { degreesLat, degreesLong, @@ -8,10 +7,9 @@ import { eciToGeodetic, eciToEcf, ecfToEci, - ecfToLookAngles + ecfToLookAngles, } from '../src/transforms'; -/* eslint-enable */ - +import compareVectors from './compareVectors'; import transformData from './transforms.json'; const numDigits = 6; @@ -20,6 +18,11 @@ describe('Latitude & longitude conversions', () => { const { validLatitudes, validLongitudes, + validGeodeticToEcf, + validEciToGeodetic, + validEciToEcf, + validEcfToEci, + validEcfToLookangles, invalidLatitudes, invalidLongitudes, } = transformData; @@ -42,6 +45,45 @@ describe('Latitude & longitude conversions', () => { }); }); + validGeodeticToEcf.forEach((item) => { + it('convert valid LLA coordinates to ECF', () => { + const ecfCoordinates = geodeticToEcf(item.lla); + compareVectors(ecfCoordinates, item.ecf, 8); + }); + }); + + validEciToGeodetic.forEach((item) => { + it('convert valid ECI coordinates to LLA', () => { + const llaCoordinates = eciToGeodetic(item.eci, item.gmst); + expect(llaCoordinates.longitude).toBeCloseTo(item.lla.longitude); + expect(llaCoordinates.latitude).toBeCloseTo(item.lla.latitude); + expect(llaCoordinates.height).toBeCloseTo(item.lla.height); + }); + }); + + validEciToEcf.forEach((item) => { + it('convert valid ECI coordinates to ECF', () => { + const ecfCoordinates = eciToEcf(item.eci, item.gmst); + compareVectors(ecfCoordinates, item.ecf, 8); + }); + }); + + validEcfToEci.forEach((item) => { + it('convert valid ECF coordinates to ECI', () => { + const eciCoordinates = ecfToEci(item.ecf, item.gmst); + compareVectors(eciCoordinates, item.eci, 8); + }); + }); + + validEcfToLookangles.forEach((item) => { + it('convert valid ECF coordinates to RAE', () => { + const raeCoordinates = ecfToLookAngles(item.lla, item.satelliteEcf); + expect(raeCoordinates.rangeSat).toBeCloseTo(item.rae.rangeSat); + expect(raeCoordinates.azimuth).toBeCloseTo(item.rae.azimuth); + expect(raeCoordinates.elevation).toBeCloseTo(item.rae.elevation); + }); + }); + invalidLatitudes.forEach((item) => { it(`convert invalid latitude value (${item.radians} radians) to degrees`, () => { expect(() => degreesLat(item.radians)).toThrowError(RangeError); From 9317e0764af7148935000db00a03e9066d271f76 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Wed, 2 Jun 2021 03:54:25 -0400 Subject: [PATCH 09/21] test(test): removed mulitple ignore eslint commands --- test/dopplerFactor.test.js | 2 +- test/io.test.js | 2 +- test/propagation/dsinit.test.js | 2 +- test/propagation/initl.test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/dopplerFactor.test.js b/test/dopplerFactor.test.js index 7b1b06c..8cd38be 100644 --- a/test/dopplerFactor.test.js +++ b/test/dopplerFactor.test.js @@ -1,4 +1,4 @@ -import dopplerFactor from "../src/dopplerFactor"; // eslint-disable-line +import dopplerFactor from '../src/dopplerFactor'; const numDigits = 8; diff --git a/test/io.test.js b/test/io.test.js index 50973fc..3fd58d5 100644 --- a/test/io.test.js +++ b/test/io.test.js @@ -1,4 +1,4 @@ -import twoline2satrec from '../src/io'; // eslint-disable-line +import twoline2satrec from '../src/io'; import badTleData from './io.json'; describe('Twoline', () => { diff --git a/test/propagation/dsinit.test.js b/test/propagation/dsinit.test.js index d2eae80..3cf2ab6 100644 --- a/test/propagation/dsinit.test.js +++ b/test/propagation/dsinit.test.js @@ -1,4 +1,4 @@ -import dsinit from "../../src/propagation/dsinit"; // eslint-disable-line +import dsinit from '../../src/propagation/dsinit'; import dsOptionSets from './dsinit.json'; describe('Initialize Resonance Terms', () => { diff --git a/test/propagation/initl.test.js b/test/propagation/initl.test.js index 70ef4af..8cd8f33 100644 --- a/test/propagation/initl.test.js +++ b/test/propagation/initl.test.js @@ -1,4 +1,4 @@ -import initl from "../../src/propagation/initl"; // eslint-disable-line +import initl from '../../src/propagation/initl'; describe('Propagator Initialization', () => { it('Legacy Sidereal Time Calculations', () => { From d1bbe39adcfca1181cf21d7b08ff777dca32c613 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Wed, 2 Jun 2021 03:59:05 -0400 Subject: [PATCH 10/21] test(ext.test.js): fixed formatting inconsistencies --- test/ext.test.js | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/test/ext.test.js b/test/ext.test.js index c180d29..55308d8 100644 --- a/test/ext.test.js +++ b/test/ext.test.js @@ -1,9 +1,6 @@ import compareVectors from './compareVectors'; -import { - jday, - invjday, -} from '../src/ext'; +import { jday, invjday } from '../src/ext'; import twoline2satrec from '../src/io'; import { propagate, gstime } from '../src/propagation'; @@ -15,15 +12,17 @@ describe('Julian date / time', () => { describe('jday & invjday', () => { it('gives the same result with different arguments describing the same time', () => { - expect(jday(now)).toEqual(jday( - now.getUTCFullYear(), - now.getUTCMonth() + 1, - now.getUTCDate(), - now.getUTCHours(), - now.getUTCMinutes(), - now.getUTCSeconds(), - now.getUTCMilliseconds(), - )); + expect(jday(now)).toEqual( + jday( + now.getUTCFullYear(), + now.getUTCMonth() + 1, + now.getUTCDate(), + now.getUTCHours(), + now.getUTCMinutes(), + now.getUTCSeconds(), + now.getUTCMilliseconds(), + ), + ); }); it('outputs different results when milliseconds are passed', () => { @@ -89,21 +88,23 @@ describe('Julian date / time', () => { it('date to jday and inverse conversion', () => { const jd = jday(now); - const expected = ((now.getTime() - now.getMilliseconds()) / 1000); + const expected = (now.getTime() - now.getMilliseconds()) / 1000; expect(invjday(jd).getTime() / 1000).toEqual(expected); }); }); it('gstime gives the same result with different arguments describing the same time', () => { - expect(gstime(now)).toEqual(gstime( - now.getUTCFullYear(), - now.getUTCMonth() + 1, - now.getUTCDate(), - now.getUTCHours(), - now.getUTCMinutes(), - now.getUTCSeconds(), - now.getUTCMilliseconds(), - )); + expect(gstime(now)).toEqual( + gstime( + now.getUTCFullYear(), + now.getUTCMonth() + 1, + now.getUTCDate(), + now.getUTCHours(), + now.getUTCMinutes(), + now.getUTCSeconds(), + now.getUTCMilliseconds(), + ), + ); }); it('propagation gives the same result with different arguments describing the same time', () => { From c0e29b92682f02b586a57c16461eebf66e49944a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Aug 2021 22:28:36 +0000 Subject: [PATCH 11/21] Bump path-parse from 1.0.6 to 1.0.7 Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 45149c8..312a56b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4198,9 +4198,9 @@ path-key@^3.0.0, path-key@^3.1.0: integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== path-parse@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" - integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== path-type@^2.0.0: version "2.0.0" From d9a0cf87e7ec4e097325e9bc7da84d98ae470def Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 16:04:23 +0000 Subject: [PATCH 12/21] Bump y18n from 4.0.0 to 4.0.3 Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3) --- updated-dependencies: - dependency-name: y18n dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 312a56b..388bc49 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5490,9 +5490,9 @@ xtend@~4.0.1: integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== y18n@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" - integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + version "4.0.3" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== y18n@^5.0.5: version "5.0.5" From 6e0efee566068e01eaa3daa130988680f2868cc8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Sep 2021 16:54:15 +0000 Subject: [PATCH 13/21] Bump tmpl from 1.0.4 to 1.0.5 Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/daaku/nodejs-tmpl/releases) - [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5) --- updated-dependencies: - dependency-name: tmpl dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 388bc49..c10f081 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5106,9 +5106,9 @@ through2@^2.0.1: xtend "~4.0.1" tmpl@1.0.x: - version "1.0.4" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" - integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + version "1.0.5" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" + integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== to-fast-properties@^2.0.0: version "2.0.0" From f8e623299c5061967842c116951bbbd7c6b30106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deimantas=20But=C4=97nas?= <40717783+itsmedmd@users.noreply.github.com> Date: Thu, 3 Mar 2022 16:42:12 +0200 Subject: [PATCH 14/21] Fixing a typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9086d65..17bdf25 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,7 @@ git merge origin/develop git checkout -b my-feature ``` -Make sure that your changes don't brake the existing code by running +Make sure that your changes don't break the existing code by running ```bash npm test From 8652676efba862586a6af13c24334f53a9ef0bab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 Apr 2022 08:39:33 +0000 Subject: [PATCH 15/21] Bump moment from 2.29.1 to 2.29.2 Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2) --- updated-dependencies: - dependency-name: moment dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index c10f081..304067b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3851,9 +3851,9 @@ mkdirp@^1.0.4: integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== moment@^2.29.1: - version "2.29.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" - integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ== + version "2.29.2" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.2.tgz#00910c60b20843bcba52d37d58c628b47b1f20e4" + integrity sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg== ms@2.0.0: version "2.0.0" From 2b6560efab29e0b5407fbd0f01868959ae1b94a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 Apr 2022 12:13:29 +0000 Subject: [PATCH 16/21] Bump ansi-regex from 4.1.0 to 4.1.1 Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 304067b..99a8ccf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1273,9 +1273,9 @@ ansi-escapes@^4.2.1: type-fest "^0.11.0" ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" + integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== ansi-regex@^5.0.0: version "5.0.0" From f9a92f0213f0adca909f3ff86f3b8506ef10244f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 9 Apr 2022 12:13:30 +0000 Subject: [PATCH 17/21] Bump minimist from 1.2.5 to 1.2.6 Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 304067b..14b1f4e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3826,9 +3826,9 @@ minimatch@^3.0.3, minimatch@^3.0.4: brace-expansion "^1.1.7" minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== + version "1.2.6" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" + integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== mixin-deep@^1.2.0: version "1.3.2" From 449f5a5929acd9160b4ed8a500868925ffb57789 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Jun 2022 13:04:03 +0000 Subject: [PATCH 18/21] Bump jsdom from 16.4.0 to 16.7.0 Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.7.0. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md) - [Commits](https://github.com/jsdom/jsdom/compare/16.4.0...16.7.0) --- updated-dependencies: - dependency-name: jsdom dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 267 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 157 insertions(+), 110 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0a61444..b3e68e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1116,6 +1116,11 @@ dependencies: "@sinonjs/commons" "^1.7.0" +"@tootallnate/once@1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": version "7.1.9" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.9.tgz#77e59d438522a6fb898fa43dc3455c6e72f3963d" @@ -1222,10 +1227,10 @@ dependencies: "@types/yargs-parser" "*" -abab@^2.0.3: - version "2.0.5" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" - integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== +abab@^2.0.3, abab@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" + integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== acorn-globals@^6.0.0: version "6.0.0" @@ -1246,9 +1251,21 @@ acorn-walk@^7.1.1: integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== acorn@^7.1.1, acorn@^7.4.0: - version "7.4.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c" - integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w== + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.2.4: + version "8.7.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30" + integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4: version "6.12.5" @@ -1387,7 +1404,7 @@ async-each@^1.0.1: asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== at-least-node@^1.0.0: version "1.0.0" @@ -1760,7 +1777,7 @@ colorette@^1.2.2: resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== -combined-stream@^1.0.6, combined-stream@~1.0.6: +combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== @@ -1887,7 +1904,7 @@ cssom@~0.3.6: resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== -cssstyle@^2.2.0: +cssstyle@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== @@ -1910,6 +1927,13 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" +debug@4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -1929,21 +1953,26 @@ decamelize@^1.2.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= -decimal.js@^10.2.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.0.tgz#39466113a9e036111d02f82489b5fd6b0b5ed231" - integrity sha512-vDPw+rDgn3bZe1+F/pyEwb1oMG2XTlRVgAa6B4KccTEpYgF8w6eQllVbQcfIJnZyvzFtFpxnpGtx8dd7DJp/Rw== +decimal.js@^10.2.1: + version "10.3.1" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" + integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= -deep-is@^0.1.3, deep-is@~0.1.3: +deep-is@^0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= +deep-is@~0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + deepmerge@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" @@ -1981,7 +2010,7 @@ define-property@^2.0.2: delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== detect-newline@^3.0.0: version "3.1.0" @@ -2123,13 +2152,13 @@ escape-string-regexp@^2.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escodegen@^1.14.1: - version "1.14.3" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" - integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== +escodegen@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" + integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== dependencies: esprima "^4.0.1" - estraverse "^4.2.0" + estraverse "^5.2.0" esutils "^2.0.2" optionator "^0.8.1" optionalDependencies: @@ -2270,16 +2299,21 @@ esrecurse@^4.3.0: dependencies: estraverse "^5.2.0" -estraverse@^4.1.1, estraverse@^4.2.0: +estraverse@^4.1.1: version "4.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.1.0, estraverse@^5.2.0: +estraverse@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== +estraverse@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + estree-walker@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" @@ -2518,6 +2552,15 @@ forever-agent@~0.6.1: resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + form-data@~2.3.2: version "2.3.3" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" @@ -2755,6 +2798,15 @@ html-escaper@^2.0.0: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== +http-proxy-agent@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + http-signature@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" @@ -2764,6 +2816,14 @@ http-signature@~1.2.0: jsprim "^1.2.2" sshpk "^1.7.0" +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + human-signals@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" @@ -2827,11 +2887,6 @@ invariant@^2.2.2, invariant@^2.2.4: dependencies: loose-envify "^1.0.0" -ip-regex@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" - integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk= - is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -2994,10 +3049,10 @@ is-plain-object@^2.0.3, is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-potential-custom-element-name@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz#0c52e54bcca391bb2c494b21e8626d7336c6e397" - integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== is-regex@^1.1.0, is-regex@^1.1.1: version "1.1.1" @@ -3507,35 +3562,36 @@ jsbn@~0.1.0: integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= jsdom@^16.2.2: - version "16.4.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.4.0.tgz#36005bde2d136f73eee1a830c6d45e55408edddb" - integrity sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w== + version "16.7.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" + integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== dependencies: - abab "^2.0.3" - acorn "^7.1.1" + abab "^2.0.5" + acorn "^8.2.4" acorn-globals "^6.0.0" cssom "^0.4.4" - cssstyle "^2.2.0" + cssstyle "^2.3.0" data-urls "^2.0.0" - decimal.js "^10.2.0" + decimal.js "^10.2.1" domexception "^2.0.1" - escodegen "^1.14.1" + escodegen "^2.0.0" + form-data "^3.0.0" html-encoding-sniffer "^2.0.1" - is-potential-custom-element-name "^1.0.0" + http-proxy-agent "^4.0.1" + https-proxy-agent "^5.0.0" + is-potential-custom-element-name "^1.0.1" nwsapi "^2.2.0" - parse5 "5.1.1" - request "^2.88.2" - request-promise-native "^1.0.8" - saxes "^5.0.0" + parse5 "6.0.1" + saxes "^5.0.1" symbol-tree "^3.2.4" - tough-cookie "^3.0.1" + tough-cookie "^4.0.0" w3c-hr-time "^1.0.2" w3c-xmlserializer "^2.0.0" webidl-conversions "^6.1.0" whatwg-encoding "^1.0.5" whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - ws "^7.2.3" + whatwg-url "^8.5.0" + ws "^7.4.6" xml-name-validator "^3.0.0" jsesc@^2.5.1: @@ -3663,7 +3719,7 @@ levn@^0.4.1: levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== dependencies: prelude-ls "~1.1.2" type-check "~0.3.2" @@ -3706,12 +3762,7 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" -lodash.sortby@^4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" - integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= - -lodash@^4.17.14, lodash@^4.17.19: +lodash@^4.17.14, lodash@^4.17.19, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -3806,7 +3857,19 @@ mime-db@1.44.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.44.0.tgz#fa11c5eb0aca1334b4233cb4d52f10c5a6272f92" integrity sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg== -mime-types@^2.1.12, mime-types@~2.1.19: +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime-types@~2.1.19: version "2.1.27" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f" integrity sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w== @@ -3860,7 +3923,7 @@ ms@2.0.0: resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= -ms@^2.1.1: +ms@2.1.2, ms@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== @@ -4157,10 +4220,10 @@ parse-json@^5.0.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse5@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" - integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug== +parse5@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== pascalcase@^0.1.1: version "0.1.1" @@ -4270,7 +4333,7 @@ prelude-ls@^1.2.1: prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== prepend-file@^2.0.0: version "2.0.0" @@ -4308,7 +4371,7 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.4" -psl@^1.1.28: +psl@^1.1.28, psl@^1.1.33: version "1.8.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== @@ -4505,22 +4568,6 @@ repeat-string@^1.6.1: resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= -request-promise-core@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.4.tgz#3eedd4223208d419867b78ce815167d10593a22f" - integrity sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw== - dependencies: - lodash "^4.17.19" - -request-promise-native@^1.0.8: - version "1.0.9" - resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.9.tgz#e407120526a5efdc9a39b28a5679bf47b9d9dc28" - integrity sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g== - dependencies: - request-promise-core "1.1.4" - stealthy-require "^1.1.1" - tough-cookie "^2.3.3" - request@^2.88.2: version "2.88.2" resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" @@ -4664,7 +4711,7 @@ sane@^4.0.3: minimist "^1.1.1" walker "~1.0.5" -saxes@^5.0.0: +saxes@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== @@ -4910,11 +4957,6 @@ static-extend@^0.1.1: define-property "^0.2.5" object-copy "^0.1.0" -stealthy-require@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" - integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= - string-length@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.1.tgz#4a973bf31ef77c4edbceadd6af2611996985f8a1" @@ -5147,27 +5189,27 @@ to-regex@^3.0.1, to-regex@^3.0.2: regex-not "^1.0.2" safe-regex "^1.1.0" -tough-cookie@^2.3.3, tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== +tough-cookie@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.0.0.tgz#d822234eeca882f991f0f908824ad2622ddbece4" + integrity sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg== dependencies: - psl "^1.1.28" + psl "^1.1.33" punycode "^2.1.1" + universalify "^0.1.2" -tough-cookie@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz#9df4f57e739c26930a018184887f4adb7dca73b2" - integrity sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg== +tough-cookie@~2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== dependencies: - ip-regex "^2.1.0" psl "^1.1.28" punycode "^2.1.1" -tr46@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.0.2.tgz#03273586def1595ae08fedb38d7733cee91d2479" - integrity sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg== +tr46@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" + integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== dependencies: punycode "^2.1.1" @@ -5203,7 +5245,7 @@ type-check@^0.4.0, type-check@~0.4.0: type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== dependencies: prelude-ls "~1.1.2" @@ -5267,6 +5309,11 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^2.0.1" +universalify@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + universalify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d" @@ -5396,13 +5443,13 @@ whatwg-mimetype@^2.3.0: resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== -whatwg-url@^8.0.0: - version "8.2.2" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.2.2.tgz#85e7f9795108b53d554cec640b2e8aee2a0d4bfd" - integrity sha512-PcVnO6NiewhkmzV0qn7A+UZ9Xx4maNTI+O+TShmfE4pqjoCMwUMjkvoNhNHPTvgR7QH9Xt3R13iHuWy2sToFxQ== +whatwg-url@^8.0.0, whatwg-url@^8.5.0: + version "8.7.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" + integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== dependencies: - lodash.sortby "^4.7.0" - tr46 "^2.0.2" + lodash "^4.7.0" + tr46 "^2.1.0" webidl-conversions "^6.1.0" which-module@^2.0.0: @@ -5469,10 +5516,10 @@ write@1.0.3: dependencies: mkdirp "^0.5.1" -ws@^7.2.3: - version "7.4.6" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" - integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== +ws@^7.4.6: + version "7.5.8" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.8.tgz#ac2729881ab9e7cbaf8787fe3469a48c5c7f636a" + integrity sha512-ri1Id1WinAX5Jqn9HejiGb8crfRio0Qgu8+MtL36rlTA6RLsMdWt1Az/19A2Qij6uSHUMphEFaTKa4WG+UNHNw== xml-name-validator@^3.0.0: version "3.0.0" From facadb34347673c935fe342a94697851c6f06c16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Jul 2022 19:38:30 +0000 Subject: [PATCH 19/21] Bump moment from 2.29.2 to 2.29.4 Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4) --- updated-dependencies: - dependency-name: moment dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index b3e68e3..b018cc0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3914,9 +3914,9 @@ mkdirp@^1.0.4: integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== moment@^2.29.1: - version "2.29.2" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.2.tgz#00910c60b20843bcba52d37d58c628b47b1f20e4" - integrity sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg== + version "2.29.4" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108" + integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w== ms@2.0.0: version "2.0.0" From 5afc72b2c2eb26556609d8928e4733989a454eb2 Mon Sep 17 00:00:00 2001 From: Dmitriy Pushkov Date: Mon, 18 Jul 2022 22:46:25 +0300 Subject: [PATCH 20/21] TypeScript definition for ecfToEci function is added --- CHANGELOG.md | 2 ++ types/index.d.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b07680..7a0ff59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +- TypeScript definition for `ecfToEci` function is added. + ## 4.1.3 (2020-12-18) - Fixed calculation of Doppler effect (`dopplerFactor`). diff --git a/types/index.d.ts b/types/index.d.ts index aabe99a..41f2475 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -173,6 +173,11 @@ declare module 'satellite.js' { */ export function eciToEcf(positionEci: EciVec3, gmst: GMSTime): EcfVec3; + /** + * Convert ECF to ECI. Units are not modified. + */ + export function ecfToEci(positionEcf: EcfVec3, gmst: GMSTime): EciVec3; + /** * Convert geodetic location to ECF */ From e7a393a8134deca82a0e19427ca539fe6a66dad6 Mon Sep 17 00:00:00 2001 From: Dmitriy Pushkov Date: Mon, 18 Jul 2022 22:51:35 +0300 Subject: [PATCH 21/21] Raise version: 4.1.4. --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a0ff59..ff80450 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 4.1.4 (2022-07-18) + - TypeScript definition for `ecfToEci` function is added. ## 4.1.3 (2020-12-18) diff --git a/package.json b/package.json index e0f84cc..fbd4cec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "satellite.js", - "version": "4.1.3", + "version": "4.1.4", "description": "SGP4/SDP4 calculation library", "main": "lib/index.js", "jsnext:main": "dist/satellite.es.js",