Comparing version 2.0.0 to 2.0.1
@@ -33,4 +33,3 @@ "use strict"; | ||
get: (srv, prop) => { | ||
if (!(prop in srv.constructor.prototype) | ||
|| typeof srv[prop] != "function") { | ||
if (!(prop in srv) || typeof srv[prop] != "function") { | ||
return srv[prop]; | ||
@@ -37,0 +36,0 @@ } |
{ | ||
"name": "asrpc", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A tool to make your class as an RPC service.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -40,4 +40,3 @@ import hash = require("object-hash"); | ||
get: (srv, prop: string) => { | ||
if (!(prop in srv.constructor.prototype) | ||
|| typeof srv[prop] != "function") { | ||
if (!(prop in srv) || typeof srv[prop] != "function") { | ||
return srv[prop]; | ||
@@ -44,0 +43,0 @@ } else if (!srv[prop][proxified]) { |
Sorry, the diff of this file is not supported yet
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
56626
870