quidproquo-actionprocessor-awslambda 0.0.200 → 0.0.201
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.
package/lib/commonjs/getActionProcessor/core/event/apiGatwayEvent/api/transformResponseResult.js
CHANGED
|
@@ -47,7 +47,7 @@ const getProcessTransformResponseResult = (qpqConfig) => {
|
|
|
47
47
|
const successRecord = record.success ? record.result : getResponseFromErrorResult(record.error);
|
|
48
48
|
// Add the cors headers
|
|
49
49
|
const currentHeaders = successRecord.headers || {};
|
|
50
|
-
const headers = Object.assign(Object.assign({}, quidproquo_webserver_1.qpqWebServerUtils.getCorsHeaders(qpqConfig, {},
|
|
50
|
+
const headers = Object.assign(Object.assign({}, quidproquo_webserver_1.qpqWebServerUtils.getCorsHeaders(qpqConfig, {}, apiGatewayEvent.headers)), currentHeaders);
|
|
51
51
|
// Transform back to api gateway
|
|
52
52
|
return (0, quidproquo_core_1.actionResult)({
|
|
53
53
|
statusCode: successRecord.status,
|
|
@@ -37,7 +37,7 @@ const getProcessTransformResponseResult = (qpqConfig) => {
|
|
|
37
37
|
// Add the cors headers
|
|
38
38
|
const currentHeaders = successRecord.headers || {};
|
|
39
39
|
const headers = {
|
|
40
|
-
...qpqWebServerUtils.getCorsHeaders(qpqConfig, {},
|
|
40
|
+
...qpqWebServerUtils.getCorsHeaders(qpqConfig, {}, apiGatewayEvent.headers),
|
|
41
41
|
...currentHeaders,
|
|
42
42
|
};
|
|
43
43
|
// Transform back to api gateway
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-actionprocessor-awslambda",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.201",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
52
|
"node-cache": "^5.1.2",
|
|
53
53
|
"node-match-path": "^0.6.3",
|
|
54
|
-
"quidproquo-config-aws": "0.0.
|
|
55
|
-
"quidproquo-core": "0.0.
|
|
56
|
-
"quidproquo-webserver": "0.0.
|
|
54
|
+
"quidproquo-config-aws": "0.0.201",
|
|
55
|
+
"quidproquo-core": "0.0.201",
|
|
56
|
+
"quidproquo-webserver": "0.0.201"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/aws-lambda": "^8.10.109",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/jsonwebtoken": "^9.0.2",
|
|
62
62
|
"@types/lodash": "^4.14.194",
|
|
63
63
|
"@types/node": "^18.11.9",
|
|
64
|
-
"quidproquo-tsconfig": "0.0.
|
|
64
|
+
"quidproquo-tsconfig": "0.0.201",
|
|
65
65
|
"typescript": "^4.9.3"
|
|
66
66
|
}
|
|
67
67
|
}
|