@middy/secrets-manager 2.5.3 → 2.5.7

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 +2 -13
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,19 +1,8 @@
1
1
  import { SecretsManager } 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<SM = SecretsManager> {
6
- AwsClient?: new() => SM
7
- awsClientOptions?: Partial<SecretsManager.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
16
- }
5
+ interface Options<SM = SecretsManager> extends MiddyOptions<SM, SecretsManager.Types.ClientConfiguration> {}
17
6
 
18
7
  declare function secretsManager (options?: Options): middy.MiddlewareObj
19
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/secrets-manager",
3
- "version": "2.5.3",
3
+ "version": "2.5.7",
4
4
  "description": "Secrets Manager middleware for the middy framework",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "homepage": "https://github.com/middyjs/middy#readme",
46
46
  "dependencies": {
47
- "@middy/util": "^2.5.3"
47
+ "@middy/util": "^2.5.7"
48
48
  },
49
49
  "devDependencies": {
50
- "@middy/core": "^2.5.3",
50
+ "@middy/core": "^2.5.7",
51
51
  "aws-sdk": "^2.939.0",
52
52
  "aws-xray-sdk": "^3.3.3"
53
53
  },
54
- "gitHead": "690884d43b9cd632aeca9a5eba1612160b987cd4"
54
+ "gitHead": "3983c4b138e1a4d7fcb3ed805d3b8832fff06fc1"
55
55
  }