nest-graph-inspector 0.7.0 → 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 candidate = prototype[name];
709
- if (typeof candidate !== 'function') {
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 method = candidate;
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-graph-inspector",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "NestJS module graph inspector for discovery and dependency analysis",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",