@smithy/core 3.29.8 → 3.30.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/submodules/retry/index.browser.js +1 -0
- package/dist-cjs/submodules/retry/index.js +1 -0
- package/dist-cjs/submodules/serde/index.browser.js +2 -2
- package/dist-cjs/submodules/serde/index.js +2 -2
- package/dist-cjs/submodules/serde/index.native.js +2 -2
- package/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
- package/dist-es/submodules/serde/value/NumericValue.js +2 -2
- package/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
- package/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
|
|
|
5
5
|
const isStreamingPayload = (request) => request?.body instanceof ReadableStream;
|
|
6
6
|
|
|
7
7
|
const CLOCK_SKEW_ERROR_CODES = [
|
|
8
|
+
"AccessDeniedException",
|
|
8
9
|
"AuthFailure",
|
|
9
10
|
"InvalidSignatureException",
|
|
10
11
|
"RequestExpired",
|
|
@@ -7,6 +7,7 @@ const isStreamingPayload = (request) => request?.body instanceof Readable ||
|
|
|
7
7
|
(typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream);
|
|
8
8
|
|
|
9
9
|
const CLOCK_SKEW_ERROR_CODES = [
|
|
10
|
+
"AccessDeniedException",
|
|
10
11
|
"AuthFailure",
|
|
11
12
|
"InvalidSignatureException",
|
|
12
13
|
"RequestExpired",
|
|
@@ -775,7 +775,7 @@ const splitHeader = (value) => {
|
|
|
775
775
|
});
|
|
776
776
|
};
|
|
777
777
|
|
|
778
|
-
const format =
|
|
778
|
+
const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;
|
|
779
779
|
class NumericValue {
|
|
780
780
|
string;
|
|
781
781
|
type;
|
|
@@ -783,7 +783,7 @@ class NumericValue {
|
|
|
783
783
|
this.string = string;
|
|
784
784
|
this.type = type;
|
|
785
785
|
if (!format.test(string)) {
|
|
786
|
-
throw new Error(`@smithy/core/serde - NumericValue must
|
|
786
|
+
throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
toString() {
|
|
@@ -743,7 +743,7 @@ const splitHeader = (value) => {
|
|
|
743
743
|
});
|
|
744
744
|
};
|
|
745
745
|
|
|
746
|
-
const format =
|
|
746
|
+
const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;
|
|
747
747
|
class NumericValue {
|
|
748
748
|
string;
|
|
749
749
|
type;
|
|
@@ -751,7 +751,7 @@ class NumericValue {
|
|
|
751
751
|
this.string = string;
|
|
752
752
|
this.type = type;
|
|
753
753
|
if (!format.test(string)) {
|
|
754
|
-
throw new Error(`@smithy/core/serde - NumericValue must
|
|
754
|
+
throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
toString() {
|
|
@@ -775,7 +775,7 @@ const splitHeader = (value) => {
|
|
|
775
775
|
});
|
|
776
776
|
};
|
|
777
777
|
|
|
778
|
-
const format =
|
|
778
|
+
const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;
|
|
779
779
|
class NumericValue {
|
|
780
780
|
string;
|
|
781
781
|
type;
|
|
@@ -783,7 +783,7 @@ class NumericValue {
|
|
|
783
783
|
this.string = string;
|
|
784
784
|
this.type = type;
|
|
785
785
|
if (!format.test(string)) {
|
|
786
|
-
throw new Error(`@smithy/core/serde - NumericValue must
|
|
786
|
+
throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`);
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
toString() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const format =
|
|
1
|
+
const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;
|
|
2
2
|
export class NumericValue {
|
|
3
3
|
string;
|
|
4
4
|
type;
|
|
@@ -6,7 +6,7 @@ export class NumericValue {
|
|
|
6
6
|
this.string = string;
|
|
7
7
|
this.type = type;
|
|
8
8
|
if (!format.test(string)) {
|
|
9
|
-
throw new Error(`@smithy/core/serde - NumericValue must
|
|
9
|
+
throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
toString() {
|