wirejs-deploy-amplify-basic 0.0.21 → 0.0.22

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.
@@ -47,14 +47,13 @@ async function callApiMethod(api: any, call: any, context: any) {
47
47
  export const handler: LambdaFunctionURLHandler = async (event, context) => {
48
48
  const calls = JSON.parse(event.body!);
49
49
  const responses = [];
50
+ const wjsContext = createContext(event);
50
51
 
51
52
  for (const call of calls) {
52
53
  console.log('handling API call', call);
53
- responses.push(await callApiMethod(api, call, context));
54
+ responses.push(await callApiMethod(api, call, wjsContext));
54
55
  }
55
56
 
56
- const wjsContext = createContext(event);
57
-
58
57
  console.log('setting cookies', wjsContext.cookies.getSetCookies());
59
58
 
60
59
  const cookies: string[] = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",