@middy/sts 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 +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
11
  const _util = require("@middy/util");
10
- const _clientSts = require("@aws-sdk/client-sts");
12
+ const _clientsts = require("@aws-sdk/client-sts");
11
13
  const defaults = {
12
- AwsClient: _clientSts.STSClient,
14
+ AwsClient: _clientsts.STSClient,
13
15
  awsClientOptions: {},
14
16
  awsClientCapture: undefined,
15
17
  fetchData: {},
@@ -29,7 +31,7 @@ const stsMiddleware = (opts = {})=>{
29
31
  if (cachedValues[internalKey]) continue;
30
32
  const assumeRoleOptions = options.fetchData[internalKey];
31
33
  assumeRoleOptions.RoleSessionName ??= 'middy-sts-session-' + Math.ceil(Math.random() * 99999);
32
- values[internalKey] = client.send(new _clientSts.AssumeRoleCommand(assumeRoleOptions)).then((resp)=>({
34
+ values[internalKey] = client.send(new _clientsts.AssumeRoleCommand(assumeRoleOptions)).then((resp)=>({
33
35
  accessKeyId: resp.Credentials.AccessKeyId,
34
36
  secretAccessKey: resp.Credentials.SecretAccessKey,
35
37
  sessionToken: resp.Credentials.SessionToken
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/sts",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "STS (Security Token Service) credentials middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,13 +66,13 @@
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-sts": "^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
  },
77
- "gitHead": "6ed88ad93746e077e8870d34d970414537abbef7"
77
+ "gitHead": "5b574488798c48bc74269af7deb3ff95139bcdcc"
78
78
  }