socket-function 0.108.0 → 0.109.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": "socket-function",
3
- "version": "0.108.0",
3
+ "version": "0.109.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -38,13 +38,13 @@ export async function performLocalCall(
38
38
  }
39
39
 
40
40
  if (!exposedClasses.has(call.classGuid)) {
41
- throw new Error(`Class ${call.classGuid} not exposed, exposed classes: ${Array.from(exposedClasses).join(", ")}`);
41
+ throw new Error(`Class ${call.classGuid} not exposed. Call SocketFunction.expose (serverside) with this class. Exposed classes: ${Array.from(exposedClasses).join(", ")}`);
42
42
  }
43
43
 
44
44
  let controller = classDef.controller;
45
45
  let functionShape = classDef.shape[call.functionName];
46
46
  if (!functionShape) {
47
- throw new Error(`Function ${call.functionName} not exposed in ${call.classGuid}`);
47
+ throw new Error(`Function ${call.functionName} not exposed in ${call.classGuid}. Add it to the 3rd argument of SocketFunction.expose.`);
48
48
  }
49
49
 
50
50
  if (!controller[call.functionName]) {