@yopdev/dev-server 3.0.3-alpha.1 → 3.0.3-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ class LambdaHttpProxy {
20
20
  this.handler = (authorizer, lambdaHandler) => (request, body, response) => this.mapper.newInstance(request, body)
21
21
  .then(async (mapper) => authorizer(mapper.authorization())
22
22
  .then(async (context) => context?.policyDocument?.Statement?.find((s) => s.Effect === 'Deny') === undefined
23
- ? { ...context, lambda: context }
23
+ ? { ...context, lambda: context?.context }
24
24
  : Promise.reject(UNAUTHORIZED))
25
25
  .then((context) => lambdaHandler(mapper.event(context), this.context())
26
26
  .then((lambda) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yopdev/dev-server",
3
- "version": "3.0.3-alpha.1",
3
+ "version": "3.0.3-alpha.2",
4
4
  "scripts": {
5
5
  "compile": "tsc",
6
6
  "pretest": "npm run compile",
@@ -57,7 +57,7 @@ class LambdaHttpProxy<Context, AuthorizerContext extends APIGatewayAuthorizerRes
57
57
  authorizer(mapper.authorization())
58
58
  .then(async (context) =>
59
59
  context?.policyDocument?.Statement?.find((s) => s.Effect === 'Deny') === undefined
60
- ? { ...context, lambda: context }
60
+ ? { ...context, lambda: context?.context }
61
61
  : Promise.reject(UNAUTHORIZED),
62
62
  )
63
63
  .then((context) =>