@gen3/core 0.10.98 → 0.11.0

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/cjs/index.js CHANGED
@@ -602,7 +602,8 @@ const registerGen3App = (id, gen3App)=>{
602
602
  REGISTRY[id] = gen3App;
603
603
  };
604
604
  const lookupGen3App = (id)=>{
605
- return REGISTRY[id];
605
+ if (id in REGISTRY) return REGISTRY[id];
606
+ else return null;
606
607
  };
607
608
 
608
609
  const initialState$6 = {
@@ -3638,6 +3639,9 @@ const groupSharedFields = (data)=>{
3638
3639
  path: '$..histogram',
3639
3640
  resultType: 'pointer'
3640
3641
  });
3642
+ if (!pointerData) {
3643
+ return {};
3644
+ }
3641
3645
  if (pointerData.length === 0) {
3642
3646
  return {};
3643
3647
  }
@@ -3648,7 +3652,7 @@ const groupSharedFields = (data)=>{
3648
3652
  path: key,
3649
3653
  resultType: 'value'
3650
3654
  });
3651
- histogramData[0].forEach((x)=>{
3655
+ histogramData?.[0]?.forEach((x)=>{
3652
3656
  x.count = x.count < minValue ? -1 : x.count;
3653
3657
  });
3654
3658
  });