@aws-sdk/endpoint-cache 3.36.0 → 3.46.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **packages:** end support for Node.js 10.x ([#3141](https://github.com/aws/aws-sdk-js-v3/issues/3141)) ([1a62865](https://github.com/aws/aws-sdk-js-v3/commit/1a6286513f7cdb556708845c512861c5f92eb883))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -5,46 +5,16 @@ export interface EndpointWithExpiry extends Pick<Endpoint, "Address"> {
|
|
|
5
5
|
export declare class EndpointCache {
|
|
6
6
|
private readonly cache;
|
|
7
7
|
constructor(capacity: number);
|
|
8
|
-
|
|
9
|
-
* Returns an un-expired endpoint for the given key.
|
|
10
|
-
*
|
|
11
|
-
* @param endpointsWithExpiry
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
8
|
+
|
|
14
9
|
getEndpoint(key: string): string | undefined;
|
|
15
|
-
|
|
16
|
-
* Returns un-expired endpoints for the given key.
|
|
17
|
-
*
|
|
18
|
-
* @param key
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
10
|
+
|
|
21
11
|
get(key: string): EndpointWithExpiry[] | undefined;
|
|
22
|
-
|
|
23
|
-
* Stores the endpoints passed for the key in cache.
|
|
24
|
-
* If not defined, uses empty string for the Address in endpoint.
|
|
25
|
-
* If not defined, uses one minute for CachePeriodInMinutes in endpoint.
|
|
26
|
-
* Stores milliseconds elapsed since the UNIX epoch in Expires param based
|
|
27
|
-
* on value provided in CachePeriodInMinutes.
|
|
28
|
-
*
|
|
29
|
-
* @param key
|
|
30
|
-
* @param endpoints
|
|
31
|
-
*/
|
|
12
|
+
|
|
32
13
|
set(key: string, endpoints: Endpoint[]): void;
|
|
33
|
-
|
|
34
|
-
* Deletes the value for the given key in the cache.
|
|
35
|
-
*
|
|
36
|
-
* @param {string} key
|
|
37
|
-
*/
|
|
14
|
+
|
|
38
15
|
delete(key: string): void;
|
|
39
|
-
|
|
40
|
-
* Checks whether the key exists in cache.
|
|
41
|
-
*
|
|
42
|
-
* @param {string} key
|
|
43
|
-
* @returns {boolean}
|
|
44
|
-
*/
|
|
16
|
+
|
|
45
17
|
has(key: string): boolean;
|
|
46
|
-
|
|
47
|
-
* Clears the cache.
|
|
48
|
-
*/
|
|
18
|
+
|
|
49
19
|
clear(): void;
|
|
50
20
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/endpoint-cache",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.46.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
7
7
|
"build:es": "tsc -p tsconfig.es.json",
|
|
8
8
|
"build:types": "tsc -p tsconfig.types.json",
|
|
9
|
-
"downlevel
|
|
9
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
10
10
|
"test": "jest --passWithNoTests"
|
|
11
11
|
},
|
|
12
12
|
"author": {
|
|
@@ -22,13 +22,10 @@
|
|
|
22
22
|
"tslib": "^2.3.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/
|
|
26
|
-
"@types/node": "^10.0.0",
|
|
27
|
-
"jest": "^26.1.0",
|
|
28
|
-
"typescript": "~4.3.5"
|
|
25
|
+
"@types/node": "^10.0.0"
|
|
29
26
|
},
|
|
30
27
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
28
|
+
"node": ">= 12.0.0"
|
|
32
29
|
},
|
|
33
30
|
"typesVersions": {
|
|
34
31
|
"<4.0": {
|