Skip to content

Commit 11ff227

Browse files
refactor(proxy): rename proxy factory variables for clarity
1 parent 60a9776 commit 11ff227

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/proxy-factory.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
module.exports = (() => {
4-
let fastProxyLite, lambdaProxyFactory, legacyProxyFactory
4+
let fastProxyLite, httpLambdaProxy, fastProxyLegacy
55

66
return ({ proxyType, opts, route }) => {
77
const base = opts.targetOverride || route.target
@@ -16,16 +16,16 @@ module.exports = (() => {
1616
}).proxy
1717

1818
case 'lambda':
19-
lambdaProxyFactory = lambdaProxyFactory || require('http-lambda-proxy')
20-
return lambdaProxyFactory({
19+
httpLambdaProxy = httpLambdaProxy || require('http-lambda-proxy')
20+
return httpLambdaProxy({
2121
target: base,
2222
region: 'eu-central-1',
2323
...config
2424
})
2525

2626
case 'http-legacy':
27-
legacyProxyFactory = legacyProxyFactory || require('fast-proxy')
28-
return legacyProxyFactory({
27+
fastProxyLegacy = fastProxyLegacy || require('fast-proxy')
28+
return fastProxyLegacy({
2929
base,
3030
...config
3131
}).proxy

0 commit comments

Comments
 (0)