@camstack/addon-provider-reolink 1.2.146 → 1.2.148

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-4KBXJ7U3.js
8
+ //#region node_modules/@apocaliss92/nodelink-js/dist/chunk-ZBACPERX.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");
@@ -1119,13 +1119,11 @@ var BcMediaAnnexBDecoder = class {
1119
1119
  if (media.type === "Aac") this.stats.aacPackets++;
1120
1120
  else this.stats.adpcmPackets++;
1121
1121
  if (this.stats.audioType == null) this.stats.audioType = media.type;
1122
- if (this.onAudioFrame) {
1123
- this.stats.audioBytesOut += audioMedia.data.length;
1124
- this.onAudioFrame({
1125
- audioType: media.type,
1126
- data: audioMedia.data
1127
- });
1128
- }
1122
+ this.stats.audioBytesOut += audioMedia.data.length;
1123
+ this.onAudioFrame?.({
1124
+ audioType: media.type,
1125
+ data: audioMedia.data
1126
+ });
1129
1127
  return;
1130
1128
  }
1131
1129
  if (media.type !== "Iframe" && media.type !== "Pframe") return;
@@ -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-4KBXJ7U3.js
6
+ //#region node_modules/@apocaliss92/nodelink-js/dist/chunk-ZBACPERX.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");
@@ -1117,13 +1117,11 @@ var BcMediaAnnexBDecoder = class {
1117
1117
  if (media.type === "Aac") this.stats.aacPackets++;
1118
1118
  else this.stats.adpcmPackets++;
1119
1119
  if (this.stats.audioType == null) this.stats.audioType = media.type;
1120
- if (this.onAudioFrame) {
1121
- this.stats.audioBytesOut += audioMedia.data.length;
1122
- this.onAudioFrame({
1123
- audioType: media.type,
1124
- data: audioMedia.data
1125
- });
1126
- }
1120
+ this.stats.audioBytesOut += audioMedia.data.length;
1121
+ this.onAudioFrame?.({
1122
+ audioType: media.type,
1123
+ data: audioMedia.data
1124
+ });
1127
1125
  return;
1128
1126
  }
1129
1127
  if (media.type !== "Iframe" && media.type !== "Pframe") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.146",
3
+ "version": "1.2.148",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",
@@ -91,7 +91,7 @@
91
91
  "publish:npm": "npm publish --access public"
92
92
  },
93
93
  "dependencies": {
94
- "@apocaliss92/nodelink-js": "^0.7.9"
94
+ "@apocaliss92/nodelink-js": "^0.7.10"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@camstack/types": "*",
@@ -1,2 +0,0 @@
1
- import { c as BaichuanVideoStream } from "./chunk-4KBXJ7U3-CCQfaWmi.mjs";
2
- export { BaichuanVideoStream };
@@ -1,3 +0,0 @@
1
- require("./chunk-Cek0wNdY.js");
2
- const require_chunk_4KBXJ7U3 = require("./chunk-4KBXJ7U3-BpV_ui8q.js");
3
- exports.BaichuanVideoStream = require_chunk_4KBXJ7U3.BaichuanVideoStream;