wirejs-deploy-amplify-basic 0.0.155-payments → 0.0.157-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.
|
@@ -178,7 +178,7 @@ export const handler: LambdaFunctionURLHandler = async (event) => {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
const response = await matchingEndpoint.handle(wjsContext);
|
|
181
|
-
|
|
181
|
+
return {
|
|
182
182
|
statusCode: wjsContext.responseCode ?? 200,
|
|
183
183
|
cookies: extractSetCookies(wjsContext),
|
|
184
184
|
headers: {
|
|
@@ -186,10 +186,6 @@ export const handler: LambdaFunctionURLHandler = async (event) => {
|
|
|
186
186
|
},
|
|
187
187
|
body: response
|
|
188
188
|
};
|
|
189
|
-
|
|
190
|
-
// temp
|
|
191
|
-
console.log('full response', JSON.stringify(fullResponse, null, 2));
|
|
192
|
-
return fullResponse;
|
|
193
189
|
} else if (typeof calls === 'object' && calls.async) {
|
|
194
190
|
const sanitized = { ...calls };
|
|
195
191
|
sanitized.selfInvocationId = sanitized.selfInvocationId.slice(0, 8);
|
|
@@ -314,9 +314,6 @@ 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);
|
|
320
317
|
|
|
321
318
|
[...responseHeaders.keys()].forEach((header) => {
|
|
322
319
|
if (header === 'x-wirejs-redirect') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.157-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.
|
|
45
|
+
"wirejs-resources": "^0.1.125-payments"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@aws-amplify/backend": "^1.14.0",
|