@middy/service-discovery 7.1.0 → 7.1.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/README.md +1 -1
- package/index.d.ts +5 -1
- package/index.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>Middy
|
|
2
|
+
<h1>Middy `service-discovery` middleware</h1>
|
|
3
3
|
<img alt="Middy logo" src="https://raw.githubusercontent.com/middyjs/middy/main/docs/img/middy-logo.svg"/>
|
|
4
4
|
<p><strong>Service Discovery middleware for the middy framework, the stylish Node.js middleware engine for AWS Lambda</strong></p>
|
|
5
5
|
<p>
|
package/index.d.ts
CHANGED
|
@@ -10,12 +10,16 @@ import type middy from "@middy/core";
|
|
|
10
10
|
import type { Options as MiddyOptions } from "@middy/util";
|
|
11
11
|
import type { Context as LambdaContext } from "aws-lambda";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
export type ParamType<T> = string & { __returnType?: T };
|
|
14
|
+
export declare function serviceDiscoveryParam<T>(name: string): ParamType<T>;
|
|
15
|
+
|
|
16
|
+
export interface ServiceDiscoveryOptions<
|
|
14
17
|
AwsServiceDiscoveryClient = ServiceDiscoveryClient,
|
|
15
18
|
> extends Pick<
|
|
16
19
|
MiddyOptions<AwsServiceDiscoveryClient, ServiceDiscoveryClientConfig>,
|
|
17
20
|
| "AwsClient"
|
|
18
21
|
| "awsClientOptions"
|
|
22
|
+
| "awsClientAssumeRole"
|
|
19
23
|
| "awsClientCapture"
|
|
20
24
|
| "disablePrefetch"
|
|
21
25
|
| "cacheKey"
|
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const defaults = {
|
|
|
22
22
|
awsClientCapture: undefined,
|
|
23
23
|
fetchData: {}, // { contextKey: {NamespaceName, ServiceName, HealthStatus} }
|
|
24
24
|
disablePrefetch: false,
|
|
25
|
-
cacheKey: "
|
|
25
|
+
cacheKey: "service-discovery",
|
|
26
26
|
cacheKeyExpiry: {},
|
|
27
27
|
cacheExpiry: -1,
|
|
28
28
|
setToContext: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/service-discovery",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Service Discovery (Cloud Map) instances middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"AWS Lambda",
|
|
45
45
|
"Middy",
|
|
46
46
|
"Service Discovery",
|
|
47
|
-
"
|
|
47
|
+
"Cloud Map",
|
|
48
48
|
"Instances"
|
|
49
49
|
],
|
|
50
50
|
"author": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"repository": {
|
|
55
55
|
"type": "git",
|
|
56
56
|
"url": "git+https://github.com/middyjs/middy.git",
|
|
57
|
-
"directory": "packages/
|
|
57
|
+
"directory": "packages/service-discovery"
|
|
58
58
|
},
|
|
59
59
|
"bugs": {
|
|
60
60
|
"url": "https://github.com/middyjs/middy/issues"
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@middy/util": "7.1.
|
|
76
|
+
"@middy/util": "7.1.2"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@aws-sdk/client-servicediscovery": "^3.0.0",
|
|
80
|
-
"@middy/core": "7.1.
|
|
81
|
-
"@types/aws-lambda": "^8.
|
|
80
|
+
"@middy/core": "7.1.2",
|
|
81
|
+
"@types/aws-lambda": "^8.0.0",
|
|
82
82
|
"aws-xray-sdk": "^3.3.3"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
|
|
85
85
|
}
|