smart-home-engine 1.53.1 → 1.53.3
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-BsO7OQRT.css +1 -0
- package/dist/web/assets/{index-CBrAPut6.js → index-D2gZU7ce.js} +134 -134
- package/dist/web/assets/{tsMode-CzP5eDeL.js → tsMode-CWVhEJ2t.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/index.js +3 -0
- package/src/matter/controller.js +12 -1
- package/dist/web/assets/index-x3Sn9IKo.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-
|
|
1
|
+
import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-D2gZU7ce.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
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
}
|
|
176
176
|
})();
|
|
177
177
|
</script>
|
|
178
|
-
<script type="module" crossorigin src="/assets/index-
|
|
178
|
+
<script type="module" crossorigin src="/assets/index-D2gZU7ce.js"></script>
|
|
179
179
|
<link rel="modulepreload" crossorigin href="/assets/monaco-langs-DKJI_o9J.js">
|
|
180
180
|
<link rel="stylesheet" crossorigin href="/assets/monaco-langs-DyX1CsEw.css">
|
|
181
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
181
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BsO7OQRT.css">
|
|
182
182
|
</head>
|
|
183
183
|
<body>
|
|
184
184
|
<div id="app"></div>
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1703,6 +1703,9 @@ function loadDir(dir) {
|
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
1705
|
const fileLabel = makeLabel(filePath);
|
|
1706
|
+
// the Scripts page reloads an open tab of this file (U12): every file, also libraries, disabled
|
|
1707
|
+
// scripts and non-.js files, since any of them may be open in a tab
|
|
1708
|
+
if (event === 'change') broadcast({ type: 'script:changed', path: fileLabel.slice(0, -1) });
|
|
1706
1709
|
if (event === 'change' && filePath.endsWith('.js')) {
|
|
1707
1710
|
if (isLibFile(filePath, dir)) {
|
|
1708
1711
|
log.warn(fileLabel, 'is a library file - scripts that require() it will see the old version until they or the daemon are restarted');
|
package/src/matter/controller.js
CHANGED
|
@@ -361,7 +361,18 @@ async function commission(options) {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
async function _commissionInner(options) {
|
|
364
|
-
const { discoveryAddress, ...
|
|
364
|
+
const { discoveryAddress, ...rest } = options;
|
|
365
|
+
// matter.js (0.17.0 … 0.17.9) passes an absent regulatory location and country through
|
|
366
|
+
// CommissioningClient as `undefined`, which overrides the commissioner's own default "XX":
|
|
367
|
+
// every Thread or Wi-Fi device then fails at SetRegulatoryConfig ("Missing mandatory field
|
|
368
|
+
// countryCode"). "XX" (unknown country) is always valid; IndoorOutdoor is used only when the
|
|
369
|
+
// device reports that capability, otherwise the device keeps its own location.
|
|
370
|
+
const { GeneralCommissioning } = require('@matter/main/clusters');
|
|
371
|
+
const commissionOpts = {
|
|
372
|
+
regulatoryLocation: GeneralCommissioning.RegulatoryLocationType.IndoorOutdoor,
|
|
373
|
+
regulatoryCountryCode: 'XX',
|
|
374
|
+
...rest,
|
|
375
|
+
};
|
|
365
376
|
let clientNode;
|
|
366
377
|
if (discoveryAddress) {
|
|
367
378
|
const colonIdx = discoveryAddress.lastIndexOf(':');
|