adhdev 0.9.76-rc.6 → 0.9.76-rc.7
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/cli/index.js +6 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -80989,13 +80989,14 @@ var init_server_connection = __esm({
|
|
|
80989
80989
|
reject(new Error(`Mesh command timed out after ${timeoutMs}ms`));
|
|
80990
80990
|
}, timeoutMs);
|
|
80991
80991
|
const handler = (msg) => {
|
|
80992
|
-
|
|
80992
|
+
const body = msg.payload && typeof msg.payload === "object" ? { ...msg, ...msg.payload } : msg;
|
|
80993
|
+
if (body.requestId !== requestId) return;
|
|
80993
80994
|
this.off("daemon_mesh_result", handler);
|
|
80994
80995
|
clearTimeout(timer);
|
|
80995
|
-
if (
|
|
80996
|
-
reject(new Error(
|
|
80996
|
+
if (body.success === false) {
|
|
80997
|
+
reject(new Error(body.error ?? "Mesh command failed"));
|
|
80997
80998
|
} else {
|
|
80998
|
-
resolve23(
|
|
80999
|
+
resolve23(body.result);
|
|
80999
81000
|
}
|
|
81000
81001
|
};
|
|
81001
81002
|
this.on("daemon_mesh_result", handler);
|
|
@@ -90306,7 +90307,7 @@ var init_adhdev_daemon = __esm({
|
|
|
90306
90307
|
init_version();
|
|
90307
90308
|
init_src();
|
|
90308
90309
|
init_runtime_defaults();
|
|
90309
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
90310
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.7" });
|
|
90310
90311
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
90311
90312
|
localHttpServer = null;
|
|
90312
90313
|
localWss = null;
|