@nextera.one/axis-server-sdk 2.3.7 → 2.3.8

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.
@@ -8678,11 +8678,13 @@ var init_sensor_registry = __esm({
8678
8678
  return this.sensorsByName.get(name);
8679
8679
  }
8680
8680
  getPreDecodeSensors() {
8681
- return this.list().filter((s) => (s.order ?? 999) < 40);
8681
+ return this.list().filter(
8682
+ (s) => this.isPreDecodeSensor(s)
8683
+ );
8682
8684
  }
8683
8685
  getPostDecodeSensors() {
8684
8686
  return this.list().filter(
8685
- (s) => (s.order ?? 999) >= 40
8687
+ (s) => this.isPostDecodeSensor(s)
8686
8688
  );
8687
8689
  }
8688
8690
  getSensorCountByPhase() {
@@ -8698,11 +8700,13 @@ var init_sensor_registry = __esm({
8698
8700
  }
8699
8701
  isPreDecodeSensor(sensor) {
8700
8702
  const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
8701
- return phase === "PRE_DECODE" || (sensor.order ?? 999) < 40;
8703
+ if (phase) return phase === "PRE_DECODE";
8704
+ return (sensor.order ?? 999) < 40;
8702
8705
  }
8703
8706
  isPostDecodeSensor(sensor) {
8704
8707
  const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
8705
- return phase === "POST_DECODE" || (sensor.order ?? 999) >= 40;
8708
+ if (phase) return phase === "POST_DECODE";
8709
+ return (sensor.order ?? 999) >= 40;
8706
8710
  }
8707
8711
  indexSensor(sensor) {
8708
8712
  this.sensorsByName.set(sensor.name, sensor);