@camstack/addon-pipeline 1.2.371 → 1.2.372
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/recorder/index.js
CHANGED
|
@@ -5055,8 +5055,9 @@ var DeviceSettingsConfigsState = class {
|
|
|
5055
5055
|
async readAllRaw() {
|
|
5056
5056
|
const out = /* @__PURE__ */ new Map();
|
|
5057
5057
|
const list = this.deps.settings.listDeviceStoreIds;
|
|
5058
|
-
|
|
5059
|
-
|
|
5058
|
+
const fallback = this.deps.listDeviceIds;
|
|
5059
|
+
if (list === void 0 && fallback === void 0) throw new Error("the per-device settings cannot list their devices on this view");
|
|
5060
|
+
const ids = list !== void 0 ? await list.call(this.deps.settings) : fallback !== void 0 ? await fallback() : [];
|
|
5060
5061
|
const batch = this.deps.settings.readDeviceStoreBatch;
|
|
5061
5062
|
const blobs = batch === void 0 ? new Map(await Promise.all(ids.map(async (id) => [id, await this.deps.settings.readDeviceStore(id)]))) : await batch.call(this.deps.settings, ids);
|
|
5062
5063
|
for (const [id, blob] of blobs) {
|
|
@@ -25274,7 +25275,11 @@ var RecorderV2Addon = class extends require_dist.BaseAddon {
|
|
|
25274
25275
|
if (settings === void 0) throw new Error("recorder: device settings are not available");
|
|
25275
25276
|
this.configsState ??= recordingConfigsState({
|
|
25276
25277
|
settings,
|
|
25277
|
-
logger: this.ctx.logger
|
|
25278
|
+
logger: this.ctx.logger,
|
|
25279
|
+
listDeviceIds: async () => (await this.ctx.api.deviceManager.listAll.query({
|
|
25280
|
+
isCamera: true,
|
|
25281
|
+
projection: "slim"
|
|
25282
|
+
})).map((device) => device.id)
|
|
25278
25283
|
});
|
|
25279
25284
|
return this.configsState;
|
|
25280
25285
|
}
|
package/dist/recorder/index.mjs
CHANGED
|
@@ -5048,8 +5048,9 @@ var DeviceSettingsConfigsState = class {
|
|
|
5048
5048
|
async readAllRaw() {
|
|
5049
5049
|
const out = /* @__PURE__ */ new Map();
|
|
5050
5050
|
const list = this.deps.settings.listDeviceStoreIds;
|
|
5051
|
-
|
|
5052
|
-
|
|
5051
|
+
const fallback = this.deps.listDeviceIds;
|
|
5052
|
+
if (list === void 0 && fallback === void 0) throw new Error("the per-device settings cannot list their devices on this view");
|
|
5053
|
+
const ids = list !== void 0 ? await list.call(this.deps.settings) : fallback !== void 0 ? await fallback() : [];
|
|
5053
5054
|
const batch = this.deps.settings.readDeviceStoreBatch;
|
|
5054
5055
|
const blobs = batch === void 0 ? new Map(await Promise.all(ids.map(async (id) => [id, await this.deps.settings.readDeviceStore(id)]))) : await batch.call(this.deps.settings, ids);
|
|
5055
5056
|
for (const [id, blob] of blobs) {
|
|
@@ -25266,7 +25267,11 @@ var RecorderV2Addon = class extends BaseAddon {
|
|
|
25266
25267
|
if (settings === void 0) throw new Error("recorder: device settings are not available");
|
|
25267
25268
|
this.configsState ??= recordingConfigsState({
|
|
25268
25269
|
settings,
|
|
25269
|
-
logger: this.ctx.logger
|
|
25270
|
+
logger: this.ctx.logger,
|
|
25271
|
+
listDeviceIds: async () => (await this.ctx.api.deviceManager.listAll.query({
|
|
25272
|
+
isCamera: true,
|
|
25273
|
+
projection: "slim"
|
|
25274
|
+
})).map((device) => device.id)
|
|
25270
25275
|
});
|
|
25271
25276
|
return this.configsState;
|
|
25272
25277
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.372",
|
|
4
4
|
"description": "Pipeline bundle — runner, detection, motion, audio + stream broker. Multi-entry npm package shipping pipeline addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|