MCPcopy
hub / github.com/nestjs/nest / lookupPackage

Method lookupPackage

packages/microservices/server/server-grpc.ts:622–629  ·  view source on GitHub ↗
(root: any, packageName: string)

Source from the content-addressed store, hash-verified

620 }
621
622 public lookupPackage(root: any, packageName: string) {
623 /** Reference: https://github.com/kondi/rxjs-grpc */
624 let pkg = root;
625 for (const name of packageName.split(/\./)) {
626 pkg = pkg[name];
627 }
628 return pkg;
629 }
630
631 public loadProto(): any {
632 try {

Callers 2

bindEventsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected