nest-graph-inspector 0.7.1 → 0.7.2
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.
|
@@ -705,14 +705,15 @@ let NestGraphInspectorSetup = NestGraphInspectorSetup_1 = class NestGraphInspect
|
|
|
705
705
|
const methods = Object.getOwnPropertyNames(prototype)
|
|
706
706
|
.filter((name) => name !== 'constructor')
|
|
707
707
|
.map((name) => {
|
|
708
|
-
const
|
|
709
|
-
|
|
708
|
+
const descriptor = Object.getOwnPropertyDescriptor(prototype, name);
|
|
709
|
+
const method = descriptor?.value;
|
|
710
|
+
if (typeof method !== 'function') {
|
|
710
711
|
return null;
|
|
711
712
|
}
|
|
712
|
-
const
|
|
713
|
+
const callable = method;
|
|
713
714
|
const parameterTypes = this.getDirectRunMethodParameterTypes({
|
|
714
715
|
instance,
|
|
715
|
-
method,
|
|
716
|
+
method: callable,
|
|
716
717
|
methodName: name,
|
|
717
718
|
});
|
|
718
719
|
return {
|