ootk 6.0.3 → 6.0.4

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/dist/main.cjs CHANGED
@@ -79,12 +79,14 @@ var AngularDistanceMethod = /* @__PURE__ */ ((AngularDistanceMethod2) => {
79
79
 
80
80
  // src/enums/CatalogSource.ts
81
81
  var CatalogSource = /* @__PURE__ */ ((CatalogSource2) => {
82
- CatalogSource2["USSF"] = "USSF";
83
- CatalogSource2["CELESTRAK"] = "Celestrak";
84
- CatalogSource2["UNIV_OF_MICH"] = "University of Michigan";
85
- CatalogSource2["CALPOLY"] = "CalPoly";
86
- CatalogSource2["NUSPACE"] = "NuSpace";
87
- CatalogSource2["VIMPEL"] = "JSC Vimpel";
82
+ CatalogSource2["USSF"] = "spacetrack";
83
+ CatalogSource2["CELESTRAK"] = "celestrak";
84
+ CatalogSource2["CELESTRAK_SUP"] = "celestrak-sup";
85
+ CatalogSource2["UNIV_OF_MICH"] = "univ-of-mich";
86
+ CatalogSource2["CALPOLY"] = "calpoly";
87
+ CatalogSource2["NUSPACE"] = "nuspace";
88
+ CatalogSource2["VIMPEL"] = "vimpel";
89
+ CatalogSource2["SATNOGS"] = "satnogs";
88
90
  CatalogSource2["TLE_TXT"] = "TLE.txt";
89
91
  CatalogSource2["EXTRA_JSON"] = "extra.json";
90
92
  return CatalogSource2;
@@ -271,8 +273,8 @@ var Epoch = class {
271
273
  */
272
274
  constructor(posix = Date.now() / 1e3) {
273
275
  this.posix = posix;
274
- if (posix < 0) {
275
- throw new ValidationError("Epoch posix time must be non-negative", "posix", posix);
276
+ if (Number.isNaN(posix)) {
277
+ throw new ValidationError("Epoch posix time must be a valid number", "posix", posix);
276
278
  }
277
279
  }
278
280
  toString() {
@@ -14120,7 +14122,7 @@ ${this.line2}`;
14120
14122
  let exponent = parseInt(tleLine1.substring(BSTAR_PART_4, _Tle.bstar_.stop));
14121
14123
  if (exponentSymbol === "-") {
14122
14124
  exponent *= -1;
14123
- } else if (exponentSymbol !== "+") {
14125
+ } else if (exponentSymbol !== "+" && exponentSymbol !== " " && exponentSymbol !== "0") {
14124
14126
  throw new ParseError(`Invalid BSTAR exponent symbol: ${exponentSymbol}`, "TLE");
14125
14127
  }
14126
14128
  bstar1 *= 10 ** exponent;
@@ -16574,7 +16576,7 @@ var Satellite = class _Satellite extends SpaceObject {
16574
16576
  /** Operational status */
16575
16577
  status = "?" /* UNKNOWN */;
16576
16578
  constructor(info, options) {
16577
- if (info.source === "JSC Vimpel" /* VIMPEL */ && info.tle1 && info.tle2) {
16579
+ if (info.source === "vimpel" /* VIMPEL */ && info.tle1 && info.tle2) {
16578
16580
  info = _Satellite.setSccNumTo0_(info);
16579
16581
  }
16580
16582
  super(info);
package/dist/main.d.cts CHANGED
@@ -209,12 +209,14 @@ declare enum AngularDistanceMethod {
209
209
  }
210
210
 
211
211
  declare enum CatalogSource {
212
- USSF = "USSF",
213
- CELESTRAK = "Celestrak",
214
- UNIV_OF_MICH = "University of Michigan",
215
- CALPOLY = "CalPoly",
216
- NUSPACE = "NuSpace",
217
- VIMPEL = "JSC Vimpel",
212
+ USSF = "spacetrack",
213
+ CELESTRAK = "celestrak",
214
+ CELESTRAK_SUP = "celestrak-sup",
215
+ UNIV_OF_MICH = "univ-of-mich",
216
+ CALPOLY = "calpoly",
217
+ NUSPACE = "nuspace",
218
+ VIMPEL = "vimpel",
219
+ SATNOGS = "satnogs",
218
220
  TLE_TXT = "TLE.txt",
219
221
  EXTRA_JSON = "extra.json"
220
222
  }
package/dist/main.d.ts CHANGED
@@ -209,12 +209,14 @@ declare enum AngularDistanceMethod {
209
209
  }
210
210
 
211
211
  declare enum CatalogSource {
212
- USSF = "USSF",
213
- CELESTRAK = "Celestrak",
214
- UNIV_OF_MICH = "University of Michigan",
215
- CALPOLY = "CalPoly",
216
- NUSPACE = "NuSpace",
217
- VIMPEL = "JSC Vimpel",
212
+ USSF = "spacetrack",
213
+ CELESTRAK = "celestrak",
214
+ CELESTRAK_SUP = "celestrak-sup",
215
+ UNIV_OF_MICH = "univ-of-mich",
216
+ CALPOLY = "calpoly",
217
+ NUSPACE = "nuspace",
218
+ VIMPEL = "vimpel",
219
+ SATNOGS = "satnogs",
218
220
  TLE_TXT = "TLE.txt",
219
221
  EXTRA_JSON = "extra.json"
220
222
  }
package/dist/main.js CHANGED
@@ -77,12 +77,14 @@ var AngularDistanceMethod = /* @__PURE__ */ ((AngularDistanceMethod2) => {
77
77
 
78
78
  // src/enums/CatalogSource.ts
79
79
  var CatalogSource = /* @__PURE__ */ ((CatalogSource2) => {
80
- CatalogSource2["USSF"] = "USSF";
81
- CatalogSource2["CELESTRAK"] = "Celestrak";
82
- CatalogSource2["UNIV_OF_MICH"] = "University of Michigan";
83
- CatalogSource2["CALPOLY"] = "CalPoly";
84
- CatalogSource2["NUSPACE"] = "NuSpace";
85
- CatalogSource2["VIMPEL"] = "JSC Vimpel";
80
+ CatalogSource2["USSF"] = "spacetrack";
81
+ CatalogSource2["CELESTRAK"] = "celestrak";
82
+ CatalogSource2["CELESTRAK_SUP"] = "celestrak-sup";
83
+ CatalogSource2["UNIV_OF_MICH"] = "univ-of-mich";
84
+ CatalogSource2["CALPOLY"] = "calpoly";
85
+ CatalogSource2["NUSPACE"] = "nuspace";
86
+ CatalogSource2["VIMPEL"] = "vimpel";
87
+ CatalogSource2["SATNOGS"] = "satnogs";
86
88
  CatalogSource2["TLE_TXT"] = "TLE.txt";
87
89
  CatalogSource2["EXTRA_JSON"] = "extra.json";
88
90
  return CatalogSource2;
@@ -269,8 +271,8 @@ var Epoch = class {
269
271
  */
270
272
  constructor(posix = Date.now() / 1e3) {
271
273
  this.posix = posix;
272
- if (posix < 0) {
273
- throw new ValidationError("Epoch posix time must be non-negative", "posix", posix);
274
+ if (Number.isNaN(posix)) {
275
+ throw new ValidationError("Epoch posix time must be a valid number", "posix", posix);
274
276
  }
275
277
  }
276
278
  toString() {
@@ -14118,7 +14120,7 @@ ${this.line2}`;
14118
14120
  let exponent = parseInt(tleLine1.substring(BSTAR_PART_4, _Tle.bstar_.stop));
14119
14121
  if (exponentSymbol === "-") {
14120
14122
  exponent *= -1;
14121
- } else if (exponentSymbol !== "+") {
14123
+ } else if (exponentSymbol !== "+" && exponentSymbol !== " " && exponentSymbol !== "0") {
14122
14124
  throw new ParseError(`Invalid BSTAR exponent symbol: ${exponentSymbol}`, "TLE");
14123
14125
  }
14124
14126
  bstar1 *= 10 ** exponent;
@@ -16572,7 +16574,7 @@ var Satellite = class _Satellite extends SpaceObject {
16572
16574
  /** Operational status */
16573
16575
  status = "?" /* UNKNOWN */;
16574
16576
  constructor(info, options) {
16575
- if (info.source === "JSC Vimpel" /* VIMPEL */ && info.tle1 && info.tle2) {
16577
+ if (info.source === "vimpel" /* VIMPEL */ && info.tle1 && info.tle2) {
16576
16578
  info = _Satellite.setSccNumTo0_(info);
16577
16579
  }
16578
16580
  super(info);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ootk",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "type": "module",
5
5
  "description": "Orbital Object Toolkit including Multiple Propagators, Initial Orbit Determination, and Maneuver Calculations.",
6
6
  "exports": {