smart-home-engine 1.0.1 → 1.0.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-BIVJqnVf.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-BIVJqnVf.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-BvaykAGz.css">
|
package/package.json
CHANGED
package/src/web/server.js
CHANGED
|
@@ -108,11 +108,13 @@ let _getStats = null;
|
|
|
108
108
|
function setStatsProvider(fn) {
|
|
109
109
|
_getStats = fn;
|
|
110
110
|
}
|
|
111
|
+
const _isDocker = require('fs').existsSync('/.dockerenv');
|
|
111
112
|
app.get('/she/status', (req, res) => {
|
|
112
113
|
const s = _getStats ? _getStats() : { scripts: 0, topics: 0 };
|
|
113
114
|
if (_latestNpmVersion) s.latestVersion = _latestNpmVersion;
|
|
114
115
|
s.dataDir = require('../lib/storage').STORAGE_ROOT;
|
|
115
116
|
s.startedAt = SERVER_START_TIME;
|
|
117
|
+
if (_isDocker) s.docker = true;
|
|
116
118
|
res.json(s);
|
|
117
119
|
});
|
|
118
120
|
|