MCPcopy Create free account
hub / github.com/firebase/firebase-tools / makeFn

Method makeFn

src/localFunction.ts:336–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 }
335
336 makeFn() {
337 if (this.trigger.httpsTrigger) {
338 const isCallable = !!this.trigger.labels?.["deployment-callable"];
339 if (isCallable) {
340 return (data: any, opt: any) => this.constructCallableFunc(data, opt);
341 } else {
342 return this.constructHttpsFunc();
343 }
344 } else {
345 return (data: any, opt: any) => this.triggerEvent(data, opt);
346 }
347 }
348}
349
350// requestShim is a minimal implementation of the public API of the deprecated `request` package

Callers 1

initializeContextFunction · 0.95

Calls 3

constructCallableFuncMethod · 0.95
constructHttpsFuncMethod · 0.95
triggerEventMethod · 0.95

Tested by

no test coverage detected