@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.
@@ -8408,9 +8408,10 @@ function parseRectTags(block) {
8408
8408
  function decodePrivacyMaskZones(xml) {
8409
8409
  const canvas = extractCanvasFromShelterXml(xml);
8410
8410
  const enable = Number(getXmlText(xml, "enable") ?? "0") === 1;
8411
- const maxNum = Number(getXmlText(xml, "maxNum") ?? "0") | 0;
8412
8411
  const trackEnable = Number(getXmlText(xml, "trackEnable") ?? "0") === 1;
8413
8412
  const maxTrackShelterNum = Number(getXmlText(xml, "maxTrackShelterNum") ?? "0") | 0;
8413
+ const rawMaxNum = getXmlText(xml, "maxNum");
8414
+ const maxNum = rawMaxNum !== void 0 ? Number(rawMaxNum) | 0 : maxTrackShelterNum > 0 ? maxTrackShelterNum : 4;
8414
8415
  const shelterList = [];
8415
8416
  const shelterListBlock = xml.match(
8416
8417
  /<shelterList>([\s\S]*?)<\/shelterList>/
@@ -24508,4 +24509,4 @@ export {
24508
24509
  isTcpFailureThatShouldFallbackToUdp,
24509
24510
  autoDetectDeviceType
24510
24511
  };
24511
- //# sourceMappingURL=chunk-P4X5OU25.js.map
24512
+ //# sourceMappingURL=chunk-JYHK2ZSH.js.map