querysub 0.88.0 → 0.89.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.88.0",
3
+ "version": "0.89.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",
@@ -67,18 +67,15 @@ export async function hackDevtoolsWebsocketForward(config: {
67
67
 
68
68
  // Handle socket closure
69
69
  socket.on("close", () => {
70
+ console.log("Socket closed");
70
71
  internalConnection.destroy();
72
+ //testing
71
73
  // IMPORTANT! We terminate when the connection is closed, which is what makes this safe.
72
- process.exit();
73
- });
74
- socket.on("error", (err: Error) => {
75
- internalConnection.destroy();
74
+ //process.exit();
76
75
  });
77
76
 
78
77
  internalConnection.on("close", () => {
79
- socket.destroy();
80
- });
81
- internalConnection.on("error", (err: Error) => {
78
+ console.log("Internal connection closed");
82
79
  socket.destroy();
83
80
  });
84
81
  });