MCPcopy
hub / github.com/loopbackio/loopback-next / getValueOrProxy

Method getValueOrProxy

packages/context/src/binding.ts:572–587  ·  view source on GitHub ↗
(
    resolutionCtx: Context,
    options: ResolutionOptions,
    value: ValueOrPromise<T>,
  )

Source from the content-addressed store, hash-verified

570 }
571
572 private getValueOrProxy(
573 resolutionCtx: Context,
574 options: ResolutionOptions,
575 value: ValueOrPromise<T>,
576 ): ValueOrPromise<T> {
577 const session = options.session!;
578 session.pushBinding(this);
579 return Binding.valueOrProxy(
580 {
581 context: resolutionCtx,
582 binding: this,
583 options,
584 },
585 value,
586 );
587 }
588
589 /**
590 * Locate and validate the resolution context

Callers 1

getValueMethod · 0.95

Calls 2

pushBindingMethod · 0.80
valueOrProxyMethod · 0.80

Tested by

no test coverage detected