@aws-sdk/middleware-endpoint-discovery 3.178.0 → 3.186.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,25 @@
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-endpoint-discovery
9
+
10
+
11
+
12
+
13
+
14
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **endpoint-discovery:** delete failed cache entry in blocking operations ([#4011](https://github.com/aws/aws-sdk-js-v3/issues/4011)) ([c96ac94](https://github.com/aws/aws-sdk-js-v3/commit/c96ac9418a22687b867077e7d72b5d353d37778c))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/middleware-endpoint-discovery
@@ -39,10 +39,7 @@ const updateDiscoveredEndpointInCache = async (config, options) => new Promise((
39
39
  resolve();
40
40
  })
41
41
  .catch((error) => {
42
- var _a;
43
- if (error.name === "InvalidEndpointException" || ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 421) {
44
- endpointCache.delete(cacheKey);
45
- }
42
+ endpointCache.delete(cacheKey);
46
43
  const errorToThrow = Object.assign(new Error(`The operation to discover endpoint failed.` +
47
44
  ` Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.`), { reason: error });
48
45
  if (requestQueue[cacheKey]) {
@@ -40,10 +40,7 @@ export var updateDiscoveredEndpointInCache = function (config, options) { return
40
40
  resolve();
41
41
  })
42
42
  .catch(function (error) {
43
- var _a;
44
- if (error.name === "InvalidEndpointException" || ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 421) {
45
- endpointCache.delete(cacheKey);
46
- }
43
+ endpointCache.delete(cacheKey);
47
44
  var errorToThrow = Object.assign(new Error("The operation to discover endpoint failed." +
48
45
  " Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."), { reason: error });
49
46
  if (requestQueue[cacheKey]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint-discovery",
3
- "version": "3.178.0",
3
+ "version": "3.186.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "devDependencies": {
23
- "@aws-sdk/node-config-provider": "3.178.0",
23
+ "@aws-sdk/node-config-provider": "3.186.0",
24
24
  "@tsconfig/recommended": "1.0.1",
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
@@ -29,10 +29,10 @@
29
29
  "typescript": "~4.6.2"
30
30
  },
31
31
  "dependencies": {
32
- "@aws-sdk/config-resolver": "3.178.0",
33
- "@aws-sdk/endpoint-cache": "3.170.0",
34
- "@aws-sdk/protocol-http": "3.178.0",
35
- "@aws-sdk/types": "3.178.0",
32
+ "@aws-sdk/config-resolver": "3.186.0",
33
+ "@aws-sdk/endpoint-cache": "3.186.0",
34
+ "@aws-sdk/protocol-http": "3.186.0",
35
+ "@aws-sdk/types": "3.186.0",
36
36
  "tslib": "^2.3.1"
37
37
  },
38
38
  "engines": {