@middy/util 4.3.1 → 4.4.0

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.cjs +42 -14
  2. package/package.json +3 -3
package/index.cjs CHANGED
@@ -9,20 +9,48 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- createPrefetchClient: ()=>createPrefetchClient,
13
- createClient: ()=>createClient,
14
- canPrefetch: ()=>canPrefetch,
15
- getInternal: ()=>getInternal,
16
- sanitizeKey: ()=>sanitizeKey,
17
- processCache: ()=>processCache,
18
- getCache: ()=>getCache,
19
- modifyCache: ()=>modifyCache,
20
- clearCache: ()=>clearCache,
21
- jsonSafeParse: ()=>jsonSafeParse,
22
- jsonSafeStringify: ()=>jsonSafeStringify,
23
- normalizeHttpResponse: ()=>normalizeHttpResponse,
24
- HttpError: ()=>HttpError,
25
- createError: ()=>createError
12
+ createPrefetchClient: function() {
13
+ return createPrefetchClient;
14
+ },
15
+ createClient: function() {
16
+ return createClient;
17
+ },
18
+ canPrefetch: function() {
19
+ return canPrefetch;
20
+ },
21
+ getInternal: function() {
22
+ return getInternal;
23
+ },
24
+ sanitizeKey: function() {
25
+ return sanitizeKey;
26
+ },
27
+ processCache: function() {
28
+ return processCache;
29
+ },
30
+ getCache: function() {
31
+ return getCache;
32
+ },
33
+ modifyCache: function() {
34
+ return modifyCache;
35
+ },
36
+ clearCache: function() {
37
+ return clearCache;
38
+ },
39
+ jsonSafeParse: function() {
40
+ return jsonSafeParse;
41
+ },
42
+ jsonSafeStringify: function() {
43
+ return jsonSafeStringify;
44
+ },
45
+ normalizeHttpResponse: function() {
46
+ return normalizeHttpResponse;
47
+ },
48
+ HttpError: function() {
49
+ return HttpError;
50
+ },
51
+ createError: function() {
52
+ return createError;
53
+ }
26
54
  });
27
55
  const createPrefetchClient = (options)=>{
28
56
  const { awsClientOptions } = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/util",
3
- "version": "4.3.1",
3
+ "version": "4.4.0",
4
4
  "description": "🛵 The stylish Node.js middleware engine for AWS Lambda (util package)",
5
5
  "type": "module",
6
6
  "engines": {
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aws-sdk/client-ssm": "^3.0.0",
64
- "@middy/core": "4.3.1",
64
+ "@middy/core": "4.4.0",
65
65
  "@types/aws-lambda": "^8.10.76",
66
66
  "@types/node": "^18.0.0",
67
67
  "aws-xray-sdk": "^3.3.3"
@@ -71,5 +71,5 @@
71
71
  "type": "github",
72
72
  "url": "https://github.com/sponsors/willfarrell"
73
73
  },
74
- "gitHead": "e7576b56f165591acc427fd567b6cba8d4874340"
74
+ "gitHead": "5b574488798c48bc74269af7deb3ff95139bcdcc"
75
75
  }