smart-home-engine 1.7.0 → 1.8.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/web/assets/{index-CloKwceI.css → index-CmpNIegY.css} +1 -1
- package/dist/web/assets/{index-Ba2WAZRy.js → index-Ubs63QY8.js} +65 -65
- package/dist/web/assets/{tsMode-BXBhvzFd.js → tsMode-DK6XHYAS.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/lib/mosquitto-conf.js +19 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as O}from"./monaco-langs-BW2J83t5.js";import{t as I}from"./index-
|
|
1
|
+
import{m as O}from"./monaco-langs-BW2J83t5.js";import{t as I}from"./index-Ubs63QY8.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
package/dist/web/index.html
CHANGED
|
@@ -172,10 +172,10 @@
|
|
|
172
172
|
}
|
|
173
173
|
})();
|
|
174
174
|
</script>
|
|
175
|
-
<script type="module" crossorigin src="/assets/index-
|
|
175
|
+
<script type="module" crossorigin src="/assets/index-Ubs63QY8.js"></script>
|
|
176
176
|
<link rel="modulepreload" crossorigin href="/assets/monaco-langs-BW2J83t5.js">
|
|
177
177
|
<link rel="stylesheet" crossorigin href="/assets/monaco-langs-DyX1CsEw.css">
|
|
178
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
178
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CmpNIegY.css">
|
|
179
179
|
</head>
|
|
180
180
|
<body>
|
|
181
181
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -88,7 +88,11 @@ function parseText(raw) {
|
|
|
88
88
|
// Normalise the old (incorrect) key name written by earlier she versions
|
|
89
89
|
const managedKey = key === 'plugin_opt_dynsec_config_file' ? 'plugin_opt_config_file' : key;
|
|
90
90
|
if (managed[managedKey] !== undefined) {
|
|
91
|
-
|
|
91
|
+
const existing = [].concat(managed[managedKey]);
|
|
92
|
+
// Skip duplicate values (e.g. two log_dest file lines)
|
|
93
|
+
if (!existing.includes(value)) {
|
|
94
|
+
managed[managedKey] = [...existing, value];
|
|
95
|
+
}
|
|
92
96
|
} else {
|
|
93
97
|
managed[managedKey] = value;
|
|
94
98
|
}
|
|
@@ -138,6 +142,8 @@ function isListenerSubkey(key) {
|
|
|
138
142
|
'tls_version',
|
|
139
143
|
'websockets_log_level',
|
|
140
144
|
'allow_anonymous',
|
|
145
|
+
'password_file',
|
|
146
|
+
'acl_file',
|
|
141
147
|
].includes(key);
|
|
142
148
|
}
|
|
143
149
|
|
|
@@ -175,6 +181,12 @@ function applyListenerKey(listener, key, value) {
|
|
|
175
181
|
case 'allow_anonymous':
|
|
176
182
|
listener.allow_anonymous = value === 'true';
|
|
177
183
|
break;
|
|
184
|
+
case 'password_file':
|
|
185
|
+
listener.password_file = value;
|
|
186
|
+
break;
|
|
187
|
+
case 'acl_file':
|
|
188
|
+
listener.acl_file = value;
|
|
189
|
+
break;
|
|
178
190
|
default:
|
|
179
191
|
break;
|
|
180
192
|
}
|
|
@@ -206,7 +218,10 @@ function serialise(conf) {
|
|
|
206
218
|
if (managed[key] === undefined) continue;
|
|
207
219
|
const val = managed[key];
|
|
208
220
|
if (Array.isArray(val)) {
|
|
209
|
-
|
|
221
|
+
const written = new Set();
|
|
222
|
+
for (const v of val) {
|
|
223
|
+
if (!written.has(v)) { written.add(v); lines.push(`${key} ${v}`); }
|
|
224
|
+
}
|
|
210
225
|
} else {
|
|
211
226
|
lines.push(`${key} ${val}`);
|
|
212
227
|
}
|
|
@@ -238,6 +253,8 @@ function serialise(conf) {
|
|
|
238
253
|
if (l.allow_anonymous !== undefined) {
|
|
239
254
|
lines.push(`allow_anonymous ${l.allow_anonymous ? 'true' : 'false'}`);
|
|
240
255
|
}
|
|
256
|
+
if (l.password_file) lines.push(`password_file ${l.password_file}`);
|
|
257
|
+
if (l.acl_file) lines.push(`acl_file ${l.acl_file}`);
|
|
241
258
|
lines.push('');
|
|
242
259
|
}
|
|
243
260
|
|