smart-home-engine 1.53.1 → 1.53.2

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.
@@ -1,4 +1,4 @@
1
- import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-CBrAPut6.js";/*!-----------------------------------------------------------------------------
1
+ import{m as O}from"./monaco-langs-DKJI_o9J.js";import{t as I}from"./index-lCqN_GjH.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -175,10 +175,10 @@
175
175
  }
176
176
  })();
177
177
  </script>
178
- <script type="module" crossorigin src="/assets/index-CBrAPut6.js"></script>
178
+ <script type="module" crossorigin src="/assets/index-lCqN_GjH.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-x3Sn9IKo.css">
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-home-engine",
3
- "version": "1.53.1",
3
+ "version": "1.53.2",
4
4
  "description": "Node.js based script runner for use in MQTT based Smart Home environments",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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');