@dra2020/baseclient 1.0.103 → 1.0.106

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.
@@ -1071,6 +1071,7 @@ exports.DataFlowStamp = exports.DataFlowCallback = exports.DataFlow = void 0;
1071
1071
  class DataFlow {
1072
1072
  constructor() {
1073
1073
  this.usesList = [];
1074
+ this.inCompute = false;
1074
1075
  }
1075
1076
  // override in subclass
1076
1077
  dfid() { return null; }
@@ -1097,9 +1098,14 @@ class DataFlow {
1097
1098
  this.usesList.forEach(ui => { ui.id = ui.df.dfid(); });
1098
1099
  }
1099
1100
  ifcompute() {
1101
+ var _a;
1100
1102
  if (this.stale()) {
1103
+ if (this.inCompute)
1104
+ console.log(`DataFlow compute reentrancy: ${(_a = this.constructor) === null || _a === void 0 ? void 0 : _a.name}`);
1105
+ this.inCompute = true;
1101
1106
  this.remember();
1102
1107
  this.compute();
1108
+ this.inCompute = false;
1103
1109
  }
1104
1110
  }
1105
1111
  }
@@ -9854,7 +9860,7 @@ function topoContiguity(topo) {
9854
9860
  let objects = Object.values(topo.objects);
9855
9861
  let geoid = getGEOID(objects);
9856
9862
  objects.forEach((o) => { o.properties.id = o.properties[geoid]; });
9857
- let neighbors = TopoClient.neighbors(objects, true);
9863
+ let neighbors = TopoClient.neighbors(topo, objects, true);
9858
9864
  let result = {};
9859
9865
  result['OUT_OF_STATE'] = [];
9860
9866
  objects.forEach((o, i) => {