@apocaliss92/nodelink-js 0.4.17 → 0.4.19
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/{chunk-EF6BCSCZ.js → chunk-5M7BGMLV.js} +9 -4
- package/dist/chunk-5M7BGMLV.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +8 -3
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EF6BCSCZ.js.map +0 -1
|
@@ -8203,6 +8203,9 @@ function computeDeviceCapabilities(params) {
|
|
|
8203
8203
|
const isDoorbellFromModel = typeof params.model === "string" && /doorbell/i.test(params.model);
|
|
8204
8204
|
const lightTypeRaw = supportItem ? supportItem.lightType : void 0;
|
|
8205
8205
|
const lightType = typeof lightTypeRaw === "number" ? lightTypeRaw : typeof lightTypeRaw === "string" ? Number(lightTypeRaw) : void 0;
|
|
8206
|
+
const ledCtrlRaw = supportItem ? supportItem.ledCtrl : void 0;
|
|
8207
|
+
const ledCtrl = typeof ledCtrlRaw === "number" ? ledCtrlRaw : typeof ledCtrlRaw === "string" ? Number(ledCtrlRaw) : void 0;
|
|
8208
|
+
const hasFloodlightFromLedCtrl = typeof ledCtrl === "number" && Number.isFinite(ledCtrl) && ledCtrl > 1;
|
|
8206
8209
|
const hasPtzFromSupport = hasPtzFromSupportItem || (ptzMode ? ptzMode !== "none" && ptzMode !== "0" : false);
|
|
8207
8210
|
const hasPanTiltFromSupport = ptzMode ? ptzMode.includes("pt") || ptzMode === "pt" || ptzMode === "ptz" : false;
|
|
8208
8211
|
const hasZoomFromSupport = ptzMode ? ptzMode.includes("z") : false;
|
|
@@ -8245,8 +8248,10 @@ function computeDeviceCapabilities(params) {
|
|
|
8245
8248
|
hasBattery,
|
|
8246
8249
|
hasIntercom: hasIntercomFromSupport,
|
|
8247
8250
|
hasSiren: hasSirenFromSupport || hasSirenFromAbilities,
|
|
8248
|
-
// lightType >= 2 indicates controllable white LED / floodlight (1 = IR only)
|
|
8249
|
-
|
|
8251
|
+
// lightType >= 2 indicates controllable white LED / floodlight (1 = IR only).
|
|
8252
|
+
// ledCtrl > 1 is a secondary signal that rescues firmwares like the Duo 3
|
|
8253
|
+
// WiFi which under-report lightType (=1) despite having a real spotlight.
|
|
8254
|
+
hasFloodlight: Number.isFinite(lightType) ? lightType >= 2 || hasFloodlightFromLedCtrl : hasFloodlightFromAbilities || hasFloodlightFromLedCtrl,
|
|
8250
8255
|
hasPir: hasPirFromAbilities || hasPirFromSupport,
|
|
8251
8256
|
isDoorbell,
|
|
8252
8257
|
hasAutotracking: ptzDisabledBySupport ? false : hasAutotrackingFromSupport || hasAutotrackingFromAbilities,
|
|
@@ -18592,7 +18597,7 @@ ${xml}`
|
|
|
18592
18597
|
const probed = await this.probeFloodlightSupportByCmd289(ch, {
|
|
18593
18598
|
timeoutMs: 2500
|
|
18594
18599
|
});
|
|
18595
|
-
capabilities.hasFloodlight = probed;
|
|
18600
|
+
capabilities.hasFloodlight = capabilities.hasFloodlight || probed;
|
|
18596
18601
|
}
|
|
18597
18602
|
let dingDongListIds;
|
|
18598
18603
|
let dingDongCfgIds;
|
|
@@ -23945,4 +23950,4 @@ export {
|
|
|
23945
23950
|
isTcpFailureThatShouldFallbackToUdp,
|
|
23946
23951
|
autoDetectDeviceType
|
|
23947
23952
|
};
|
|
23948
|
-
//# sourceMappingURL=chunk-
|
|
23953
|
+
//# sourceMappingURL=chunk-5M7BGMLV.js.map
|