@camstack/addon-provider-reolink 1.2.144 → 1.2.146

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.
@@ -5,7 +5,7 @@ fs = require_chunk.__toESM(fs, 1);
5
5
  let path = require("path");
6
6
  path = require_chunk.__toESM(path, 1);
7
7
  let crypto = require("crypto");
8
- //#region node_modules/@apocaliss92/nodelink-js/dist/chunk-ZQFQRCLQ.js
8
+ //#region node_modules/@apocaliss92/nodelink-js/dist/chunk-4KBXJ7U3.js
9
9
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error("Dynamic require of \"" + x + "\" is not supported");
@@ -41,6 +41,7 @@ var BC_CLASS_FILE_DOWNLOAD = 25730;
41
41
  function bcHeaderHasPayloadOffset(messageClass) {
42
42
  return messageClass === 25620 || messageClass === 0 || messageClass === 25730;
43
43
  }
44
+ var DEFAULT_RECORDING_DOWNLOAD_IDLE_MS = 2e3;
44
45
  function md5HexUpper(input) {
45
46
  return (0, crypto.createHash)("md5").update(input, "utf8").digest("hex").toUpperCase();
46
47
  }
@@ -2137,6 +2138,12 @@ Object.defineProperty(exports, "BcMediaAnnexBDecoder", {
2137
2138
  return BcMediaAnnexBDecoder;
2138
2139
  }
2139
2140
  });
2141
+ Object.defineProperty(exports, "DEFAULT_RECORDING_DOWNLOAD_IDLE_MS", {
2142
+ enumerable: true,
2143
+ get: function() {
2144
+ return DEFAULT_RECORDING_DOWNLOAD_IDLE_MS;
2145
+ }
2146
+ });
2140
2147
  Object.defineProperty(exports, "__require", {
2141
2148
  enumerable: true,
2142
2149
  get: function() {
@@ -3,7 +3,7 @@ import { EventEmitter } from "events";
3
3
  import * as fs2 from "fs";
4
4
  import * as path2 from "path";
5
5
  import { createCipheriv, createDecipheriv, createHash } from "crypto";
6
- //#region node_modules/@apocaliss92/nodelink-js/dist/chunk-ZQFQRCLQ.js
6
+ //#region node_modules/@apocaliss92/nodelink-js/dist/chunk-4KBXJ7U3.js
7
7
  var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
8
8
  if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
9
9
  throw Error("Dynamic require of \"" + x + "\" is not supported");
@@ -39,6 +39,7 @@ var BC_CLASS_FILE_DOWNLOAD = 25730;
39
39
  function bcHeaderHasPayloadOffset(messageClass) {
40
40
  return messageClass === 25620 || messageClass === 0 || messageClass === 25730;
41
41
  }
42
+ var DEFAULT_RECORDING_DOWNLOAD_IDLE_MS = 2e3;
42
43
  function md5HexUpper(input) {
43
44
  return createHash("md5").update(input, "utf8").digest("hex").toUpperCase();
44
45
  }
@@ -2081,4 +2082,4 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
2081
2082
  }
2082
2083
  };
2083
2084
  //#endregion
2084
- export { splitAnnexBToNalPayloads2 as A, extractVpsFromAnnexB as C, normalizeDebugOptions as D, md5StrModern as E, traceLog as M, recordingsTraceLog as O, extractSpsFromAnnexB as S, isH265Irap as T, convertToAnnexB2 as _, BC_MAGIC as a, eventTraceLog as b, BaichuanVideoStream as c, aesDecrypt as d, aesEncrypt as f, convertToAnnexB as g, bcHeaderHasPayloadOffset as h, BC_CLASS_MODERN_24 as i, talkTraceLog as j, splitAnnexBToNalPayloads as k, BcMediaAnnexBDecoder as l, bcEncrypt as m, BC_CLASS_LEGACY as n, BC_MAGIC_REV as o, bcDecrypt as p, BC_CLASS_MODERN_20 as r, BC_TCP_DEFAULT_PORT as s, BC_CLASS_FILE_DOWNLOAD as t, __require as u, debugLog as v, getH265NalType as w, extractPpsFromAnnexB as x, deriveAesKey as y };
2085
+ export { splitAnnexBToNalPayloads as A, extractSpsFromAnnexB as C, md5StrModern as D, isH265Irap as E, talkTraceLog as M, traceLog as N, normalizeDebugOptions as O, extractPpsFromAnnexB as S, getH265NalType as T, convertToAnnexB as _, BC_MAGIC as a, deriveAesKey as b, BaichuanVideoStream as c, __require as d, aesDecrypt as f, bcHeaderHasPayloadOffset as g, bcEncrypt as h, BC_CLASS_MODERN_24 as i, splitAnnexBToNalPayloads2 as j, recordingsTraceLog as k, BcMediaAnnexBDecoder as l, bcDecrypt as m, BC_CLASS_LEGACY as n, BC_MAGIC_REV as o, aesEncrypt as p, BC_CLASS_MODERN_20 as r, BC_TCP_DEFAULT_PORT as s, BC_CLASS_FILE_DOWNLOAD as t, DEFAULT_RECORDING_DOWNLOAD_IDLE_MS as u, convertToAnnexB2 as v, extractVpsFromAnnexB as w, eventTraceLog as x, debugLog as y };
@@ -36878,7 +36878,7 @@ function bufferFromArrayBuffer(arrayBuffer) {
36878
36878
  return buffer;
36879
36879
  }
36880
36880
  async function detectFileTypeFromBuffer(buffer) {
36881
- const { fileTypeFromBuffer } = await Promise.resolve().then(() => require("./file-type-2wcPb58f.js"));
36881
+ const { fileTypeFromBuffer } = await Promise.resolve().then(() => require("./file-type-B7IVsSs-.js"));
36882
36882
  return fileTypeFromBuffer(buffer instanceof ArrayBuffer ? buffer : new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength));
36883
36883
  }
36884
36884
  /**
@@ -1,6 +1,7 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
2
  let node_fs_promises = require("node:fs/promises");
3
3
  node_fs_promises = require_chunk.__toESM(node_fs_promises, 1);
4
+ require("node:fs");
4
5
  //#region ../../node_modules/strtok3/lib/stream/Errors.js
5
6
  var defaultMessages = "End-Of-Stream";
6
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.144",
3
+ "version": "1.2.146",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",
@@ -68,6 +68,9 @@
68
68
  },
69
69
  {
70
70
  "name": "stream-signals"
71
+ },
72
+ {
73
+ "name": "videoclips"
71
74
  }
72
75
  ]
73
76
  }
@@ -88,7 +91,7 @@
88
91
  "publish:npm": "npm publish --access public"
89
92
  },
90
93
  "dependencies": {
91
- "@apocaliss92/nodelink-js": "^0.7.7"
94
+ "@apocaliss92/nodelink-js": "^0.7.9"
92
95
  },
93
96
  "peerDependencies": {
94
97
  "@camstack/types": "*",
@@ -1,2 +0,0 @@
1
- import { c as BaichuanVideoStream } from "./chunk-ZQFQRCLQ-BNqCZtSS.mjs";
2
- export { BaichuanVideoStream };
@@ -1,3 +0,0 @@
1
- require("./chunk-Cek0wNdY.js");
2
- const require_chunk_ZQFQRCLQ = require("./chunk-ZQFQRCLQ-CR7OOtpp.js");
3
- exports.BaichuanVideoStream = require_chunk_ZQFQRCLQ.BaichuanVideoStream;