@middy/ssm 4.3.0 → 4.4.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.
Files changed (2) hide show
  1. package/index.cjs +7 -5
  2. package/package.json +4 -4
package/index.cjs CHANGED
@@ -4,13 +4,15 @@ 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
11
  const _util = require("@middy/util");
10
- const _clientSsm = require("@aws-sdk/client-ssm");
12
+ const _clientssm = require("@aws-sdk/client-ssm");
11
13
  const awsRequestLimit = 10;
12
14
  const defaults = {
13
- AwsClient: _clientSsm.SSMClient,
15
+ AwsClient: _clientssm.SSMClient,
14
16
  awsClientOptions: {},
15
17
  awsClientAssumeRole: undefined,
16
18
  awsClientCapture: undefined,
@@ -47,7 +49,7 @@ const ssmMiddleware = (opts = {})=>{
47
49
  if ((!idx || (idx + 1) % awsRequestLimit !== 0) && !(idx + 1 === internalKeys.length)) {
48
50
  continue;
49
51
  }
50
- batchReq = client.send(new _clientSsm.GetParametersCommand({
52
+ batchReq = client.send(new _clientssm.GetParametersCommand({
51
53
  Names: batchFetchKeys,
52
54
  WithDecryption: true
53
55
  })).then((resp)=>{
@@ -99,7 +101,7 @@ const ssmMiddleware = (opts = {})=>{
99
101
  return values;
100
102
  };
101
103
  const fetchPath = (path, nextToken, values = {})=>{
102
- return client.send(new _clientSsm.GetParametersByPathCommand({
104
+ return client.send(new _clientssm.GetParametersByPathCommand({
103
105
  Path: path,
104
106
  NextToken: nextToken,
105
107
  Recursive: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/ssm",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "SSM (EC2 Systems Manager) parameters middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,14 +66,14 @@
66
66
  "url": "https://github.com/sponsors/willfarrell"
67
67
  },
68
68
  "dependencies": {
69
- "@middy/util": "4.3.0"
69
+ "@middy/util": "4.4.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@aws-sdk/client-ssm": "^3.0.0",
73
- "@middy/core": "4.3.0",
73
+ "@middy/core": "4.4.0",
74
74
  "@types/aws-lambda": "^8.10.101",
75
75
  "aws-xray-sdk": "^3.3.3",
76
76
  "type-fest": "^3.0.0"
77
77
  },
78
- "gitHead": "6ed88ad93746e077e8870d34d970414537abbef7"
78
+ "gitHead": "5b574488798c48bc74269af7deb3ff95139bcdcc"
79
79
  }