MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / inspect

Method inspect

packages/context/src/binding.ts:1005–1016  ·  view source on GitHub ↗

* Inspect the binding to return a json representation of the binding information * @param options - Options to control what information should be included

(options: BindingInspectOptions = {})

Source from the content-addressed store, hash-verified

1003 * @param options - Options to control what information should be included
1004 */
1005 inspect(options: BindingInspectOptions = {}): JSONObject {
1006 options = {
1007 includeInjections: false,
1008 ...options,
1009 };
1010 const json = this.toJSON();
1011 if (options.includeInjections) {
1012 const injections = inspectInjections(this);
1013 if (Object.keys(injections).length) json.injections = injections;
1014 }
1015 return json;
1016 }
1017
1018 /**
1019 * A static method to create a binding so that we can do

Callers

nothing calls this directly

Calls 3

toJSONMethod · 0.95
inspectInjectionsFunction · 0.90
keysMethod · 0.65

Tested by

no test coverage detected