querysub 0.55.0 → 0.57.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "querysub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
|
|
25
25
|
"pako": "^2.1.0",
|
|
26
26
|
"preact": "^10.11.3",
|
|
27
|
-
"socket-function": "^0.
|
|
27
|
+
"socket-function": "^0.52.0",
|
|
28
28
|
"terser": "^5.31.0",
|
|
29
29
|
"typesafecss": "^0.6.3",
|
|
30
30
|
"yaml": "^2.5.0",
|
|
@@ -175,6 +175,7 @@ const IdentityController = SocketFunction.register(
|
|
|
175
175
|
);
|
|
176
176
|
|
|
177
177
|
const changeIdentityOnce = cache(async function changeIdentityOnce(connectionId: { nodeId: string }) {
|
|
178
|
+
let time = Date.now();
|
|
178
179
|
let nodeId = connectionId.nodeId;
|
|
179
180
|
let threadKeyCert = getThreadKeyCert();
|
|
180
181
|
let issuer = getIdentityCA();
|
|
@@ -191,6 +192,7 @@ const changeIdentityOnce = cache(async function changeIdentityOnce(connectionId:
|
|
|
191
192
|
IdentityController.nodes[nodeId].changeIdentity(signature, payload),
|
|
192
193
|
() => new Error(`Timeout calling changeIdentity for ${nodeId}`)
|
|
193
194
|
);
|
|
195
|
+
console.log(`changeIdentityOnce for ${nodeId} in ${formatTime(Date.now() - time)}`);
|
|
194
196
|
});
|
|
195
197
|
SocketFunction.addGlobalClientHook(async function identityHook(context) {
|
|
196
198
|
if (context.call.classGuid === IdentityController._classGuid) return;
|