@camstack/server 1.2.45 → 1.2.47
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.
|
@@ -710,6 +710,18 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
710
710
|
logger.warn('not found', { tags: { integrationId: input.id }, meta: { phase: 'delete' } });
|
|
711
711
|
throw new Error(`Integration "${input.id}" not found`);
|
|
712
712
|
}
|
|
713
|
+
// REFUSE BEFORE MUTATING ANYTHING.
|
|
714
|
+
//
|
|
715
|
+
// The registry enforces this too, but it is the LAST step here — and the
|
|
716
|
+
// device cascade below is deliberately best-effort, so a refusal that
|
|
717
|
+
// arrives afterwards has already destroyed every device the integration
|
|
718
|
+
// owned. That is not theoretical: it deleted the Notification Center's
|
|
719
|
+
// alarm panel (835) one second before the registry answered "is fixed",
|
|
720
|
+
// and the panel came back with a new id and no state, silently breaking
|
|
721
|
+
// every rule that named it.
|
|
722
|
+
if (system_1.IntegrationRegistry.isFixed(integration)) {
|
|
723
|
+
throw new Error(`integration "${input.id}" is fixed — it belongs to the addon that declared it and cannot be deleted`);
|
|
724
|
+
}
|
|
713
725
|
logger.info('removing', {
|
|
714
726
|
tags: { integrationId: input.id, addonId: integration.addonId },
|
|
715
727
|
meta: { phase: 'delete', name: integration.name },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.47",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
36
|
+
"@camstack/addon-admin-ui": "1.2.27",
|
|
37
37
|
"@camstack/addon-agent-ui": "1.2.10",
|
|
38
38
|
"@camstack/addon-auth": "1.2.11",
|
|
39
39
|
"@camstack/addon-decoder-nodeav": "1.2.9",
|
|
40
40
|
"@camstack/addon-notifiers": "1.2.12",
|
|
41
41
|
"@camstack/addon-pipeline": "1.2.40",
|
|
42
42
|
"@camstack/addon-pipeline-orchestrator": "1.2.21",
|
|
43
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
43
|
+
"@camstack/addon-post-analysis": "1.2.30",
|
|
44
44
|
"@camstack/sdk": "1.2.9",
|
|
45
45
|
"@camstack/shm-ring": "1.1.9",
|
|
46
|
-
"@camstack/system": "1.2.
|
|
46
|
+
"@camstack/system": "1.2.39",
|
|
47
47
|
"@camstack/types": "1.2.28",
|
|
48
|
-
"@camstack/ui-library": "1.2.
|
|
48
|
+
"@camstack/ui-library": "1.2.22",
|
|
49
49
|
"@fastify/compress": "^9.0.0",
|
|
50
50
|
"@fastify/cookie": "^11.0.2",
|
|
51
51
|
"@fastify/cors": "^11.2.0",
|