@middy/ws-response 4.3.1 → 4.4.1

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.
Files changed (2) hide show
  1. package/index.cjs +6 -4
  2. package/package.json +4 -4
package/index.cjs CHANGED
@@ -4,12 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(module, "exports", {
6
6
  enumerable: true,
7
- get: ()=>_default
7
+ get: function() {
8
+ return _default;
9
+ }
8
10
  });
9
- const _clientApigatewaymanagementapi = require("@aws-sdk/client-apigatewaymanagementapi");
11
+ const _clientapigatewaymanagementapi = require("@aws-sdk/client-apigatewaymanagementapi");
10
12
  const _util = require("@middy/util");
11
13
  const defaults = {
12
- AwsClient: _clientApigatewaymanagementapi.ApiGatewayManagementApiClient,
14
+ AwsClient: _clientapigatewaymanagementapi.ApiGatewayManagementApiClient,
13
15
  awsClientOptions: {},
14
16
  awsClientAssumeRole: undefined,
15
17
  awsClientCapture: undefined,
@@ -34,7 +36,7 @@ const wsResponseMiddleware = (opts)=>{
34
36
  if (!client) {
35
37
  client = await (0, _util.createClient)(options, request);
36
38
  }
37
- await client.send(new _clientApigatewaymanagementapi.PostToConnectionCommand(response));
39
+ await client.send(new _clientapigatewaymanagementapi.PostToConnectionCommand(response));
38
40
  request.response.statusCode = 200;
39
41
  };
40
42
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/ws-response",
3
- "version": "4.3.1",
3
+ "version": "4.4.1",
4
4
  "description": "WebSocket response handling middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -65,13 +65,13 @@
65
65
  "url": "https://github.com/sponsors/willfarrell"
66
66
  },
67
67
  "dependencies": {
68
- "@middy/util": "4.3.1"
68
+ "@middy/util": "4.4.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@aws-sdk/client-apigatewaymanagementapi": "^3.0.0",
72
- "@middy/core": "4.3.1",
72
+ "@middy/core": "4.4.1",
73
73
  "@types/aws-lambda": "^8.10.97",
74
74
  "aws-xray-sdk": "^3.3.3"
75
75
  },
76
- "gitHead": "e7576b56f165591acc427fd567b6cba8d4874340"
76
+ "gitHead": "51e5c1f83483a60d9e40f5db59b03af56d2ee710"
77
77
  }