wirejs-deploy-amplify-basic 0.0.154-payments → 0.0.155-payments

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.
@@ -11,6 +11,7 @@ import {
11
11
 
12
12
  // @ts-ignore
13
13
  import * as api from '../../../api/index';
14
+ import { flushCompileCache } from 'module';
14
15
 
15
16
  function deriveLocation(event: APIGatewayProxyEventV2) {
16
17
  if (event.headers['x-wirejs-location']) {
@@ -177,7 +178,7 @@ export const handler: LambdaFunctionURLHandler = async (event) => {
177
178
  }
178
179
 
179
180
  const response = await matchingEndpoint.handle(wjsContext);
180
- return {
181
+ const fullResponse = {
181
182
  statusCode: wjsContext.responseCode ?? 200,
182
183
  cookies: extractSetCookies(wjsContext),
183
184
  headers: {
@@ -185,6 +186,10 @@ export const handler: LambdaFunctionURLHandler = async (event) => {
185
186
  },
186
187
  body: response
187
188
  };
189
+
190
+ // temp
191
+ console.log('full response', JSON.stringify(fullResponse, null, 2));
192
+ return fullResponse;
188
193
  } else if (typeof calls === 'object' && calls.async) {
189
194
  const sanitized = { ...calls };
190
195
  sanitized.selfInvocationId = sanitized.selfInvocationId.slice(0, 8);
@@ -314,6 +314,9 @@ async function proxyRequest(context, res, targetUrl) {
314
314
  const responseHeaders = response.headers;
315
315
 
316
316
  res.statusCode = response.status;
317
+
318
+ // temp
319
+ console.log('response headers', responseHeaders);
317
320
 
318
321
  [...responseHeaders.keys()].forEach((header) => {
319
322
  if (header === 'x-wirejs-redirect') {
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.42",
6
- "wirejs-resources": "^0.1.122-payments"
6
+ "wirejs-resources": "^0.1.123-payments"
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.154-payments",
3
+ "version": "0.0.155-payments",
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.42",
45
- "wirejs-resources": "^0.1.122-payments"
45
+ "wirejs-resources": "^0.1.123-payments"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@aws-amplify/backend": "^1.14.0",