()
| 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 |
no test coverage detected