Comparing version 1.3.0 to 1.3.2
20
index.js
@@ -54,6 +54,6 @@ 'use strict'; // always strict mode | ||
// Listen for events | ||
this._listen (); | ||
// Listen for events if have child class | ||
if (child != null) this._listen (); | ||
} | ||
_genClass () { | ||
@@ -94,5 +94,15 @@ // Create handler for proxy class | ||
// Find internal handler, TODO: handle missing | ||
// Find internal handler | ||
let handler = this._child[call.fnId]; | ||
// Handle inexistence | ||
if (handler == null) { | ||
this._stream.send ('fnRes.' + call.resId, { | ||
isError: true, | ||
data: "No such method", | ||
}); | ||
return; | ||
} | ||
// Try getting response from handler or handle error | ||
@@ -108,2 +118,4 @@ try { | ||
}); | ||
return; | ||
} | ||
@@ -110,0 +122,0 @@ |
{ | ||
"name": "arc-rpc", | ||
"version": "1.3.0", | ||
"version": "1.3.2", | ||
"description": "Asynchronous Remote Classes make RPC simple", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11019
257