@allthings/cloud-toolkit 2.3.0-dev.1 → 2.3.0-dev.10

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 CHANGED
@@ -165,7 +165,9 @@ const normalizeHeaders = ({ headers = {}, ...request }) => ({
165
165
 
166
166
  const normalizeProgrammingModel = (request) => ({
167
167
  ...request,
168
- method: request.httpMethod || '',
168
+ method: request.httpMethod ||
169
+ request.requestContext.http.method ||
170
+ '',
169
171
  provider: 'aws',
170
172
  query: request.queryStringParameters || {},
171
173
  source: request.requestContext ? 'api-gateway' : request.source,
@@ -663,6 +665,8 @@ const alagarr = (handler = noopHandler, options = DEFAULT_OPTIONS) => async (eve
663
665
  ...DEFAULT_OPTIONS,
664
666
  ...options,
665
667
  };
668
+ console.log(JSON.stringify(event));
669
+ console.log(JSON.stringify(context));
666
670
  const request = await makeRequest(event, context, mergedOptions);
667
671
  const response = await makeResponse(request, callback, mergedOptions);
668
672
  try {
package/dist/lib.esm.js CHANGED
@@ -142,7 +142,9 @@ const normalizeHeaders = ({ headers = {}, ...request }) => ({
142
142
 
143
143
  const normalizeProgrammingModel = (request) => ({
144
144
  ...request,
145
- method: request.httpMethod || '',
145
+ method: request.httpMethod ||
146
+ request.requestContext.http.method ||
147
+ '',
146
148
  provider: 'aws',
147
149
  query: request.queryStringParameters || {},
148
150
  source: request.requestContext ? 'api-gateway' : request.source,
@@ -640,6 +642,8 @@ const alagarr = (handler = noopHandler, options = DEFAULT_OPTIONS) => async (eve
640
642
  ...DEFAULT_OPTIONS,
641
643
  ...options,
642
644
  };
645
+ console.log(JSON.stringify(event));
646
+ console.log(JSON.stringify(context));
643
647
  const request = await makeRequest(event, context, mergedOptions);
644
648
  const response = await makeResponse(request, callback, mergedOptions);
645
649
  try {