@apocaliss92/nodelink-js 0.3.5 → 0.4.1
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/{DiagnosticsTools-2JQRV5FE.js → DiagnosticsTools-XIIYZDXL.js} +8 -2
- package/dist/{chunk-APEEZ4UN.js → chunk-DUHWTZ7U.js} +433 -1
- package/dist/chunk-DUHWTZ7U.js.map +1 -0
- package/dist/{chunk-UDS2UR4S.js → chunk-SDRNJQ5U.js} +18 -8
- package/dist/chunk-SDRNJQ5U.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +446 -5
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +2 -2
- package/dist/index.cjs +454 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -1
- package/dist/index.d.ts +77 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-APEEZ4UN.js.map +0 -1
- package/dist/chunk-UDS2UR4S.js.map +0 -1
- /package/dist/{DiagnosticsTools-2JQRV5FE.js.map → DiagnosticsTools-XIIYZDXL.js.map} +0 -0
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
talkTraceLog,
|
|
145
145
|
traceLog,
|
|
146
146
|
xmlEscape
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-DUHWTZ7U.js";
|
|
148
148
|
|
|
149
149
|
// src/protocol/framing.ts
|
|
150
150
|
function encodeHeader(h) {
|
|
@@ -7555,7 +7555,7 @@ function computeDeviceCapabilities(params) {
|
|
|
7555
7555
|
const ptzControlRaw = supportItem ? supportItem.ptzControl : void 0;
|
|
7556
7556
|
const supportExplicitlyDefinesPtz = ptzTypeRaw !== void 0 || ptzControlRaw !== void 0;
|
|
7557
7557
|
const ptzExplicitlyDisabledBySupportItem = supportExplicitlyDefinesPtz && !isTruthyNumberLike(ptzTypeRaw) && !isTruthyNumberLike(ptzControlRaw);
|
|
7558
|
-
const hasPtzFromSupportItem = isTruthyNumberLike(ptzTypeRaw)
|
|
7558
|
+
const hasPtzFromSupportItem = isTruthyNumberLike(ptzTypeRaw);
|
|
7559
7559
|
const ptzDisabledBySupport = (ptzMode === "none" || ptzMode === "0") && !hasPtzFromSupportItem;
|
|
7560
7560
|
const hasBatteryFromSupport = supportItem ? isTruthyNumberLike(supportItem.battery) : false;
|
|
7561
7561
|
const ptzPresetRaw = supportItem ? supportItem.ptzPreset : void 0;
|
|
@@ -7619,6 +7619,17 @@ function computeDeviceCapabilities(params) {
|
|
|
7619
7619
|
if (ptzMode !== void 0) result.ptzMode = ptzMode;
|
|
7620
7620
|
return result;
|
|
7621
7621
|
}
|
|
7622
|
+
function xmlIndicatesFloodlight(xml) {
|
|
7623
|
+
if (/(<FloodlightTask\b|<FloodlightManual\b|<FloodlightStatusList\b)/i.test(
|
|
7624
|
+
xml
|
|
7625
|
+
)) {
|
|
7626
|
+
return true;
|
|
7627
|
+
}
|
|
7628
|
+
if (/<WhiteLed\b/i.test(xml)) {
|
|
7629
|
+
return /(<brightness_cur>|<bright>|<LightingSchedule\b)/i.test(xml);
|
|
7630
|
+
}
|
|
7631
|
+
return false;
|
|
7632
|
+
}
|
|
7622
7633
|
|
|
7623
7634
|
// src/reolink/baichuan/ReolinkBaichuanApi.ts
|
|
7624
7635
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -16861,9 +16872,7 @@ ${stderr}`)
|
|
|
16861
16872
|
`probeFloodlightSupportByCmd289: received XML for channel ${ch}:
|
|
16862
16873
|
${xml}`
|
|
16863
16874
|
);
|
|
16864
|
-
return
|
|
16865
|
-
xml
|
|
16866
|
-
);
|
|
16875
|
+
return xmlIndicatesFloodlight(xml);
|
|
16867
16876
|
} catch {
|
|
16868
16877
|
return false;
|
|
16869
16878
|
}
|
|
@@ -17809,7 +17818,7 @@ ${xml}`
|
|
|
17809
17818
|
* @returns Test results for all stream types and profiles
|
|
17810
17819
|
*/
|
|
17811
17820
|
async testChannelStreams(channel, logger) {
|
|
17812
|
-
const { testChannelStreams } = await import("./DiagnosticsTools-
|
|
17821
|
+
const { testChannelStreams } = await import("./DiagnosticsTools-XIIYZDXL.js");
|
|
17813
17822
|
return await testChannelStreams({
|
|
17814
17823
|
api: this,
|
|
17815
17824
|
channel: this.normalizeChannel(channel),
|
|
@@ -17825,7 +17834,7 @@ ${xml}`
|
|
|
17825
17834
|
* @returns Complete diagnostics for all channels and streams
|
|
17826
17835
|
*/
|
|
17827
17836
|
async collectMultifocalDiagnostics(logger) {
|
|
17828
|
-
const { collectMultifocalDiagnostics } = await import("./DiagnosticsTools-
|
|
17837
|
+
const { collectMultifocalDiagnostics } = await import("./DiagnosticsTools-XIIYZDXL.js");
|
|
17829
17838
|
return await collectMultifocalDiagnostics({
|
|
17830
17839
|
api: this,
|
|
17831
17840
|
logger
|
|
@@ -21485,6 +21494,7 @@ export {
|
|
|
21485
21494
|
parseSupportXml,
|
|
21486
21495
|
getSupportItemForChannel,
|
|
21487
21496
|
computeDeviceCapabilities,
|
|
21497
|
+
xmlIndicatesFloodlight,
|
|
21488
21498
|
DUAL_LENS_DUAL_MOTION_MODELS,
|
|
21489
21499
|
DUAL_LENS_SINGLE_MOTION_MODELS,
|
|
21490
21500
|
DUAL_LENS_MODELS,
|
|
@@ -21506,4 +21516,4 @@ export {
|
|
|
21506
21516
|
isTcpFailureThatShouldFallbackToUdp,
|
|
21507
21517
|
autoDetectDeviceType
|
|
21508
21518
|
};
|
|
21509
|
-
//# sourceMappingURL=chunk-
|
|
21519
|
+
//# sourceMappingURL=chunk-SDRNJQ5U.js.map
|