@cloudnux/aws-cloud-provider 0.15.0 → 0.16.0

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/index.js CHANGED
@@ -146997,7 +146997,7 @@ function extractParams(template, actualPath) {
146997
146997
  }
146998
146998
  return params;
146999
146999
  }
147000
- function createLocalFunctionsService() {
147000
+ function createFunctionsService() {
147001
147001
  return {
147002
147002
  createHttRequest(event, ctx) {
147003
147003
  const httpRequest9 = {
@@ -147079,8 +147079,8 @@ function createLocalFunctionsService() {
147079
147079
  createWebSocketRequest: (event, ctx, trigger) => {
147080
147080
  const connectionId = event.requestContext?.connectionId;
147081
147081
  const routeKey = event.requestContext?.routeKey;
147082
- const path = event.headers["x-original-path"];
147083
- const params = extractParams(trigger.options.route || "", path || "") || {};
147082
+ const path = event.requestContext?.path || event.headers["x-original-path"];
147083
+ const params = extractParams(trigger.options.path || "", path || "") || {};
147084
147084
  let wsEvent;
147085
147085
  let route;
147086
147086
  if (routeKey === "$connect") {
@@ -147922,7 +147922,7 @@ function getClient(endpoint) {
147922
147922
  }
147923
147923
  return _client;
147924
147924
  }
147925
- function createAwsWebSocketService() {
147925
+ function createWebSocketService() {
147926
147926
  return {
147927
147927
  async sendToClient(connectionId, data) {
147928
147928
  const client = getClient();
@@ -147945,8 +147945,8 @@ var awsCloudProvider = {
147945
147945
  createStorageService,
147946
147946
  createLocationService,
147947
147947
  createEventBrokerService,
147948
- createFunctionsService: createLocalFunctionsService,
147949
- createWebSocketService: createAwsWebSocketService
147948
+ createFunctionsService,
147949
+ createWebSocketService
147950
147950
  };
147951
147951
  export {
147952
147952
  awsCloudProvider