@saber-usa/node-common 1.7.41-alpha.2 → 1.7.41-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/udl.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saber-usa/node-common",
3
- "version": "1.7.41-alpha.2",
3
+ "version": "1.7.41-alpha.3",
4
4
  "description": "Common node functions for Saber",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/udl.js CHANGED
@@ -26,7 +26,8 @@ import _ from "lodash";
26
26
  */
27
27
  const getSensorId = (ob) => ob.idSensor ?? ob.origSensorId ?? null;
28
28
 
29
- const getObsSatno = (udlRow) => udlRow.idOnOrbit ?? udlRow.origObjectId ?? null;
29
+ const getObsSatno = (udlRow) =>
30
+ udlRow.idOnOrbit ?? udlRow.origObjectId ?? udlRow.satNo ?? null;
30
31
 
31
32
  /**
32
33
  * Converts a UDL EOObservation row to NPS EoObs (PascalCase keys).
@@ -577,6 +578,7 @@ export {
577
578
  udlToNpsState,
578
579
  enrichUdlFields,
579
580
  getSensorId,
581
+ getObsSatno,
580
582
  udlToNpsObs,
581
583
  udlToRadarObs,
582
584
  };