@geek-fun/serverlessinsight 0.6.4 → 0.6.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geek-fun/serverlessinsight",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Full life cycle cross providers serverless application management for your fast-growing business.",
5
5
  "homepage": "https://serverlessinsight.geekfun.club",
6
6
  "main": "dist/src/index.js",
@@ -58,13 +58,14 @@ const triggerToApigwApiConfig = (event, trigger, groupId, serviceName, region, s
58
58
  const backend = trigger.backend;
59
59
  const resolvedFunctionName = resolveFunctionReference(backend);
60
60
  const apiKey = (0, exports.generateApiKey)(method, path);
61
+ const protocolConfig = (0, exports.inferProtocolConfig)(event.domain?.protocol);
61
62
  return {
62
63
  groupId,
63
64
  apiName: `${event.name}-${stage}-agw-api-${apiKey}`.replace(/_/g, '-'),
64
65
  visibility: 'PRIVATE',
65
66
  authType: 'ANONYMOUS',
66
67
  requestConfig: {
67
- requestProtocol: 'HTTP',
68
+ requestProtocol: protocolConfig.requestProtocol,
68
69
  requestHttpMethod: method,
69
70
  requestPath: path,
70
71
  requestMode: 'PASSTHROUGH',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geek-fun/serverlessinsight",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Full life cycle cross providers serverless application management for your fast-growing business.",
5
5
  "homepage": "https://serverlessinsight.geekfun.club",
6
6
  "main": "dist/src/index.js",