@middy/util 2.5.1 → 2.5.5

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 +3 -2
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import middy from '@middy/core'
2
- import { captureAWSClient } from 'aws-xray-sdk'
3
2
 
4
3
  interface Options<Client, ClientOptions> {
5
4
  AwsClient?: new() => Client
6
5
  awsClientOptions?: Partial<ClientOptions>
7
6
  awsClientAssumeRole?: string
8
- awsClientCapture?: typeof captureAWSClient
7
+ awsClientCapture?: (service: Client) => Client
9
8
  fetchData?: { [key: string]: string }
10
9
  disablePrefetch?: boolean
11
10
  cacheKey?: string
@@ -43,3 +42,5 @@ declare function jsonSafeParse (string: string, reviver?: (key: string, value: a
43
42
  declare function normalizeHttpResponse (response: any, fallbackResponse?: any): any
44
43
 
45
44
  declare function createError (code: number, message: string, properties?: Record<string, any>): HttpError
45
+
46
+ declare function modifyCache (cacheKey: string, value: any): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/util",
3
- "version": "2.5.1",
3
+ "version": "2.5.5",
4
4
  "description": "🛵 The stylish Node.js middleware engine for AWS Lambda (util package)",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -44,12 +44,12 @@
44
44
  "url": "https://github.com/middyjs/middy/issues"
45
45
  },
46
46
  "devDependencies": {
47
- "@middy/core": "^2.5.1",
47
+ "@middy/core": "^2.5.5",
48
48
  "@types/aws-lambda": "^8.10.76",
49
49
  "@types/node": "^16.0.0",
50
50
  "aws-sdk": "^2.939.0",
51
51
  "aws-xray-sdk": "^3.3.3"
52
52
  },
53
53
  "homepage": "https://github.com/middyjs/middy#readme",
54
- "gitHead": "df18e5eff7d73492a96a2ca4780a2eae45d1cedb"
54
+ "gitHead": "b84840ec8afd289f6decfd0d645be4899051792d"
55
55
  }