We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313ba2b commit d3cb195Copy full SHA for d3cb195
index.js
@@ -15,7 +15,7 @@ const PROXY_TYPES = ['http', 'lambda']
15
const registerWebSocketRoutes = require('./lib/ws-proxy')
16
17
const gateway = (opts) => {
18
- const proxyFactory = (...args) => opts.proxyFactory?.(...args) ?? defaultProxyFactory(...args);
+ const proxyFactory = opts.proxyFactory ? (...args) => ((r) => r === undefined ? defaultProxyFactory(...args) : r)(opts.proxyFactory(...args)) : defaultProxyFactory;
19
20
opts = Object.assign(
21
{
0 commit comments