querysub 0.134.0 → 0.136.0
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/package.json
CHANGED
|
@@ -41,8 +41,8 @@ export async function deployMain() {
|
|
|
41
41
|
// Mount, so we can write directly to the database
|
|
42
42
|
await SocketFunction.mount({ port: 0, ...await getThreadKeyCert(), public: isPublic() });
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
await setLiveDeployedHash({ hash: "
|
|
44
|
+
await setLiveDeployedHash({ hash: "7b94606dc1de8d03acb8b23952ff5d49e716a45e", refreshThresholdTime: 0, });
|
|
45
|
+
//await setLiveDeployedHash({ hash: "4cba43649682967bf1ff919d941820bea6719ef7", refreshThresholdTime: 0, });
|
|
46
46
|
console.log(magenta(`SHUTTING DOWN`));
|
|
47
47
|
await shutdown();
|
|
48
48
|
return;
|
|
@@ -323,6 +323,10 @@ async function edgeNodeFunction(config: {
|
|
|
323
323
|
// though, as we need to know the entryPaths to import)
|
|
324
324
|
{
|
|
325
325
|
let curHost = document.location.host;
|
|
326
|
+
// Always include the port
|
|
327
|
+
if (!curHost.includes(":")) {
|
|
328
|
+
curHost += ":443";
|
|
329
|
+
}
|
|
326
330
|
let exactNode = edgeNodes.find(x => x.host === curHost);
|
|
327
331
|
if (exactNode) {
|
|
328
332
|
console.log(`MATCH exact host: ${getNodeDebugString(exactNode)}`);
|
|
@@ -82,6 +82,7 @@ export async function registerEdgeNode(config: {
|
|
|
82
82
|
throw new Error(`registerEdgeNode already called. Should only host 1 edgeNode per node. Previously registered with ${JSON.stringify(registeredEdgeNode)}, new call used ${JSON.stringify(config)}`);
|
|
83
83
|
}
|
|
84
84
|
registeredEdgeNode = true;
|
|
85
|
+
let host = config.host;
|
|
85
86
|
|
|
86
87
|
await waitForFirstTimeSync();
|
|
87
88
|
|
|
@@ -94,7 +95,7 @@ export async function registerEdgeNode(config: {
|
|
|
94
95
|
loadedHash = hash;
|
|
95
96
|
void Promise.resolve().then(async () => {
|
|
96
97
|
await loadEntryPointsByHash({
|
|
97
|
-
host
|
|
98
|
+
host,
|
|
98
99
|
entryPaths: config.entryPaths,
|
|
99
100
|
hash,
|
|
100
101
|
});
|
|
@@ -109,7 +110,7 @@ export async function registerEdgeNode(config: {
|
|
|
109
110
|
let edgeNodeConfig: EdgeNodeConfig = {
|
|
110
111
|
nodeId,
|
|
111
112
|
machineId,
|
|
112
|
-
host
|
|
113
|
+
host,
|
|
113
114
|
gitHash,
|
|
114
115
|
bootTime: Date.now(),
|
|
115
116
|
entryPaths: config.entryPaths,
|
|
@@ -119,7 +120,7 @@ export async function registerEdgeNode(config: {
|
|
|
119
120
|
await edgeNodeStorage.set(getNextNodePath(), Buffer.from(JSON.stringify(edgeNodeConfig)));
|
|
120
121
|
}
|
|
121
122
|
registeredEdgeNode = {
|
|
122
|
-
host
|
|
123
|
+
host,
|
|
123
124
|
entryPaths: config.entryPaths,
|
|
124
125
|
};
|
|
125
126
|
|