Comparing version 1.4.1 to 1.4.2
12
index.js
@@ -71,9 +71,13 @@ 'use strict'; // always strict mode | ||
get: (target, property) => { | ||
let propPath = path.slice (0); | ||
propPath.push (property); | ||
if (base[property] != null) { | ||
return base[property]; | ||
if (base[property] instanceof Object) { | ||
return this._genClass (base[property], propPath); | ||
} else { | ||
return base[property]; | ||
} | ||
} | ||
let propPath = path.slice (0); | ||
propPath.push (property); | ||
let handler = (async (...params) => { | ||
@@ -80,0 +84,0 @@ let out = await this._call (propPath, params); |
{ | ||
"name": "arc-rpc", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Asynchronous Remote Classes make RPC simple", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
12451
312