oasis_test 0.1.6 → 0.1.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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24556,7 +24556,8 @@ var init_daemon_hub = __esm({
|
|
|
24556
24556
|
cb(false, 401, "invalid node token");
|
|
24557
24557
|
return;
|
|
24558
24558
|
}
|
|
24559
|
-
info.req.
|
|
24559
|
+
const claimed = info.req.headers["x-daemon-id"];
|
|
24560
|
+
info.req.oasisNodeId = claimed || nodeId;
|
|
24560
24561
|
cb(true);
|
|
24561
24562
|
}
|
|
24562
24563
|
} : {}
|
|
@@ -41134,8 +41135,7 @@ void (async () => {
|
|
|
41134
41135
|
console.error("Usage: oasis start --server-ws <wss://...> --token <token> [--name <name>] [--id <nodeId>]");
|
|
41135
41136
|
process.exit(1);
|
|
41136
41137
|
}
|
|
41137
|
-
const
|
|
41138
|
-
const nodeId = isReEnrollment ? flags.get("id") ?? prev?.nodeId ?? `node-${(0, import_node_crypto21.randomUUID)()}` : prev?.nodeId ?? flags.get("id") ?? `node-${(0, import_node_crypto21.randomUUID)()}`;
|
|
41138
|
+
const nodeId = prev?.nodeId ?? flags.get("id") ?? `node-${(0, import_node_crypto21.randomUUID)()}`;
|
|
41139
41139
|
const name = flags.get("name") ?? prev?.name;
|
|
41140
41140
|
const nameChanged = prev?.name !== void 0 && name !== prev.name;
|
|
41141
41141
|
saveConfig({ serverUrl, token, nodeId, ...name ? { name } : {} });
|