wirejs-deploy-amplify-basic 0.0.123-async-api → 0.0.124-async-api

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.
@@ -56,6 +56,8 @@ userPoolClient.explicitAuthFlows.push(
56
56
  'ALLOW_ADMIN_USER_PASSWORD_AUTH'
57
57
  );
58
58
 
59
+ backend.api.resources.lambda.grantInvoke(backend.api.resources.lambda);
60
+
59
61
  /**
60
62
  * CDK resources
61
63
  */
@@ -197,6 +199,7 @@ backend.api.addEnvironment(
197
199
  const apiUrl = backend.api.resources.lambda.addFunctionUrl({
198
200
  authType: FunctionUrlAuthType.NONE
199
201
  });
202
+
200
203
  backend.addOutput({
201
204
  custom: {
202
205
  api: apiUrl.url
@@ -54,6 +54,7 @@ function isBackgroundJob(o: any): o is BackgroundJob<any> {
54
54
  }
55
55
 
56
56
  export const handler: LambdaFunctionURLHandler = async (event, context) => {
57
+ console.log('lambda invoke', event); // TEMP!
57
58
  const calls = JSON.parse(event.body!);
58
59
 
59
60
  if (Array.isArray(calls)) {
@@ -115,6 +116,7 @@ export const handler: LambdaFunctionURLHandler = async (event, context) => {
115
116
  body: JSON.stringify({ message: 'Background job complete' })
116
117
  };
117
118
  } else {
119
+ console.error('Invalid request format', calls);
118
120
  return {
119
121
  statusCode: 400,
120
122
  body: JSON.stringify({ error: 'Invalid request format' })
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.41",
6
- "wirejs-resources": "^0.1.91-async-api"
6
+ "wirejs-resources": "^0.1.92-async-api"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.123-async-api",
3
+ "version": "0.0.124-async-api",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "recursive-copy": "^2.0.14",
43
43
  "rimraf": "^6.0.1",
44
44
  "wirejs-dom": "^1.0.41",
45
- "wirejs-resources": "^0.1.91-async-api"
45
+ "wirejs-resources": "^0.1.92-async-api"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@aws-amplify/backend": "^1.14.0",