@apocaliss92/nodelink-js 0.4.23 → 0.4.24

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.
@@ -3,7 +3,7 @@ import {
3
3
  BaichuanRtspServer,
4
4
  ReolinkBaichuanApi,
5
5
  autoDetectDeviceType
6
- } from "../chunk-P4X5OU25.js";
6
+ } from "../chunk-JYHK2ZSH.js";
7
7
  import "../chunk-AHY4L7JI.js";
8
8
  import {
9
9
  __require
package/dist/index.cjs CHANGED
@@ -17723,9 +17723,10 @@ function parseRectTags(block) {
17723
17723
  function decodePrivacyMaskZones(xml) {
17724
17724
  const canvas = extractCanvasFromShelterXml(xml);
17725
17725
  const enable = Number(getXmlText(xml, "enable") ?? "0") === 1;
17726
- const maxNum = Number(getXmlText(xml, "maxNum") ?? "0") | 0;
17727
17726
  const trackEnable = Number(getXmlText(xml, "trackEnable") ?? "0") === 1;
17728
17727
  const maxTrackShelterNum = Number(getXmlText(xml, "maxTrackShelterNum") ?? "0") | 0;
17728
+ const rawMaxNum = getXmlText(xml, "maxNum");
17729
+ const maxNum = rawMaxNum !== void 0 ? Number(rawMaxNum) | 0 : maxTrackShelterNum > 0 ? maxTrackShelterNum : 4;
17729
17730
  const shelterList = [];
17730
17731
  const shelterListBlock = xml.match(
17731
17732
  /<shelterList>([\s\S]*?)<\/shelterList>/