@allthings/cloud-toolkit 2.3.0-dev.12 → 2.3.0-dev.13
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/dist/lib.cjs.js +3 -5
- package/dist/lib.esm.js +3 -5
- package/dist/lib.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/lib.cjs.js
CHANGED
|
@@ -166,10 +166,10 @@ const normalizeHeaders = ({ headers = {}, ...request }) => ({
|
|
|
166
166
|
const normalizeProgrammingModel = (request) => ({
|
|
167
167
|
...request,
|
|
168
168
|
method: request.httpMethod ??
|
|
169
|
-
request.requestContext
|
|
169
|
+
request.requestContext?.http?.method ??
|
|
170
170
|
'',
|
|
171
171
|
path: request.path ??
|
|
172
|
-
request.requestContext
|
|
172
|
+
request.requestContext?.http?.path ??
|
|
173
173
|
'',
|
|
174
174
|
provider: 'aws',
|
|
175
175
|
query: request.queryStringParameters || {},
|
|
@@ -532,7 +532,7 @@ const aws = (request) => {
|
|
|
532
532
|
},
|
|
533
533
|
sourceIp: requestContext.identity
|
|
534
534
|
?.sourceIp ??
|
|
535
|
-
requestContext
|
|
535
|
+
requestContext?.http?.sourceIp,
|
|
536
536
|
};
|
|
537
537
|
};
|
|
538
538
|
const logger$1 = (request, response) => {
|
|
@@ -671,8 +671,6 @@ const alagarr = (handler = noopHandler, options = DEFAULT_OPTIONS) => async (eve
|
|
|
671
671
|
...DEFAULT_OPTIONS,
|
|
672
672
|
...options,
|
|
673
673
|
};
|
|
674
|
-
console.log(JSON.stringify(event));
|
|
675
|
-
console.log(JSON.stringify(context));
|
|
676
674
|
const request = await makeRequest(event, context, mergedOptions);
|
|
677
675
|
const response = await makeResponse(request, callback, mergedOptions);
|
|
678
676
|
try {
|
package/dist/lib.esm.js
CHANGED
|
@@ -143,10 +143,10 @@ const normalizeHeaders = ({ headers = {}, ...request }) => ({
|
|
|
143
143
|
const normalizeProgrammingModel = (request) => ({
|
|
144
144
|
...request,
|
|
145
145
|
method: request.httpMethod ??
|
|
146
|
-
request.requestContext
|
|
146
|
+
request.requestContext?.http?.method ??
|
|
147
147
|
'',
|
|
148
148
|
path: request.path ??
|
|
149
|
-
request.requestContext
|
|
149
|
+
request.requestContext?.http?.path ??
|
|
150
150
|
'',
|
|
151
151
|
provider: 'aws',
|
|
152
152
|
query: request.queryStringParameters || {},
|
|
@@ -509,7 +509,7 @@ const aws = (request) => {
|
|
|
509
509
|
},
|
|
510
510
|
sourceIp: requestContext.identity
|
|
511
511
|
?.sourceIp ??
|
|
512
|
-
requestContext
|
|
512
|
+
requestContext?.http?.sourceIp,
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
const logger$1 = (request, response) => {
|
|
@@ -648,8 +648,6 @@ const alagarr = (handler = noopHandler, options = DEFAULT_OPTIONS) => async (eve
|
|
|
648
648
|
...DEFAULT_OPTIONS,
|
|
649
649
|
...options,
|
|
650
650
|
};
|
|
651
|
-
console.log(JSON.stringify(event));
|
|
652
|
-
console.log(JSON.stringify(context));
|
|
653
651
|
const request = await makeRequest(event, context, mergedOptions);
|
|
654
652
|
const response = await makeResponse(request, callback, mergedOptions);
|
|
655
653
|
try {
|