homey-api 3.17.7 → 3.17.8
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.
|
@@ -6,9 +6,9 @@ const APIErrorHomeyInvalidSerialNumber = require('../../APIErrorHomeyInvalidSeri
|
|
|
6
6
|
const Util = require('../../Util');
|
|
7
7
|
|
|
8
8
|
function getRuntimeRequire() {
|
|
9
|
-
// Avoid
|
|
10
|
-
//
|
|
11
|
-
return eval('require');
|
|
9
|
+
// Avoid bundlers statically resolving Node-only discovery transport into the browser build.
|
|
10
|
+
// Using indirect eval so rolldown/vite won't flag it as a direct eval.
|
|
11
|
+
return (0, eval)('require');
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class DiscoveryManager {
|