@middy/util 3.3.0 → 3.3.2
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.
- package/index.d.ts +2 -2
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ type HttpError = Error & {
|
|
|
22
22
|
|
|
23
23
|
declare function createPrefetchClient<Client, ClientOptions> (options: Options<Client, ClientOptions>): Client
|
|
24
24
|
|
|
25
|
-
declare function createClient<Client, ClientOptions> (options: Options<Client, ClientOptions>, request: middy.Request): Client
|
|
25
|
+
declare function createClient<Client, ClientOptions> (options: Options<Client, ClientOptions>, request: middy.Request): Promise<Client>
|
|
26
26
|
|
|
27
27
|
declare function canPrefetch<Client, ClientOptions> (options: Options<Client, ClientOptions>): boolean
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ declare function getInternal (variables: any, request: middy.Request): Promise<a
|
|
|
30
30
|
|
|
31
31
|
declare function sanitizeKey (key: string): string
|
|
32
32
|
|
|
33
|
-
declare function processCache<Client, ClientOptions> (options: Options<Client, ClientOptions>, fetch: (request: middy.Request) => any, request
|
|
33
|
+
declare function processCache<Client, ClientOptions> (options: Options<Client, ClientOptions>, fetch: (request: middy.Request) => any, request?: middy.Request): { value: any, expiry: number }
|
|
34
34
|
|
|
35
35
|
declare function getCache (keys: string): any
|
|
36
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/util",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda (util package)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"url": "https://github.com/middyjs/middy/issues"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@middy/core": "3.3.
|
|
63
|
+
"@middy/core": "3.3.2",
|
|
64
64
|
"@types/aws-lambda": "^8.10.76",
|
|
65
65
|
"@types/node": "^18.0.0",
|
|
66
66
|
"aws-sdk": "^2.939.0",
|
|
67
67
|
"aws-xray-sdk": "^3.3.3"
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://middy.js.org",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "5fcd6655e7f076615c2dcb877a36f6c4fc3164d3"
|
|
71
71
|
}
|