@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/sensors/index.js
CHANGED
|
@@ -8608,11 +8608,13 @@ var init_sensor_registry = __esm({
|
|
|
8608
8608
|
return this.sensorsByName.get(name);
|
|
8609
8609
|
}
|
|
8610
8610
|
getPreDecodeSensors() {
|
|
8611
|
-
return this.list().filter(
|
|
8611
|
+
return this.list().filter(
|
|
8612
|
+
(s) => this.isPreDecodeSensor(s)
|
|
8613
|
+
);
|
|
8612
8614
|
}
|
|
8613
8615
|
getPostDecodeSensors() {
|
|
8614
8616
|
return this.list().filter(
|
|
8615
|
-
(s) => (s
|
|
8617
|
+
(s) => this.isPostDecodeSensor(s)
|
|
8616
8618
|
);
|
|
8617
8619
|
}
|
|
8618
8620
|
getSensorCountByPhase() {
|
|
@@ -8628,11 +8630,13 @@ var init_sensor_registry = __esm({
|
|
|
8628
8630
|
}
|
|
8629
8631
|
isPreDecodeSensor(sensor) {
|
|
8630
8632
|
const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
|
|
8631
|
-
return phase === "PRE_DECODE"
|
|
8633
|
+
if (phase) return phase === "PRE_DECODE";
|
|
8634
|
+
return (sensor.order ?? 999) < 40;
|
|
8632
8635
|
}
|
|
8633
8636
|
isPostDecodeSensor(sensor) {
|
|
8634
8637
|
const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
|
|
8635
|
-
return phase === "POST_DECODE"
|
|
8638
|
+
if (phase) return phase === "POST_DECODE";
|
|
8639
|
+
return (sensor.order ?? 999) >= 40;
|
|
8636
8640
|
}
|
|
8637
8641
|
indexSensor(sensor) {
|
|
8638
8642
|
this.sensorsByName.set(sensor.name, sensor);
|