@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.
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/sensors/index.js +8 -4
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +8 -4
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8574,11 +8574,13 @@ var init_sensor_registry = __esm({
|
|
|
8574
8574
|
return this.sensorsByName.get(name);
|
|
8575
8575
|
}
|
|
8576
8576
|
getPreDecodeSensors() {
|
|
8577
|
-
return this.list().filter(
|
|
8577
|
+
return this.list().filter(
|
|
8578
|
+
(s) => this.isPreDecodeSensor(s)
|
|
8579
|
+
);
|
|
8578
8580
|
}
|
|
8579
8581
|
getPostDecodeSensors() {
|
|
8580
8582
|
return this.list().filter(
|
|
8581
|
-
(s) => (s
|
|
8583
|
+
(s) => this.isPostDecodeSensor(s)
|
|
8582
8584
|
);
|
|
8583
8585
|
}
|
|
8584
8586
|
getSensorCountByPhase() {
|
|
@@ -8594,11 +8596,13 @@ var init_sensor_registry = __esm({
|
|
|
8594
8596
|
}
|
|
8595
8597
|
isPreDecodeSensor(sensor) {
|
|
8596
8598
|
const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
|
|
8597
|
-
return phase === "PRE_DECODE"
|
|
8599
|
+
if (phase) return phase === "PRE_DECODE";
|
|
8600
|
+
return (sensor.order ?? 999) < 40;
|
|
8598
8601
|
}
|
|
8599
8602
|
isPostDecodeSensor(sensor) {
|
|
8600
8603
|
const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
|
|
8601
|
-
return phase === "POST_DECODE"
|
|
8604
|
+
if (phase) return phase === "POST_DECODE";
|
|
8605
|
+
return (sensor.order ?? 999) >= 40;
|
|
8602
8606
|
}
|
|
8603
8607
|
indexSensor(sensor) {
|
|
8604
8608
|
this.sensorsByName.set(sensor.name, sensor);
|