@middy/sts 2.5.3 → 2.5.4

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.d.ts +5 -12
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,18 +1,11 @@
1
1
  import { STS } from 'aws-sdk'
2
- import { captureAWSClient } from 'aws-xray-sdk'
3
2
  import middy from '@middy/core'
3
+ import { Options as MiddyOptions } from '@middy/util'
4
4
 
5
- interface Options<S = STS> {
6
- AwsClient?: new() => S
7
- awsClientOptions?: Partial<STS.Types.ClientConfiguration>
8
- // awsClientAssumeRole?: string,
9
- awsClientCapture?: typeof captureAWSClient
10
- fetchData?: { [key: string]: string }
11
- disablePrefetch?: boolean
12
- cacheKey?: string
13
- cacheExpiry?: number
14
- // setToEnv?: boolean,
15
- setToContext?: boolean
5
+ interface Options<S = STS>
6
+ extends Pick<MiddyOptions<S, STS.Types.ClientConfiguration>,
7
+ 'AwsClient' | 'awsClientOptions' | 'awsClientCapture' |
8
+ 'fetchData' | 'disablePrefetch' | 'cacheKey' | 'cacheExpiry' | 'setToContext'> {
16
9
  }
17
10
 
18
11
  declare function sts (options?: Options): middy.MiddlewareObj
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/sts",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "STS (Security Token Service) credentials middleware for the middy framework",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -46,12 +46,12 @@
46
46
  },
47
47
  "homepage": "https://github.com/middyjs/middy#readme",
48
48
  "dependencies": {
49
- "@middy/util": "^2.5.3"
49
+ "@middy/util": "^2.5.4"
50
50
  },
51
51
  "devDependencies": {
52
- "@middy/core": "^2.5.3",
52
+ "@middy/core": "^2.5.4",
53
53
  "aws-sdk": "^2.939.0",
54
54
  "aws-xray-sdk": "^3.3.3"
55
55
  },
56
- "gitHead": "690884d43b9cd632aeca9a5eba1612160b987cd4"
56
+ "gitHead": "a4134a579c757a9fdfed3006877ba2c0ec8a2cfa"
57
57
  }