socket-function 0.46.0 → 0.48.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/SocketFunction.ts +1 -1
- package/package.json +2 -2
- package/src/callHTTPHandler.ts +1 -1
package/SocketFunction.ts
CHANGED
|
@@ -197,7 +197,7 @@ export class SocketFunction {
|
|
|
197
197
|
if (!config?.noAutoExpose) {
|
|
198
198
|
this.expose(socketCaller);
|
|
199
199
|
}
|
|
200
|
-
return Object.assign(socketCaller, config?.statics);
|
|
200
|
+
return Object.assign(socketCaller, config?.statics) as any;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
private static socketCache = new Map<string, SocketRegistered>();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socket-function",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.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",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"node-forge": "https://github.com/sliftist/forge#name",
|
|
13
13
|
"pako": "^2.1.0",
|
|
14
14
|
"preact": "10.24.3",
|
|
15
|
-
"typenode": "^5.
|
|
15
|
+
"typenode": "^5.7.0",
|
|
16
16
|
"ws": "^8.17.1"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
package/src/callHTTPHandler.ts
CHANGED
|
@@ -210,7 +210,7 @@ export async function httpCallHandler(request: http.IncomingMessage, response: h
|
|
|
210
210
|
|
|
211
211
|
} catch (e: any) {
|
|
212
212
|
console.log(`HTTP error (${request.method}) ${e.stack}`);
|
|
213
|
-
response.writeHead(500, String(e.message));
|
|
213
|
+
response.writeHead(500, String(e.message).replace(/[^\x20-\x7E]/g, ""));
|
|
214
214
|
} finally {
|
|
215
215
|
response.end();
|
|
216
216
|
}
|