@saber-usa/node-common 1.7.21 → 1.7.22

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 +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saber-usa/node-common",
3
- "version": "1.7.21",
3
+ "version": "1.7.22",
4
4
  "description": "Common node functions for Saber",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/udl.js CHANGED
@@ -110,6 +110,9 @@ const udlToNpsConjunction = (udlRow) => {
110
110
  const satno2 = udlRow.idOnOrbit2
111
111
  ? _.get(udlRow, "idOnOrbit2", null)
112
112
  : _.get(udlRow, "satNo2", null);
113
+ const origin = udlRow.origin
114
+ ? _.get(udlRow, "origin", null)
115
+ : _.get(udlRow, "originator", null);
113
116
 
114
117
  return lowerCaseObjectKeys({
115
118
  IdUdl: _.get(udlRow, "id", null),
@@ -167,7 +170,7 @@ const udlToNpsConjunction = (udlRow) => {
167
170
  SmallCovWarning: _.get(udlRow, "smallCovWarning", null),
168
171
  LargeCovWarning: _.get(udlRow, "largeCovWarning", null),
169
172
  Source: _.get(udlRow, "source", null),
170
- Origin: _.get(udlRow, "origin", null),
173
+ Origin: origin,
171
174
  EventId: _.get(udlRow, "eventId", null),
172
175
  Descriptor: _.get(udlRow, "descriptor", null),
173
176
  DataMode: _.get(udlRow, "dataMode", null),