wirejs-deploy-amplify-basic 0.1.169 → 0.1.170
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.
|
@@ -305,14 +305,15 @@ async function tryEndpointPath(context, res) {
|
|
|
305
305
|
*/
|
|
306
306
|
async function proxyRequest(context, res, targetUrl) {
|
|
307
307
|
const method = context.httpMethod;
|
|
308
|
+
const parsedUrl = new URL(targetUrl);
|
|
308
309
|
const headers = {
|
|
309
310
|
...context.requestHeaders,
|
|
311
|
+
'host': parsedUrl.hostname,
|
|
310
312
|
'x-wirejs-location': context.location.toString()
|
|
311
313
|
};
|
|
312
314
|
const body = context.requestBody;
|
|
313
315
|
|
|
314
316
|
try {
|
|
315
|
-
const parsedUrl = new URL(targetUrl);
|
|
316
317
|
const isHttps = parsedUrl.protocol === 'https:';
|
|
317
318
|
const requester = isHttps ? https : http;
|
|
318
319
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.170",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"recursive-copy": "^2.0.14",
|
|
45
45
|
"rimraf": "^6.0.1",
|
|
46
46
|
"wirejs-dom": "^1.0.44",
|
|
47
|
-
"wirejs-resources": "^0.1.
|
|
47
|
+
"wirejs-resources": "^0.1.170"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@aws-amplify/backend": "^1.14.0",
|