@smithy/middleware-retry 4.2.4 → 4.3.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/dist-cjs/index.js
CHANGED
|
@@ -48,7 +48,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
48
48
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var import_uuid = require("uuid");
|
|
51
|
+
var import_uuid = require("@smithy/uuid");
|
|
52
52
|
|
|
53
53
|
// src/defaultRetryQuota.ts
|
|
54
54
|
var import_util_retry = require("@smithy/util-retry");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { isThrottlingError } from "@smithy/service-error-classification";
|
|
3
3
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER, REQUEST_HEADER, RETRY_MODES, THROTTLING_RETRY_DELAY_BASE, } from "@smithy/util-retry";
|
|
4
|
-
import { v4 } from "uuid";
|
|
4
|
+
import { v4 } from "@smithy/uuid";
|
|
5
5
|
import { getDefaultRetryQuota } from "./defaultRetryQuota";
|
|
6
6
|
import { defaultDelayDecider } from "./delayDecider";
|
|
7
7
|
import { defaultRetryDecider } from "./retryDecider";
|
|
@@ -2,7 +2,7 @@ import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
|
2
2
|
import { isServerError, isThrottlingError, isTransientError } from "@smithy/service-error-classification";
|
|
3
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
4
|
import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "@smithy/util-retry";
|
|
5
|
-
import { v4 } from "uuid";
|
|
5
|
+
import { v4 } from "@smithy/uuid";
|
|
6
6
|
import { isStreamingPayload } from "./isStreamingPayload/isStreamingPayload";
|
|
7
7
|
import { asSdkError } from "./util";
|
|
8
8
|
export const retryMiddleware = (options) => (next, context) => async (args) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -37,13 +37,12 @@
|
|
|
37
37
|
"@smithy/node-config-provider": "^4.2.2",
|
|
38
38
|
"@smithy/protocol-http": "^5.2.1",
|
|
39
39
|
"@smithy/service-error-classification": "^4.1.2",
|
|
40
|
-
"@smithy/smithy-client": "^4.6.
|
|
40
|
+
"@smithy/smithy-client": "^4.6.4",
|
|
41
41
|
"@smithy/types": "^4.5.0",
|
|
42
42
|
"@smithy/util-middleware": "^4.1.1",
|
|
43
43
|
"@smithy/util-retry": "^4.1.2",
|
|
44
|
-
"@
|
|
45
|
-
"tslib": "^2.6.2"
|
|
46
|
-
"uuid": "^9.0.1"
|
|
44
|
+
"@smithy/uuid": "^1.0.0",
|
|
45
|
+
"tslib": "^2.6.2"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@smithy/util-test": "^0.2.8",
|