socket-function 0.41.0 → 0.43.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 +2 -2
- package/src/webSocketServer.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socket-function",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"mobx": "^6.6.2",
|
|
12
12
|
"node-forge": "https://github.com/sliftist/forge#name",
|
|
13
13
|
"pako": "^2.1.0",
|
|
14
|
-
"preact": "
|
|
14
|
+
"preact": "10.24.3",
|
|
15
15
|
"typenode": "^5.6.0",
|
|
16
16
|
"ws": "^8.17.1"
|
|
17
17
|
},
|
package/src/webSocketServer.ts
CHANGED
|
@@ -142,7 +142,9 @@ export async function startSocketServer(
|
|
|
142
142
|
throw new Error(`Invalid cross domain request, ${JSON.stringify(host)} !== ${JSON.stringify(origin)} (also not in config.allowedHostnames ${JSON.stringify(config.allowHostnames)})`);
|
|
143
143
|
}
|
|
144
144
|
} catch (e) {
|
|
145
|
-
|
|
145
|
+
// NOTE: Just log, because invalid requests are guaranteed to happen, and
|
|
146
|
+
// there's no point wasting time looking at them.
|
|
147
|
+
console.log(e);
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
148
150
|
}
|