@middy/service-discovery 7.3.3 → 7.3.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.js +5 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -16,6 +16,9 @@ import {
16
16
  validateOptions,
17
17
  } from "@middy/util";
18
18
 
19
+ const name = "service-discovery";
20
+ const pkg = `@middy/${name}`;
21
+
19
22
  const defaults = {
20
23
  AwsClient: ServiceDiscoveryClient,
21
24
  awsClientOptions: {},
@@ -23,7 +26,7 @@ const defaults = {
23
26
  awsClientCapture: undefined,
24
27
  fetchData: {}, // { contextKey: {NamespaceName, ServiceName, HealthStatus} }
25
28
  disablePrefetch: false,
26
- cacheKey: "service-discovery",
29
+ cacheKey: pkg,
27
30
  cacheKeyExpiry: {},
28
31
  cacheExpiry: -1,
29
32
  setToContext: false,
@@ -74,7 +77,7 @@ const optionSchema = {
74
77
  };
75
78
 
76
79
  export const serviceDiscoveryValidateOptions = (options) =>
77
- validateOptions("@middy/service-discovery", optionSchema, options);
80
+ validateOptions(pkg, optionSchema, options);
78
81
 
79
82
  const serviceDiscoveryMiddleware = (opts = {}) => {
80
83
  const options = { ...defaults, ...opts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/service-discovery",
3
- "version": "7.3.3",
3
+ "version": "7.3.4",
4
4
  "description": "Service Discovery (Cloud Map) instances middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -70,11 +70,11 @@
70
70
  }
71
71
  },
72
72
  "dependencies": {
73
- "@middy/util": "7.3.3"
73
+ "@middy/util": "7.3.4"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@aws-sdk/client-servicediscovery": "^3.0.0",
77
- "@middy/core": "7.3.3",
77
+ "@middy/core": "7.3.4",
78
78
  "@types/aws-lambda": "^8.0.0",
79
79
  "@types/node": "^22.0.0",
80
80
  "aws-xray-sdk": "^3.3.3"