@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.js
CHANGED
|
@@ -8504,11 +8504,13 @@ var init_sensor_registry = __esm({
|
|
|
8504
8504
|
return this.sensorsByName.get(name);
|
|
8505
8505
|
}
|
|
8506
8506
|
getPreDecodeSensors() {
|
|
8507
|
-
return this.list().filter(
|
|
8507
|
+
return this.list().filter(
|
|
8508
|
+
(s) => this.isPreDecodeSensor(s)
|
|
8509
|
+
);
|
|
8508
8510
|
}
|
|
8509
8511
|
getPostDecodeSensors() {
|
|
8510
8512
|
return this.list().filter(
|
|
8511
|
-
(s) => (s
|
|
8513
|
+
(s) => this.isPostDecodeSensor(s)
|
|
8512
8514
|
);
|
|
8513
8515
|
}
|
|
8514
8516
|
getSensorCountByPhase() {
|
|
@@ -8524,11 +8526,13 @@ var init_sensor_registry = __esm({
|
|
|
8524
8526
|
}
|
|
8525
8527
|
isPreDecodeSensor(sensor) {
|
|
8526
8528
|
const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
|
|
8527
|
-
return phase === "PRE_DECODE"
|
|
8529
|
+
if (phase) return phase === "PRE_DECODE";
|
|
8530
|
+
return (sensor.order ?? 999) < 40;
|
|
8528
8531
|
}
|
|
8529
8532
|
isPostDecodeSensor(sensor) {
|
|
8530
8533
|
const phase = typeof sensor.phase === "string" ? sensor.phase : sensor.phase?.phase;
|
|
8531
|
-
return phase === "POST_DECODE"
|
|
8534
|
+
if (phase) return phase === "POST_DECODE";
|
|
8535
|
+
return (sensor.order ?? 999) >= 40;
|
|
8532
8536
|
}
|
|
8533
8537
|
indexSensor(sensor) {
|
|
8534
8538
|
this.sensorsByName.set(sensor.name, sensor);
|