smart-home-engine 0.26.1 → 0.26.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.
|
@@ -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-DtmmxR--.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
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
}
|
|
156
156
|
})();
|
|
157
157
|
</script>
|
|
158
|
-
<script type="module" crossorigin src="/assets/index-
|
|
158
|
+
<script type="module" crossorigin src="/assets/index-DtmmxR--.js"></script>
|
|
159
159
|
<link rel="modulepreload" crossorigin href="/assets/monaco-langs-BW2J83t5.js">
|
|
160
160
|
<link rel="stylesheet" crossorigin href="/assets/monaco-langs-DyX1CsEw.css">
|
|
161
161
|
<link rel="stylesheet" crossorigin href="/assets/index-CND95LL-.css">
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -522,7 +522,7 @@ function createScript(source, name) {
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
function runScript(script, name,
|
|
525
|
+
function runScript(script, name, _origin) {
|
|
526
526
|
const scriptDir = path.dirname(path.resolve(name));
|
|
527
527
|
const logLabel = makeLabel(name);
|
|
528
528
|
|
|
@@ -1035,10 +1035,7 @@ function runScript(script, name, origin) {
|
|
|
1035
1035
|
subscriptions.filter((s) => s._script === name).length +
|
|
1036
1036
|
varSubscriptions.filter((s) => s._script === name).length +
|
|
1037
1037
|
mqttEventCallbacks.filter((c) => c._script === name).length;
|
|
1038
|
-
const registeredTimers =
|
|
1039
|
-
_myJobs.length +
|
|
1040
|
-
sunEvents.filter((e) => e._script === name).length +
|
|
1041
|
-
_myTimers.size;
|
|
1038
|
+
const registeredTimers = _myJobs.length + sunEvents.filter((e) => e._script === name).length + _myTimers.size;
|
|
1042
1039
|
if (registeredCallbacks > 0 || registeredTimers > 0) {
|
|
1043
1040
|
const parts = [];
|
|
1044
1041
|
if (registeredCallbacks > 0) parts.push(`${registeredCallbacks} callback${registeredCallbacks !== 1 ? 's' : ''}`);
|
|
@@ -1077,7 +1074,7 @@ function loadScript(file, origin) {
|
|
|
1077
1074
|
|
|
1078
1075
|
function unloadScript(file) {
|
|
1079
1076
|
file = file.replace(/\\/g, '/');
|
|
1080
|
-
const
|
|
1077
|
+
const _origin = scriptOrigins.get(file) || 'user';
|
|
1081
1078
|
const unloadLabel = makeLabel(file);
|
|
1082
1079
|
log.info(unloadLabel, 'unloading');
|
|
1083
1080
|
scriptOrigins.delete(file);
|
|
@@ -1195,7 +1192,6 @@ function loadSandbox(callback) {
|
|
|
1195
1192
|
}
|
|
1196
1193
|
});
|
|
1197
1194
|
|
|
1198
|
-
|
|
1199
1195
|
callback();
|
|
1200
1196
|
}
|
|
1201
1197
|
});
|