@middy/s3-object-response 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 +4 -7
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,13 +1,10 @@
1
1
  import { S3 } 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 = S3> {
6
- AwsClient?: new() => S
7
- awsClientOptions?: Partial<S3.Types.ClientConfiguration>
8
- awsClientAssumeRole?: string
9
- awsClientCapture?: typeof captureAWSClient
10
- disablePrefetch?: boolean
5
+ interface Options<S = S3>
6
+ extends Pick<MiddyOptions<S, S3.Types.ClientConfiguration>,
7
+ 'AwsClient' | 'awsClientOptions' | 'awsClientAssumeRole' | 'awsClientCapture' | 'disablePrefetch'> {
11
8
  bodyType?: string
12
9
  }
13
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/s3-object-response",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "S3 object response handling 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
  }